Cron Job failure - Job not Qualified

Hi all, working on task automation using Cron Jobs for recurrent invoices. From the Dolibarr portal scheduled tasks can be started manual without any problems. Now we need to automate the jobs.

I created a URL key from within the portal and try to test the tasks so we can later add them, but the URL test fails with the following error: RecurringInvoicesJob - not qualified:

cron_run_jobs.php cronjobid: 3 priority=51 entity=1 label=RecurringInvoicesJob - not qualified Result: 1 jobs - 0 launched = 0 OK + 0 KO

Any idea what is causing this error?

Additional info: Dolibarr is running on a Ubuntu 22 server. Also, does the Cron Job needs to be added to the default root crontab file or user crontab?

Hello,

Normaly need to be added to the www-data user crontab

Thanks! Also added to execute by www-data, seems to work now!

*/5 * * * * www-data /var/www/html/dolibarr/scripts/cron/cron_run_jobs.php