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 system failed to parse the JSON stream data

Discussion in 'General Discussion' started by bruzli, May 26, 2017.

  1. bruzli

    bruzli Registered

    Joined:
    Aug 11, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    When doing various tasks like account terminate/create/modify, or edit dns we get the following error:

    Cpanel::Exception::JSONParseError/(XID pw7vmy) The system failed to parse the JSON stream data “” from the file “GLOB(0x4a21580)” because of an error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}\x{0}\x{0}...") at /usr/local/cpanel/Cpanel/JSON.pm line 121.

    Any way to fix this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,296
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The error message suggests a corrupted JSON file is the culprit. Do you notice any additional output in /usr/local/cpanel/logs/error_log when this happens?

    Thank you.
     
  3. bruzli

    bruzli Registered

    Joined:
    Aug 11, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    nothing in /usr/local/cpanel/logs/error_log
    here is full error on edit dns

    Code:
    Bind reloading on server using rndc zone: [test.domain.com]
    Error reloading bind on server: Cpanel::Exception::JSONParseError/(XID xuhr22) The system failed to parse the [asis,JSON] stream data “” from the file “GLOB(0x16b8458)” because of an error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}\x{0}\x{0}...") at /usr/local/cpanel/Cpanel/JSON.pm line 121.
    
     at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330.
        Cpanel::Exception::create("JSONParseError", HASH(0x16b8998)) called at /usr/local/cpanel/Cpanel/JSON.pm line 144
        Cpanel::JSON::_throw_json_error("malformed JSON string, neither tag, array, object, number, st"..., GLOB(0x16b8458), SCALAR(0x16b8278)) called at /usr/local/cpanel/Cpanel/JSON.pm line 122
        Cpanel::JSON::Load("\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}", GLOB(0x16b8458)) called at /usr/local/cpanel/Cpanel/JSON.pm line 279
        Cpanel::JSON::_LoadFile(GLOB(0x16b8458), 0, 0, undef, 0) called at /usr/local/cpanel/Cpanel/JSON.pm line 220
        Cpanel::JSON::LoadFile(GLOB(0x16b8458)) called at /usr/local/cpanel/Cpanel/TaskQueue/Serializer.pm line 38
        Cpanel::TaskQueue::Serializer::load("Cpanel::TaskQueue::Serializer", GLOB(0x16b8458)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/cPanel/TaskQueue/Scheduler.pm line 232
        cPanel::TaskQueue::Scheduler::load_from_cache(Cpanel::TaskQueue::Scheduler::DupeSupport=HASH(0x16b8080), GLOB(0x16b8458)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/cPanel/StateFile.pm line 423
        cPanel::StateFile::_resynch(cPanel::StateFile=HASH(0x9ebd68), cPanel::StateFile::Guard=HASH(0x16ba008), 1495671040, 56) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/cPanel/StateFile.pm line 401
        cPanel::StateFile::synch(cPanel::StateFile=HASH(0x9ebd68)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/cPanel/StateFile.pm line 357
        cPanel::StateFile::new("cPanel::StateFile", HASH(0x16e6ce8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/cPanel/TaskQueue/Scheduler.pm line 182
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/cPanel/TaskQueue/Scheduler.pm line 184
        cPanel::TaskQueue::Scheduler::new("Cpanel::TaskQueue::Scheduler::DupeSupport", HASH(0x16b8230)) called at /usr/local/cpanel/Cpanel/ServerTasks.pm line 65
        Cpanel::ServerTasks::schedule_task(ARRAY(0x16b81b8), 2, "rndc reload") called at /usr/local/cpanel/Cpanel/NameServer/Local/cPanel.pm line 417
        Cpanel::NameServer::Local::cPanel::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 101
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 92
        Try::Tiny::try(CODE(0x16ba3b0), Try::Tiny::Catch=REF(0x16b8188)) called at /usr/local/cpanel/Cpanel/NameServer/Local/cPanel.pm line 421
        Cpanel::NameServer::Local::cPanel::_reloadbindlocal_nozones(Cpanel::NameServer::Local::cPanel=HASH(0x16c39a8), "/usr/sbin/rndc", "rndc") called at /usr/local/cpanel/Cpanel/NameServer/Local/cPanel.pm line 394
        Cpanel::NameServer::Local::cPanel::reloadbind(Cpanel::NameServer::Local::cPanel=HASH(0x16c39a8), "t9DuB1xBXy2PXSCkhtGzgcFtMbxDnBDU_1496899055", HASH(0x16884c0), "zone=test.domain.com") called at /usr/local/cpanel/whostmgr/bin/dnsadmin line 984
        main::_action_handler("RELOADBIND", "local", "t9DuB1xBXy2PXSCkhtGzgcFtMbxDnBDU_1496899055", HASH(0x16884c0), "zone=test.domain.com") called at /usr/local/cpanel/whostmgr/bin/dnsadmin line 1029
        main::local_action_handler("RELOADBIND") called at /usr/local/cpanel/whostmgr/bin/dnsadmin line 741
        main::handle_request(GLOB(0x1688340), "RELOADBIND", ARRAY(0x16c0af0), 16) called at /usr/local/cpanel/whostmgr/bin/dnsadmin line 458
        main::_handle_one_connection(GLOB(0x1688340)) called at /usr/local/cpanel/whostmgr/bin/dnsadmin line 376
        main::_handle_accepted_socket(GLOB(0x1688340), GLOB(0x12de568)) called at /usr/local/cpanel/whostmgr/bin/dnsadmin line 271
     
  4. bruzli

    bruzli Registered

    Joined:
    Aug 11, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    when I delete a subdomain
    Code:
    [2017-06-08 13:34:52 +0000] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[domain] function=[DEL]: set error in context subdomain: statusmsg=[The adminbin “domain” in the “Cpanel” namespace call to function “DEL” ended prematurely: The subprocess reported error number 2 when it ended.] at /usr/local/cpanel/Cpanel/Wrap.pm line 129, <$socket> line 1.
        Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "domain", "function", "DEL", "data", "test domain.com", ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 58
        Cpanel::AdminBin::adminrun("domain", "DEL", "test", "domain.com") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 381
        Cpanel::SubDomain::_delsubdomain("test_domain.com", undef) called at /usr/local/cpanel/Cpanel/SubDomain.pm line 344
        Cpanel::SubDomain::api2_delsubdomain("domain", "test_domain.com") called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 120
        eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 120
        Cpanel::Api2::Exec::api2_exec("SubDomain", "delsubdomain", HASH(0x2a221b8), HASH(0x59461b0)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 63
        eval {...} called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 63
        Cpanel::Template::Plugin::Api2::_api2_exec("SubDomain", "delsubdomain", HASH(0x59461b0)) called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/dodeldomain.html.tt line 2
        eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/dodeldomain.html.tt line 2
        eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/subdomain/dodeldomain.html.tt line 16
        Template::Provider::__ANON__(Template::Context=HASH(0x5995dd0)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
        Template::Document::process(Template::Document=HASH(0x5946020), Template::Context=HASH(0x5995dd0)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
        Template::Context::process(Template::Context=HASH(0x5995dd0), Template::Document=HASH(0x5946020)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
        Template::Service::process(Template::Service=HASH(0x597fe30), "/usr/local/cpanel/base/frontend/paper_lantern/subdomain/dodel"..., HASH(0x566c068)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
        Template::process(Template=HASH(0x57d9a68), "/usr/local/cpanel/base/frontend/paper_lantern/subdomain/dodel"..., HASH(0x566c068), SCALAR(0x28de5d8)) called at /usr/local/cpanel/Cpanel/Template.pm line 457
        Cpanel::Template::process_template("cpanel", HASH(0x566c068), HASH(0x4da9068)) called at cpanel.pl line 1248
        cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/subdomain/dodel"..., 1) called at cpanel.pl line 5226
        cpanel::cpanel::run_standard_mode() called at cpanel.pl line 874
        cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/subdomain/dodeldomain.html.tt") called at cpanel.pl line 304
    [2017-06-08 13:34:52 +0000] warn [SubDomain::delsubdomain] Encountered error in SubDomain::delsubdomain: [A fatal error or timeout occurred while processing this directive.]
    
    Cpanel::Exception/(XID 2hhc6b) The system failed to load and to parse the file “/var/cpanel/autossl_queue_cpanel.json” because of an error: (XID vf9ezw) The system failed to parse the JSON stream data “” for the caller “(eval)” because of an error: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}\x{0}\x{0}...") at /usr/local/cpanel/Cpanel/JSON.pm line 121.
    
     at /usr/local/cpanel/Cpanel/Transaction/File/BaseReader.pm line 61.
        Cpanel::Transaction::File::BaseReader::__ANON__(Cpanel::Exception::JSONParseError=HASH(0x33ea248)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 122
        Try::Tiny::try(CODE(0x3069628), Try::Tiny::Catch=REF(0x2fb6d28)) called at /usr/local/cpanel/Cpanel/Transaction/File/BaseReader.pm line 62
        Cpanel::Transaction::File::BaseReader::_init_data_with_catch(Cpanel::Transaction::File::JSON=HASH(0x31788a0), "path", "/var/cpanel/autossl_queue_cpanel.json", "lock_waittime", 28800) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 150
        Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::JSON", "path", "/var/cpanel/autossl_queue_cpanel.json", "lock_waittime", 28800) called at /usr/local/cpanel/Cpanel/SSL/Auto/Provider/cPanel/Queue.pm line 219
        Cpanel::SSL::Auto::Provider::cPanel::Queue::_get_transaction() called at /usr/local/cpanel/Cpanel/SSL/Auto/Provider/cPanel/Queue.pm line 43
        Cpanel::SSL::Auto::Provider::cPanel::Queue::new("Cpanel::SSL::Auto::Provider::cPanel::Queue") called at bin/autossl_check_cpstore_queue.pl line 119
        bin::autossl_check_cpstore_queue::_run_maybe_captured(bin::autossl_check_cpstore_queue=HASH(0x3423608)) called at bin/autossl_check_cpstore_queue.pl line 106
        bin::autossl_check_cpstore_queue::__ANON__() called at /usr/local/cpanel/Cpanel/PIDFile.pm line 101
        Cpanel::PIDFile::do("Cpanel::PIDFile", "/var/cpanel/bin::autossl_check_cpstore_queue.pid", CODE(0x2f81128)) called at bin/autossl_check_cpstore_queue.pl line 107
        bin::autossl_check_cpstore_queue::_run_maybe_captured_once_at_a_time(bin::autossl_check_cpstore_queue=HASH(0x3423608)) called at bin/autossl_check_cpstore_queue.pl line 97
        bin::autossl_check_cpstore_queue::__ANON__() called at /usr/local/cpanel/Cpanel/CaptureFH.pm line 50
        Cpanel::CaptureFH::do_with_output_captured_to_path_if_non_tty("/usr/local/cpanel/logs/error_log", CODE(0x34233e0)) called at bin/autossl_check_cpstore_queue.pl line 98
        bin::autossl_check_cpstore_queue::run(bin::autossl_check_cpstore_queue=HASH(0x3423608)) called at bin/autossl_check_cpstore_queue.pl line 87
    
    
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,296
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You can try moving the /var/cpanel/autossl_queue_cpanel.json file out of the way and then initiating the AutoSSL queue run to regenerate the file:

    Code:
    mv /var/cpanel/autossl_queue_cpanel.json /root/autossl_queue_cpanel.json.backup1
    /usr/local/cpanel/bin/autossl_check_cpstore_queue
    Thank you.
     
Loading...

Share This Page