Gearman throws GEARMAN_COULD_NOT_CONNECT on php example
Hello,
I installed gearmand 1.1.5 on my server, and tried the examples provided with the installation after starting the server. They work pretty correctly (the echo example works, the reverse doesn't work as expected, but doesn't gives any error).
Then I installed the php wrapper using pecl. The version is the last stable (1.1.1). Obviously I added the extension to php.ini, and my php --info|grep gearman output is:
gearman
gearman support => enabled
libgearman version => 1.1.5
PWD => /root/gearman-
OLDPWD => /root/gearman-1.1.1
_SERVER["PWD"] => /root/gearman-
_SERVER["OLDPWD"] => /root/gearman-1.1.1
Then I tried the echo example in the pecl package, the worker starts correctly:
[~/gearman-
Starting
Waiting for job...
the client, instead, gives me the following error:
[~/gearman-
Starting
Sending job
PHP Warning: GearmanClient:
PHP Stack trace:
PHP 1. {main}() /root/gearman-
PHP 2. GearmanClient->do() /root/gearman-
Warning: GearmanClient:
Call Stack:
0.0001 228408 1. {main}() /root/gearman-
0.0003 229552 2. GearmanClient->do() /root/gearman-
RET: 26
In the gearman daemon's log there is no sign of activity for this php tests, while it logged all previous examples I tried.
How can I fix this error? Thanks.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Gearman Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Lorenzo Marcon for more information if necessary.