ntpd adjtime failed: Invalid argument

Post Reply
mister_v
Posts: 137
Joined: Sat Jun 20, 2009 5:42 pm

ntpd adjtime failed: Invalid argument

Post by mister_v »

Hi,

I have the following messages in my logs:

Code: Select all

ntpd[1719]: adjusting local clock by -3539.464175s
ntpd[1719]: adjtime failed: Invalid argument
is the ntpd not functioning correctly?
mister_v
Posts: 137
Joined: Sat Jun 20, 2009 5:42 pm

Re: ntpd adjtime failed: Invalid argument

Post by mister_v »

I think the time difference was too big.

and my timezone was set wrong.
Adjusted the time zone

Code: Select all

nano /etc/timezone

rm /etc/localtime 
ln -s /usr/share/zoneinfo/Europe/Brussels /etc/localtime
and set the correct time with date
also the hardware clock

Code: Select all

hwclock --systohc
Restarted the ntpd,

Code: Select all

/etc/init.d/ntpd restart
and now it is working normally

Code: Select all

 ntpd[1063]: adjusting local clock by 42.780598s
Post Reply