Bug 63803

Summary: Cannot assign requested address: AH00056: connect to listener on [::]:80
Product: Apache httpd-2 Reporter: Reindl Harald <h.reindl>
Component: mpm_workerAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4.41   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Reindl Harald 2019-10-04 13:56:59 UTC
httpd-2.4.41

Linux 5.3.2-300.fc30.x86_64
RestrictAddressFamilies=AF_INET AF_INET6 AF_LOCAL AF_UNIX

for years i had ipv6 completly disabled and also most services explicit bound to 0.0.0.0 and now while preparing dual-stack for next year httpd turns out to be problematic

---------------------------

sysctl.conf to disable ipv6 for now unchanged:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

---------------------------

Listen 80
Listen 443

[root@srv-rhsoft:~]$ netstat -l | grep httpd
tcp6       0      0 :::443                  :::*                    LISTEN      779331/httpd
tcp6       0      0 :::80                   :::*                    LISTEN      779331/httpd

[Fri Oct 04 15:44:17.725896 2019] [core:warn] [pid 779331] (99)Cannot assign requested address: AH00056: connect to listener on [::]:80
[Fri Oct 04 15:44:18.726902 2019] [core:warn] [pid 779331] (99)Cannot assign requested address: AH00056: connect to listener on [::]:80
[Fri Oct 04 15:44:19.727874 2019] [core:warn] [pid 779331] (99)Cannot assign requested address: AH00056: connect to listener on [::]:80
[Fri Oct 04 15:44:20.728905 2019] [core:warn] [pid 779331] (99)Cannot assign requested address: AH00056: connect to listener on [::]:80
[Fri Oct 04 15:44:21.730132 2019] [core:warn] [pid 779331] (99)Cannot assign requested address: AH00056: connect to listener on [::]:80
[Fri Oct 04 15:44:22.730923 2019] [core:warn] [pid 779331] (99)Cannot assign requested address: AH00056: connect to listener on [::]:80

---------------------------

Listen 0.0.0.0:80
Listen 0.0.0.0:443

[root@srv-rhsoft:~]$ netstat -l | grep httpd
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      788681/httpd
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      788681/httpd

everything is fine as all the years before

---------------------------
Comment 1 Reindl Harald 2019-10-04 13:58:42 UTC
forgot to mention: that happens only under load
Comment 2 Joe Orton 2019-10-04 14:03:44 UTC
RestrictAddressFamilies=AF_INET AF_INET6 AF_LOCAL AF_UNIX

Remove it and try again.
Comment 3 Joe Orton 2019-10-04 14:07:48 UTC
(In reply to Reindl Harald from comment #1)
> forgot to mention: that happens only under load

Probably you're just running out of ports then.
Comment 4 Reindl Harald 2019-10-04 14:19:17 UTC
it's ineed the combination of "RestrictAddressFamilies=AF_INET AF_INET6 AF_LOCAL AF_UNIX" with "Listen 80" instead of "Listen 0.0.0:80" and i don't get why i should run out of ports just because of ":::80" versus "0 0.0.0.0:80"