Jump to content

Curl timed out (timeout) in CRON


feliped2

Recommended Posts

Hi,

 

I have this to my cron job run (every day, at 00h30 AM):

 

30 0 * * * lynx -dump http://mysite.com/whmcs/admin/cron.php >/dev/null 2>&1

 

FIRST ISSUE:

This not working, i need always to run manually.

 

SECOND ISSUE:

When we run manually, we get some errors, time out. Please see this SYSTEM ACTIVITY LOG:

 

Cron Job: Suspend Failed (Hosting ID: 0000000315 - User ID: 0000000324 - Error: Curl Error - Operation timed out after 150000 milliseconds with 7855 bytes received (28))

 

 

1) How we can increase the time limit on Curl??

2) Why this is not working automactly??

 

 

Thank you!

Link to comment
Share on other sites

Are you on a dedicated machine ie does it also host other websites you do not control? Can you fine-tune the server as you want and is that cronjob launched from the same machine that hosts it ? PHP params such as php.ini could let you increase the amount of time a script is allowed to run. However seeing why it does not do its job in the allocated time is also important.

Link to comment
Share on other sites

# you want to run it as php {path} not lynx {path}

# if you're getting timeouts with the curl, then you really need to be looking to either upgrade the server its connecting to, to one not so massively overloaded, or get it with a decent provider thats not got such appalling transit ~3mins to suspend a site is *NOT* normal

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