Jump to content

Issues with date and time


Recommended Posts

Was about to make a issue about this as well, after updating to 6.12 none of the time servers ever sync as they complain they are unreachable

 

ntpq> peer
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*LOCAL(0)        .LOCL.          10 l   26   64  377    0.000   +0.000   0.002
 10.0.0.1 (OPNse .INIT.          16 u    -   64    0    0.000   +0.000   0.000
 tock.sol.net    .INIT.          16 u    -   64    0    0.000   +0.000   0.000
 108.61.23.93 (1 .INIT.          16 u    -   64    0    0.000   +0.000   0.000
 af-south-1.clea .INIT.          16 u    -   64    0    0.000   +0.000   0.000

ntpq> as
ind assid status  conf reach auth condition  last_event cnt
===========================================================
  1 64788  961a   yes   yes  none  sys.peer    sys_peer  1
  2 64789  8011   yes    no  none    reject    mobilize  1
  3 64790  8011   yes    no  none    reject    mobilize  1
  4 64791  8011   yes    no  none    reject    mobilize  1
  5 64792  8011   yes    no  none    reject    mobilize  1


Debug info using the above time server manually

 

root@Zeus:/mnt/user/appdata/Authelia# ping tock.sol.net
PING tock.sol.net (206.55.65.229) 56(84) bytes of data.
64 bytes from tock.sol.net (206.55.65.229): icmp_seq=1 ttl=49 time=928 ms
64 bytes from tock.sol.net (206.55.65.229): icmp_seq=2 ttl=49 time=889 ms
64 bytes from tock.sol.net (206.55.65.229): icmp_seq=3 ttl=49 time=807 ms
^C
--- tock.sol.net ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 2999ms
rtt min/avg/max/mdev = 806.710/874.363/927.824/50.452 ms
root@Zeus:/mnt/user/appdata/Authelia# killall ntpd
root@Zeus:/mnt/user/appdata/Authelia# ntpdate tock.sol.net
17 Jun 09:49:56 ntpdate[20969]: step time server 206.55.65.229 offset +6.650815 sec


ntpd started in debug

 

root@Zeus:/mnt/user/appdata/Authelia# ntpd -d
17 Jun 09:50:48 ntpd[26008]: ntpd [email protected] Fri Jun  3 04:17:10 UTC 2022 (1): Starting
17 Jun 09:50:48 ntpd[26008]: Command line: ntpd -d
17 Jun 09:50:48 ntpd[26008]: ----------------------------------------------------
17 Jun 09:50:48 ntpd[26008]: ntp-4 is maintained by Network Time Foundation,
17 Jun 09:50:48 ntpd[26008]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
17 Jun 09:50:48 ntpd[26008]: corporation.  Support and training for ntp-4 are
17 Jun 09:50:48 ntpd[26008]: available at https://www.nwtime.org/support
17 Jun 09:50:48 ntpd[26008]: ----------------------------------------------------
17 Jun 09:50:48 ntpd[26008]: proto: precision = 2.304 usec (-19)
Finished Parsing!!
17 Jun 09:50:48 ntpd[26008]: basedate set to 2022-05-22
17 Jun 09:50:48 ntpd[26008]: gps base set to 2022-05-22 (week 2211)
hack_restrict: op RESTRICT_FLAGS addr 0.0.0.0 mask 0.0.0.0 ippeerlimit -1 mflags 00000000 rflags 00000bd0
hack_restrict: op RESTRICT_FLAGS addr :: mask :: ippeerlimit -1 mflags 00000000 rflags 00000bd0
hack_restrict: op RESTRICT_FLAGS addr :: mask :: ippeerlimit -1 mflags 00000000 rflags 00000bd0
hack_restrict: op RESTRICT_FLAGS addr 127.0.0.1 mask 255.255.255.255 ippeerlimit -1 mflags 00000000 rflags 00000000
hack_restrict: op RESTRICT_FLAGS addr ::1 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ippeerlimit -1 mflags 00000000 rflags 00000000
move_fd: estimated max descriptors: 40960, initial socket boundary: 16
17 Jun 09:50:48 ntpd[26008]: Listen normally on 0 lo 127.0.0.1:123
hack_restrict: op RESTRICT_FLAGS addr 127.0.0.1 mask 255.255.255.255 ippeerlimit -4 mflags 00003000 rflags 00000001
17 Jun 09:50:48 ntpd[26008]: Listening on routing socket on fd #17 for interface updates
newpeer(127.127.1.0) - ippeerlimit -1 ignored
key_expire: at 0 associd 7312
peer_clear: at 0 next 1 associd 7312 refid INIT
event at 0 LOCAL(0) 8011 81 mobilize assoc 7312
newpeer: 127.0.0.1->127.127.1.0 mode 3 vers 4 poll 6 6 flags 0x9 0x1 ttl 0 key 00000000
newpeer(10.0.0.1) - ippeerlimit -1 ignored
key_expire: at 0 associd 7313
peer_clear: at 0 next 2 associd 7313 refid INIT
event at 0 10.0.0.1 8011 81 mobilize assoc 7313
newpeer: <null>->10.0.0.1 mode 3 vers 4 poll 6 10 flags 0x101 0x1 ttl 0 key 00000000
kernel loop status 0x2041 (Clock Unsynchronized)
17 Jun 09:50:48 ntpd[26008]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
event at 0 0.0.0.0 c01d 0d kern kernel time sync enabled
kernel loop status 0x2041 (Clock Unsynchronized)
17 Jun 09:50:48 ntpd[26008]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
event at 0 0.0.0.0 c012 02 freq_set kernel 5.815 PPM
event at 0 0.0.0.0 c016 06 restart
peer_name_resolved(pool.ntp.org) rescode 0
newpeer(162.159.200.123) - ippeerlimit -1 ignored
key_expire: at 0 associd 7314
peer_clear: at 0 next 2 associd 7314 refid INIT
event at 0 162.159.200.123 8011 81 mobilize assoc 7314
newpeer: <null>->162.159.200.123 mode 3 vers 4 poll 6 10 flags 0x101 0x1 ttl 0 key 00000000
peer_name_resolved(0.pool.ntp.org) rescode 0
newpeer(102.64.113.152) - ippeerlimit -1 ignored
key_expire: at 0 associd 7315
peer_clear: at 0 next 2 associd 7315 refid INIT
event at 0 102.64.113.152 8011 81 mobilize assoc 7315
newpeer: <null>->102.64.113.152 mode 3 vers 4 poll 6 10 flags 0x101 0x1 ttl 0 key 00000000
peer_name_resolved(1.pool.ntp.org) rescode 0
newpeer(196.10.54.58) - ippeerlimit -1 ignored
key_expire: at 0 associd 7316
peer_clear: at 0 next 1 associd 7316 refid INIT
event at 0 196.10.54.58 8011 81 mobilize assoc 7316
newpeer: <null>->196.10.54.58 mode 3 vers 4 poll 6 10 flags 0x101 0x1 ttl 0 key 00000000
refclock_transmit: at 1 127.127.1.0
refclock_receive: at 1 127.127.1.0
event at 1 LOCAL(0) 8014 84 reachable
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000002
clock_filter: n 1 off 0.000000 del 0.000000 dsp 7.937501 jit 0.000002
auth_agekeys: at 1 keys 0 expired 0
restrictions: looking up 127.0.0.1
restrictions: looking up 127.0.0.1
restrictions: looking up 127.0.0.1
restrictions: looking up 127.0.0.1
restrictions: looking up 127.0.0.1
restrictions: looking up 127.0.0.1
refclock_transmit: at 65 127.127.1.0
refclock_receive: at 65 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000002
clock_filter: n 2 off 0.000000 del 0.000000 dsp 3.937741 jit 0.000002

 

Edited by lepresidente
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...