-
-
Notifications
You must be signed in to change notification settings - Fork 120
DNS Issue when running messenger consume workers using symfony-cli #534
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
Comments
I found a workaround to make it work. My current config is this one (not working) workers:
docker_compose: ~
messenger_consume_command_outbox:
cmd: ['symfony', 'console', 'messenger:consume', 'command_outbox']
watch: ['config', 'src', 'vendor']
messenger_consume_command_async:
cmd: ['symfony', 'console', 'messenger:consume', 'command_async']
watch: ['config', 'src', 'vendor'] It work if I replace Any idea why using Edit: Little precision, it work when i run manually using |
Hello @amenophis could you provide the exact logs of the HttpClient failures? Could you also try to run |
Hey @tucksaun, I think I'm having the same issue - or very similar. Here's the error I get (only when running
I think this is a DNS issue.
This workaround doesn't seem to work for me.
Same for me. It works as expected when running |
@kbond thanks for the info! but that is strange as we don't/can't really change DNS settings IIRC. could you share a small repro (even privately) with me? |
Here's a reproducer: https://github.com/kbond/cli-reproducer I'm using http-client to make a connection and the error is ~ I found #497 which looks related? For your check here: #497 (comment), when the
For reference, when I don't have the worker running (just the webserver), I see:
|
Ah! It occurred to me that the "too many files" issue was related to the worker Still not sure why it this produced DNS-related issues though. |
Hello 👋
I am trying to use symfony cli workers to run my symfony messenger consume commands locally.
Some on my messenger handler use symfony/http-client to make external call, but none of them work because of DNS issue.
When I run manually the consume commands from my terminal, it works without issues.
Do you have an idea why ?
Thanks 🙏
The text was updated successfully, but these errors were encountered: