• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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