Hi Pimcore people.
I’m struggling with getting pimcore to publish on a schedule. Seams the cronjob for console maintenance somehow is not executing right.
This is what i have done so far. I’m on ubuntu 20.04 LTS in a docker container.
I added a cronjob in crontab. Running it as www-data and outputting to a file.
*/5 * * * * www-data php /var/www/html/bin/console maintenance > /var/www/html/log/wwwcron.log
Made sure cron service is running.
/var/www/html/log/wwwcron.log gets updated every 5 minutes. It’s empty.
In pimcore i updated some field of a data object. Created a schedule to publish and save it.
Wait for the next /5 minute. Nothing. The cron job has run with no output from console maintenance.
If i run console maintenance manually the data object gets published.
I tried to run the console maintenance as root from cron as well.