Forums / Install & configuration / Database error when running runcronjobs.php

Database error when running runcronjobs.php

Author Message

Felix Laate

Wednesday 10 May 2006 5:41:13 am

Hi all!

I'm trying to set up notifications, but have ran into problems concerning runcronjobs.php. I run the script with:

php -C runcronjobs.php -d

and I get the following:

#################################### DEBUG #################################
Error: (eZMySQLDB)
Connection error: Couldn't connect to database. Please try again later or inform the system administrator.
Access denied for user: 'root@localhost' (Using password: NO)

Any ideas might make me reeeeeally happy :-)

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Felix Laate

Thursday 11 May 2006 4:23:34 am

Still having the problems.

Thaught I should say a little bit more:

- notification works when kicked off from the admin interface but NOT with cli and thus not from cron
- mysql.so is loaded in php.ini
- system runs on debian 3.1 with php 4.4.x

I'm getting pretty frustrated, so if anybody knows anything that could help me, I would really appreciate it.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Łukasz Serwatka

Thursday 11 May 2006 4:38:13 am

Hi Felix,

php -m

Make sure that php command line interface was compiled with mysql support. Do you run script from eZ publish root directory?

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

Felix Laate

Thursday 11 May 2006 4:46:30 am

Hi Luke!

Thank your for your as-allways-swift response. Here's the output:

tiberius:~# php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbx
domxml
exif
filepro
ftp
gd
gettext
iconv
imap
ldap
mbstring
mcal
mcrypt
mhash
mime_magic
mysql
ncurses
openssl
overload
pcntl
pcre
posix
session
shmop
sockets
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlrpc
xslt
yp
zip
zlib

[Zend Modules]

It appears to me that mysql.so is loaded.

I run the script from /home/myuser/ezpublish_root/.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Steven E. Bailey

Thursday 11 May 2006 4:52:47 am

Access denied for user: 'root@localhost' (Using password: NO)

Is this true? You are running mysql with the default user root with no password?

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Łukasz Serwatka

Thursday 11 May 2006 4:56:44 am

Hmm, interesting is in this debug ouput that script reads database data from site.ini not from your overrides (siteaccess)? What are results with:

php runcronjobs.php -s your_siteaccess

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

Felix Laate

Thursday 11 May 2006 5:11:22 am

Much better..


tiberius:/home/my_user/ezpublish# php runcronjobs.php -s plain_user
Using siteaccess plain_user for cronjob
Running cronjobs/workflow.php
Checking for workflow processes
Status list

0 out of 0 processes was finished

Running cronjobs/notification.php
Starting notification event processing
Done

Running cronjobs/linkcheck.php
Checking link ...
check-http://ez.no/ez_publish/documentation valid
check-http://ez.no/community/forum valid
check-http://ez.no/services/support valid
check-http://ez.no/services/consulting valid
check-http://ez.no/services/training valid
check-http://ez.no valid

...

All links have been checked!

Running cronjobs/unpublish.php

Running cronjobs/rssimport.php

Running cronjobs/indexcontent.php
Starting processing pending search engine modifications
Done

Running cronjobs/hide.php

Running cronjobs/subtreeexpirycleanup.php

Thanks guys!

Felix

PS! What on earth is the linkcheck.php for?

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Łukasz Serwatka

Thursday 11 May 2006 5:13:29 am

You can disable it in cronjobs.ini.append.php. Basically checks if link is accessible or not.

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

eZ debug

Timing: Jan 20 2025 08:03:33
Script start
Timing: Jan 20 2025 08:03:33
Module start 'content'
Timing: Jan 20 2025 08:03:33
Module end 'content'
Timing: Jan 20 2025 08:03:33
Script end

Main resources:

Total runtime0.1892 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.2031180.8047
Module start 'content' 0.00740.0102 770.0078106.1016
Module end 'content' 0.01760.1716 876.1094534.3750
Script end 0.1892  1,410.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00402.0968200.0002
Check MTime0.00160.8355200.0001
Mysql Total
Database connection0.00080.446010.0008
Mysqli_queries0.123265.09001410.0009
Looping result0.00402.13941390.0000
Template Total0.171290.410.1712
Template load0.00070.385110.0007
Template processing0.170490.045010.1704
Override
Cache load0.00050.278010.0005
Sytem overhead
Fetch class attribute can translate value0.00110.563410.0011
XML
Image XML parsing0.00040.205510.0004
General
dbfile0.00703.7055200.0004
String conversion0.00000.003730.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs