Jared Eitnier
Jared Eitnier

Reputation: 7152

gearman issues & php cli

I'm having some gearman issues when trying to run commands in terminal using php cli. For example I run this command:

gearmand --log-file=/var/log/gearman-job-server/gearman.log

and get:

gearmand: Could not open log file "/usr/local/var/log/gearmand.log", from "/home/jeitnier", switching to stderr. (No such file or directory)

ERROR 2013-01-25 16:25:53.000000 [ main ] bind(Address already in use) -> libgearman-server/gearmand.cc:612

ERROR 2013-01-25 16:25:53.000000 [ main ] bind(Transport endpoint is not connected) -> libgearman-server/gearmand.cc:626

The first line brings up my first issue which after Googling for hours, gives me nothing...Why is there an issue writing to the log? I can't seem to fix this. This occurs after running any commands.

Does anyone know what these errors are? Is it time to remove and re-install all gearman related items?

Upvotes: 3

Views: 4376

Answers (1)

Prisoner
Prisoner

Reputation: 27618

Try the following from the terminal:

sudo mkdir /var/log/gearman-job-server/
sudo touch /var/log/gearman-job-server/gearmand.log
sudo killall gearmand
sudo gearmand --log-file=/var/log/gearman-job-server/gearmand.log

Upvotes: 5

Related Questions