Bug#550061: [pkg-ntp-maintainers] Bug#550061: ntp: Leaves stale tmp files

2010-01-11 Thread Harald Braumann
On Sun, 27 Dec 2009 23:59:39 +0100
Kurt Roeckx k...@roeckx.be wrote:

 On Wed, Oct 07, 2009 at 04:32:11PM +0200, Harald Braumann wrote:

 So you somehow must be triggering other code than other people.
 Can you tell me something more about your setup?  Like how is
 the resolver configured.  What do you have in /etc/resolv.conf
 when that happens, 

I have a local bind. So /etc/resolv.conf always contains nameserver
127.0.0.1. Bind's options are controlled by resolvconf (like
adding/removing forwarders). 

This is on a laptop, so it is often without network connection. The
interface is controlled by ifplugd. It takes the interface down or up,
depending on the link state.

 and what does grep hosts /etc/nsswitch.conf
 return?
hosts:  files dns

 Do you have ipv6 connectivity?  Or is ipv6 completly disabled?
It is enabled but not used for outside connections (no ipv6 router).

harry


signature.asc
Description: PGP signature


Bug#550061: [pkg-ntp-maintainers] Bug#550061: ntp: Leaves stale tmp files

2009-12-27 Thread Kurt Roeckx
On Wed, Oct 07, 2009 at 04:32:11PM +0200, Harald Braumann wrote:
 Hi,
 
 here is some additional info: it seems, ntpd creates these files, when
 it can't connect to a server. 
 
 If I unplug the network cable, the
 interface is taken down by ifplugd, dhcp loses the lease and restarts
 ntpd via /etc/dhcp3/dhclient-exit-hooks.d/ntp. In this case a temporary
 file is created and never deleted. 
 
 If I restart ntpd manually while the network is connected, no temporary
 file is created.

I've been trying to reproduce this using 4.2.4p7+dfsg-4, but I
never get such files.

On the other hand looking at the code, I don't see how it could
be cleaned up in the succesful case.

So you somehow must be triggering other code than other people.
Can you tell me something more about your setup?  Like how is
the resolver configured.  What do you have in /etc/resolv.conf
when that happens, and what does grep hosts /etc/nsswitch.conf
return?

Do you have ipv6 connectivity?  Or is ipv6 completly disabled?


Kurt




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#550061: ntp: Leaves stale tmp files

2009-10-07 Thread Harald Braumann
Package: ntp
Version: 1:4.2.4p6+dfsg-2
Severity: normal

Ntpd leaves stale files in /tmp:

# ls -lt /tmp/ntp*
-rw--- 1 root root 255 Oct  7 11:41 /tmp/ntp7sDRlU
-rw--- 1 root root 255 Oct  7 01:28 /tmp/ntpJlA0PZ
-rw--- 1 root root 255 Oct  6 21:44 /tmp/ntpZ4Wl1R
-rw--- 1 root root 255 Oct  6 21:44 /tmp/ntpdE80Lf
-rw--- 1 root root 255 Oct  6 11:10 /tmp/ntpRPBzDv
-rw--- 1 root root 255 Oct  5 12:54 /tmp/ntp9zKmSp
-rw--- 1 root root 255 Oct  4 15:47 /tmp/ntpFCxeMj
-rw--- 1 root root 373 Oct  4 15:47 /tmp/ntpkp6zkf
-rw--- 1 root root  36 Oct  4 13:34 /tmp/ntp0aIUiv
-rw--- 1 root root  36 Oct  4 13:34 /tmp/ntpn2Nkw8
-rw--- 1 root root 255 Oct  3 12:39 /tmp/ntpQvgk8M
-rw--- 1 root root 255 Oct  3 12:39 /tmp/ntpgkeImV
-rw--- 1 root root 112 Oct  1 15:51 /tmp/ntpkzdSId
[... and it goes on ...]

Such a file looks like this:

# cat /tmp/ntp7sDRlU 
ts1.univie.ac.at 3 4 6 10 512 0 0 *
ts2.univie.ac.at 3 4 6 10 512 0 0 *
ntp1.lrz-muenchen.de 3 4 6 10 512 0 0 *
ntp2.lrz-muenchen.de 3 4 6 10 512 0 0 *
ptbtime1.ptb.de 3 4 6 10 512 0 0 *
ptbtime2.ptb.de 3 4 6 10 512 0 0 *
ntp.liwest.at 3 4 6 10 512 0 0 *

Ntpd should clean-up temporary files.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29.3
Locale: LANG=POSIX, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ntp depends on:
ii  adduser  3.110   add and remove users and groups
ii  libc62.9-25  GNU C Library: Shared libraries
ii  libcap2  1:2.16-5support for getting/setting POSIX.
ii  libedit2 2.11-20080614-1 BSD editline and history libraries
ii  libncurses5  5.7+20090803-2  shared libraries for terminal hand
ii  libssl0.9.8  0.9.8k-4SSL shared libraries
ii  lsb-base 3.2-23  Linux Standard Base 3.2 init scrip
ii  netbase  4.37Basic TCP/IP networking system

Versions of packages ntp recommends:
ii  perl  5.10.0-25  Larry Wall's Practical Extraction 

Versions of packages ntp suggests:
ii  ntp-doc 1:4.2.4p6+dfsg-2 Network Time Protocol documentatio

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#550061: ntp: Leaves stale tmp files

2009-10-07 Thread Harald Braumann
Hi,

here is some additional info: it seems, ntpd creates these files, when
it can't connect to a server. 

If I unplug the network cable, the
interface is taken down by ifplugd, dhcp loses the lease and restarts
ntpd via /etc/dhcp3/dhclient-exit-hooks.d/ntp. In this case a temporary
file is created and never deleted. 

If I restart ntpd manually while the network is connected, no temporary
file is created.

Cheers,
harry



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org