Repeater and php cli problems

I am having problems with relayer 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 problem which after Googling for hours gives me nothing ... Why is the problem logging in the log? I cannot fix this. This happens after executing any commands.

Does anyone know what these errors are? Is it time to remove and reinstall all gear related items?

+3


source to share


1 answer


Try the following with 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

      

+5


source







All Articles