I'm developing this application which I have deployed to OpenShift.
I have "moved" the actual user registration process to a delayed job because there are a lot of stuff taking placing during this. Every two days (or so), the delayed job process stops running.
In the logs I find this:
Error while reserving job: closed MySQL connection
I tried starting it with the following command:
RAILS_ENV=production bin/delayed_job -m start
but the problem still exists.
Any ideas?
Try adding this to your database.yml
reconnect: true
I am not sure if this will fix your problem, but its worth trying.
Also, have a look at this MySql documentation about lost connection
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With