- Plesk for Linux
nginx fails to start with the following error:
CONFIG_TEXT: Cannot assign requested address
There are some mismatches between IP set up on server and registered in Plesk. For example, the number of IPs registered in Plesk is higher then the actual number of IPs on the server:
IP addresses in Plesk:
# plesk bin ipmanage -l
IP addresses on the server:
# ip a
The following error appears in Watchdog (if installed)
/var/log/plesk/modules/monit.logon attempt to start nginx service:
CONFIG_TEXT: 'nginx' failed, cannot open a connection to INET[2001:db8:f61:a1ff:0:0:0:80]
'nginx' trying to restart
'nginx' stop: /usr/local/psa/admin/bin/nginx_control
'nginx' start: /usr/local/psa/admin/bin/nginx_control
monit: pidfile `/var/run/nginx.pid' does not contain a valid pidnumber
- A website may show ourdated/old SSL certificate.
Unsynced IP address between Plesk and OS or IP address was removed/changed manually on the server directly.
Sync IP addresses between Plesk and OS:
Go to Plesk > Tools & Settings > IP Addresses and press Reread IP:
Select the appeared IP addresses and click on the Repair button to fix them
click the Remove button if they are no longer required.
Connect to the server via SSH.
Disable and Enable nginx service:
# /usr/local/psa/admin/bin/nginxmng -d
# /usr/local/psa/admin/bin/nginxmng -e