The dbindex cache file is out of date: /var/cpanel/databases/dbindex.db.json
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?
-
Hello :) You can use strace to see which JSON file that "/usr/local/cpanel/bin/dbindex" is failing on. EX: 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.0 -
Hello :) You can use strace to see which JSON file that "/usr/local/cpanel/bin/dbindex" is failing on. EX:
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.
Perfect, it work! Thank you.0 -
I'm happy to see the response was helpful. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments