You are not logged in.
Pages: 1
I installed ntpd about a month ago, and it was working fine until this last week. Since then it has been giving times two hours ahead of what it should. My configuration is the same as on the wiki.
In an attempt to figure this out, I've tried changing timezones and have found that they all are +2 hours from what they should be.
Also, when I run ntptime, I receive a couple of errors:
$ ntptime
ntp_gettime() returns code 5 (ERROR)
time cfd37b6b.c1dc614c Mon, Jun 28 2010 13:50:03.757, (.757269810),
maximum error 16000000 us, estimated error 0 us
ntp_adjtime() returns code 5 (ERROR)
modes 0x0 (),
offset 0.000 us, frequency 9.072 ppm, interval 1 s,
maximum error 16000000 us, estimated error 0 us,
status 0x2041 (PLL,UNSYNC,NANO),
time constant 6, precision 0.001 us, tolerance 500 ppm,
Any ideas as to what's up?
Edit:
After thinking about it, it looks like ntp isn't connecting with the servers at all? as the ntp_gettime() returns an error. I'm going to try tinkering with the config file and see if that changes anything.
2nd Edit:
I've tried a number of changes in the config, and it hasn't made any difference. The time is still consistently off by +2 hours.
Last edited by fredre (2010-07-01 04:46:44)
Offline
I haven't used ntptime, but I do use ntpdate. If you want to sync your computer to internet time, just run "sudo ntpdate pool.ntp.org" or whatever server you want to use. This sets your system time. Then, run "sudo hwclock --systohc" to set the hardware clock to the system time.
Offline
Have you checked your rc.conf to check whether you are in the "correct" timezone there?
“There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.”-- C.A.R. Hoare
Offline
Have you tried simply pinging a few of the servers in your config list? Depending on how many different servers you've tried, you may just be hitting down servers.
Alternatively, how's your network connection?
Offline
@Proofrific: You're awsome: it works!
@3]): Yep. As I stated before, I'd tried several timezones.
@gaunt: I haven't tried pinging the servers, but I have 7 of them in my ntp.conf. I can't imagine that they are all down. I tried the default config, as well as the one in the wiki with no success.
I think the problem with the ntptime might have to do with a kernel update. I'm still at a loss as to why ntpd didn't automatically sync, but I can live with that as I can set my time with ntpdate. I'll just remove ntpd from my daemons list for now. It's not a perfect solution but it's good enough for me, so I'm marking this thread as solved. Thanks for all the help!
Offline
Pages: 1