• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Forwarded to devs Cannot start event handler: Could not decode JSON, syntax error - malformed JSON.

sebgonzes

Silver Pleskian
Username: sebgonzes

TITLE

Cannot start event handler: Could not decode JSON, syntax error - malformed JSON.

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

obsidian 18.0.36, cloudlinux 7, x86_64

PROBLEM DESCRIPTION

Since the last MU, we have error from event_handler (we are the second client to report bug yet, these same event_handler are working since various years yet) :

[2021-06-23 09:24:40.716] 449:60d2e1b82af17 ERR [panel] Cannot start event handler: Could not decode JSON, syntax error - malformed JSON.

STEPS TO REPRODUCE

The error in our case is updating an hosting with cli :

/usr/local/psa/bin/subscription -u 'XXXX.com' -hard_quota '50M'

SUCCESS: Update of domain 'XXXX.com' completed.
[2021-06-23 09:24:40.716] 449:60d2e1b82af17 ERR [panel] Cannot start event handler: Could not decode JSON, syntax error - malformed JSON.

The event is simple in our case :

/usr/local/psa/admin/bin/php /path/to/own/phpscript.php domain update <new_domain_name>

ACTUAL RESULT

[2021-06-23 09:24:40.716] 449:60d2e1b82af17 ERR [panel] Cannot start event handler: Could not decode JSON, syntax error - malformed JSON.

EXPECTED RESULT

No error return

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Thank you!
Could you please:
  • Show the current output of systemctl status plesk-task-manager
  • Enable debug in /usr/local/psa/admin/conf/panel.ini

    [taskManager]
    debug = 1
    [debug]
    enabled = 1
    [log]
    filter.priority = 7
    show.util_exec = on

  • Enable debug in /usr/local/psa/admin/conf/task-manager.yml and run systemctl restart plesk-task-manager

    log:
    level: DEBUG

  • Trigger the event handler
  • Provide the /var/log/plesk/panel.log and /var/log/plesk/task-manager.log files
 
Thank you!
Could you please:
  • Show the current output of systemctl status plesk-task-manager
  • Enable debug in /usr/local/psa/admin/conf/panel.ini

    [taskManager]
    debug = 1
    [debug]
    enabled = 1
    [log]
    filter.priority = 7
    show.util_exec = on

  • Enable debug in /usr/local/psa/admin/conf/task-manager.yml and run systemctl restart plesk-task-manager

    log:
    level: DEBUG

  • Trigger the event handler
  • Provide the /var/log/plesk/panel.log and /var/log/plesk/task-manager.log files
Ok, can you provide an email to send info? or any other private way?
 
According to developers, the issue is caused by PPPM-13048. No real impact except errors.
 
According to developers, the issue is caused by PPPM-13048. No real impact except errors.
Great, hope they will able to remove message in next MU (we control any error message in our system and had now to make an manual check every time)

Thanks
 
Hi @IgorG reviewing last MU

Plesk Obsidian 18.0.37​

, very very disappointed to see that this bug not seem solved! It can be "just" an detail, but very annoying to who check logs!
 
This is very annoying, currently we are not able to upgrade from 18.0.35 to a higher version due to this error because this is breaking
all our E2E provisioning calls, please fix this ASAP (support mentioned that this is planned to be included in the next release 18.0.37)!


cheers Michael
 
And because of this case we are not able to upgrade to 18.0.37 (PPPM-13048 - not marked as solved) - on the other side Plesk
needs to think about the Support Policy because of this two newer releases now on (since 18.0.37 release 18.0.35 not supported anymore officially)

...

cheers Michael
 
After update to Plesk 18.0.37 shows error below, but 18.0.36 doesn't, any hints?

Bash:
# plesk bin admin --disable-access-domain
SUCCESS: Plesk is now accessible only over the port 8443.
PHP Fatal error:  Uncaught JMS\Serializer\Exception\RuntimeException: Could not decode JSON, syntax error - malformed JSON. in /usr/local/psa/admin/plib/vendor/jms/serializer/src/JsonDeserializationVisitor.php:240
Stack trace:
#0 /usr/local/psa/admin/plib/vendor/jms/serializer/src/Serializer.php(245): JMS\Serializer\JsonDeserializationVisitor->prepare('')
#1 /usr/local/psa/admin/plib/vendor/jms/serializer/src/Serializer.php(180): JMS\Serializer\Serializer->visit(Object(JMS\Serializer\GraphNavigator\DeserializationGraphNavigator), Object(JMS\Serializer\JsonDeserializationVisitor), Object(JMS\Serializer\DeserializationContext), '', 'json', 'Plesk\\Task\\Mana...')
#2 /usr/local/psa/admin/plib/Task/Manager.php(72): JMS\Serializer\Serializer->deserialize('', 'Plesk\\Task\\Mana...', 'json')
#3 /usr/local/psa/admin/plib/WebServerManager/Adapter/AsyncReconfiguration.php(49): Plesk\Task\Manager->createTask(Object(Plesk\Task\Manager\Request))
#4 /usr/local/psa/admin/plib/WebServerManager/Adapter/AsyncReconfiguration.php(21): WebServerMa in /usr/local/psa/admin/plib/vendor/jms/serializer/src/JsonDeserializationVisitor.php on line 240
exit status 255
 
After update to Plesk 18.0.37 shows error below, but 18.0.36 doesn't, any hints?

Bash:
# plesk bin admin --disable-access-domain
SUCCESS: Plesk is now accessible only over the port 8443.
PHP Fatal error:  Uncaught JMS\Serializer\Exception\RuntimeException: Could not decode JSON, syntax error - malformed JSON. in /usr/local/psa/admin/plib/vendor/jms/serializer/src/JsonDeserializationVisitor.php:240
Stack trace:
#0 /usr/local/psa/admin/plib/vendor/jms/serializer/src/Serializer.php(245): JMS\Serializer\JsonDeserializationVisitor->prepare('')
#1 /usr/local/psa/admin/plib/vendor/jms/serializer/src/Serializer.php(180): JMS\Serializer\Serializer->visit(Object(JMS\Serializer\GraphNavigator\DeserializationGraphNavigator), Object(JMS\Serializer\JsonDeserializationVisitor), Object(JMS\Serializer\DeserializationContext), '', 'json', 'Plesk\\Task\\Mana...')
#2 /usr/local/psa/admin/plib/Task/Manager.php(72): JMS\Serializer\Serializer->deserialize('', 'Plesk\\Task\\Mana...', 'json')
#3 /usr/local/psa/admin/plib/WebServerManager/Adapter/AsyncReconfiguration.php(49): Plesk\Task\Manager->createTask(Object(Plesk\Task\Manager\Request))
#4 /usr/local/psa/admin/plib/WebServerManager/Adapter/AsyncReconfiguration.php(21): WebServerMa in /usr/local/psa/admin/plib/vendor/jms/serializer/src/JsonDeserializationVisitor.php on line 240
exit status 255
in our case, this error appear since update to 18.0.36 and unfortunately have not been solved yet in last MU (18.0.37) that was what we needed...
 
Back
Top