Symptoms
-
Cannot log in to Plesk. One of the following errors is shown:
ERROR: Service_Agent_Exception
Unable to read components configuration from the service node: Error: invalid command --list
Usage: mailmng <COMMAND> <COMMAND OPTIONS...>
for a complete list of commands usemailmng --help-commands'' for help on syntax for a particular command use
mailmng <COMMAND> --help''
for legacy complete help use ``mailmng --help-legacy''Server Error
500
Service_Agent_Exception
Unable to execute php_handlers_control: php_handlers_control: execve failed for /usr/local/psa/admin/sbin/php_handlers_control: Exec format error System error 8: Exec format error -
In
/var/log/plesk/panel.log
with debug mode enabled the following error is found:ERR [utilexec] procclose() failed ['/usr/local/psa/admin/bin/php_handlerscontrol' '--reread' '--no-set-dirty-flag'] with exit code [1]
DEBUG [utilexec]
[29066fec8acf7a018dd45a62d1185cbb][0] Finished in 0.00856s, Error code: 1, stdout: , stderr: Error: invalid command --reread Usage: mailmng <COMMAND OPTIONS...> for a complete list of commands use mailmng --help-commands'' for help on syntax for a particular command usemailmng --help'' for legacy complete help use ``mailmng --help-legacy'' PleskUtilException: '/usr/local/psa/admin/bin/phphandlerscontrol' '--reread' '--no-set-dirty-flag' failed with code 1. -
An attempt to execute the command below fails with help output:
# /usr/local/psa/admin/bin/php_handlers_control –list
Usage: mailmng <COMMAND> <COMMAND OPTIONS…>
for a complete list of commands usemailmng --help-commands'' for help on syntax for a particular command use
mailmng <COMMAND> –help”
for legacy complete help use “mailmng –help-legacy”
Cause
File /usr/local/psa/admin/sbin/wrapper
is corrupted.
Resolution
-
Connect to the server via SSH.
-
Download the appropriate
plesk-service-node-utilities
package from autoinstall.plesk.com. For example, for Plesk Onyx 17.8 on CentOS 7:# wget http://autoinstall.plesk.com/PSA_17.8.11/dist-rpm-CentOS-7-x86_64/base/plesk-service-node-utilities-17.8.11-cos7.build1708180515.21.x86_64.rpm
-
Reinstall the package:
# rpm -Uvh –force plesk-service-node-utilities-17.8.11-cos7.build1708180515.21.x86_64.rpm