• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue ipv6 install error failed (99: Cannot assign requested address)

helloedit

New Pleskian
Hello,


By mistake I add one wrong ipv6 to one domain in plesk. (after setting cloudflare DNS)

I had one problem with memory and restart nginx, and nginx didn't restart.
give me one error similar to:
Dec 12 20:49:30 ns5006751 nginx: nginx: [emerg] bind() to [xxx:5300:xxx:8cd0::]:443 (ip hidden) failed (99: Cannot assign requested address)


The domains started to give 502 error and cannot access to plesk neither.

plesk restart failed etc..

We remove in all the dns configuration all the records with tis iupv6 configuration. We tryed to restart plesk but error again.
The we remove the ip from
DELETE FROM IP_Addresses WHERE ip_address IN 'xxx:5300:xxx:8cd0::';
then did: plesk sbin nginxmng -d
and then the domains start working again, also plesk.


But now when we try to restart nginx we have this error:
[root@...]# plesk sbin nginxmng -e
[2023-12-13 13:29:57.646] 27817:6579b1d59d9e5 ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx_control' '--start'] with exit code [1]
Can not start proxy server: /usr/local/psa/admin/sbin/nginx-config execution failed:
nginx: [warn] conflicting server name "webmail.hiddendomain" on 51.222.240.208:443, ignored
nginx: [warn] conflicting server name "www.hiddendomain" on 51.222.240.208:443, ignored
nginx: [warn] conflicting server name "hiddendomain" on 51.222.240.208:443, ignored
nginx: [warn] conflicting server name "ipv4.hiddendomain" on 51.222.240.208:443, ignored
nginx: [warn] conflicting server name "webmail.hiddendomain" on 51.222.240.208:80, ignored
nginx: [warn] conflicting server name "www.hiddendomain" on 51.222.240.208:80, ignored
nginx: [warn] conflicting server name "hiddendomain" on 51.222.240.208:80, ignored
nginx: [warn] conflicting server name "ipv4.hiddendomain" on 51.222.240.208:80, ignored
nginx: [emerg] bind() to [xxx:5300:xxx:8cd0::]:443 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed


ip -6 addr >> return empty
ip a >> don't retunr the ipv6 address


vi /etc/sysctl.conf
vm.swappiness=1
#net.ipv6.conf.all.disable_ipv6=1
#net.ipv6.conf.default.disable_ipv6=1
~




There in any configuration file on the server with the ipv6 wrong ip(we removd all) xxx:5300:xxx:8cd0::




I tried this solution: Sites are unavailable: nginx: [emerg] bind() to failed (99: Cannot assign requested address) - Support Cases from Plesk Knowledge Base

# plesk sbin nginxmng -d
# plesk sbin nginxmng -e >> this fails

Any idea of what can I do to fix it?
 
Did you do any custom configurations to Apache? It seems that it grabs port 443. Or maybe do you use another webserver on the system?
 
Back
Top