Ask, reply and learn. Join the community of Akaunting.
Hi,
I'm using the current version (1.3.16, selfhosted).
I created an invoice that should recure daily.
The cronjob is setup correctly (every minute...), but the new invoice is not created.
Are there any checks before creating the new invoice that might interfere? (like, previous invoice needs to be sent or something)
When I run "php artisan schedule:run" at the exact time the scheduling is configured for, I still get "No scheduled commands are ready to run."
Shouldn't this be doing something?
When I run "php artisan recurring:check" as suggested here "https://akaunting.com/forum/discussion/general/cron-job" the script seems to work for a few seconds, but nothing else happens.
The invoice is not created and no output is visible on the console.
I saw quite a few posts in the forums regarding the recurring invoices, but didn't find any solution.
Is this still a bug / known issue?
Some other posts suggested that it would be fixed in 1.3
I'd be glad for any suggestion/help.
Cheers!
I would suggest to enable debug and check the storage/logs/laravel.log file.
I just made a Pull Request mybe concerning the issue.
Did you change your companies timezone by any change?
Having a timezone different to your servers timezone will make the recurring invoices not work.
https://github.com/akaunting/akaunting/pull/832
Hi,
I had the same problem for days until I decided to take full control of the cron job from my shared hosting cpanel.
So in order to get the recurring invoice and invoice and bill reminders to work without errors, simply create 3 different cron jobs and set them to run once per day. You can set the jobs to run at a particular hour. For example, 0,4,*,*,* means the cron job will run at 4am server time everyday.
So for the recurring invoice cron job, use the following command
/usr/local/bin/php /path_to_akaunting/artisan recurring:check >> /dev/null 2>&1
For the invoice reminder cron job, use the following command
/usr/local/bin/php /path_to_akaunting/artisan reminder:invoice >> /dev/null 2>&1
For the bill reminder cron job, use the following command
/usr/local/bin/php /path_to_akaunting/artisan reminder:bill >> /dev/null 2>&1
I hope it helps someone.
Best Regards
Hi, I had the same issue with Akaunting 2.1.28 and Chinedu Obi's solution from above worked to solve the problem. Thank you.
Hello, Chinedu Obi's solution works well, no cron artisan schedule:run enabled...
Showing 1 to 6 of 6 discussions