Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntp client doesnt keep up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Wed Apr 14, 2004 4:25 pm    Post subject: ntp client doesnt keep up Reply with quote

server config


router root # cat /etc/ntp.conf
restrict default noquery notrust nomodify #tried it without this line as well
restrict 127.0.0.1 #tried it without this line as well
server 127.127.1.0 #tried it without this line as well
server bear.zoo.bt.co.uk
server ntp1.uk.uu.net
server tick.tanac.net
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
outer root # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
LOCAL(0) LOCAL(0) 5 l 14 64 377 0.000 0.000 0.008
+bear.zoo.bt.co. ntp1.linx.net 2 u 957 1024 377 38.321 -5.687 22.008
*ntp1.pipex.net ntp1.NL.net 2 u 894 1024 377 25.544 -5.092 2.954
p1w18.geo.scd.y 0.0.0.0 16 u - 1024 0 0.000 0.000 4000.00
router root #
ie its working !

client ( ie keep it simple :
bash-2.05b$ cat /etc/ntp.conf
server 192.168.0.10
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
bash-2.05b$ ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
router 158.43.128.66 3 u 590 1024 377 0.674 455754. 19877.8

ie its doing something ! - but it loses 12-13 minutes /day
Back to top
View user's profile Send private message
Andersson
Guru
Guru


Joined: 12 Jul 2003
Posts: 525
Location: Göteborg, Sweden

PostPosted: Wed Apr 14, 2004 4:42 pm    Post subject: Re: ntp client doesnt keep up Reply with quote

thecooptoo wrote:
logfile /var/log/ntp.log

Anything in there?
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 14, 2004 5:53 pm    Post subject: Reply with quote

I have a similar problem, but the issue with me is that the time clock is correct. However when mail enters my mail server, it displays within a client one hour early.

If mail arrives at 08.16, it displays as 07.16. I have set the /etc/localtime to /usr/share/zoneinfo/Greenwich as I live in London, but it has made no difference. I have also, pointed /var/spool/postfix/etc/localtime to the same source but to no avail.

As so far as the log file for ntp is concerened, nothing has been written there even thought the service has started. Any clues?
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Wed Apr 14, 2004 6:01 pm    Post subject: Reply with quote

server - ie when I re-synced it this morning
14 Apr 08:29:10 ntpd[18544]: ntpd exiting on signal 15
14 Apr 08:29:30 ntpd[21627]: running as uid(123)/gid(123) euid(123)/egid(123).
14 Apr 08:29:30 ntpd[21629]: signal_no_reset: signal 17 had flags 4000000
14 Apr 08:32:49 ntpd[21627]: kernel time discipline status change 41

client
14 Apr 08:31:58 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 08:49:04 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 09:06:08 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 09:23:12 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
same 2x per hour
14 Apr 17:21:48 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 17:38:54 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 17:56:01 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 18:13:05 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 18:30:12 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
bash-2.05b#
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum