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.

The dbindex cache file is out of date: “/var/cpanel/databases/dbindex.db.json”

Discussion in 'General Discussion' started by diogo_plta, Sep 7, 2015.

  1. diogo_plta

    diogo_plta Registered

    Joined:
    Nov 24, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    After a crash while I was transfering an account, the files named.conf, httpd.conf and dbindex.db.joson was corrupted. Without problem I recovered the named and httpd, but this dbindex.db.joson when I try to run /usr/local/cpanel/bin/dbindex or /usr/local/cpanel/scripts/update_db_cache to recover it, return the error:
    unexpected end of string while parsing JSON string, at character offset 220 (before "(end of string)") at /usr/local/cpanel/Cpanel/JSON.pm line 78.

    I did a forced update of cpanel, everything went well, but the system still notifying the same error. How can I recover this file?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can use strace to see which JSON file that "/usr/local/cpanel/bin/dbindex" is failing on. EX:

    Code:
    strace -e trace=open /usr/local/cpanel/bin/dbindex
    You may need to move the malformed JSON file out of the way and then use the database map tool to map databases and database users back to the account.

    Thank you.
     
    diogo_plta likes this.
  3. diogo_plta

    diogo_plta Registered

    Joined:
    Nov 24, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Perfect, it work! Thank you.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page