apache2 failure to start on boot when binding to IPv6 address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
ifupdown (Debian) |
New
|
Unknown
|
Bug Description
Pertinent info:
Description: Ubuntu 12.04.2 LTS
Release: 12.04
apache2:
Installed: 2.2.22-1ubuntu1.4
Candidate: 2.2.22-1ubuntu1.4
Version table:
*** 2.2.22-1ubuntu1.4 0
500 http://
500 http://
100 /var/lib/
2.
500 http://
Issue:
Apache fails to start on boot when attempting to bind to an IPv6 address. boot.log shows the following (IP changed for privacy purposes):
(99)Cannot assign requested address: make_sock: could not bind to address [2001:db8::1]:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
* Starting web server apache2 [fail]
Starting manually (apachectl start) after boot starts the daemon as expected.
Here is the inet6 section of my /etc/network/
iface eth0 inet6 static
address 2001:db8::1
netmask 64
up /sbin/ifconfig eth0 inet6 add 2001:db8::2/64
down /sbin/ifconfig eth0 inet6 del 2001:db8::2/64
post-up /sbin/ip -f inet6 route add 2001:db8:
post-up /sbin/ip -f inet6 route add default via 2001:db8:
pre-down /sbin/ip -f inet6 route del default via 2001:db8:
pre-down /sbin/ip -f inet6 route del 2001:db8:
Doing a little bit of research, it appears apache is trying to bind to an IP in the tentative state. (source: http://
Adding the while loop shown on at that URL to /etc/network/
description: | updated |
Changed in apache2 (Debian): | |
status: | Unknown → New |
affects: | apache2 (Debian) → ifupdown (Debian) |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
It sounds like this issue would affect Debian too. Please could you investigate and file a bug in Debian if appropriate?
Setting Priority to Medium as a workaround is available. I appreciate you documenting this.