Cannot update PHP settings via CLI: Start request repeated too quickly

Created:

2017-02-17 14:28:16 UTC

Modified:

2017-08-16 14:13:14 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot update PHP settings via CLI: Start request repeated too quickly

Applicable to:

  • Plesk Onyx for Linux

Symptoms

"/usr/local/psa/bin/php_settings -u" or "php_handler --replace" command fails to update PHP settings:

[2017-02-17 10:18:38] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/phpinimng' '--type' 'fpm' '--service' 'php7.0-fpm' '--poold' '/etc/php/7.0/fpm/pool.d/' '--restart'] with exit code [1] 
[2017-02-17 10:18:38] ERR [panel] Remove PHP-FPM config for example.com due to service failure. [2017-02-17 10:18:38] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/phpinimng' '--type' 'fpm' '--virtual-host' 'example.com' '--service' 'php7.0-fpm' '--poold' '/etc/php/7.0/fpm/pool.d/' '--remove'] with exit code [1] phpinimng failed: Job for php7.0-fpm.service failed.
See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.

PHP service status is the following:

# systemctl status php7.0-fpm.service
php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor preset: enabled) Active: inactive (dead) since Fri 2017-02-17 10:18:38 SAST; 12s ago Process: 117523 ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm.conf (code=exited, status=0/SUCCESS) Process: 117513 ExecStartPre=/usr/lib/php/php7.0-fpm-checkconf (code=exited, status=0/SUCCESS) Main PID: 117523 (code=exited, status=0/SUCCESS) Status: "Ready to handle connections" 
Feb 17 10:18:37 phoenix systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
Feb 17 10:18:37 phoenix systemd[1]: Started The PHP 7.0 FastCGI Process Manager.
Feb 17 10:18:38 phoenix systemd[1]: Stopping The PHP 7.0 FastCGI Process Manager...
Feb 17 10:18:38 phoenix systemd[1]: Stopped The PHP 7.0 FastCGI Process Manager.
Feb 17 10:18:38 phoenix systemd[1]: php7.0-fpm.service: Start request repeated too quickly.
Feb 17 10:18:38 phoenix systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.
Feb 17 10:18:38 phoenix systemd[1]: php7.0-fpm.service: Start request repeated too quickly.
Feb 17 10:18:38 phoenix systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.

Cause

The issue has been considered as a bug PPPM-5819 which will be fixed in future updates.

Resolution

As a workaround, use php_management_tool to switch all domains from one PHP handler to another:

1. download the utility

2. switch the PHP handler, for example:

# php php_management_tool move --from=fpm --to=plesk-php71-fpm

# php php_management_tool move --from=plesk-php71-fpm --to=fpm

Additional information

Multiple PHP Versions

Have more questions? Submit a request
Please sign in to leave a comment.