Hi Aude,
AtoM 2.5 upgrades MySQL from version 5.6 to 5.7, and in MySQL 5.7 some of the default SQL modes have changed. We have found that upgrading users often overlook these changes when installing the new version, and my first suspicion is that you may have the wrong SQL modes enabled, leading to the error.
The most likely cause of the issue is the
STRICT_TRANS_TABLES mode, whichI believe is enabled by default in 5.7 and later. In the "Create the database" section of the installation docs for 2.5, we recommend setting different default SQL modes and NOT using this mode. See the bottom half of this section:
If you want to check or change the SQL modes of an installation, the following page might help:
Remember to restart MySQL after making changes:
- sudo systemctl restart mysql
You may also want to clear your cache and restart PHP-FPM before re-testing as well:
Let us know if this helps!
If not, then we recommend taking a look at the webserver error logs to get more information about the cause of the error. Some tips on how to do that can be found here:
Feel free to share what you find.
One last possibility is that the job scheduler simply needs a restart. You will know this is the case if you look in the error logs and see a message like, "No Gearman worker available that can handle the job."
To restart the atom-worker, see:
Some notes on this:
- You can check the status of the atom-worker at any time with: sudo systemctl status atom-worker.This is useful to make sure the restart was successful.
- When the worker dies, AtoM will attempt to automatically restart it - however, to prevent the system from being caught in an endless loop, we added a restart limit - 3 retries every 24 hours. You can reset this fail limit with the following command:
- sudo systemctl reset-failed atom-worker
If none of these suggestions help to resolve the issue, and/or this is not what you find in the error logs, then please let us know what you discover, as well as more information about your installation (Operating system, PHP version, etc) and we can provide further suggestions.
Cheers,