Apache service restarts twice while applying changes in Plesk

Created:

2017-01-11 13:47:08 UTC

Modified:

2017-08-08 13:15:43 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Apache service restarts twice while applying changes in Plesk

Applicable to:

  • Plesk for Linux

Symptoms

1. Subscription creation takes a significant time or can finish with one of the following errors in Plesk:

Internal error
This operation is taking too long. Check the results in a few minutes

2. There can be a stuck apache_control_adapter process:

# ps auxfww | grep apache_control_adapter

root      5913  0.0  0.0 150236  3228 ?        S    10:29   0:00  \_ /usr/local/psa/admin/bin/apache_control_adapter --restart --restart-interval 60 --http-port 7080 --https-port 7081 --graceful

3. Manual execution of the following command fails with the following error:

# /usr/local/psa/admin/bin/apache_control_adapter --restart --restart-interval 60 --http-port 7080 --https-port 7081 --graceful

graceful restart failed, perform full restart
graceful restart failed, perform full restart

4. After applying changes in domain hosting settings in Plesk, all websites become unavailable for a couple of seconds.

5. Plesk restarts Apache twice in /var/log/plesk/rc_actions.log:

START pleskrc
INFO: [Mon May 8 08:34:59 CEST 2017]: Serice: apache2, Action: graceful
Trying to graceful service apache2... done
STOP pleskrc
START pleskrc
INFO: [Mon May 8 08:35:07 CEST 2017]: Serice: apache2, Action: stop
Trying to stop service apache2... active
done
STOP pleskrc
START pleskrc
INFO: [Mon May 8 08:35:14 CEST 2017]: Serice: apache2, Action: start
Trying to start service apache2... inactive
done
STOP pleskrc

6. Apache graceful restart takes more than 5s:

[Mon May 08 08:27:26.568084 2017] [mpm_event:notice] [pid 6879:tid 140368994166656] AH00493: SIGUSR1 received. Doing graceful restart
[..]
[Mon May 08 08:27:32.754347 2017] [mpm_event:notice] [pid 6879:tid 140368994166656] AH00489: Apache/2.4.10 (Debian) OpenSSL/1.0.1t Apache mod_fcgid/2.3.9 mod_jk/1.2.37 mod_python/3.3.1 Python/2.7.9 mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations

Cause

This is a Plesk bug with ID PPP-27119 which is planned to be fixed in the future Plesk updates.

Resolution

As a workaround download and apply the patched apache_control_adapter file:

For Plesk Onyx 17.0 on Ubuntu 14.04:

https://support.plesk.com/hc/article_attachments/115000951233/apache_control_adapter17.0_ubuntu14.zip

For Plesk Onyx on CentOS 7:

https://support.plesk.com/hc/article_attachments/115000892425/apache_control_adapter_centos7x64.zip

For Plesk Onyx on CentOS 6:

https://support.plesk.com/hc/article_attachments/115000892405/apache_control_adapter_centos6x64.zip

For Plesk Onyx on Debian 8:

https://support.plesk.com/hc/article_attachments/115004401529/apache_control_adapter_deb8x64.zip

# cp /usr/local/psa/admin/sbin/apache_control_adapter /root/apache_control_adapter.saved
# unzip apache_control_adapter_centos7x64
# chmod 0750 apache_control_adapter
# cp ./apache_control_adapter /usr/local/psa/admin/sbin/apache_control_adapter

If you have another operating system, please contact Plesk Technical Support.

Attachments:

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Peter Debik

    Could you please clarify whether this bug is still "current" or since what Plesk version it was resolved?

  • 0
    Avatar
    Vitaly Zhidkov

    @Peter, this bug was not fixed yet

Please sign in to leave a comment.