Open bmeynell opened 10 years ago
Can you paste please your config.yml and your config_prod.yml please? - Only bundle related pieces
config.yml:
gearman:
bundles:
FooBundle:
name: MyFooBundle
active: true
include:
- Service
ignore:
- EventListener
- DependencyInjection
- Resources
BarBundle:
name: MyBarBundle
active: true
include:
- Workers
ignore:
- EventListener
- DependencyInjection
- Resources
BazBundle:
name: MyBazBundle
active: true
include:
- Service
ignore:
- EventListener
- DependencyInjection
- Resources
defaults:
method: doNormal
iterations: 150
callbacks: false
servers:
gearman1:
host: 127.0.0.1
port: 4730
config_prod.yml:
gearman:
servers:
task1:
host: 10.12.24.26
port: 4730
Can you please test this fix?
Thks!
This issue is still occurring. Updated the issue above a bit.
Hmm let me see... gonna work right now on it.
I cannot find any kind of error anymore.
Can you paste again your config if changed and your output?
Error still exists. I have to remove the gearman server information from config.yml to get it to work.
Yes, sure, but I can not do anything until I have real information about your environment... you can also try to fix it.
When defining servers in
app/config/config.yml
everything works as expected. However, if different settings exist inapp/config/config_prod.yml
the workers fail to communicate correctly with gearmand. In this case the workers display suspicious configuration output:The line above -
#0 - 127.0.0.1:4730
should not exist. What is it? The workers attempt to connect to local host but cannot because gearmand is on a separate machine, which results in this error:The only temporary solution is to remove gearman settings from all files except for config.yml.