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

Bug 641500

Summary: net-misc/ntp-4.2.8_p10-r1 ntpd does not set time
Product: Gentoo Linux Reporter: Manuel Garcia Wolff <manuel.gwolff>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /etc/ntp.conf

Description Manuel Garcia Wolff 2017-12-17 21:55:10 UTC
On my system, ntpd from net-misc/ntp-4.2.8_p10-r1 does not set the time.

Steps to reproduce:

1. Set the clock to some seconds off, e.g. using "date --set".

2. Restart nptd:
$ /etc/init.d/ntpd restart

3. Wait for a while and check if the date has been fixed. You can also check /var/log/everything/current for a message such as: 
Dec 17 16:32:32 [ntpd] ntpd: time set +18.479243 s

For me, ntpd never sets the time.
However, I can successfully set the time using /etc/init.d/ntp-client.

I can also set the time using ntpd by passing the -q option. For example:

# /usr/sbin/ntpd -q -g

If I pass the -q option, the time gets set successfully.
If I do not pass the -q option, then the time never gets set.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-22 15:56:20 UTC
Is your /etc/ntp.conf changed in any way from the default?
Comment 2 Manuel Garcia Wolff 2017-12-22 16:52:03 UTC
No, no changes. I attached the file in case you would like to review it.
Comment 3 Manuel Garcia Wolff 2017-12-22 16:54:06 UTC
Created attachment 511488 [details]
/etc/ntp.conf