NTP doesn't sync

Fatal Error

New Member
Mar 2, 2010
22
0
1
Hey there

I'm currently working on my exam work and have a little problem with the ntpd.
As far as i can see, ntpdate works fine, it gets the time and everythings ok, but ntpd doesn't work.
Code:
May 10 13:30:57 proxmox-1 ntpd[12417]: configure: keyword "#015" unknown, line ignored
May 10 13:31:17 proxmox-1 ntpd[12417]: configure: keyword "#015" unknown, line ignored
May 10 13:31:37 proxmox-1 ntpd[12417]: getaddrinfo: "ntp-server.hans.wurst.ch#015" invalid host address, ignored
May 10 13:31:37 proxmox-1 ntpd[12417]: configure: keyword "#015" unknown, line ignored
i don't know where he gets the #015 in there, in the config file /etc/ntp.conf is all fine...

Code:
# Driftfile für Abweichungen
driftfile /var/lib/ntp/ntp.drift

# NTP-Server im LAN
server ntp-server.hans.wurst.ch

# Zugriff durch NTP-Server gestatten
restrict ntp-server.hans.wurst.ch

# Zugriff vom localhost gestatten (ntpq -p)
restrict 127.0.0.1
i don't know what's going on, i hope somebody can help me...
 
Last edited:
I think you should replace [ntpserver-fqdn] by your ntp server address or name..

Code:
# NTP-Server im LAN
server[B] [ntpserver-fqdn][/B]

# Zugriff durch NTP-Server gestatten
restrict [B][ntpserver-fqdn][/B]
 
I edited the file. i took other names for the servers because they are inhouse and i'm not allowed to give away the names.
i'm sorry about that but it's the company security guideline...

the domain name i took is hans.wurst.ch, my proxmox servers are proxmox-1.hans.wurst.ch and proxmox-2.hans.wurst.ch and the ntp server is ntp-server.hans.wurst.ch
 
how did you edit the file?
it looks as if there were some bad chars in it...

create manually a new file with only
Code:
server yourntpserver
 
Oh thanks, that one works...
i edited the file with vim, after i copied it from my laptop via WinSCP.
Well, strange, didn't see a thing when i looked at the file with vim or cat.
However, thanks a lot for your help.