jbrusey / cogent-house

Cogent House is a system for sensing temperature, humidity, CO2, Air Quality, VOC, hot water consumption, and electricity consumption within the home. It has been developed by the [http://cogentcomputing.org Cogent Computing Applied Research Centre] at Coventry University. Cogent House is developed using TinyOS and Python.
4 stars 2 forks source link

NTPd appears to lose servers #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Pretty much impossible to reproduce.

Every now and again the local time on the RPI stops being an approximation of 
the real time.  This means that samples are timestamped incorrectly etc.

Examining the logs for NTP (which is not configured with debug mode enabled on 
the PI) suggests that ntpd looses any time servers.

pi@eti8 ~ $ ntpq
ntpq> peers
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 192.168.9.1     .XFAC.          16 u    - 1024    0    0.000    0.000   0.000
ntpq> 

ntpq> as

ind assid status  conf reach auth condition  last_event cnt
===========================================================
  1 52935  8011   yes    no  none    reject    mobilize  1
ntpq> 

The only way I could fix this was by manually killing the ntpd process (Even 
restarting the server gave issues)  Then restarting and hoping that a 
timeserver appeared.

As to why it is happening IHAFC?  Possibly if the server is switched of the 
fake-HW clock causes problems.  So far I have been unable to reproduce and only 
lucked into a server giving these issues to get some debugging.

Attached are outputs of various ntpd commands.

Original issue reported on code.google.com by DjGoldsm...@googlemail.com on 4 Feb 2014 at 11:33

Attachments:

GoogleCodeExporter commented 9 years ago
Suggested Fix:

If Odd numbered server update NTP pool to ubuntu.

Original comment by DjGoldsm...@googlemail.com on 17 Feb 2014 at 1:24

GoogleCodeExporter commented 9 years ago
possible other fix to try:

tinker panic 0

See https://bbs.archlinux.org/viewtopic.php?id=172101 and 
https://forum.pfsense.org/index.php?topic=53906.0

Original comment by james.br...@gmail.com on 5 Mar 2014 at 11:13

GoogleCodeExporter commented 9 years ago
It looks like this has been fixed in the updated Kernel.
New iburst flag on the NTP servers.

Original comment by DjGoldsm...@googlemail.com on 28 Mar 2014 at 9:42