Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

ntp stopped working - here's the workaround (no replies)

$
0
0
Hi

I am running Linux GoFlexNet 3.3.2-kirkwood-dg #1 Mon Apr 23 17:09:27 CDT 2012 armv5tel and noticed that newly copied files to my harddisks connected to my GoFlexNet (smb shares) had shown no date and time anymore in Windows-Explorer.
They were set to 1970-01-01 ...

The GoFlexNet has no HWCLOCK so it had to be ntpd that failed.
Somwhere else on the net I found the advice to remove the ntp-package with 'apt-get purge ntp' and re-install it afterwards.
That guy had the same symptoms I was having.
GoFlexNet:~# ntpq
ntpq>as
ind assid status  conf reach auth condition  last_event cnt
===========================================================
  1 19693  941a   yes   yes  none candidate    sys_peer  1
  2 19694  961a   yes   yes  none  sys.peer    sys_peer  1
querying ntpq with 'as' - whatever that means - showed only: (reach: no) (condition reject) or something similar. (sorry, now that it's working again - I can't post the former results) So it became clear to me that ntpd could not reach any NTP-servers.

after reinstalling ntp I changed only the following lines in /etc/ntp.conf :
server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst
to
#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst
server fritz.box
server ptbtime1.ptb.de
server ptbtime2.ptb.de

now it works fine again :)

I did not add the lines
restricted ... fritz.box
(one line per server) at the end of ntp.conf as described in this post

phil

Viewing all articles
Browse latest Browse all 3247

Trending Articles