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

Scheduled Jobs don't work after update #10

Closed vp-lab closed 2 years ago

vp-lab commented 2 years ago

Today we update the espocrm from 6.1.9 to 7.0.4 but the Scheduled Jobs don't work anymore.

  1. EspoCRM 6.1.9
  2. docker-compose down
  3. docker-compose pull
  4. docker-compose up -d --force-recreate
  5. It takes ~10 minute to update to last version
  6. Scheduled Jobs isn't working after the last update.

All Scheduled Jobs don't work after the update.

Before update: 6.1.9 After update: 7.0.4 EspoCRM it's installed in docker container with external database

I need to add the cron in the container or it's bug ? Screenshot from 2021-10-14 20-17-09

in logs /var/www/html/data/logs I can see this:

[2021-10-14 17:15:08] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:15:18] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:15:28] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:15:38] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:15:48] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:15:58] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:16:08] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:16:18] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:16:28] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:16:38] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:16:48] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:16:58] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:17:08] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:17:18] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:17:28] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:17:38] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:17:48] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:17:58] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:18:08] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:18:23] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:18:28] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:18:38] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:18:48] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:18:58] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:19:08] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:19:18] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:19:28] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
[2021-10-14 17:19:38] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []

It's a param. in the docker-compose or somewhere else?

Thank you.

tmachyshyn commented 2 years ago

Please check the following items:

  1. Your problem indicates that you have enabled the Disable Cron option in the Administration > Settings in EspoCRM. Please disable it for running Scheduled Jobs. Please also check other options: Use Cache (should be enabled) and Maintenance Mode (should be disabled).

  2. Check if you have configured the daemon service for running the Scheduled Jobs:

espocrm-daemon:
    image: espocrm/espocrm
    volumes:
     - espocrm:/var/www/html
    restart: always
    entrypoint: docker-daemon.sh

You can also, show your docker-compose.yml file to be able to test this behavior.

vp-lab commented 2 years ago

Thank you for your response. We figured out it was the Disable Cron Enabled after the update. After the update the maintenance mode was enabled and we disable it. Why the cron isn't disable with maintenance mode mode disable?

Thank you, you can close the ticket.

tmachyshyn commented 2 years ago

While the upgrading process the cron is automatically disabling and enabling after the upgrade process is finished. You don't need to disable it manually.