My Dev server is Debian Squeeze, and I run Gearman 1.1.5, which I compiled from the source along with the php extension pecl v1.1.1
If I run reverse_client.php script, I get a GEARMAN_COULD_NOT_CONNECT error.
PHP Warning: GearmanClient::do(): send_packet(GEARMAN_COULD_NOT_CONNECT) Failed to send server-options packet -> libgearman/connection.cc:430 in /home/bealers/build/gearman-1.1.1/examples/reverse_client.php on line 26
There are several similar messages here, and all of them indicate that GM is not working.
It definitely works.
I start with these options:
PARAMS="--queue-type=MySQL --mysql-db=test_db --mysql-user=gearman --mysql-password=gearman"
If I reset the gearman_queue table to test_db, restart the daemon that recreates the table, so its connection to mysql is great and it clearly starts.
I can also install telnet on 4730 on localhost, so there is no problem with the firewall.
GM initially had problems since it started before mysql, so I edited the init script
#
and update-rd.c gearman-job-server defaults sets it to start and starts working normally at boot.
The only thing I can think of is what I originally installed through apt, but the version was old, so I deleted it and compiled from the source. / usr / sbin / gearmand no longer exists, the only version is / usr / local / sbin / gearmand
ps ax | grep gearman ps ax | grep gearman shows only one running process.
Netstat shows only one process:
tcp 0 0 *:4730 *:* LISTEN 2325/gearmand
PECL lib seems wonderful:
php -i | grep gearman
/etc/php5/cli/conf.d/gearman.ini, gearman gearman support => enabled libgearman version => 1.1.5
I have no ideas