error running cronjob

Author Message

ttkt ttkt

Saturday 03 December 2005 5:17:04 am

hi,

i got this error when running cronjob. could anybody tell me how to resolve this? thanks!

Warning: main(lib/ezutils/classes/ezini.php): failed to open stream: No such file or directory in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezextension.php on line 48

Warning: main(): Failed opening 'lib/ezutils/classes/ezini.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezextension.php on line 48

Warning: main(lib/ezutils/classes/ezdebug.php): failed to open stream: No such file or directory in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezmodule.php on line 46

Warning: main(): Failed opening 'lib/ezutils/classes/ezdebug.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezmodule.php on line 46

Warning: main(lib/ezutils/classes/ezini.php): failed to open stream: No such file or directory in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezcli.php on line 61

Warning: main(): Failed opening 'lib/ezutils/classes/ezini.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezcli.php on line 61

Warning: main(lib/ezutils/classes/ezdebug.php): failed to open stream: No such file or directory in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezcli.php on line 62

Warning: main(): Failed opening 'lib/ezutils/classes/ezdebug.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezcli.php on line 62

Warning: main(lib/ezutils/classes/ezdebugsetting.php): failed to open stream: No such file or directory in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezcli.php on line 63

Warning: main(): Failed opening 'lib/ezutils/classes/ezdebugsetting.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/lib/ezutils/classes/ezcli.php on line 63

Warning: main(lib/ezutils/classes/ezcli.php): failed to open stream: No such file or directory in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/kernel/classes/ezscript.php on line 80

Warning: main(): Failed opening 'lib/ezutils/classes/ezcli.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/kernel/classes/ezscript.php on line 80

Warning: main(lib/ezdb/classes/ezdb.php): failed to open stream: No such file or directory in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/kernel/classes/ezscript.php on line 81

Warning: main(): Failed opening 'lib/ezdb/classes/ezdb.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/kernel/classes/ezscript.php on line 81

Warning: main(access.php): failed to open stream: No such file or directory in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/kernel/classes/ezscript.php on line 82

Warning: main(): Failed opening 'access.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/kernel/classes/ezscript.php on line 82

Fatal error: Undefined class name 'ezdebug' in /home/httpd/vhosts/singteach.crpp.nie.edu.sg/httpdocs/kernel/classes/ezscript.php on line 186

Ɓukasz Serwatka

Monday 05 December 2005 11:37:55 pm

runcronjobs.php script should be run from eZ publish root directory. Check path in your crone tab entry. More info how to setup correctly cron jobs you can find here:
http://ez.no/products/ez_publish_cms/documentation/installation/the_cronjob_script

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

ttkt ttkt

Thursday 15 December 2005 9:57:51 pm

hi,

i got the following error when tried to run the cronjob:

[root@crpp httpdocs]# php runcronjobs.php
Running cronjobs/workflow.php
Checking for workflow processes

Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/singteach.nie.edu.sg/httpdocs/kernel/classes/ezworkflowprocess.php on line 234

Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

please advise on how to resolve this? thanks!

ttkt ttkt

Thursday 15 December 2005 10:12:25 pm

additional information...when the script is runnned immediately, i'll get the error and it is not due to cronjob error as the runcronjob file is already at the root of your folder.

Bruce Morrison

Thursday 15 December 2005 10:21:11 pm

Can you run it with the debug flag and let us know what the output is?

php runcronjobs.php -d

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

ttkt ttkt

Thursday 15 December 2005 11:12:30 pm

hi,

i got the following lines:

[root@crpp httpdocs]# php runcronjobs.php -d
Running cronjobs/workflow.php
Checking for workflow processes

Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/singteach.nie.edu.sg/httpdocs/kernel/classes/ezworkflowprocess.php on line 234

Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

Notice: Undefined variable: relMemory in /home/httpd/vhosts/singteach.nie.edu.sg/httpdocs/lib/ezutils/classes/ezdebug.php on line 1261
Timing: ()
Script cronjobs/workflow.php starting

Warning: (PHP)
Invalid argument supplied for foreach() in /home/httpd/vhosts/singteach.nie.edu.sg/httpdocs/kernel/classes/ezworkflowtype.php on line 234

Warning: (PHP)
implode(): Bad arguments. in /home/httpd/vhosts/singteach.nie.edu.sg/httpdocs/kernel/classes/ezworkflowtype.php on line 245

Error: (eZWorkflowType::loadAndRegisterType)
Workflow type not found: event_ezapprove, searched in these directories:

Script cronjobs/workflow.php starting 0.0000 sec
Total runtime: 0.1075 sec
Group ini_load:
Load cache: 0.0176 sec (11.0457%), 0.0035 avg sec (5)
Group Mysql Total:
Mysql_queries: 0.0034 sec (2.1608%), 0.0009 avg sec (4)
Looping result: 0.0007 sec (0.4190%), 0.0003 avg sec (2)

Total script time: 0.1592 sec

D K

Tuesday 24 February 2009 3:37:50 am

I am getting following email from my server when the cron job is running.

"Running cronjob part 'frequent'
Running cronjobs/notification.php
Forcing to steal the mutex lock: cronjobs/notification.php Stealing mutex. Old process has run too long.
Killing process: 5825
Failed to steal cronjob part lock."

I have set it to run every hour. Following is the setting code.

"cd /var/www/vhosts/folder/httpdocs/ && php runcronjobs.php frequent -q 2>&1"

I am not getting any notification emails.

Please help me!

http://www.eyepax.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.