Cannot start nginx service on Plesk server: Failed to start Startup script for nginx service

Follow

Comments

1 comment

  • Avatar
    Attractive Media

    Suddenly, all my sites were not loading after a system reboot on my Linode VPS. Checking "Services Management" confirmed that Nginx wasn't starting, and nothing would get it started via CLI or Plesk panel. Even uninstalling/reinstalling via Plesk "System Updates" section gave me no joy. Finally, trying the above plesk sbin nginxmng -d & plesk sbin nginxmng -e commands generated the following error (IP addresses have been anonymized):

    root@vm1:~# plesk sbin nginxmng -e
    [2023-06-04 18:55:10.964] 34995:647d1640d3c8c ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1]
    [2023-06-04 18:55:11.550] 34995:647d1640d3c8c ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1]
    [2023-06-04 18:55:11.559] 34995:647d1640d3c8c ERR [panel] Apache config (16859193060.25066600) generation failed: Template_Exception: nginx: [emerg] bind() to [IP:IP::IP:IP:IP:IP]:443 failed (99: Cannot assign requested address)
    nginx: configuration file /etc/nginx/nginx.conf test failed
    file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
    line: 75
    code: 0
    nginx: [emerg] bind() to [IP:IP::IP:IP:IP:IP]:443 failed (99: Cannot assign requested address)
    nginx: configuration file /etc/nginx/nginx.conf test failed
    exit status 1

    This shows that after reboot, the secondary IP address assigned to the VPS somehow became corrupted in Plesk. I visited the "IP Addresses" section in Tools & Settings and clicked "Repair" on the affected IP address, clicked the "Reread IP" button, and then everything was back up & running. Hope this helps someone else!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request