Report this

What is the reason for this report?

Cronjob Not Running on Ubuntu Server

Posted on April 23, 2015
fvin

By fvin

Hello everyone,

My cronjob is not working,

I have this line in the end of “/tmp/crontab.QwCzqK/crontab” file:

0 4 * * * /usr/bin/php /var/www/html/mysite.net/cron-wurfl.php

But it is not working. I should have it listed under CPVLab’s error log, like this: http://screencast.com/t/LcHyZcv8

But I didn’t have anything listed.

So, I decided to do it manually and visited http://mysite.net/cron-wurfl.php

And now, it shows the job as “started” but not finished: http://screencast.com/t/mZx2IYqyE

I appreciate your help,



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I resolved this issue by getting an updated zip package from CPVlabs and also installing zlib extension. Using the command “yum install zlib-devel”

No php error in log any-more and cron job starts and finishes!

I’m having a similar issue, may be the same issue because the cron job starts but does not finish according to the error log page on cpvlabs…

My issue is once the cron job goes off, the php script goes in a loop and the log file starts to fill up space until I reboot the server.

Infinite loop - ( PHP Warning: feof() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0)

Either one of these Cron jobs will trigger the same error in the php.log file:

0 0 * * * cd /sys/www/server/public_html/;php cron-wurfl.php

0 0 * * * php /sys/www/server/public_html/cron-wurfl.php

Could not attached entire log file sorry for the paste: [16-May-2015 13:00:01] PHP Warning: visualStylesCheckCall(license/license.php): failed to open stream: No such file or directory in /sys/www/server/public_html/lib/app.inc on line 0 [16-May-2015 13:00:01] PHP Warning: visualStylesCheckCall(): Failed opening ‘license/license.php’ for inclusion (include_path=‘.:/usr/share/pear:/usr/share/php’) in /sys/www/server/public_html/lib/app.inc on line 0 [16-May-2015 13:00:01] PHP Notice: Undefined index: License in /sys/www/server/public_html/lib/app.inc on line 0 [16-May-2015 13:00:02] PHP Warning: fopen(http://www.scientiamobile.com/wurfl/sffij/wurfl.zip): failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required in /sys/www/server/public_html/cron-wurfl.php on line 0 [16-May-2015 13:00:02] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0 [16-May-2015 13:00:02] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0 [16-May-2015 13:00:02] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0 [16-May-2015 13:00:02] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0 [16-May-2015 13:00:02] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0 [16-May-2015 13:00:02] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0 [16-May-2015 13:00:02] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0 [16-May-2015 13:00:02] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /sys/www/server/public_html/cron-wurfl.php on line 0

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.