[case 82857] Can't call method "running" on an undefined value at bin/update_db_cache line 256.

syswperu

Member
Oct 31, 2013
7
0
1
cPanel Access Level
Root Administrator
when I tried to access my web page, showed me the following error: "Database connection error: bla bla bla"

The problem was repaired after entering to my WHM and restarting my MySQL service.


Also, I have recivied an email from Cron Daemon

Subject: Cron <[email protected]> /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache

Message: Can't call method "running" on an undefined value at bin/update_db_cache line 256.

I have not configured nothing in my server.

What happened? :confused: :confused: :confused:

:eek:
 

ravi9

Well-Known Member
Oct 31, 2013
65
1
6
India
cPanel Access Level
Website Owner
re: [case 82857] Can't call method "running" on an undefined value at bin/update_db_cache line 256.

Is you problem solved or you are still facing database problem??

If that was temporary, that can happen because of many reason.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

Please run the following command manually and let us know if there is any error output:

Code:
/usr/local/cpanel/scripts/update_db_cache
Thank you.
 
Last edited:

syswperu

Member
Oct 31, 2013
7
0
1
cPanel Access Level
Root Administrator
Re: [case 82857] Can't call method &amp;quot;running&amp;quot; on an undefined value at bin/update_db_cache line 256.

Hello :)

Please run the following command manually and let us know if there is any error output:

Code:
/usr/local/cpanel/scripts/update_db
Thank you.
Hi Michael,

I have run the command :
Code:
/usr/local/cpanel/scripts/update_db
and the output is:
-bash: /usr/local/cpanel/scripts/update_db: No such file or directory

- - - Updated - - -

Also,
I have run the command /usr/local/cpanel/scripts/update_db_cache and no shows any problem.
PD: The problem was temporary. Now my server is running without any problem.

- - - Updated - - -

what happened?

God only knows. :(
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Yes, I have corrected my previous post. The full path to the script was cut off. It should be:

Code:
/usr/local/cpanel/scripts/update_db_cache
I am happy to hear it's now working well for you. Feel free to contact us if the issue happens again.

Thank you.