Page 1 of 1

ntpd adjtime failed: Invalid argument

Posted: Wed Oct 15, 2014 3:26 pm
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?

Re: ntpd adjtime failed: Invalid argument

Posted: Thu Oct 16, 2014 3:12 pm
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