Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65267 - Openntpd not adjusting time
Summary: Openntpd not adjusting time
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 17:45 UTC by Alexander Steppke
Modified: 2004-10-05 18:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Steppke 2004-09-24 17:45:43 UTC
I installed openntpd version 20040824p (current stable) and 20040719p (current unstable) and both do not correct the time of my system. 

Reproducible: Always
Steps to Reproduce:
1. emerge openntpd
2. edit /etc/ntpd.conf for some valid stratum 2 servers
3. start openntpd with: "/etc/init.d/openntpd start"

Actual Results:  
/var/log/daemon.log says after some time:

reply from 134.176.2.5: offset 342.531821 delay 0.035953, next query 30s
reply from 195.145.119.188: offset 342.532825 delay 0.044452, next query 30s
adjusting local clock by 342.668867s

but it does not modify the local time and continues with:

reply from 131.188.3.222: offset 342.409549 delay 0.041461, next query 5s




Expected Results:  
It should modify the local time but fails. It is able to query the stratum 2 servers but cannot set the local time on my system. 

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X acpi alsa apm arts avi berkdb bitmap-fonts bzlib crypt encode fastcgi flac foomaticdb ftp gdbm gpm gtk gtk2 hardened imap imlib jpeg ldap libg++ libwww mad mmx mpeg ncurses nls oggvorbis pam pdflib perl png python qt readline samba sdl slang spell ssl tcpd truetype usb x86 xml2 xmms xprint zlib"
Comment 1 Jon Radon 2004-10-04 18:49:44 UTC
NTP will not adjust the clock immediately.  It slowly drifts the clock to the correct time.  Immediately adjusting the clock could cause problems.  Please try letting it run for a while and see if the difference in time drops.  Or preferably, manually set the clock closer to the actual time then run openntp.
Comment 2 Alexander Steppke 2004-10-05 11:04:03 UTC
After running openntpd over a longer period of time it slowly adjusted the clock with small drifts. I am happy that it is actually working fine now, although the output of the daemon seems very misleading to me:

Oct  1 03:08:17 defiant ntpd[7670]: adjusting local clock by 306.591300s
Oct  1 04:44:51 defiant ntpd[7670]: adjusting local clock by 300.847931s
Oct  1 04:47:54 defiant ntpd[7670]: adjusting local clock by 300.614534s

Openntpd never adjusted the clock by 300 seconds as the output suggests. Would it be according to the idea of Openntpd to patch it so that it outputs something like this instead:

Oct  1 03:08:17 defiant ntpd[7670]: adjusting local clock by +0.291300s, time difference to queried source 306.591300s
Comment 3 SpanKY gentoo-dev 2004-10-05 18:33:59 UTC
as Jon said, ntpd time changing isnt instant (pisses off a lot of things)

as for the display issues, that goes UPSTREAM ;)