• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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