• 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!
  • 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.

Issue Nginx fails to start and repair

ksdmg

New Pleskian
Hello,

I was trying to install the package nginx-extras to be able to use auth_request on nginx.
After the package was installed, plesk was not reachable anymore, so I uninstalled nginx-extas, this is where the troubles start.
The plesk repair utility fails to repair nginx:

[2021-11-26 14:17:55.951] 17383:61a0de674e389 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/httpdmng' '--reconfigure-all'] with exit code [1]
[FAILED]
- httpdmng failed: Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] =>
***
)

Details: [2021-11-26 14:17:55.865] 20553:61a0de7c3bd93 ERR
[util_exec] proc_close() failed
['/opt/psa/admin/bin/nginx_control' '--restart'] with exit code
[1]
Can not reload proxy server:
Repairing server-wide configuration parameters for web servers .. [2021-11-26 14:18:01.468] 17383:61a0de674e389 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/httpdmng' '--reconfigure-server'] with exit code [1]
[FAILED]
- httpdmng failed: [2021-11-26 14:18:01.431] 21269:61a0de847af40
ERR [util_exec] proc_close() failed
['/opt/psa/admin/bin/nginx_control' '--restart'] with exit code
[1]
Can not reload proxy server:
I was digging a long time in google and the forums. I also tried re-installing nginx with apt remove sw-nginx and reinstalling it.

Trying to start nginx with plesk sbin nginxmng -e results in
Unable to start service: Unable to manage service by nginxmng ('start', 'nginx'): [2021-11-26 14:28:49.931] 2633:61a0e111e3279 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx_control' '--start'] with exit code [1] Can not start proxy server:
I really don't know what else to try.
 
Have you tried this:
1) Disable the use of Nginx in Plesk:
# plesk sbin nginxmng -d
2) Remove Nginx component from Plesk. Go to the "Add or Remove Components" link, then deselect "Nginx web server and reverse proxy server" and store the new setting.
3) Make sure that your own Nginx packages are also removed (apt remove ...)
4) Once all of Nginx is gone, got back to Plesk "Add or Remove Components" and re-add the "Nginx web server and reverse proxy server" component.
 
Hello Peter,
I tried to follow your steps. Uninstalling and installing works, but the service doesn't start automatically. If I then get back to the services window in Plesk and try to start it manually, I get the following error:
Unable to start service: Unable to manage service by nginxmng ('start', 'nginx'): [2021-11-26 18:55:23.811] 2470:61a11f8bc57c1 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx_control' '--start'] with exit code [1] Can not start proxy server:
 
Hello Peter,
because I couln't waste any more time, I just restored a system backup. I hope I will not crash it again :)
Can you help me making the auth_request parameter available?
 
Back
Top