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.

eZ debug

Timing: Jan 18 2025 22:26:46
Script start
Timing: Jan 18 2025 22:26:46
Module start 'layout'
Timing: Jan 18 2025 22:26:46
Module start 'content'
Timing: Jan 18 2025 22:26:46
Module end 'content'
Timing: Jan 18 2025 22:26:46
Script end

Main resources:

Total runtime0.7003 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9063152.6250
Module start 'layout' 0.00600.0035 740.531339.4453
Module start 'content' 0.00950.6896 779.9766686.3750
Module end 'content' 0.69910.0011 1,466.351620.1719
Script end 0.7003  1,486.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4347160.0002
Check MTime0.00120.1738160.0001
Mysql Total
Database connection0.00090.131010.0009
Mysqli_queries0.625589.3151730.0086
Looping result0.00070.1042710.0000
Template Total0.670295.720.3351
Template load0.00210.297220.0010
Template processing0.668195.407920.3341
Template load and register function0.00020.023810.0002
states
state_id_array0.00080.116510.0008
state_identifier_array0.00110.158120.0006
Override
Cache load0.00190.2770790.0000
Sytem overhead
Fetch class attribute can translate value0.00070.103140.0002
Fetch class attribute name0.00110.160990.0001
XML
Image XML parsing0.00160.231440.0004
class_abstraction
Instantiating content class attribute0.00000.002290.0000
General
dbfile0.00110.1506240.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs