The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Database Discussions' started by syswperu, Nov 12, 2013.

  1. syswperu

    syswperu Member

    Joined:
    Oct 31, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    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 <root@mi> /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:
     
  2. ravi9

    ravi9 Well-Known Member

    Joined:
    Oct 31, 2013
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
    #3 cPanelMichael, Nov 13, 2013
    Last edited: Nov 14, 2013
  4. syswperu

    syswperu Member

    Joined:
    Oct 31, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    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.

    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. :(
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page