[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal: apport-collect 715152 When reporting bugs in the future please use apport by using 'ubuntu- bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs. ** Changed in: ntp (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
Confirmed on a Lucid image; however the only way I was able to remove the 127.0.0.1 address from lo was to use the following command: ip addr del 127.0.0.1/32 dev lo ntp then fails to start. As stated in the original bug report, adding the address back to the interface fixes the issue. How where you able to permanently disable the ipv4 address of the lo device? ** Changed in: ntp (Ubuntu) Status: Incomplete => Confirmed ** Changed in: ntp (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
Ehm, well exactly like you did, I manually removed it, although it's done automatically from interfaces with 'pre-up'. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
I've done some further investigation into this issue. maverick exhibits the same symptoms as lucid; i.e. if the 127.0.0.1 address is not bound ntp exits on startup. natty appears to deal with this scenario OK; removing 127.0.0.1 in a post-up step does not impact ntp. Looks like this issue was fixed in the transition from v4.2.4 to v4.2.6 (possibly as part of 4.2.5p219) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
Output from running ntpd -n on a maverick host with no ipv4 enabled including localhost. This code has changed maverick->natty to deal with ipv6 better (by the looks of it). ** Attachment added: "ntp-error.log" https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/715152/+attachment/1987385/+files/ntp-error.log -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
So this issue related to upstrem bug http://bugs.ntp.org/show_bug.cgi?id=397 ** Bug watch added: bugs.ntp.org/ #397 http://bugs.ntp.org/show_bug.cgi?id=397 ** Also affects: ntp via http://bugs.ntp.org/show_bug.cgi?id=397 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
** Changed in: ntp (Ubuntu) Status: Incomplete => Fix Released ** Changed in: ntp (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
** Branch linked: lp:~james-page/ubuntu/lucid/ntp/fix-715152 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
Minimal patch to fix running with no IPv4 ** Description changed: + IMPACT: + Ubuntu instances running in pure IPv6 environments (including 127.0.0.1) cannot run ntp as it dies when scanning for available interfaces. + + FIX: + IPv6/IPv4 scanning has been improved in later releases; patch created from later release to resolve this issue (directly attached to this bug report). + + TESTING: + 1) On a working system with IPv4 & IPV6: + sudo apt-get install ntp + netstat -a | grep ntp + Ports should be mapped for both udp and udp6 + + 2) Disable IPv4 + Add the following line to /etc/network/interfaces to disable 127.0.0.1: + + iface lo inet loopback + post-up ip addr del 127.0.0.1/8 dev lo + + And remove the line(s) relating to IPv4 configuration of other network + interfaces (looks like iface eth* inet dhcp|static*) + + 3) Reboot server + + 4) NTP service will not be running; messages in /var/log/syslog relating to startup of daemon; however no daemon running +ps -aef | grep ntp +netstat -a | grep ntp + + IMPACT: + Patch is relatively minimal and comes from later release. + + ORIGINAL BUG REPORT < + Binary package hint: ntp Lucid host running IPv6 only, with network configured like this: root@svn:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:56:86:00:15 - inet6 addr: 2001:610:148:dead:cafe:babe:0:29/64 Scope:Global - inet6 addr: fe80::250:56ff:fe86:15/64 Scope:Link - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:3164 errors:0 dropped:0 overruns:0 frame:0 - TX packets:2075 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:1000 - RX bytes:1516490 (1.5 MB) TX bytes:387497 (387.4 KB) + inet6 addr: 2001:610:148:dead:cafe:babe:0:29/64 Scope:Global + inet6 addr: fe80::250:56ff:fe86:15/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:3164 errors:0 dropped:0 overruns:0 frame:0 + TX packets:2075 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:1516490 (1.5 MB) TX bytes:387497 (387.4 KB) loLink encap:Local Loopback - inet6 addr: ::1/128 Scope:Host - UP LOOPBACK RUNNING MTU:16436 Metric:1 - RX packets:0 errors:0 dropped:0 overruns:0 frame:0 - TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) - + inet6 addr: ::1/128 Scope:Host + UP LOOPBACK RUNNING MTU:16436 Metric:1 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0 + TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Now ntpd wont start: ./../libisc/ifiter_ioctl.c:567: REQUIRE(iter->pos < (unsigned int) iter->ifc.ifc_len) failed. Aborted After adding an IPv4 loopback address to lo interface: ip addr add 127.0.0.1 dev lo ntpd is able to start. According to http://bugs.ntp.org/show_bug.cgi?id=397 this might be related to libisc. ** Patch added: "fix-noipv4.patch" https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/715152/+attachment/2016103/+files/fix-noipv4.patch -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
** Branch linked: lp:~james-page/ubuntu/maverick/ntp/fix-715152 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
** Description changed: IMPACT: Ubuntu instances running in pure IPv6 environments (including 127.0.0.1) cannot run ntp as it dies when scanning for available interfaces. FIX: IPv6/IPv4 scanning has been improved in later releases; patch created from later release to resolve this issue (directly attached to this bug report). - TESTING: + TEST CASE: 1) On a working system with IPv4 & IPV6: - sudo apt-get install ntp - netstat -a | grep ntp + sudo apt-get install ntp + netstat -a | grep ntp Ports should be mapped for both udp and udp6 2) Disable IPv4 Add the following line to /etc/network/interfaces to disable 127.0.0.1: iface lo inet loopback - post-up ip addr del 127.0.0.1/8 dev lo + post-up ip addr del 127.0.0.1/8 dev lo And remove the line(s) relating to IPv4 configuration of other network interfaces (looks like iface eth* inet dhcp|static*) 3) Reboot server 4) NTP service will not be running; messages in /var/log/syslog relating to startup of daemon; however no daemon running -ps -aef | grep ntp -netstat -a | grep ntp + ps -aef | grep ntp + netstat -a | grep ntp IMPACT: Patch is relatively minimal and comes from later release. ORIGINAL BUG REPORT < Binary package hint: ntp Lucid host running IPv6 only, with network configured like this: root@svn:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:56:86:00:15 inet6 addr: 2001:610:148:dead:cafe:babe:0:29/64 Scope:Global inet6 addr: fe80::250:56ff:fe86:15/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3164 errors:0 dropped:0 overruns:0 frame:0 TX packets:2075 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1516490 (1.5 MB) TX bytes:387497 (387.4 KB) loLink encap:Local Loopback inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Now ntpd wont start: ./../libisc/ifiter_ioctl.c:567: REQUIRE(iter->pos < (unsigned int) iter->ifc.ifc_len) failed. Aborted After adding an IPv4 loopback address to lo interface: ip addr add 127.0.0.1 dev lo ntpd is able to start. According to http://bugs.ntp.org/show_bug.cgi?id=397 this might be related to libisc. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
** Also affects: ntp (Ubuntu Lucid) Importance: Undecided Status: New ** Also affects: ntp (Ubuntu Maverick) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in Ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 715152] Re: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
On Fri, 2011-02-11 at 12:04 +, /usr/local/dick wrote: > Ehm, well exactly like you did, I manually removed it, although it's > done automatically from interfaces with 'pre-up'. > Guessed that might be the case. I'll get this configured in my test rig. -- James Page Software Engineer, Ubuntu Server Team -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. https://bugs.launchpad.net/bugs/715152 Title: ntp wont run on IPv6 only host unless lo has 127.0.0.1 address -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs