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.

malformed JSON string

Discussion in 'General Discussion' started by jsparks, Sep 16, 2015.

  1. jsparks

    jsparks Registered

    Joined:
    Sep 16, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Halifax
    cPanel Access Level:
    Root Administrator
    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:

    Code:
    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.
    
    
     
    #1 jsparks, Sep 16, 2015
    Last edited by a moderator: Sep 16, 2015
  2. jsparks

    jsparks Registered

    Joined:
    Sep 16, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Halifax
    cPanel Access Level:
    Root Administrator
    Nevermind, figured it out! moved the /var/cpanel/databases/dbindex.db.json file to a backup and everything processed correctly.
     
  3. 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 :)

    Note that the following case that's included with cPanel version 11.50.1.1 may address this issue:

    Code:
    Fixed case FB-196533: Cpanel:DB::Map::Reader needs to report bad .json files
    Thank you.
     
Loading...

Share This Page