V5 fresh install: cron not working

CentOS 8 (fresh install)

backend complains:

The crons need to be enabled

but cron is enabled:

Not sure if it’s any different in CentOS vs something like Debian or Ubuntu, but you shouldn’t need cd in the command, just the path. Also, you might want to setup the correct time format (unless you actually do want it running once every minute).

The format would be minute hour day-of-month month day-of-week in place of the asterisks. For example, to run every day at 6pm would be 0 18 * * *, which would tell it the 0th minute of the 18th hour, every day, every month, every day of the week.

As a reference, my own cron setup for 4.5.19 is
15 10 * * * /usr/bin/php /var/www/ninja/artisan ninja:send-invoices >/dev/null 2>&1 15 10 * * * /usr/bin/php /var/www/ninja/artisan ninja:send-reminders >/dev/null 2>&1

so you might try * * * * * /path/to/php /usr/share/nginx/invoiceninja/artisan schedule:run >/dev/null 2>&1

  • Has the cron command run at least once?

  • Does using the refresh data option on Settings > Device Settings help?

Check SELinux is disabled. It is the Linux equivalent of cancer.

lol haven’t even noticed it there - just copy-pasted from your wiki xD

anyway: I got tired of the SElinux permisson ^$%&@# and installed Ubuntu on that tinkering VPS.

1 Like