Moby2000 Posted November 26, 2013 Report Posted November 26, 2013 Hi All I am getting a System Satus message "Invoices have not been automatically created via cron in the past 24 hours." Looked through the forum for cron issues and see this has happened to others. I have checked ioncube via loader-wizard.php and it's telling me ioncube is loaded and running properly. Deleted the cron and re-created it. When running the cron manually it's completing successfuly. I even get the system emails every five minutes telling me all tasks have completed. But the message is still there? Any help would be appreciated Steve Quote
0 Michael Posted November 26, 2013 Report Posted November 26, 2013 Hi All I am getting a System Satus message "Invoices have not been automatically created via cron in the past 24 hours." Looked through the forum for cron issues and see this has happened to others. I have checked ioncube via loader-wizard.php and it's telling me ioncube is loaded and running properly. Deleted the cron and re-created it. When running the cron manually it's completing successfuly. I even get the system emails every five minutes telling me all tasks have completed. But the message is still there? Any help would be appreciated Steve You can look in the cron logs, but it's normal for it to show show that for a while, it auto-fixes itself, I don't believe there's errors in the cron it just doesn't recognize it. Me and my mate had it in Beta, and two customers of mine had it and it fixed itself for them, just vanished. Quote
0 Moby2000 Posted November 26, 2013 Author Report Posted November 26, 2013 Hi CubicWebs In the cron logs the entries are showing once again all tasks have completed successfuly I have had this issue for a few days now so i don't think it's going to fix itself. It's just strange that eveything seems to be working ok? Steve Quote
0 Michael Posted November 26, 2013 Report Posted November 26, 2013 Hi CubicWebs In the cron logs the entries are showing once again all tasks have completed successfuly I have had this issue for a few days now so i don't think it's going to fix itself. It's just strange that eveything seems to be working ok? Steve Yeah give it a couple of weeks mate, it will vanish itself, as long as everything is working, nothing to worry about . Quote
0 Moby2000 Posted November 26, 2013 Author Report Posted November 26, 2013 It's annoying when you open your admin panel and it's staring you in the face! lol Quote
0 Michael Posted November 26, 2013 Report Posted November 26, 2013 It's annoying when you open your admin panel and it's staring you in the face! lol Yeah I know how you feel mate, I did panic myself until I found out my mate Dave had it before, but everything ran fine, then one day it just vanished. Quote
0 Moby2000 Posted November 26, 2013 Author Report Posted November 26, 2013 I've just noticed something strange? All tasks have been completed. Attempting to run all system tasks. Attempting to validate the license. The license validation task has completed. Attempting to backup the database to AmazonS3. The backup completed successfully. The AmazonS3 database backup task has completed. Attempting to backup the database via SFTP. The backup completed successfully. The SFTP database backup task has completed. All system tasks have been completed. This is part of the email i recieve. I don't have an account with Amazon or even set a backup task to anywhere. Any ideas ? Steve Quote
0 Moby2000 Posted November 26, 2013 Author Report Posted November 26, 2013 I've just noticed something strange? All tasks have been completed. Attempting to run all system tasks. Attempting to validate the license. The license validation task has completed. Attempting to backup the database to AmazonS3. The backup completed successfully. The AmazonS3 database backup task has completed. Attempting to backup the database via SFTP. The backup completed successfully. The SFTP database backup task has completed. All system tasks have been completed. This is part of the email i recieve. I don't have an account with Amazon or even set a backup task to anywhere. Any ideas ? Steve Ok forget this part just read the response to dgerman Quote
0 Michael Posted November 26, 2013 Report Posted November 26, 2013 Ok forget this part just read the response to dgerman Haha yeah, if there's no backup configured it will just say completed. Quote
0 Tyson Posted November 26, 2013 Report Posted November 26, 2013 I am getting a System Satus message "Invoices have not been automatically created via cron in the past 24 hours." You would receive this message if the Create Invoice task has not run in the past 24 hours. It'll only disappear after a log entry has been recorded for the task successfully running. You can view [settings] -> [Company] -> [Automation] to see the last time it has run. Quote
0 Moby2000 Posted November 26, 2013 Author Report Posted November 26, 2013 Hi Tyson As you can see this task hasn't ran since Nov 17th Steve Quote
0 Tyson Posted November 26, 2013 Report Posted November 26, 2013 Have you made any changes on or before Nov 17 at 4:38 pm? Usually something like this is caused by an error, perhaps from code with syntax errors, or an invalid object reference. If you've updated code or altered the database manually, it may have affected this. But to see what the error is, you'll probably need to check the PHP error logs or run a test. The test would be to: 1. Check the database for the latest entry for when this task has failed. The run_id for this task is probably 1. SELECT * FROM `log_cron` WHERE `run_id` !=0 AND `end_date` IS NULL ORDER BY `start_date` DESC; 2. Delete the most recent record (at the top of the list). This makes it so that the next time the cron runs, it will attempt to run this task. 3. Run the cron manually through [settings] -> [system] -> [Automation] -> Run Cron Manually. You must do this before the cron runs automatically. 4. The cron will likely stall out due to error when it attempts this cron task, and the error should be displayed. You may need error reporting on to see it. Quote
0 Moby2000 Posted November 27, 2013 Author Report Posted November 27, 2013 Hi Tyson The only changes i've made are to the template, no code changes. I have updated to 3.0.6 round that time and updated the modules and plugins. Ran the SQL statement against the database and got this result. Ran the cron manually from the browser using the generated cron key... that worked. Cleared the message. Also in the cPanel error logs there is nothing at all. Steve Quote
0 Tyson Posted November 27, 2013 Report Posted November 27, 2013 Do you still see the message "Invoices have not been automatically created via cron in the past 24 hours."? Is the Create Invoices task last run date still November 17? If either are true, then it doesn't make sense, because the query you ran on the database returns no results, meaning no tasks have failed to run recently. Quote
0 Moby2000 Posted November 27, 2013 Author Report Posted November 27, 2013 Hi Again Tyson Since I ran the cron in the browser URL yesterday The message has disapeared and the cron has ran normally since. Very strange? Steve Michael 1 Quote
0 Tyson Posted November 27, 2013 Report Posted November 27, 2013 Glad its working for you now. Only possible explanation I can think of is that the Create Invoice task was disabled, and you only just recently enabled it. Besides that, there's not enough information to describe why it wasn't working for you. Quote
0 Moby2000 Posted November 28, 2013 Author Report Posted November 28, 2013 Hi Tyson I don't know why it started working all of a sudden, but i'll keep an eye on it see what happens. Thanks for your help with this, that's what I like about blesta and it's community, help is always available Steve Michael 1 Quote
Question
Moby2000
Hi All
I am getting a System Satus message "Invoices have not been automatically created via cron in the past 24 hours."
Looked through the forum for cron issues and see this has happened to others.
I have checked ioncube via loader-wizard.php and it's telling me ioncube is loaded and running properly.
Deleted the cron and re-created it.
When running the cron manually it's completing successfuly.
I even get the system emails every five minutes telling me all tasks have completed.
But the message is still there?
Any help would be appreciated
Steve
16 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.