Cron Configuration Error

Version 5.11.28
Self-hosted Ubuntu 24.04 server w/Nginx

Have viewed several articles regarding enabling crons but still have the error stating “the crons needing to be enabled”.

From the installation walk through, it is indicated to begin the process by loading the crontab as the user www-data. Once that is open, I entered the following per the instruction:

          • cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1 substituting the “path-to-your-project” with the location of where invoice ninja is installed. In my case, this line reads:
          • cd /var/www/invoiceninga && php artisan schedule:run >> /dev/null 2>&1

Upon completion of this, the error about the crons needing to be restarted still exists.

HI,

What do you see when running this from the command line:

cd /var/www/invoiceninga && php artisan schedule:run

Also, the cron needs to be run every minute

"[quote=“hillel, post:2, topic:21169”]
cd /var/www/invoiceninga && php artisan schedule:run
[/quote]

Only thing that displays is the following:
-bash: cd: /var/www/invoiceninga: No such file or directory
The directory does exist though.

It may be a typo: ninga vs ninja

sorry, I even looked at what the command was and did not see the “g” in there. Display:
2025-01-22 20:40:59 Running [queue-size-job] … 8.84ms DONE
2025-01-22 20:40:59 Running [Callback] … 11.26ms DONE

I checked once again after executing this command & the error has since disappeared. Thanks for your help…