Error cron on once a day jobs

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Arth
Posts: 6
Joined: 02 Jun 2022, 09:34

Error cron on once a day jobs

Post by Arth » 19 Jun 2022, 05:15

got an error message on cron daily jobs. What may be the cause?
Attachments
image_2022-06-19_121335928.png
image_2022-06-19_121335928.png (16.36 KiB) Viewed 115 times

User avatar
aimeos
Administrator
Posts: 6330
Joined: 01 Jan 1970, 00:00

Re: Error cron on once a day jobs

Post by aimeos » 20 Jun 2022, 07:51

You have several Aimeos sites in your database and execute the index/rebuild job for all sites. That is done in several parallel processes and can cause transaction problems. Add the site code you want to execute the jobs for at the end of the cronjob command, e.g.:

Code: Select all

0 1 * * * php /path/to/artisan aimeos:jobs "index/rebuild" default 
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply