• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Possible Bug: Graceful restart of apache 12.5.30 Update #1

fliegerhermi

Regular Pleskian
Switching on the graceful restart of apache2 instead of a regular restart as described here: http://kb.odin.com/en/112020 results in the following error in the plesk panel
Code:
New configuration files for the Apache web server were not created due to the errors in configuration templates: Can not restart web server: . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter
The detailed email is:
Unable to generate the web server configuration file on the host <mail.xxx.de> because of the following errors:

Template_Exception: Can not restart web server:
file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 104
code: 0
Please resolve the errors in web server configuration templates and generate the file again.
If you choose the repair option of all config files the following error comes up:
Code:
Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-domains [1] => autosetuptest1841.de,test123.com,test234.de ) Details: [2015-09-11 13:52:22] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443' '--graceful'] with exit code [1] [2015-09-11 13:52:23] ERR [panel] Apache config (14419723400.22649400) generation failed: Template_Exception: Can not restart web server: file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php line: 104 code: 0 plesk sendmail[19863]: sendmail argv = /usr/sbin/sendmail -t -i Can not restart web server:
Freshly installed Plesk 12.5 on Debian Jessie. Maybe a bug? I haven't changed anything besides the session_save path in the php ini

If I switch the mysql-config value for graceful restart back to false the reconfiguration of the config works....
Thank you very much for any help.
 
I can't reproduce this issue on my test Plesk 12.5 server. I have inserted SQL record according to instruction from KB article and restarted Apache without any problem.
Command

# /opt/psa/admin/bin/apache_control_adapter --restart --restart-interval 0 --http-port 80 --https-port 443 --graceful

has been started in CLI also without any errors.
 
Thank you for your feedback. Have you also setup a new subscription after changing the DB-Entry? That's what I need to do to reproduce. It does not affect existing accounts.

#/opt/psa/admin/bin/apache_control_adapter --restart --restart-interval 0 --http-port 80 --https-port 443 --graceful
is working without error-output, but the config-error persists.

As soon as I switch the graceful restart back to false the configs rebuild without error.
 
Last edited:
Yes, I have created new subscription without any problem. In database:

mysql> select * from misc where param='restart_apache_gracefully';
+---------------------------+------+
| param | val |
+---------------------------+------+
| restart_apache_gracefully | true |
+---------------------------+------+
1 row in set (0.00 sec)
 
Well, I don't know. Is it also Jessie? There seem to be quite a few problems with Debian Jessie.
I tried it with a fresh machine and the error came back as soon as the first subscription was created.
I can't file official tickets with my license so I will have to wait until somebody else picks it up.

Too bad everything is encrypted. I am wondering what opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php Line 104 looks like.
 
Back
Top