Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

nginx on Plesk for Linux server does not start automatically after reboot: 99: Cannot assign requested address

 
centoscentos 7cloudlinuxdebiandomains

Symptoms

  • After server reboot, nginx does not get started:

    # systemctl --failed
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● nginx.service loaded failed failed Startup script for nginx service

  • Domains are not working.
  • OS with systemd is installed (Debian 8, CentOS 7 and etc.).

  • In /var/log/nginx/error.log the following messages can be found:

    [emerg] 1140#0: bind() to [203.0.113.2]:80 failed (99: Cannot assign requested address)

  • In journalctl the following entries can be found:

    # journalctl -u network.service -u network.target -u nginx.service -b
    nginx[352]: nginx: [emerg] bind() to 203.0.113.2:80 failed (99: Cannot assign requested address)
    systemd[1]: Failed to start Startup script for nginx service.
    systemd[1]: Unit nginx.service entered failed state.
    network[268]: Bringing up interface eth0:
    dhclient[665]: DHCPREQUEST on eth0 to 255.255.255.255 port 67 (xid=0x4b684081)
    dhclient[665]: DHCPACK from 203.0.113.2 (xid=0x4b684081)
    network[268]: [ OK ]

  • However, nginx can be started manually without any issues:

    # systemctl start nginx.service

Cause

Delay in assigning of IP address to a network interface. For example, because of delayed response from DHCP server.

Resolution

  1. Connect to the server using SSH.

  2. Make sure that network interfaces are enabled on system boot:

    • for RHEL, CentOS, CloudLinux:

      # grep -r "ONBOOT" /etc/sysconfig/network-scripts/ifcfg-*
      /etc/sysconfig/network-scripts/ifcfg-lo:ONBOOT=yes
      /etc/sysconfig/network-scripts/ifcfg-venet0:ONBOOT=yes
      /etc/sysconfig/network-scripts/ifcfg-venet0:0:ONBOOT=yes

    • for Debian and Ubuntu:

      # grep auto /etc/network/interfaces
      # This configuration file is auto-generated.
      auto lo
      auto venet0
      auto venet0:0

  3. Back up the nginx startup script /etc/systemd/system/multi-user.target.wants/nginx.service:

    # cp /etc/systemd/system/multi-user.target.wants/nginx.service{,.bk}

  4. Make sure that the package systemd-networkd is installed on the server. Install it if it is not installed:

    • for RHEL, CentOS, CloudLinux:

      # yum install systemd-networkd

    • for Debian and Ubuntu:
      Should be installed by default.

      The service will ensure that network interfaces are up and have IP addresses bound. For additional details, refer to http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

  5. If Plesk 17.5 or older is used, proceed as follows to create the file /etc/systemd/system/nginx.service.d/override.conf with an nginx startup parameter to be executed only after the network is up and all IP addresses are assigned:

    • Run the following command. It will open the default text editor on the server:

      # systemctl edit nginx.service

      Add the following line, save and exit the file:

      After=network-online.target remote-fs.target nss-lookup.target

  6. Reboot the server:

    # reboot

If it does not help, additional action is required:

  • For SystemD add the following line in [Service] section in /etc/systemd/system/multi-user.target.wants/nginx.service file:

    ExecStartPre=/bin/sleep 10

    Note: Increase timeout if needed.

  • For OS without SystemD, edit /etc/init.d/nginx adding sleep command to the start, so it should look like:

    # grep -i "start()" /etc/init.d/nginx
    start() { sleep 20

  • Reboot the server: 

    # reboot

 

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »

Unveiling Sitejet Builder: The Perfect Match for Your Effortless Website Creation Needs

Read More »

Dynamic List vs. Active List: A Comprehensive Comparison – Unveiling the Ultimate Winner!

Read More »
Knowledge Base

All websites hosted in Plesk are not accessible over HTTPS: 502 Bad Gateway or ERR_CONNECTION_REFUSED

Read More »

Website on Plesk for Linux server with Apache 2.4 does not work with Apache 2.2 syntax in file .htaccess: client denied by server configuration

Read More »

Unable to upload large files to website hosted on Plesk for Linux server: End of script output before headers

Read More »

Error in Plesk inteface: New configuration files were not created: Could not open configuration file: No such file or directory

Read More »

Hosting Wiki

  • Cross Site Request Forgery (CSRF)
  • Cross-Origin Resource Sharing (CORS)
  • DBMS Interface
  • Server Redundancy
  • Postfix
  • Linux Containers
  • PostgreSQL
  • DDoS
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • JavaScript
  • Domain
  • Hosting Control Panel
  • Plesk
  • NoSQL Database
  • NGINX
  • Web Server
  • DNS Server
  • IPv6
  • IPv4
  • SIP
  • SSH
  • UDP/IP
  • Network Bandwidth
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
  • TCP/IP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family