espocrm / espocrm-docker

Official Docker Image for EspoCRM
https://hub.docker.com/r/espocrm/espocrm
GNU Affero General Public License v3.0
56 stars 34 forks source link

espocrm-daemon exited with code 0 #14

Closed vp-lab closed 1 year ago

vp-lab commented 2 years ago

Hello,

After upgrading to 7.1.7 from 7.0.10, the espocrm-daemon it's in restarting loop with this error: espocrm-daemon exited with code 0 2022-06-21_15-52

After the update we get:

Attaching to espocrm, espocrm-daemon
espocrm         | Run "upgrade" action.
espocrm         | Start upgrading process from version 7.0.10.
espocrm         | Upgrade process is finished. EspoCRM version is 7.1.7.

But the daemon it's in a restarting loop.

It's there a path to make the update to the latest version ?

Thank you.

tmachyshyn commented 2 years ago

Hello,

Please check your EspoCRM log file for more details, https://docs.espocrm.com/administration/log/#default-log.

optorun commented 1 year ago

Hey ! Same issue here with 7.1.9 tag, on official docker image and a custom one. Error in logs : [2022-07-19 09:55:48] ERROR: Daemon config params are not set. [] [] Issue seems to come from application/Espo/Core/ApplicationRunners/Daemon.php, though I know next to nothing when it comes to php. I just upgraded from 6.1.10 version, and said script didn't include the entrypoint-utils.sh bits, FYI. I'll try to fix it myself, but in the meantime, you'll probably want to have a look into it, for this component seems to be broken for multiple versions now.

Thanks; wish you a nice day !

Edit : Pinpoint php script that proc the error. Edit 2 : Fixed ! Problem comes from missing parameters in data/config.php. More precisely, daemonMaxProcessNumber and daemonInterval. See https://docs.espocrm.com/administration/config-params/#jobs-daemon for default values. These should have default implicit values though, probably.

tmachyshyn commented 1 year ago

This issue was related to the configuration bug, https://github.com/espocrm/espocrm-docker/commit/6cfd3234991f48475916aafd85eb017c9e5a447d. Thanks everyone to help fix it.