You are not logged in.

#1 2014-05-11 04:23:13

vanja_z
Member
Registered: 2012-04-11
Posts: 42

NTP 4.2.7p441-1 "No association ID's returned"

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

#2 2014-05-11 05:47:07

AstroProfundis
Member
From: Hangzhou, China
Registered: 2014-05-09
Posts: 5
Website

Re: NTP 4.2.7p441-1 "No association ID's returned"

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

#3 2014-06-10 18:25:29

ratcheer
Member
Registered: 2011-10-09
Posts: 912

Re: NTP 4.2.7p441-1 "No association ID's returned"

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

#4 2014-06-10 18:44:30

ratcheer
Member
Registered: 2011-10-09
Posts: 912

Re: NTP 4.2.7p441-1 "No association ID's returned"

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

#5 2014-12-10 22:05:31

antisilent
Member
From: San Francisco, CA
Registered: 2014-12-10
Posts: 1

Re: NTP 4.2.7p441-1 "No association ID's returned"

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

#6 2014-12-11 14:35:42

ratcheer
Member
Registered: 2011-10-09
Posts: 912

Re: NTP 4.2.7p441-1 "No association ID's returned"

Thanks for the tip, antisilent, but I still get "No association ID's returned".

Tim

Offline

#7 2014-12-28 22:53:04

iic1tls
Member
Registered: 2014-12-28
Posts: 1

Re: NTP 4.2.7p441-1 "No association ID's returned"

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

#8 2015-07-01 15:03:07

jdros
Member
Registered: 2015-07-01
Posts: 1

Re: NTP 4.2.7p441-1 "No association ID's returned"

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

#9 2017-09-01 18:27:15

hablutzel1
Member
Registered: 2017-09-01
Posts: 3

Re: NTP 4.2.7p441-1 "No association ID's returned"

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

#10 2017-09-01 18:37:15

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: NTP 4.2.7p441-1 "No association ID's returned"

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

Board footer

Powered by FluxBB