[Bug 1217933] Re: update-grub fails to detect other md OS
Why might it be a mdadm problem? All of the md devices are up and accessible from the 64-bit OS, and the /etc/mdadm/mdadm.conf file appears to match the output of the command ' mdadm --detail --scan' suggesting it is correct. Even if I mount the previous 32-bit systems root partition (that just works if I click on the device in nautilus) there is still no sign of update-grub recognising that has an OS installed on it. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to multipath-tools in Ubuntu. https://bugs.launchpad.net/bugs/1217933 Title: update-grub fails to detect other md OS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1217933/+subscriptions -- 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 1217933] [NEW] update-grub fails to detect other md OS
Public bug reported: I have a system with two main HDD configured as several md RAID-1 devices and I installed the 32-bit version of 12.04.2 on to one of these partitions (using the "alternate installer" ISO), with most of the others being user data (e.g. one for /home, another for virtual machines, etc). I had one md partition free and then installed the 64-bit version (12.04.3) on to that, again using the alternate installer. However, after the installation it is unaware of the 1st system, so running update-grub fails to add that to the boot menu and I am not able to dual-boot 32 & 64 bit systems. This worked OK previously with a hardware RAID card, but that was true hardware RAID and presented the disks as a single SCSI device. $ lsb_release -rd Description:Ubuntu 12.04.3 LTS Release:12.04 $ apt-cache policy multipath-tools multipath-tools: Installed: (none) Candidate: 0.4.9-3ubuntu5 Version table: 0.4.9-3ubuntu5 0 500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages I expect the OS probing to detect other operating systems, in particular to detect another instance of Ubuntu. Additional information: $ more /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md1 : active raid1 sda3[0] sdb3[1] 72427392 blocks super 1.2 [2/2] [UU] md2 : active raid1 sda6[0] sdb6[1] 51167104 blocks super 1.2 [2/2] [UU] md0 : active raid1 sda1[0] sdb1[1] 2046912 blocks super 1.2 [2/2] [UU] md4 : active raid1 sda8[0] sdb8[2] 307068736 blocks super 1.2 [2/2] [UU] md3 : active raid1 sda7[0] sdb7[1] 1023868736 blocks super 1.2 [2/2] [UU] $ mount | grep '^/dev/' | sort /dev/md1 on / type ext4 (rw,errors=remount-ro) /dev/md3 on /home type ext4 (rw) /dev/md4 on /vm type ext4 (rw,nobarrier) /dev/sdc5 on /scratch type ext4 (rw,nobarrier) NOTE: sda & sdb form the md devices but sdc is not part of any RAID, md0 is unused (was planned for /boot but not used), and md2 has the 32-bit '/' partition which can still be mounted and accessed. ** Affects: multipath-tools (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to multipath-tools in Ubuntu. https://bugs.launchpad.net/bugs/1217933 Title: update-grub fails to detect other md OS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1217933/+subscriptions -- 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 999725] Re: broken start-up dependencies for ntp (starts before NIS is available)
It is probably true that this has not been seen much as a bug due to DNS normally being available, hence NIS dependency (if present) being a secondary issue. However, we found that ntp did not recover by itself, so possibly it only tries to find the nameservers once, but will re-try for the time servers in ntp.conf I don't think it is necessary to test for any direct dependency on NIS in ntp.conf (that could be tricky) but a more robust approach would be to start (or restart?) ntp if a directory service is started/restarted just to make sure any such dependency or time-server changes are resolved. I presume this is the sort of thing Upstart can do. Incidentally it seems the last post for bug #604717 is spam, is there any way to get it deleted? -- 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/999725 Title: broken start-up dependencies for ntp (starts before NIS is available) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 999725] Re: broken start-up dependencies for ntp
Yes, you are right in that our NIS servers are solaris boxes, and they do support behind-the-scenes DNS lookups as it turns out. It is also true that NIS is depreciated, though a lot of older installations like ours still use it, and for most machines DNS is available and will probably fix our specific issue. But...that is still not an excuse for daemons (like ntp) that might depend on the directory service (NIS, LDAP, ActiveDirectory, etc) being started without a sensibly configured sequence/dependency! -- 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/999725 Title: broken start-up dependencies for ntp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 999725] Re: broken start-up dependencies for ntp
I think this bug should concentrate on the key issue: that ntp (and maybe others?) is being brought up on the wrong event, that is it comes up with the interface, and not with the chosen type of name server. In our case NIS provides user and name server resolution, and ntp comes up before it with 12.04 I don't know how LDAP is handled, but from the above comments it would appear be have the same problem, and so ntp is not currently able to resolve machines given only by NIS (or LDAP) name if they are not in the DNS (which I guess might be common with a large private network behind NAT). -- 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/999725 Title: broken start-up dependencies for ntp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 999725] Re: broken start-up dependencies for ntp
Yes, it looks very much like the DNS system is broken here, but when I tried to look things up I get Bug #1001189 so overall not impressed with 12.04 so far :( Still, adding some "dns-nameservers" lines to /etc/network/interfaces is the next obvious thing to try. -- 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/999725 Title: broken start-up dependencies for ntp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 999725] Re: broken start-up dependencies for ntp
These are the nsswitch results: -- $ ls -l /etc/nsswitch.conf -rw-r--r-- 1 root root 600 May 1 11:28 /etc/nsswitch.conf -- $ cat /etc/nsswitch.conf # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service Switch"' for information about this file. passwd: files nis compat group: files nis compat shadow: files nis compat hosts: files nis dns #hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 networks: files protocols: db files services: db files ethers: db files rpc:db files netgroup: nis automount: files nis -- $ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 terra.sat.dundee.ac.uk terra # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters I guess the 'hosts' entry was edited/replaced to add NIS, and also the netgroup and automount were added. I presume this is due to NIS not doing this sort of thing automatically when you install it (it asks for the domain, I think). I don't really understand NIS, and the guy usually responsible for this sort of thing is away, but as far as I know it only provides local-area user/machine authentication and so I would be surprised if it 'knows' about anything outside of our sub-domain (like google, or even the other university machines as they are not part of our NIS set-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/999725 Title: broken start-up dependencies for ntp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 999725] Re: broken start-up dependencies for ntp
It is somewhat odd, as I get this: $ ping ntp0.dundee.ac.uk PING ntp0.dundee.ac.uk (172.30.254.253) 56(84) bytes of data. 64 bytes from 443-gb-core-6513.private.dundee.ac.uk (172.30.254.253): icmp_req=1 ttl=254 time=0.281 ms 64 bytes from 443-gb-core-6513.private.dundee.ac.uk (172.30.254.253): icmp_req=2 ttl=254 time=0.303 ms 64 bytes from 443-gb-core-6513.private.dundee.ac.uk (172.30.254.253): icmp_req=3 ttl=254 time=0.332 ms 64 bytes from 443-gb-core-6513.private.dundee.ac.uk (172.30.254.253): icmp_req=4 ttl=254 time=0.376 ms ^C --- ntp0.dundee.ac.uk ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 0.281/0.323/0.376/0.035 ms $ host ntp0.dundee.ac.uk ;; connection timed out; no servers could be reached $ nslookup ntp0.dundee.ac.uk ;; connection timed out; no servers could be reached So ping is able to perform the name-to-IP conversion fine, but host and nslookup both fail! Other 'normal' programs seem to perform address lookup OK (e.g. entering "www.google.com" in firefox, or even ntp if restarted later) so there is something bizarre about the network management. -- 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/999725 Title: broken start-up dependencies for ntp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 999725] Re: broken start-up dependencies for ntp
Results for 12.04 machine are: $ ls -l /etc/resolv.conf lrwxrwxrwx 1 root root 29 Apr 30 17:39 /etc/resolv.conf -> ../run/resolvconf/resolv.conf $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN On another 10.04 machine I get a file, and its contents have our DNS servers listed. But if resolv.conf is missing this, and we don't have any dns- nameservers in /etc/network/interfaces, then how is the machine getting DNS later when everything seems normal? -- 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/999725 Title: broken start-up dependencies for ntp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 999725] Re: broken start-up dependencies for ntp
I am not 100% sure of how the network was configured (the guy who did it is away today) but can report that the contents of /etc/network/interfaces are: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 134.36.22.69 netmask 255.255.255.0 gateway 134.36.22.1 So it should be a simple static IP address configured there. While it should not matter, it is maybe worth mentioning that the PC has two Ethernet ports, though we are only using one of them for this. Is there a log somewhere showing the start-up order actually used when it boots 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/999725 Title: broken start-up dependencies for ntp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 999725] [NEW] broken start-up dependencies for ntp
Public bug reported: We recently installed 12.04 LTS (32-bit) with NIS authentication and found two bugs with ntp, the first was ntp was not installed (even though the clock manager allowed, and defaulted to, "internet time") and the second more serious bug reported here is we discovered that ntp is being started before the system is capable of resolving DNS, so only time servers given by IP address are found. Those given by name (ntp0.dundee.ac.uk and similar) are not found and, as ntp never performs DNS lookup after initially starting, they remain unavailable until you manually issue the command "/etc/init.d/ntp restart". This was not a problem with 10.04 LTS, and I also though upstart was supposed to handle such starting sequence dependencies? $lsb_release -rd Description:Ubuntu 12.04 LTS Release:12.04 $ apt-cache policy ntp ntp: Installed: 1:4.2.6.p3+dfsg-1ubuntu3 Candidate: 1:4.2.6.p3+dfsg-1ubuntu3 Version table: *** 1:4.2.6.p3+dfsg-1ubuntu3 0 500 http://gb.archive.ubuntu.com/ubuntu/ precise/main i386 Packages 100 /var/lib/dpkg/status We expected ntp to be started after the network interfaces were up and DNS look-up possible. ** Affects: ntp (Ubuntu) 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/999725 Title: broken start-up dependencies for ntp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/999725/+subscriptions -- 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 596859] Re: ntp profile denies write access to serial devices
Thanks Robie for the quick reply, but I though 10.04.4 LTS would have such bug-fixes included? After all the ISO used to install is from after the date of the fix, and the major package numbers are the same (comment #1 mentions 1:4.2.4p8 +dfsg-1ubuntu4 and my machine is reporting 1:4.2.4p8+dfsg-1ubuntu2.1) -- 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/596859 Title: ntp profile denies write access to serial devices To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/596859/+subscriptions -- 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 596859] Re: ntp profile denies write access to serial devices
This appears to be broken again, the 10.04 default profile has: # vim:syntax=apparmor # Last Modified: Tue Aug 11 16:14:21 CDT 2009 # Updated for Ubuntu by: Jamie Strandboge @{NTPD_DEVICE} r, So it only allows read-access to the devices. Also broken/reverted is the tunables which has: # Last Modified: Thu Aug 2 14:37:03 2007 # $Id: usr.sbin.ntpd 1102 2008-02-19 10:35:19Z jrjohansen $ # -- # #Copyright (C) 2002-2005 Novell/SUSE # #This program is free software; you can redistribute it and/or #modify it under the terms of version 2 of the GNU General Public #License published by the Free Software Foundation. # # -- #Add your ntpd devices here eg. if you have a DCF clock # @{NTPD_DEVICE}=/dev/ttyS* @{NTPD_DEVICE}="/dev/tty10" Again, no default access to serial ports and modification date is before the message #4 (above). Can this be fixed again and pushed back to debian so it stays fixed? -- 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/596859 Title: ntp profile denies write access to serial devices To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/596859/+subscriptions -- 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 669808] Re: Nagios3 checks not scheduled after clocks change from DST
So folks, what IS happening about this bug, already fixed, for a package that is SUPPOSED to be supported in 10.04? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nagios3 in Ubuntu. https://bugs.launchpad.net/bugs/669808 Title: Nagios3 checks not scheduled after clocks change from DST To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nagios3/+bug/669808/+subscriptions -- 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 669808] Re: Nagios3 checks not scheduled after clocks change from DST
I see no activity here. Why is this not being maintained? It is not like there is no bug fix - can someone at Canonical actually do something useful about updating a *supported* LTS package? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nagios3 in Ubuntu. https://bugs.launchpad.net/bugs/669808 Title: Nagios3 checks not scheduled after clocks change from DST To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nagios3/+bug/669808/+subscriptions -- 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 582740] Re: Forwarded ports not closed to remote ssh2 server in FIN_WAIT_2
If this is supposedly fixed, how come using "ssh -X user@server" still hangs if you have run an X-windows program like 'eog' or similar? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in Ubuntu. https://bugs.launchpad.net/bugs/582740 Title: Forwarded ports not closed to remote ssh2 server in FIN_WAIT_2 -- 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 669808] Re: Nagios3 checks not scheduled after clocks change from DST
Same here - would have thought that an update should be out by now. It is supposed to be supported in LTS for 5 years and I presume 'support' includes pushing out established bug-fixes! -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nagios3 in Ubuntu. https://bugs.launchpad.net/bugs/669808 Title: Nagios3 checks not scheduled after clocks change from DST -- 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 672177] Re: libc6 upgrade causes umount to fail on shutdown because init cannot be restarted
Well it is not yet fixed for 10.04 with the 'proposed' updates. Tonight just rebooted after updates to kernal 2.6.32-29 and guess what? Yes, my syslog contained the following sort of message: "Feb 15 21:45:24 paul-ubuntu kernel: [2.341704] EXT4-fs (sda5): 4 orphan inodes deleted" So is 'proposed' still part of the 10.04.2 to be released, or will the fix come soon as mentioned for the 10.04.3 CD? -- You received this bug notification because you are a member of Ubuntu Server Team, which is a direct subscriber. https://bugs.launchpad.net/bugs/672177 Title: libc6 upgrade causes umount to fail on shutdown because init cannot be restarted -- 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 659036] [NEW] Install directory incorrect for pptpd source
Public bug reported: Binary package hint: pptpd I tried building the pptpd-1.3.4 package from source to debug the crashing behaviour it shows, however, I found that 'make install' put the executables in the wrong location. Line 175 of the Makefile had 'prefix = /usr/local' but the Ubuntu location is just /usr (so /usr/sbin has the executables, etc). Editing the make file to fix it was easy enough, but I don't understand the generation of the Makefile via the ./configure step well enough to suggest a safe patch. $ lsb_release -rd Description:Ubuntu 10.04.1 LTS Release:10.04 ** Affects: pptpd (Ubuntu) Importance: Undecided Status: New -- Install directory incorrect for pptpd source https://bugs.launchpad.net/bugs/659036 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to pptpd in ubuntu. -- 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 582740] Re: Forwarded ports not closed to remote ssh2 server in FIN_WAIT_2
With 10.04 i386 on my Dell Latitude 2100 laptop I find that attempting to exit from "ssh -X usern...@remotemachine" is not returning to the local command prompt after using an X-session on the remote machine. It returns fine when I don't start an X program though. Is this related to port forwarding of the usual 6000 x-windows port? I have to Ctrl+C to get back to the local prompt, which is a touch worrying. -- Forwarded ports not closed to remote ssh2 server in FIN_WAIT_2 https://bugs.launchpad.net/bugs/582740 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- 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 322518] Re: No obvious way to prevent ntpdate to be run when interface are brought up
While I agree that the system should honour the chosen settings (so if you say 'manual time' that is really all you get), I would argue that all systems, desktop and server, should ship with a minimum NTP setup. If the load on the Ubuntu time server is of concern, then you could use the minpoll set to 10 (1024s) or similar for it. See: http://www.eecis.udel.edu/~mills/ntp/html/clockopt.html#server Those with greater requirements might want to add more servers to ntp.conf and some (like here in my university) may need to change the time server to a local one due to a slightly strange firewall policy. But I don't see why manual time should be preferred for any case other than a complete lack of internet connectivity! -- No obvious way to prevent ntpdate to be run when interface are brought up https://bugs.launchpad.net/bugs/322518 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. -- 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 596010] Re: ntpd sementation fault using NMEA driver
*** This bug is a duplicate of bug 596859 *** https://bugs.launchpad.net/bugs/596859 Is the segmentation-fault induced death of ntpd the expected result of apparmor intervention? If so then I guess this bug is closed with the bug #596859 closure fixing (hopefully) the apparmor profile. -- ntpd sementation fault using NMEA driver https://bugs.launchpad.net/bugs/596010 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. -- 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 596859] [NEW] ntp profile denies write access to serial devices
Public bug reported: Binary package hint: ntp While reporting and testing for bug #596010 using the 10.04 release candidate I found that the intended user-tunable apparmor options in /etc/apparmor.d/tunables/ntpd do not work correctly due to the settings in /etc/apparmor.d/usr.sbin.ntpd including them with read-only permission. While it might initially seem reasonable that you just 'read' the time from a serial port GPS or similar, in practice most of the drivers for serial clocks also need write-access to configure and/or poll them for the time. I found that changing line 35 in /etc/apparmor.d/usr.sbin.ntpd from: @{NTPD_DEVICE} r, to this: @{NTPD_DEVICE} rw, seems to fix things so allowing /dev/ttyS* in the tunables works OK. ** Affects: ntp (Ubuntu) Importance: Undecided Status: New -- ntp profile denies write access to serial devices https://bugs.launchpad.net/bugs/596859 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. -- 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 596010] Re: ntpd sementation fault using NMEA driver
Looking at the /etc/apparmor.d/usr.sbin.ntpd file it seems that any @{NTPD_DEVICE} device is added as read-only, but most of the GPS like things I have seen using serial ports are subject to writing to configure and/or poll them for the time. Will raise that as another bug... -- ntpd sementation fault using NMEA driver https://bugs.launchpad.net/bugs/596010 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. -- 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 596010] Re: ntpd sementation fault using NMEA driver
Yes, the problem starts with the apparmour protection system not knowing it should be allowed serial port access. However, I tried to edit /etc/apparmor.d/tunables/ntpd to change the line to: @{NTPD_DEVICE}=/dev/ttyS0 then restarted /etc/init.d/apparmor but that did to help, however, adding this to the /etc/apparmor.d/usr.sbin.ntpd file: /dev/ttyS0 rw, then restarting /etc/init.d/apparmor did work. So first question is what is the correct entry in /etc/apparmor.d/tunables/ntpd needed to do it the preferred way? The next observation is that rendering the serial port theoretically unusable by: sudo chmod 000 /dev/ttyS0 Produced similar, but not quite identical results: Jun 21 12:36:08 pscpc ntpd[8089]: ntpd 4.2@1.1612-o Fri Apr 9 00:28:40 UTC 2010 (1) Jun 21 12:36:08 pscpc ntpd[8090]: precision = 1.000 usec Jun 21 12:36:08 pscpc ntpd[8090]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16 Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #1 wildcard, ::#123 Disabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #2 vmnet8, fe80::250:56ff:fec0:8#123 Enabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #3 lo, ::1#123 Enabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #4 vmnet1, fe80::250:56ff:fec0:1#123 Enabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #5 eth0, fe80::213:20ff:fecb:72d6#123 Enabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #6 lo, 127.0.0.1#123 Enabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #7 eth0, 134.36.22.24#123 Enabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #8 vmnet1, 192.168.227.1#123 Enabled Jun 21 12:36:08 pscpc ntpd[8090]: Listening on interface #9 vmnet8, 192.168.154.1#123 Enabled Jun 21 12:36:08 pscpc ntpd[8090]: kernel time sync status 2040 Jun 21 12:36:08 pscpc ntpd[8090]: frequency initialized -1.256 PPM from /var/lib/ntp/ntp.drift Jun 21 12:36:08 pscpc ntpd[8090]: refclock_open /dev/gps0: Permission denied Jun 21 12:36:08 pscpc kernel: [ 4642.663943] type=1503 audit(1277120168.659:117): operation="capable" pid=8090 parent=1 profile="/usr/sbin/ntpd" name="dac_override" Jun 21 12:36:08 pscpc kernel: [ 4642.664223] ntpd[8090]: segfault at 0 ip 0043e7bc sp bfa3f650 error 4 in libc-2.11.1.so[40e000+153000] But now the oddest part, if I stop apparmor there is no problem, and stranger still it is *working* to read the serial port that is apparently unusable for read or write: p...@pscpc:~$ ls -l /dev/ttyS0 c- 1 root dialout 4, 64 2010-06-21 12:41 /dev/ttyS0 Why/how it is overriding the permission setting is not clear. My final question is how do I get a stack trace? I have seen instructions on how to use gdb, but if I try to run the ntpd program with gdb using the same command line as the running daemon is (from ps -Af) it says the program terminated normally, which is clearly not the case as it still shows the segmentation happening fault in the syslog file. -- ntpd sementation fault using NMEA driver https://bugs.launchpad.net/bugs/596010 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. -- 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 596010] Re: ntpd sementation fault using NMEA driver
If I remove the symlink, it works but without the GPS (as one might reasonably expect) and this is the corresponding syslog message: Jun 18 17:59:02 pscpc ntpd[3075]: refclock_open /dev/gps0: No such file or directory Jun 18 17:59:02 pscpc ntpd[3075]: configuration of 127.127.20.0 failed So it looks as if a failed open is occuring, and that is crashing ntpd with a segmentation fault. What is not clear is why the two type of failed open should differ, and why it can't open /dev/gps0 while gtkterm seems happy enough to do so. -- ntpd sementation fault using NMEA driver https://bugs.launchpad.net/bugs/596010 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. -- 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 596010] Re: ntpd sementation fault using NMEA driver
Just to add, if I try gtkterm I can open and see the NMEA messages just fine, so I don't know why it should report "refclock_open /dev/gps0: Permission denied" in the first place. -- ntpd sementation fault using NMEA driver https://bugs.launchpad.net/bugs/596010 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. -- 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 596010] [NEW] ntpd sementation fault using NMEA driver
Public bug reported: Binary package hint: ntp I have an old Garmin GPS that I though I could use as a local time source with NTP. It supports NMEA messages so I added the line to my ntp.conf file: server 127.127.20.0 # NMEA GPS and created a symbolic link from /dev/gps0 -> /dev/ttyS0 as suggested here: http://www.eecis.udel.edu/~mills/ntp/html/drivers/driver20.html However, when trying to start NTP it crashes on me without any obvious reason, though it might be somehow related to the serial port opening failing for some non-obvious reason: Jun 18 17:33:33 pscpc ntpd[2888]: ntpd 4.2@1.1612-o Fri Apr 9 00:28:40 UTC 2010 (1) Jun 18 17:33:33 pscpc ntpd[2889]: precision = 1.000 usec Jun 18 17:33:33 pscpc ntpd[2889]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16 Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #1 wildcard, ::#123 Disabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #2 vmnet8, fe80::250:56ff:fec0:8#123 Enabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #3 lo, ::1#123 Enabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #4 vmnet1, fe80::250:56ff:fec0:1#123 Enabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #5 eth0, fe80::213:20ff:fecb:72d6#123 Enabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #6 lo, 127.0.0.1#123 Enabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #7 eth0, 134.36.22.24#123 Enabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #8 vmnet1, 192.168.227.1#123 Enabled Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #9 vmnet8, 192.168.154.1#123 Enabled Jun 18 17:33:33 pscpc ntpd[2889]: kernel time sync status 2040 Jun 18 17:33:33 pscpc ntpd[2889]: frequency initialized -2.568 PPM from /var/lib/ntp/ntp.drift Jun 18 17:33:33 pscpc ntpd[2889]: refclock_open /dev/gps0: Permission denied Jun 18 17:33:33 pscpc kernel: [18794.490995] type=1503 audit(1276878813.771:19): operation="open" pid=2889 parent=1 profile="/usr/sbin/ntpd" requested_mask="rw::" denied_mask="rw::" fsuid=0 ouid=0 name="/dev/ttyS0" Jun 18 17:33:33 pscpc kernel: [18794.491244] ntpd[2889]: segfault at 0 ip 002f57bc sp bfe53cd0 error 4 in libc-2.11.1.so[2c5000+153000] Even if there is something wrong with my serial port, it should not crash, but should use whatever other time sources that are available! About my system: $ lsb_release -rd Description:Ubuntu 10.04 LTS Release:10.04 $ uname -a Linux pscpc 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 GNU/Linux $ apt-cache policy ntp ntp: Installed: 1:4.2.4p8+dfsg-1ubuntu2 Candidate: 1:4.2.4p8+dfsg-1ubuntu2 Version table: *** 1:4.2.4p8+dfsg-1ubuntu2 0 500 http://gb.archive.ubuntu.com/ubuntu/ lucid/main Packages 100 /var/lib/dpkg/status Regards, Paul ** Affects: ntp (Ubuntu) Importance: Undecided Status: New -- ntpd sementation fault using NMEA driver https://bugs.launchpad.net/bugs/596010 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ntp in ubuntu. -- 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