malformed JSON string
Hey folks,
I have just finished deploying a new CentOS 6.7/Cpanel 11.50.0 Build 30. Everything is up and running as I would have expected except that I noticed i'm receiving an error on /usr/local/cpanel/scripts/update_db_cache & /usr/local/cpanel/bin/dbindex
I did move over some sites using the Transfer Tool, so this is an active server.
The failure message is as follows:
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}") at /usr/local/cpanel/Cpanel/JSON.pm line 78.
strace output:
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}") at /usr/local/cpanel/Cpanel/JSON.pm line 78.
-
Nevermind, figured it out! moved the /var/cpanel/databases/dbindex.db.json file to a backup and everything processed correctly. 0 -
Hello :) Note that the following case that's included with cPanel version 11.50.1.1 may address this issue: Fixed case FB-196533: Cpanel:DB::Map::Reader needs to report bad .json files
Thank you.0
Please sign in to leave a comment.
Comments
2 comments