You are not logged in.

#1 2007-12-03 02:27:29

science4sail
Member
Registered: 2007-11-11
Posts: 4

openntp "adjtime failed"

I tried using openNTP to synchronize my computer clock, which is about a hour behind.
However, it doesn't seem to work.
Opening /var/log/daemon.log produces a bunch of the following:

Dec  2 12:22:09 Scrap-Machine ntpd[6776]: adjusting local clock by -3572.844308s
Dec  2 12:22:09 Scrap-Machine ntpd[6776]: adjtime failed: Invalid argument

Anyone know how to fix this?

Last edited by science4sail (2007-12-03 02:28:02)

Offline

#2 2008-02-12 00:09:23

tsweetser
Member
Registered: 2008-02-11
Posts: 10

Re: openntp "adjtime failed"

I ran into this problem recently. My clock was off upwards of two hours and ntpd kept failing. Apparently it doesn't like making such large adjustments when it's running as a daemon, owing to potential inefficiency or system slowdown. I just manually did a (sudo) "ntpd -s -d" which ran through the update process once in the foreground. If you get timestamp errors afterwards on sudo commands, a "sudo -K" will clear the cache and resolve it.

Offline

#3 2011-01-23 20:35:48

glenn69
Member
Registered: 2007-09-26
Posts: 125

Re: openntp "adjtime failed"

How do I accomplish this automatically at boot?  I am running openntpd in the daemons of rc.conf, but how do I append the -s option to that?

Thanks

Offline

#4 2011-01-23 21:49:15

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: openntp "adjtime failed"

Openntp or ntpd?

I usually:

/etc/rc.d/ntpd stop
ntpdate pool.ntp.org
23 Jan 16:48:47 ntpdate[29427]: adjust time server 69.31.13.207 offset 0.001909 sec
/etc/rc.d/ntpd start

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2011-01-24 00:33:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: openntp "adjtime failed"

glenn69: the thread is three years old, please dont necro-bump https://wiki.archlinux.org/index.php/Fo … Bumping.27

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB