You are not logged in.
Pages: 1
Topic closed
Something is wrong with the latest NTP package. It's not working properly on any of the 4 computers I've got arch installed on. If you have the service enabled to start at boot using systemd and you try to check peers you get,
ntpq -p
No association ID's returned
However if you stop the service
systemctl stop ntpd
then start the daemon manually it works,
ntpd -u ntp:ntp
ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
andria.lnk.tels .STEP. 16 u - 64 0 0.000 0.000 0.000
y.ns.gin.ntt.ne 133.243.238.243 2 u - 64 0 0.000 0.000 0.000
cachens1.onqnet .STEP. 16 u 1504 64 0 0.000 0.000 0.000
What's more confusing is that after this procedure, the systemd service works as well
kill -9 [PID of ntpd you just launched]
systemctl start ntpd
ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
CPE-61-9-138-18 210.9.192.50 2 u 1 64 1 48.524 15.691 0.000
*ns1.deakin.edu. 169.254.0.1 3 u 1 64 1 22.859 15.187 0.000
y.ns.gin.ntt.ne .INIT. 16 u - 64 0 0.000 0.000 0.000
It seems there are some other problems with this version,
https://bbs.archlinux.org/viewtopic.php?id=181288
Does anyone have any insight?
Offline
I had seen this error message with an early version of `ntp-dev` from AUR, but not seeing it on present `ntp` package in [extra]. I think this is by somehow the ntpd daemon didn't started correctly so that ntpq is not able to communicate with it, hope this helps.
Offline
I am having the exact same problem, today. I did not install ntp from the AUR.
# ntpd --version
ntpd 4.2.7p441@1.2483-o Tue May 6 10:14:26 UTC 2014 (1)
I attempted to upgrade ntp, and pacman informed me that I already have the latest version. vanja_z's workaround also works for me.
Tim
Last edited by ratcheer (2014-06-10 18:27:46)
Offline
In a Debian forum, someone had the same problem and the solution was to run "dpkg-reconfigure ntp". Is there an analogous command in the Arch world? I searched, but could not find anything.
Tim
PS - Never mind. I simply reinstalled ntp (the same version) and the problem is fixed.
Last edited by ratcheer (2014-06-10 19:08:23)
Offline
Was having the same issue, but fixed it by removing the '-g' flag in the 'ExecStart' command in the ntpd.service file:
/etc/systemd/system/multi-user.target.wants/ntpd.service
ExecStart=/usr/bin/ntpd -u ntp:ntp
EDIT: FWIW, I'm using ntpd 4.2.7p465
Last edited by antisilent (2014-12-10 22:30:21)
Offline
Thanks for the tip, antisilent, but I still get "No association ID's returned".
Tim
Offline
I encountered this error too after installing NTP within UBUNTU 14.04.1 LTS...
Turns out that the security rights on the file:
/etc/ntp.conf
Must be set:
chmod 0644
If the file is set:
chmod 0640
This error is displayed.
Note that the file ownership is:
chown ntp.ntp
***
Seems like something wrong with the UPSTART startup functionality - seems like the startup is occurring as root, and then shifts the user/group to ntp.ntp, as is evidenced by a process list (ps).
Offline
I had the same issue on a RHEL/CentOS 6.x installation, with ntp-4.2.6p5-3.el6_6.x86_64.
ntpd was working fine when started manually, while it was returning "No association ID's returned" when started through service/init.d.
The issue was kind-of the same, as ntpd couldn't manage to access /etc/ntp.conf, due to SELinux missing/wrong context.
After reading this and enabled debugging on OPTIONS, I got the following, when starting up ntpd:
...
1 Jul 15:04:02 ntpd[26009]: getconfig: Couldn't open </etc/ntp.conf>
...
After restoring the SELinux context, ntpd is working as expected.
No more "No association ID's returned".
Thanks for the hint!
P.S.
Also from http://stackoverflow.com/questions/2322 … ion-status
Output meaning for "ntpq -np":
- "ntpq: read: Connection refused": then ntpd isn't running
- "No association ID's returned": the server address is invalid (or cannot be identified for our case ^^^)
- If the output contains ".INIT." then ntpd hasn't yet connected to the server
- If the output does NOT contain a line starting with "*" then we're querying the server
- Otherwise we're synchronized.
Offline
Check that output for:
cat /var/log/syslog | grep ntp
In my case I found:
Aug 29 14:29:22 tsa ntpd_intres[17469]: host name not found: 0.ubuntu.pool.ntp.org
Aug 29 14:29:22 tsa ntpd_intres[17469]: host name not found: 1.ubuntu.pool.ntp.org
Aug 29 14:29:22 tsa ntpd_intres[17469]: host name not found: 2.ubuntu.pool.ntp.org
Aug 29 14:29:22 tsa ntpd_intres[17469]: host name not found: 3.ubuntu.pool.ntp.org
Aug 29 14:29:22 tsa ntpd_intres[17469]: host name not found: ntp.ubuntu.com
Because I forgot to configure DNS servers appropriately.
Offline
Thank you for sharing, but please do not necrobump. It is worth noting that Arch does not use /var/log/syslog by default, so unless you have explicitly installed and configured syslog, your command will not return anything other than an error message about /var/log/syslog not existing.
Also see http://porkmail.org/era/unix/award.html
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed