After Xibo Upgrade from 3.3.8 to 4.0.3 no backup files (latest.sql.gz) are created under …/shared/backup/db. It seems to be that no cron jobs are executing within the docker container.
- I can run a manual mysqldump without errors and the file is then created.
(mysqldump -u cms -h mysql -p cms | gzip > /var/www/backup/db/latest.sql.gz)
- I can run the cron job “cms-db-backup” in folder “/etc/periodic/15min/” and the file is then created
=> But no file will be created every 24h or after docker start
The problem exists after upgrade from 4.0.3 to 4.0.4 .
Please give me instructions, how to check what the problem could be?
Could it be that other cron jobs are also not executed within the container, not only the backup jobs?
Hello @alex , thank you very much for investigating the error and giving us the interim solution.
I think, there is a typo in your workaround. You have to patch and login into the cms-web container, not the cmd-db container.
You have to login with the command: docker-compose exec cms-web bash.
I found the issue in your mentioned entrypoint.sh file. Backup is now up and running.