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

Error on enabling nginx

DMKlein

New Pleskian
I wanted to activate nginx on my server als describes on http://kb.odin.com/en/119595
Installing was no problem, but when i try to enable nginx, i always get errors:

/usr/local/psa/admin/sbin/nginxmng -e
[2015-05-20 10:42:36] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-20 10:42:37] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-20 10:42:39] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-20 10:42:40] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-20 10:42:42] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-20 10:42:43] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-20 10:42:45] ERR [util_exec] proc_close() failed

Neither
/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair
Started bootstrapper repair procedure. This may take a while.
Certain actions may be skipped if not applicable.

-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
Finishing up upgrade procedures and rerunning previously failed upgrade actions...
===> Cumulative APS controller database (apsc) upgrade and repair has been started.
===> Cumulative upgrade and repair of APS controller database has been completed.
===> Cumulative APS controller upgrade and repair (final stage) has been started.
===> Cumulative upgrade and repair of APS controller (final stage) has been completed.
===> Cumulative Plesk database upgrade and repair (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
===> Cumulative upgrade and repair of Plesk database (revertable stage) has been completed.
===> Cumulative Plesk upgrade and repair (final stage) has been started.
===> Preparing Plesk upgrade (final stage).
===> Cumulative upgrade and repair of Plesk (final stage) has been completed.
Reconfiguring mail subsystem...
Reconfiguring Apache web server...
Reconfiguring ProFTPD FTP server...
Reconfiguring AWStats web statistics...
Reconfiguring WatchDog...
Restoring SELinux contexts...
Regenerating web servers' configuration files...
Cleaning active Panel sessions...

Bootstrapper repair finished.
If problems persist, please check installer logs ('/var/log/plesk/install/plesk_12.0.18_repair.log' and '/var/log/plesk/install/plesk_12.0.18_repair_problems.log') for errors.
If you can't resolve the issue on your own, please address Parallels support.
nor
server:~# plesk bin repair --update-vhosts-structure
The structure of the home directory was successfully updated on virtual hosts.
server:~# plesk bin repair --restore-vhosts-permissions
Directory permissions were successfully updated.
solved my problem. Both logfiles have no errors. There are also no further informations in the panel.log

Anybody an idea?
 
Hi DMKlein,

please post the results of:

/usr/local/psa/admin/sbin/nginxmng -s
/etc/init.d/nginx status
/etc/init.d/nginx stop
/etc/init.d/nginx start
 
server:~# /usr/local/psa/admin/sbin/nginxmng -s
Disabled
server:~# /etc/init.d/nginx status
[FAIL] nginx is not running ... failed!
server:~# /etc/init.d/nginx stop
[....] Stopping NGINX: nginx.
server:~# /etc/init.d/nginx start
[info] Usage: nginx {start|stop|restart|reload|force-reload|status|configtest|upgrade|reopen}.
server:~# /etc/init.d/nginx configtest
[ ok ] Testing NGINX configuration: nginx.
 
Hi DMKlein,

as you can see, your output
server:~# /usr/local/psa/admin/sbin/nginxmng -s
Disabled
states, that your NGINX - usage is disabled at the moment. Please activate it again with the command: "/usr/local/psa/admin/sbin/nginxmng -e".

Even if you still might get the error as shown in your initial post, you still should be able to start NGINX with the command "/etc/init.d/nginx start". Please reply, if the start - command works as expected. It it does, please retry again the command "/usr/local/psa/admin/sbin/nginxmng -e", when NGINX is running.


If NGINX doesn't start with the command "/etc/init.d/nginx start", please have a closer look on the possible error - message and/or the NGINX - log and configurations files for further investigations.

 
WHen i enable it, i have got the problem described at the beginning:

/usr/local/psa/admin/sbin/nginxmng -e
[2015-05-21 16:04:19] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:20] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:21] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:22] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:23] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:24] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:26] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:27] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:28] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:29] ERR [util_exec] proc_close() failed
[2015-05-21 16:04:31] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:04:32] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:04:33] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:04:34] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:04:35] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:04:36] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:04:37] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:04:38] ERR [util_exec] proc_close() failed
[.....]
[2015-05-21 16:16:55] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:16:56] ERR [panel] Apache config (14322170590.08449200) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Error occured while sending feedback. HTTP code returned: 502
Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist

I created the directory and added the owner to nginx:nginx.

/usr/local/psa/admin/sbin/nginxmng -e
[2015-05-21 16:18:31] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:32] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:34] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:35] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:42] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:43] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:50] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:51] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:53] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-21 16:18:54] ERR [panel] Apache config (14322178990.76049200) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/ip_default' not exist

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Error occured while sending feedback. HTTP code returned: 502
Destination directory '/etc/nginx/plesk.conf.d/ip_default' not exist

I created it too (and changed the owner). Now it seems to work:

server:~# /etc/init.d/nginx start
[ ok ] Starting NGINX: nginx.
server:~# /etc/init.d/nginx status
[ ok ] nginx is running.
 
Hi DMKlein,

the folder "/etc/nginx/plesk.conf.d/vhosts" should have the rights "root:root" and the depending configuration - files should be all symlinks for each domain(s) and subdomain(s) on your server, as for example "/var/www/vhosts/system/YOUR_DOMAIN.COM/conf/nginx.conf", "/var/www/vhosts/system/YOUR_SUB-DOMAIN.DOMAIN.COM/conf/nginx.conf", etc.... and should be created when you use "/usr/local/psa/admin/sbin/httpdmng --reconfigure-all".

the folder "/etc/nginx/plesk.conf.d/ip_default" should have the rights "root:root" and the depending "IP - default" configuration ( symlink to the conf - file for "/var/www/vhosts/system/YOUR_DOMAIN_FOR_THE_IP_XXX.XXX.XXX.XXX/conf/nginx_ip_default.conf" ) should be created when you use "/usr/local/psa/admin/sbin/httpdmng --reconfigure-all".

You should have as well the folders "/etc/nginx/plesk.conf.d/webmails" with rights for "nginx:psacln" and "/etc/nginx/plesk.conf.d/forwarding" ( rights = "root:root" ) and again, the depending symlinks ( if "webmail" and/or "forwards" are used ) should be created, when you use "/usr/local/psa/admin/sbin/httpdmng --reconfigure-all".
 
Back
Top