Re: [chrony-users] 506 Cannot talk to daemon |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] 506 Cannot talk to daemon
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Fri, 28 Apr 2017 15:11:11 +0200
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=mlichvar@xxxxxxxxxx
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com E77777F7DD
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E77777F7DD
On Fri, Apr 28, 2017 at 01:51:18PM +0100, Benjamin Schnieders wrote:
> Ohhhhh.....
>
> Yes, connecting to chronyd over the network worked. Next thing, I tried
> connecting to itself using -h 127.0.0.1, which worked fine. Connecting to
> itself using its hostname, however, didn't work, which finally pushed me in
> the right direction:
> in /etc/hosts, there was an entry
> 127.0.1.1 localhost
> which, as we all know, is not the default address for localhost. Setting it
> to 127.0.0.1 solved the issue. I guess chronyc defaults to "localhost", if
> no hostname is given. Then, I guess, in some other part of the software
> only 127.0.0.1 is allowed per default; not other loopback IP addresses.
The problem is that chronyd doesn't respond to chronyc from the same
IP address as it received the request. It's in the tcpdump output you
had in the original report, but nobody noticed :).
chronyd uses IP_PKTINFO on NTP sockets, but not cmdmon sockets.
Depending on how you look at it, it's either a missing feature or bug.
> In the end, this just explains the cronyc/cronyd communication
> difficulties, right? cronyd should have still run without issues...
Now that "chronyc sources" is working, you should see if it
is synchronized to its servers. If they are not reachable, there may
be a problem with firewall (e.g. your ISP may block NTP packets).
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.