You are here:  » Waiting time in the CRON job


Waiting time in the CRON job

Submitted by DVDAFFAIRES on Sun, 2018-05-27 08:53 in

Hi David

I have a problem and I can not find a solution.
I have two dedicated servers, both in PHP7.2.
On the first one, the cron runs without problems.
On the second, for the same streams (with very long waiting times, about 6 minutes), I always have a result "ERROR - TRANSFER FAILED".

If I click on "run" for each stream, everything works fine.

Apparently, it's the waiting time in the CRON job that does not have to be long enough.

I asked my host, but he does not see the solution.

Would you have an idea to help me?

Thank you in advance.
Cheers,
Raoul

Submitted by support on Mon, 2018-05-28 07:09

Hello Raoul,

Try forcing the handler to use PHP internal functions rather than CURL - It's strange for manually running a job to be OK but for it to fail during CRON however in most installations it is a separate PHP binary (Apache Module vs. cli version) and they may be configured slightly differently.

What I would suggest first would be to force php mode as the automation handler. To do this, edit config.advanced.php and look for the following setting at line 43:

  $config_automationHandler = "auto";

...and change to:

  $config_automationHandler = "php";

After making the change, double check that you can still manually run an Automation Tool job from /admin/, and then let CRON run and see if that makes any difference...

Cheers,
David.
--
PriceTapestry.com

Submitted by DVDAFFAIRES on Mon, 2018-05-28 10:06

Hi David.
Thank you for your answer.
The variable $config_automationHandler was already in "php".
I replaced it with "auto" and, the CRON job runs without errors.
The "RUN" button works too!

That's great. You helped me :)

Cheers,
Raoul