Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 772998

Summary: net-misc/openntpd-6.8_p1-r1: never syncs clock
Product: Gentoo Linux Reporter: Deniss Gaplevsky <slim>
Component: Current packagesAssignee: Paul B. Henson <henson>
Status: UNCONFIRMED ---    
Severity: major CC: fturco, lekto, polynomial-c, proxy-maint, sam
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://github.com/openntpd-portable/openntpd-portable/issues/65
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 763963, 769224    

Description Deniss Gaplevsky 2021-02-26 09:04:08 UTC
after upgrading to net-misc/openntpd-6.8_p1-r1 the clock never become synced on multiple servers

linux kernel 5.4.60
# cat /etc/ntpd.conf 
listen on 127.0.0.1
servers 0.pool.ntp.org
sensor *



Reproducible: Always

Steps to Reproduce:
1. start ntpd
2. wait for hours
Actual Results:  
# ntpctl -s all
4/4 peers valid, clock unsynced

peer
   wt tl st  next  poll          offset       delay      jitter
195.28.27.26 from pool 0.pool.ntp.org
    1 10  1   18s   32s        -0.027ms     0.686ms     0.137ms
83.241.47.64 from pool 0.pool.ntp.org
    1 10  2   18s   34s        -1.204ms     1.621ms     0.383ms
178.16.23.50 from pool 0.pool.ntp.org
    1 10  2   13s   34s         0.705ms     0.778ms     0.595ms
91.240.246.3 from pool 0.pool.ntp.org
    1 10  2   31s   34s        -0.072ms     0.895ms     0.126ms

Expected Results:  
4/4 peers valid, clock synced, stratum 3
Comment 1 Thomas Lindroth 2021-02-26 15:25:09 UTC
I also noticed this.

Running strace on ntpd I can see that the clock_adjtime() calls always return TIME_ERROR and buf.status is stuck as STA_UNSYNC.

Possible upstream bug report https://github.com/openntpd-portable/openntpd-portable/issues/65
Comment 2 Larry the Git Cow gentoo-dev 2021-03-03 18:38:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=856372e4b4f667365124c19533d3fe378351f992

commit 856372e4b4f667365124c19533d3fe378351f992
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-03 18:38:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-03 18:38:00 +0000

    net-misc/openntpd: drop 6.8_p1* back to ~arch
    
    Bug: https://bugs.gentoo.org/772998
    Bug: https://bugs.gentoo.org/769224
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/openntpd/openntpd-6.8_p1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd50fd08f10bebbf8e5f4dd2b3731aecd64b2081

commit dd50fd08f10bebbf8e5f4dd2b3731aecd64b2081
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-03 18:37:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-03 18:37:15 +0000

    profiles: mask broken net-misc/openntpd
    
    Bug: https://bugs.gentoo.org/772998
    Bug: https://bugs.gentoo.org/769224
    Bug: https://bugs.gentoo.org/763963
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)