-
Bug
-
Resolution: Done
-
Critical
-
httpd 2.4.6 CR1, httpd 2.4.23 CR4, httpd 2.4.29 DR3, httpd 2.4.51.ER3
-
None
Test is using and it fails on HOST_IPv6 address
HOST_IPv6=`/sbin/ifconfig -a | grep inet6 | grep -v ::1/128 | head -n1 |gawk '{for(i=1;i<=NF;i++){ if($i~":[abcdef0123456789]*:"){print $i} } }' | awk -F/ '{print $1}'` IPV6_ADDR=::,::1,::ffff:127.0.0.1,$HOST_IPv6
Step to reproduce:
1.bind address to ipv6(not localhost)
1.1 Httpd server expects Link Local IPv6 address to be specified with interface eg. [fe80::f816:3eff:fe59:9cce%eth0] otherwise it wont start
/sbin/ifconfig -a | grep inet6 | grep -v ::1/128 | head -n1 |gawk '{for(i=1;i<=NF;i++){ if($i~":[abcdef0123456789]*:"){print $i} } }' | awk -F/ '{print $1}'
2../bin/catalina.sh start || ./apachectl start
3. look into log
(22)Invalid argument: AH00072: make_sock: could not bind to address [fe80::5054:1ff:fe3c:e136]:80 no listening sockets available, shutting down AH00015: Unable to open logs
SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-apr-fe80:0:0:0:5054:ff:feee:9a5e-8009"] java.lang.Exception: Socket bind failed: [22] Invalid argument at org.apache.tomcat.util.net.AprEndpoint.bind(Unknown Source) at org.apache.tomcat.util.net.AbstractEndpoint.init(Unknown Source) at org.apache.coyote.AbstractProtocol.init(Unknown Source) at org.apache.catalina.connector.Connector.initInternal(Unknown Source) at org.apache.catalina.util.LifecycleBase.init(Unknown Source) at org.apache.catalina.core.StandardService.initInternal(Unknown Source) at org.apache.catalina.util.LifecycleBase.init(Unknown Source) at org.apache.catalina.core.StandardServer.initInternal(Unknown Source) at org.apache.catalina.util.LifecycleBase.init(Unknown Source) at org.apache.catalina.startup.Catalina.load(Unknown Source) at org.apache.catalina.startup.Catalina.load(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.load(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Apr 07, 2016 7:38:15 AM org.apache.catalina.core.StandardService initInternal SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]] at org.apache.catalina.util.LifecycleBase.init(Unknown Source) at org.apache.catalina.core.StandardService.initInternal(Unknown Source) at org.apache.catalina.util.LifecycleBase.init(Unknown Source) at org.apache.catalina.core.StandardServer.initInternal(Unknown Source) at org.apache.catalina.util.LifecycleBase.init(Unknown Source) at org.apache.catalina.startup.Catalina.load(Unknown Source) at org.apache.catalina.startup.Catalina.load(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.load(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Unknown Source) ... 13 more Caused by: java.lang.Exception: Socket bind failed: [22] Invalid argument at org.apache.tomcat.util.net.AprEndpoint.bind(Unknown Source) at org.apache.tomcat.util.net.AbstractEndpoint.init(Unknown Source) at org.apache.coyote.AbstractProtocol.init(Unknown Source) ... 14 more