We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

Cron job problems


wagenaartje
25-12-2015, 16:37
I have a specific php5.6 script I want to run every hour, so I have set a cronjob for 1 */1 * * *. This works correctly, while it is executed every hour. However, the cron log files report an error every hour:

Code:
[2015-12-25 00:01:02] ## OVH ## START - 2015-12-25 00:01:02.660683 executing: /usr/local/php5.6/bin/php /homez.2049/csgoblasmh/www/play/refresh.php 
[2015-12-25 00:01:02] 
[2015-12-25 00:01:02] ## OVH ## END - 2015-12-25 00:01:02.742372 exitcode: 255
[2015-12-25 01:01:02] ## OVH ## START - 2015-12-25 01:01:02.074049 executing: /usr/local/php5.6/bin/php /homez.2049/csgoblasmh/www/play/refresh.php 
[2015-12-25 01:01:02] 
[2015-12-25 01:01:02] ## OVH ## END - 2015-12-25 01:01:02.195501 exitcode: 255
[2015-12-25 02:01:02] ## OVH ## START - 2015-12-25 02:01:02.478022 executing: /usr/local/php5.6/bin/php /homez.2049/csgoblasmh/www/play/refresh.php 
[2015-12-25 02:01:02] 
[2015-12-25 02:01:02] ## OVH ## END - 2015-12-25 02:01:02.590502 exitcode: 255
[2015-12-25 03:01:01] ## OVH ## START - 2015-12-25 03:01:01.976693 executing: /usr/local/php5.6/bin/php /homez.2049/csgoblasmh/www/play/refresh.php 
[2015-12-25 03:01:01] 
[2015-12-25 03:01:01] ## OVH ## END - 2015-12-25 03:01:02.049265 exitcode: 255
[2015-12-25 04:01:01] ## OVH ## START - 2015-12-25 04:01:01.039063 executing: /usr/local/php5.6/bin/php /homez.2049/csgoblasmh/www/play/refresh.php 
[2015-12-25 04:01:01] 
[2015-12-25 04:01:01] ## OVH ## END - 2015-12-25 04:01:01.120874 exitcode: 255
[2015-12-25 05:01:02] ## OVH ## START - 2015-12-25 05:01:02.299135 executing: /usr/local/php5.6/bin/php /homez.2049/csgoblasmh/www/play/refresh.php 
[2015-12-25 05:01:02] 
[2015-12-25 05:01:02] ## OVH ## END - 2015-12-25 05:01:02.371886 exitcode: 255
and error logs

Code:
[Fri Dec 25 00:01:02 2015] [error] [client 10.0.55.71] [host csgoblasmh.cluster006.ovh.net] request failed: error reading the headers
[Fri Dec 25 00:01:02 2015] [warn] [client 127.0.0.1] [host csgoblasmh.cluster006.ovh.net] (22)Invalid argument: Cannot fix environment variables for container, continue anyway.
[Fri Dec 25 01:01:01 2015] [error] [client 10.0.55.71] [host csgoblasmh.cluster006.ovh.net] request failed: error reading the headers
[Fri Dec 25 01:01:02 2015] [warn] [client 127.0.0.1] [host csgoblasmh.cluster006.ovh.net] (22)Invalid argument: Cannot fix environment variables for container, continue anyway.
[Fri Dec 25 02:01:01 2015] [error] [client 10.0.55.71] [host csgoblasmh.cluster006.ovh.net] request failed: error reading the headers
[Fri Dec 25 02:01:02 2015] [warn] [client 127.0.0.1] [host csgoblasmh.cluster006.ovh.net] (22)Invalid argument: Cannot fix environment variables for container, continue anyway.
[Fri Dec 25 03:01:01 2015] [error] [client 10.0.55.71] [host csgoblasmh.cluster006.ovh.net] request failed: error reading the headers
[Fri Dec 25 03:01:01 2015] [warn] [client 127.0.0.1] [host csgoblasmh.cluster006.ovh.net] (22)Invalid argument: Cannot fix environment variables for container, continue anyway.
[Fri Dec 25 04:01:00 2015] [error] [client 10.0.55.71] [host csgoblasmh.cluster006.ovh.net] request failed: error reading the headers
[Fri Dec 25 04:01:01 2015] [warn] [client 127.0.0.1] [host csgoblasmh.cluster006.ovh.net] (22)Invalid argument: Cannot fix environment variables for container, continue anyway.
[Fri Dec 25 05:01:01 2015] [error] [client 10.0.55.71] [host csgoblasmh.cluster006.ovh.net] request failed: error reading the headers
[Fri Dec 25 05:01:02 2015] [warn] [client 127.0.0.1] [host csgoblasmh.cluster006.ovh.net] (22)Invalid argument: Cannot fix environment variables for container, continue anyway.
I have tested the .php file to run (path set to /www/play/refresh.php) and it works. However cron does not manage to execute it. Any help?