Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running setup:upgrade #35

Closed
JamelleG opened this issue Oct 2, 2023 · 8 comments
Closed

Error while running setup:upgrade #35

JamelleG opened this issue Oct 2, 2023 · 8 comments

Comments

@JamelleG
Copy link

JamelleG commented Oct 2, 2023

Preconditions (*)

  1. Magento Version: 2.4.5-p3
  2. Meta for magento2 extension version: 1.2.0
  3. PHP Version: 8.1
  4. Crons/consumers are running via DB, not rabbitmq

Steps to reproduce (*)

  1. Run `bin/magento setup:upgrade

Expected result (*)

  1. bin/magento setup: upgrade runs as expected
  2. queues are set up in the database.

Actual result (*)

We get the following error message Error while checking if topic is synchronous and the underlying error message we get is
Topic "persist.meta.log.immediately" is not configured.

@zlik
Copy link
Contributor

zlik commented Oct 3, 2023

@nrostrow-meta

@nrostrow-meta
Copy link
Contributor

Hi @JamelleG, looking into this. Can you check your env.php file to see if the following code block is present?

'queue' => [
    'consumers_wait_for_messages' => 1
]

It's okay if there are other items in the 'queue' field array but it seems like 'consumers_wait_for_messages' => 1 must be present. If that is missing can you try adding it and see if that resolves the issue?

I think that this may be the issue based on https://magento.stackexchange.com/questions/284604/error-while-checking-if-topic-is-synchronous-on-setupupgrade and I verified that on all of my working instances that 'queue' field and item are present in the env.php files.

@JamelleG
Copy link
Author

JamelleG commented Oct 11, 2023

Hello @nrostrow-meta,

Thank you for picking the following up.

We do have that value set in our config but as the following 'consumers_wait_for_messages' => 0 looking at the Magento documentation from what I can see/understand this is what we should have set if we are running consumers via crons https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/tutorials/message-consumers.html?lang=en

In the meantime, we will set this value to see if it resolves the issue but maybe I might be misunderstanding something because it should ideally work regardless of whether this config is set or not.

@nrostrow-meta
Copy link
Contributor

@JamelleG any update on if switching the value to 1 fixed the issue?

@cmorbitzer
Copy link

@nrostrow-meta I get this message as well. None of the suggested solutions have helped. Have you made any progress on this?

@sol-loup
Copy link
Contributor

Hey @cmorbitzer, sorry to hear you're having issues. From our perspective, communication.xml and queue_publisher.xml are correctly configured to support this. Can you confirm you've cleared cache and run the setup:install commands?

Would you also mind providing the output of:

sudo bin/magento queue:consumers:list

@jigar48
Copy link

jigar48 commented Jul 28, 2024

If you running and using Redis cache then try to flush Redis cache and then run upgrade command, It help me to fix this issue.

command I used to flush redis cache redis-cli flushall

@zlik zlik closed this as completed Dec 1, 2024
@zlik
Copy link
Contributor

zlik commented Dec 1, 2024

Closing as the team is not able to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants