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

Resolved My NGINX don´t start :(

Tiago Cruz

New Pleskian
OS: Debian 8
PLesk 17.0.17 update #9


Unable to manage service by nginxmng: ('start', 'nginx'). Error: [2016-12-02 10:47:04] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx_control' '--start'] with exit code [127] Can not start proxy server: /opt/psa/admin/sbin/nginx-config execution failed: /opt/psa/admin/sbin/nginx-config: line 285: /usr/sbin/nginx: No such file or directory


Please helpme
 
Try to fix it with

# plesk installer --select-release-current --install-component nginx
 
Thanks for your response, but the error persist.

Error: No se pueden reconfigurar las configuraciones del servidor web: Unable to execute httpdmng: [2016-12-02 11:08:03] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [127]
[2016-12-02 11:08:05] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [127]
[2016-12-02 11:08:05] ERR [panel] Apache config (14806732730.10208400) generation failed: Template_Exception: /opt/psa/admin/sbin/nginx-config: line 285: /usr/sbin/nginx: No such file or directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
/opt/psa/admin/sbin/nginx-config: line 285: /usr/sbin/nginx: No such file or directory
 
What is output of command:

# rpm -qf /usr/sbin/nginx

?
 
Have you executed my previous command

# plesk installer --select-release-current --install-component nginx

?

It should install missing nginx. What is output of this command?
 
Downloading file products.inf3: 0%
Downloading file products.inf3: 100% was finished.
Downloading file plesk.inf3: 0%
Downloading file plesk.inf3: 100% was finished.
Downloading file ppsmbe.inf3: 0%
Downloading file ppsmbe.inf3: 100% was finished.
Downloading file sitebuilder.inf3: 0%
Downloading file sitebuilder.inf3: 100% was finished.
Downloading file sso.inf3: 0%
Downloading file sso.inf3: 100% was finished.
Downloading file setemplates.inf3: 0%
Downloading file setemplates.inf3: 100% was finished.
Downloading file pp-sitebuilder.inf3: 0%
Downloading file pp-sitebuilder.inf3: 100% was finished.
Downloading file billing.inf3: 0%
Downloading file billing.inf3: 100% was finished.
Downloading file mysql.inf3: 0%
Downloading file mysql.inf3: 100% was finished.
Downloading file apache.inf3: 0%
Downloading file apache.inf3: 100% was finished.
Downloading file nginx.inf3: 0%
Downloading file nginx.inf3: 100% was finished.
Downloading file php70.inf3: 0%
Downloading file php70.inf3: 100% was finished.
Downloading file php56.inf3: 0%
Downloading file php56.inf3: 100% was finished.
Downloading file php55.inf3: 0%
Downloading file php55.inf3: 100% was finished.
Downloading file php54.inf3: 0%
Downloading file php54.inf3: 100% was finished.
Downloading file php53.inf3: 0%
Downloading file php53.inf3: 100% was finished.
Downloading file php52.inf3: 0%
Downloading file php52.inf3: 100% was finished.
Downloading file pmm.inf3: 0%
Downloading file pmm.inf3: 100% was finished.
Checking for installed packages...
Downloading file PSA_17.0.17/plesk-17.0.17-deb8.0-x86_64.inf3: 0%
Downloading file PSA_17.0.17/plesk-17.0.17-deb8.0-x86_64.inf3: 100% was finished.
Downloading Extensions Catalog feed...
Downloading file PSA_17.0.17/plesk-patches-17.0.17-deb8.0-x86_64.inf3: 0%
Downloading file PSA_17.0.17/plesk-patches-17.0.17-deb8.0-x86_64.inf3: 100% was finished.
Downloading file PMM_0.1.10/pmm-0.1.10-deb8.0-x86_64.inf3: 0%
Downloading file PMM_0.1.10/pmm-0.1.10-deb8.0-x86_64.inf3: 100% was finished.
Downloading file NGINX17/nginx-deb8.0-x86_64.inf3: 0%
Downloading file NGINX17/nginx-deb8.0-x86_64.inf3: 100% was finished.
Downloading file PHP52_17/php52-deb8.0-x86_64.plesk17.inf3: 0%
Downloading file PHP52_17/php52-deb8.0-x86_64.plesk17.inf3: 100% was finished.
Downloading file PHP53_17/php53-deb8.0-x86_64.plesk17.inf3: 0%
Downloading file PHP53_17/php53-deb8.0-x86_64.plesk17.inf3: 100% was finished.
Downloading file PHP54_17/php54-deb8.0-x86_64.plesk17.inf3: 0%
Downloading file PHP54_17/php54-deb8.0-x86_64.plesk17.inf3: 100% was finished.
Downloading file PHP55_17/php55-deb8.0-x86_64.plesk17.inf3: 0%
Downloading file PHP55_17/php55-deb8.0-x86_64.plesk17.inf3: 100% was finished.
Downloading file PHP56_17/php56-deb8.0-x86_64.plesk17.inf3: 0%
Downloading file PHP56_17/php56-deb8.0-x86_64.plesk17.inf3: 100% was finished.
Downloading file PHP70_17/php70-deb8.0-x86_64.plesk17.inf3: 0%
Downloading file PHP70_17/php70-deb8.0-x86_64.plesk17.inf3: 100% was finished.
Downloading file SITEBUILDER_17.0.15/sitebuilder-17.0.15-deball-all.inf3: 0%
Downloading file SITEBUILDER_17.0.15/sitebuilder-17.0.15-deball-all.inf3: 100% was finished.
OK
Registering i386 architecture support
Synchronizing the Debian APT package index files...
Hit http://autoinstall.plesk.com jessie InRelease
Get:1 http://autoinstall.plesk.com jessie InRelease [5233 B]
Hit http://autoinstall.plesk.com all InRelease
Hit http://autoinstall.plesk.com jessie InRelease
Get:2 http://autoinstall.plesk.com jessie InRelease [5216 B]
Get:3 http://autoinstall.plesk.com jessie InRelease [5216 B]
Get:4 http://autoinstall.plesk.com jessie InRelease [5216 B]
Get:5 http://autoinstall.plesk.com jessie InRelease [5206 B]
Hit http://autoinstall.plesk.com jessie InRelease
Hit http://autoinstall.plesk.com jessie InRelease
Hit http://autoinstall.plesk.com jessie/all amd64 Packages
Hit http://autoinstall.plesk.com jessie/extras amd64 Packages
Hit http://autoinstall.plesk.com jessie/all i386 Packages
Hit http://autoinstall.plesk.com jessie/extras i386 Packages
Get:6 http://autoinstall.plesk.com jessie/all amd64 Packages [2416 B]
Get:7 http://autoinstall.plesk.com jessie/all i386 Packages [2410 B]
Hit http://security.debian.org jessie/updates InRelease
Hit http://autoinstall.plesk.com all/all amd64 Packages
Hit http://autoinstall.plesk.com all/all i386 Packages
Ign http://ftp.us.debian.org jessie InRelease
Hit https://apt.dockerproject.org debian-jessie InRelease
Hit http://autoinstall.plesk.com jessie/all amd64 Packages
Hit http://security.debian.org jessie/updates/main Sources
Hit https://apt.dockerproject.org debian-jessie/main amd64 Packages
Hit http://ftp.us.debian.org jessie Release.gpg
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit https://apt.dockerproject.org debian-jessie/main i386 Packages
Hit http://security.debian.org jessie/updates/main i386 Packages
Get:8 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Hit http://security.debian.org jessie/updates/main Translation-en
Get:9 http://autoinstall.plesk.com jessie/all amd64 Packages [8349 B]
Get:10 http://autoinstall.plesk.com jessie/all i386 Packages [8340 B]
Get:11 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Hit http://ftp.us.debian.org jessie Release
Get:12 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Get:13 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Get:14 http://autoinstall.plesk.com jessie/all amd64 Packages [8517 B]
Get:15 http://autoinstall.plesk.com jessie/all i386 Packages [8505 B]
Get:16 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Ign https://apt.dockerproject.org debian-jessie/main Translation-en
Hit https://s3.amazonaws.com production InRelease
Hit http://ftp.us.debian.org jessie/main Sources
Get:17 http://autoinstall.plesk.com jessie/all amd64 Packages [8539 B]
Get:18 http://autoinstall.plesk.com jessie/all i386 Packages [8530 B]
Hit http://ftp.us.debian.org jessie/main amd64 Packages
Get:19 http://autoinstall.plesk.com jessie/all amd64 Packages [8470 B]
Get:20 http://autoinstall.plesk.com jessie/all i386 Packages [8470 B]
Hit https://s3.amazonaws.com production/main amd64 Packages
Hit http://autoinstall.plesk.com jessie/all amd64 Packages
Hit http://autoinstall.plesk.com jessie/all i386 Packages
Hit http://ftp.us.debian.org jessie/main i386 Packages
Hit http://autoinstall.plesk.com jessie/all amd64 Packages
Hit http://autoinstall.plesk.com jessie/all i386 Packages
Hit https://s3.amazonaws.com production/main i386 Packages
Hit http://ftp.us.debian.org jessie/main Translation-en
Get:21 https://s3.amazonaws.com production/main Translation-en
Get:22 https://s3.amazonaws.com production/main Translation-en
Get:23 https://s3.amazonaws.com production/main Translation-en
Get:24 https://s3.amazonaws.com production/main Translation-en
Get:25 https://s3.amazonaws.com production/main Translation-en
Ign https://s3.amazonaws.com production/main Translation-en
Ign http://autoinstall.plesk.com jessie/all Translation-en
Ign http://autoinstall.plesk.com all/all Translation-en
Ign http://autoinstall.plesk.com jessie/all Translation-en
Ign http://autoinstall.plesk.com jessie/all Translation-en
Ign http://autoinstall.plesk.com jessie/all Translation-en
Ign http://autoinstall.plesk.com jessie/all Translation-en
Ign http://autoinstall.plesk.com jessie/all Translation-en
Ign http://autoinstall.plesk.com jessie/all Translation-en
Ign http://autoinstall.plesk.com jessie/all Translation-en
Fetched 98.6 kB in 4s (23.0 kB/s)
Reading package lists...
Warning: not connected 'contrib' repository section
Warning: not connected 'non-free' repository section
Detecting installed product components.
OK
 
ynchronizing the Debian APT package index files...
Hit http://autoinstall.plesk.com jessie InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://autoinstall.plesk.com all InRelease
Hit http://autoinstall.plesk.com jessie InRelease
Hit http://autoinstall.plesk.com jessie InRelease
Hit http://autoinstall.plesk.com jessie InRelease
Get:1 http://autoinstall.plesk.com jessie InRelease [5200 B]
Hit http://autoinstall.plesk.com jessie/all amd64 Packages
Hit http://autoinstall.plesk.com jessie/extras amd64 Packages
Hit http://autoinstall.plesk.com jessie/all i386 Packages
Hit http://autoinstall.plesk.com jessie/extras i386 Packages
Hit http://autoinstall.plesk.com all/all amd64 Packages
Hit http://security.debian.org jessie/updates/main Sources
Hit http://autoinstall.plesk.com all/all i386 Packages
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://autoinstall.plesk.com jessie/all amd64 Packages
Ign http://autoinstall.plesk.com all/all Translation-en
Hit https://apt.dockerproject.org debian-jessie InRelease
Hit http://security.debian.org jessie/updates/main i386 Packages
Ign http://ftp.us.debian.org jessie InRelease
Hit http://autoinstall.plesk.com jessie/all amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://autoinstall.plesk.com jessie/all i386 Packages
Hit http://autoinstall.plesk.com jessie/all amd64 Packages
Hit http://autoinstall.plesk.com jessie/all i386 Packages
Get:2 http://autoinstall.plesk.com jessie/all amd64 Packages [820 B]
Get:3 http://autoinstall.plesk.com jessie/all i386 Packages [815 B]
Hit http://ftp.us.debian.org jessie Release.gpg
Hit https://apt.dockerproject.org debian-jessie/main amd64 Packages
Hit https://apt.dockerproject.org debian-jessie/main i386 Packages
Ign http://autoinstall.plesk.com jessie/all Translation-en
Get:4 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Hit http://ftp.us.debian.org jessie Release
Get:5 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Get:6 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Get:7 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Ign http://autoinstall.plesk.com jessie/all Translation-en
Get:8 https://apt.dockerproject.org debian-jessie/main Translation-en [454 B]
Ign https://apt.dockerproject.org debian-jessie/main Translation-en
Hit http://ftp.us.debian.org jessie/main Sources
Ign http://autoinstall.plesk.com jessie/all Translation-en
Hit https://s3.amazonaws.com production InRelease
Hit http://ftp.us.debian.org jessie/main amd64 Packages
Ign http://autoinstall.plesk.com jessie/all Translation-en
Hit https://s3.amazonaws.com production/main amd64 Packages
Hit http://ftp.us.debian.org jessie/main i386 Packages
Hit https://s3.amazonaws.com production/main i386 Packages
Hit http://ftp.us.debian.org jessie/main Translation-en
Get:9 https://s3.amazonaws.com production/main Translation-en
Get:10 https://s3.amazonaws.com production/main Translation-en
Get:11 https://s3.amazonaws.com production/main Translation-en
Get:12 https://s3.amazonaws.com production/main Translation-en
Get:13 https://s3.amazonaws.com production/main Translation-en
Ign https://s3.amazonaws.com production/main Translation-en
Fetched 6835 B in 3s (2246 B/s)
Reading package lists...
Retrieving information about the installed license key...
You already have the latest version of product(s) and all the selected components
installed. Installation will not continue.
 
Oh, it is Debian server! ...It is very interesting, how you can run rpm command on Debian... :)
Nevermind, what is the output of commands:

# plesk installer --select-release-current --show-components | grep nginx
# ls -la /usr/sbin/nginx
# dpkg -l | grep nginx
 
apt-get instal rpm :) :) :) :) and run

In 1 post i informed the OS.

Detecting installed product components.
nginx [up2date] - Nginx web server
root@eh1:~# ls -la /usr/sbin/n
ls: cannot access /usr/sbin/n: No such file or directory
root@eh1:~# dpkg -l | grep nginx
ii sw-nginx 1.11.4.1-debian8.0.16100518 amd64 High performance web and reverse proxy server
 
root@eh1:~# ls -la /usr/sbin/nginx
ls: cannot access /usr/sbin/nginx: No such file or directory
root@eh1:~# dpkg -l | grep nginx
ii sw-nginx 1.11.4.1-debian8.0.16100518 amd64 High performance web and reverse proxy server
root@eh1:~#
 
Reinstall your broken nginx with

# plesk installer --select-release-current --remove-component nginx
# plesk installer --select-release-current --install-component nginx
 
On run # plesk installer --select-release-current --remove-component nginx

ERROR: Warning: you have installed a patch which is newer than the one available in the selected installation source. Reinstalling or not installing the available patch while updating product components can break the product installation. To ensure the product will be operational after the update, specify an installation source with latest patches (for example, the official one). Cancelling installation and switching to installation source with latest updates is recommended.
You can use '--reinstall-patch' to force reinstallation of old patch.
exit status 1
 
I suppose that apt-get install --reinstall sw-nginx should be enough
 
# plesk installer --select-release-current --remove-component nginx --reinstall-patch

# plesk installer --select-release-current --install-component nginx

The resolved :)
 
Back
Top