Jump to content
  • 0

Cron Problem


Moby2000

Question

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

 

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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 :).

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

post-332-0-86091200-1385514223_thumb.gif

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...