Forums / Setup & design / error running cronjob

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

eZ debug

Timing: Jan 18 2025 22:16:39
Script start
Timing: Jan 18 2025 22:16:39
Module start 'content'
Timing: Jan 18 2025 22:16:39
Module end 'content'
Timing: Jan 18 2025 22:16:40
Script end

Main resources:

Total runtime0.8527 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.7031180.8438
Module start 'content' 0.00610.7098 768.5469691.4531
Module end 'content' 0.71590.1367 1,460.0000345.0703
Script end 0.8526  1,805.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4551210.0002
Check MTime0.00150.1791210.0001
Mysql Total
Database connection0.00080.090410.0008
Mysqli_queries0.764689.67292100.0036
Looping result0.00220.25852080.0000
Template Total0.819996.220.4100
Template load0.00190.227220.0010
Template processing0.818095.925720.4090
Template load and register function0.00020.023310.0002
states
state_id_array0.00170.198010.0017
state_identifier_array0.00080.095820.0004
Override
Cache load0.00180.2095790.0000
Sytem overhead
Fetch class attribute can translate value0.00140.169250.0003
Fetch class attribute name0.00170.203790.0002
XML
Image XML parsing0.00170.196450.0003
class_abstraction
Instantiating content class attribute0.00000.002390.0000
General
dbfile0.00570.6689350.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs