Skip to main content

queueprocd fails with json parse error

Comments

3 comments

  • gdimi
    ok I found it. I search for recently modified json files in /var/cpanel and /usr/local/cpanel/ and found that /var/cpanel/taskqueue/servers_sched.json was corrupted. So I nulled its contents and restarted queueprocd ( /usr/local/cpanel/scripts/restartsrv_queueprocd) and this did the trick!
    0
  • gdimi
    just a followup, eventually I realised that erasing the contents of servers_sched.json wasn't enough because a) null content is not valid JSON b) there has to be a minimum content like ["TaskScheduler","X",{"waiting_queue":[],"nextid":XXX}] without that content, queueprocd starts ok but then fails afterwards
    0
  • cPanelMichael
    Hello, I'm glad to see you were able to solve the issue. You can also remove the file completely and then restart queueprocd to regenerate the file if it's corrupted. EX:
    # mv /var/cpanel/taskqueue/servers_sched.json /root/servers_sched.json.backup # /scripts/restartsrv_queueprocd # cat /var/cpanel/taskqueue/servers_sched.json ["TaskScheduler","2",{"waiting_queue":[],"nextid":719}]
    Thank you.
    0

Please sign in to leave a comment.