Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

The Cron Job Saga

John Henry   ( User )

Commented 3 years ago

Can anybody get this working?

I have over 6 cron jobs running on my Plesk server without problems, this cron runs but no invoices are generated. The system time is Europe/London on the server and London in the script. (Hopefully daylight settings are taken care of in the script) The command is as per your instruction domain excluded for privacy here. Also what behaviour is expected i.e. generated invoice mailed to the customer

php /var/www/vhosts/***************/httpdocs/******/artisan schedule:run >> /dev/null 2>&1

Leonardo Gomes   ( User )

Commented 3 years ago

Hey John!
Are you trying to send reminders or recurring invoices?

probably the issue is not on the cron itself but something on the command that the cron will trigger.

Try to execute the command via terminal :
php artisan recurring:check
php artisan reminder:bill
php artisan reminder:invoice

These are the commands that your cron will trigger. Check if there is any error when you are executing them.

You can post the results here in any case.

John Henry   ( User )

Commented 3 years ago

Closer reading of the post would reveal I am trying to generate recurring invoices and I've asked what behaviour to expect when run, nobody answers this question not even Akaunting direct. My cron says the job has been executed with artisan schedule:run if I use php artisan recurring:check, I get an error. There are numerous discussions about this all over the forum without a result and really it's not in Akauntings interest for me to solve it when they are asking 99 euros a month for direct support!

Please login or register to leave a response.

Showing 1 to 3 of 3 discussions