NTP not working? My server lives in a timezone 31 min ahead of mine...

aub

New Member
Sep 13, 2010
11
0
1
Hello!

Seems like my Proxmox server is 31 min ahead of time.

When I run ntpq -p, I get this:


remote refid st t when poll reach delay offset jitter
==============================================================================
192.168.178.1 .INIT. 16 u - 1024 0 0.000 0.000 0.000

The IP address 192.168.178.1 previously was that of my router which I have since changed to 192.168.170.1. Could that be the issue with the NTP server?

Followed the instructions in this thread: http://forum.proxmox.com/threads/2994-problem-sync-time?highlight=NTP

Ended with this:

proxmox:~# /etc/init.d/ntp stop
Stopping NTP server: ntpd.
proxmox:~# ntpdate adacv.ad.etat-de-vaud.ch
Error : Name or service not known
1 Sep 23:39:47 ntpdate[8272]: can't find host adacv.ad.etat-de-vaud.ch

Any idea how I could fix this?
 
When you start ntp again, does it still show the wrong IP address? If it does, check the ntp.conf configuration file (post it here if it looks fine to you, it should be relatively short).
 
Hey! Thanks for the pointer, I edited /etc/ntp.conf.dhcp and changed the IP address manually and it works now! But shouldn't it change the IP automatically is it's set up via dhcp?