Open poldotz opened 9 years ago
What is you php version ? Cake version ? Do you have a sample of the job ?
By second execution, do you mean queueing the job again with the same payload ? Or is there a loop somewhere ?
It is the same for me :
php5.3 cake 2.2.3
The first task enqueued works fine, but then, i've got :
[2015-09-02 18:09:27] main.INFO: got {"queue":"default","id":"2945b813293287f9436e30c09a0c147e","class":"BziiitShell","args":[["notify"]]} {"type":"got","args":"[object] (Resque_Job: {\"queue\":\"default\",\"id\":\"2945b813293287f9436e30c09a0c147e\",\"class\":\"BziiitShell\",\"args\":[[\"notify\"]]})","worker":"jerome-linux.e-wi.org:20647"} []
[2015-09-02 18:09:27] main.INFO: Processing ID:2945b813293287f9436e30c09a0c147e in default {"type":"process","worker":"jerome-linux.e-wi.org:20647","job_id":"2945b813293287f9436e30c09a0c147e"} []
[2015-09-02 18:09:27] main.INFO: SIGPIPE received; attempting to reconnect {"type":"reconnect","worker":"jerome-linux.e-wi.org:20647"} []
[2015-09-02 18:09:27] main.ERROR: {"queue":"default","id":"2945b813293287f9436e30c09a0c147e","class":"BziiitShell","args":[["notify"]]} failed: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away {"type":"fail","log":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","job_id":"2945b813293287f9436e30c09a0c147e","time":25,"worker":"jerome-linux.e-wi.org:20647"} []
@irongomme the error seems obvious in your case
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Worker is just forking your cake app and running it with an infinite loop, so ensure that your msyql server does not close long polling connection
Ok i've found it, this was a conflict with another plugin (DatabaseLogger)
Hi, first of all, sorry for my english and thank you for this wonderful plugin. I have this issue: In a worker, the first execution go ok, the second execution instead breaks:
I receive this warning when I do a find('all') with callbacks set to true:
And in the daily log this info:
thank you in advance.
Leonardo.