Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#12548 closed Bug/Something is broken (fixed)

Time sync in proudhon

Reported by: Lu Pa Owned by: JaimeV
Priority: Medium Component: Tech
Keywords: ntp Cc: Jamie McClelland
Sensitive: no

Description

I was trying to use Google Authenticator for WP and realize that proudhon time is not synchronized with ntp servers. It has ~ 5 min difference.

Could this be fixed?

see attachment

Attachments (1)

Selección_316.png (56.6 KB) - added by Lu Pa 2 years ago.

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by Lu Pa

Attachment: Selección_316.png added

comment:1 Changed 2 years ago by JaimeV

Cc: Jamie McClelland added
Keywords: ntp added
Owner: set to JaimeV
Status: newassigned

Ah, this is interesting. ntp is in fact running on peery but it is not perfectly synced with other servers on our network either. They all appear to use the same config in /etc/ntp.conf so I am not sure why there are discrepancies.

driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
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
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1

copying jamie here for more input.

comment:2 Changed 2 years ago by Jamie McClelland

I'm still working on this one. It seems to affect all or most of wiwa's guests (and wiwa also).

comment:3 Changed 2 years ago by Jamie McClelland

I'm working on getting things running on wiwa properly since ntp seems to use it's peers to synchronize.

Initially, I was getting an error running ntpstat:

0 wiwa:~# ntpstat 
unsynchronised
  time server re-starting
   polling server every 8 s
1 wiwa:~#

I then noticed that /var/lib/ntp/ntp.drift was missing so I created it with:

echo 0.0 > /var/lib/ntp/ntp.drift

And then I restarted ntp (systemctl restart ntp).

And now I'm still getting "unsynchronized" but I no longer get the restarting error:

0 wiwa:~# ntpstat 
unsynchronised
   polling server every 8 s
1 wiwa:~# 

I will check back again tomorrow.

comment:4 Changed 2 years ago by Jamie McClelland

Resolution: fixed
Status: assignedclosed

proudhon should now be properly synchronizing. There are still a handful of servers not properly synchronized - and I'm working on getting all of those taken care of as well.

comment:5 Changed 2 years ago by Lu Pa

Perfect ! thanks a lot

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.