Jump to content

Cron Error Email


kirk

Recommended Posts

After installing the newest upgrade. I started to get this email message

 

1. Subject: Cron <******@server1> GET http://www.*********.com/clients/admin/cron.php

 

<HTML>

<HEAD><TITLE>An Error Occurred</TITLE></HEAD>

<BODY>

<H1>An Error Occurred</H1>

500 read timeout

</BODY>

</HTML>

 

2. The command I was using was

GET http://www.**********.com/clients/admin/cron.php

I have removed this command now.

 

 

3. Now I am using this a directed in automation settings

0 9 * * *

/usr/bin/php -q /home/*****/public_html/clients/admin/cron.php > /dev/null

 

4. I have ben receiving this email every 4 hours

WHMCS Cron Job Activity

 

 

I am a little cofused why I was getting an error message "1." hourly but still receiving the WHMCS Cron Job Activity report daily. While just running one cron.

 

Thanks for any help figuring this out.

 

Kirk

Link to comment
Share on other sites

  • WHMCS CEO
1. Subject: Cron <******@server1> GET http://www.*********.com/clients/admin/cron.php

 

<HTML>

<HEAD><TITLE>An Error Occurred</TITLE></HEAD>

<BODY>

<H1>An Error Occurred</H1>

500 read timeout

</BODY>

</HTML>

Not sure what that error is but its not an error from WHMCS. Must be a server issue.

 

4. I have ben receiving this email every 4 hours

WHMCS Cron Job Activity

Every 4 hours? You should set the cron command up to be run once per day and once only. Running it more than this is not recommended.

 

I am a little cofused why I was getting an error message "1." hourly but still receiving the WHMCS Cron Job Activity report daily. While just running one cron.

If you get an hourly error, you must have the cron setup to run hourly or another cron setup somewhere producing an error. The command you showed above would mean the WHMCS cron only runs once per day at 9am. You will receive the WHMCS Cron Job Activity email everytime the cron runs successfully. Therefore, there must be some other cron command causing the other errors you get.

 

Matt

Link to comment
Share on other sites

Thanks for taking a look Matt

 

The new cron settings are working fine. I had set the old cron to run every hour to make sure it was working and forgot to change it. The error message from running

GET http://www.**********.com/clients/admin/cron.php

 

was the only WHMCS cron running. I did change mail type from php to smtp maybe that was the cause. Bottom line it works now.

 

Thanks

 

Kirk

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
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated