What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

hello, How can I refresh storage? I have some old values in redis that are not getting refreshed ev

UM9F81RCP
UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet
edited November 2019 in Help

hello,

How can I refresh storage? I have some old values in redis that are not getting refreshed even if I do :

console data:sync
console event:trigger

any suggestions?
Thanks

Β«1

Comments

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    are messages in queue processed?

  • UKEP86J66
    UKEP86J66 Posts: 208 πŸ§‘πŸ»β€πŸš€ - Cadet

    Can you check the postgres _storage table for the entity that is not refreshed?

  • UKEP86J66
    UKEP86J66 Posts: 208 πŸ§‘πŸ»β€πŸš€ - Cadet

    That will help indicate if the problem is in the queue code, or in the event listeners that update _storage

  • UKEP86J66
    UKEP86J66 Posts: 208 πŸ§‘πŸ»β€πŸš€ - Cadet

    Another thing to check is ensure you have all the plugins for the dependency providers for data:sync and event:trigger

  • UKEP86J66
    UKEP86J66 Posts: 208 πŸ§‘πŸ»β€πŸš€ - Cadet

    They could be missing for the entity that is not being updated

  • UNTTWV4JK
    UNTTWV4JK Posts: 63 πŸ§‘πŸ»β€πŸš€ - Cadet

    console sync:data --help

  • UNTTWV4JK
    UNTTWV4JK Posts: 63 πŸ§‘πŸ»β€πŸš€ - Cadet

    try to sync some ids not the full data

  • UNTTWV4JK
    UNTTWV4JK Posts: 63 πŸ§‘πŸ»β€πŸš€ - Cadet

    e.g. sync:data product_abstract 123,124…

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thank you for your responses guys

  • UNTTWV4JK
    UNTTWV4JK Posts: 63 πŸ§‘πŸ»β€πŸš€ - Cadet

    AFAIK: if you try to sync everything using this command it will first read everything from the database and it will crash… maybe this was fixed

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UKEP86J66 the entity is translations β€œGlossary”

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    i checked that

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    spy_glossar_storage is empty

  • UNTTWV4JK
    UNTTWV4JK Posts: 63 πŸ§‘πŸ»β€πŸš€ - Cadet

    for the glossary use the data:import command

  • UNTTWV4JK
    UNTTWV4JK Posts: 63 πŸ§‘πŸ»β€πŸš€ - Cadet

    I don’t think there are triggers for glossary

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I truncated it and tried to sync but it is still not populated

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    it seems like there is

  • UNTTWV4JK
    UNTTWV4JK Posts: 63 πŸ§‘πŸ»β€πŸš€ - Cadet

    console data:import:glossary

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited November 2019

    because when I check rabbitmq there is a queue for translations

  • UNTTWV4JK
    UNTTWV4JK Posts: 63 πŸ§‘πŸ»β€πŸš€ - Cadet

    this should do it

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    Not all the translations are missing so running data import will not help me

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I am talking about new translations I added after installation

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    so no data import is not a solution

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    @ULSLLNL7K so there was some non-processed queue messages and I ran vendor/bin/console queue:worker:start but even after those were processed still translations are not updated … i still see the old translation

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
  • @UM9F81RCP what language do you change?

  • from which store?

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    what does store or language have to do with this?! shouldn’t it be the same process for any language or store?

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I have configured a new store with 4 languages.

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    Update
    Redis does not have the keys of my translations