Hi all,
I'm having a little difficulty with chrony. I have two computers, one (slave, ubuntu 16.04) set up to sync to the other (master, ubuntu 14.04).
On slave, "sudo chronyc sources" works fine and returns me the master's hostname, also it appears to be syncing.
210 Number of sources = 1
^* master 10 6 17 43m -67ms[ -67ms] +/- 72ms
On master, "sudo chronyc sources" fails with error 506. I've dug a little, here's all the info I have:
- Chrony deamon is running, ps aux lists it, and a restart works without errors.
netstat reports nothing on port 123 (however, that's the same on slave), and puts out
udp 0 0 *:323 *:*
udp6 0 0 [::]:323 [::]:*
for port 323.
tcpdump reports the following activity during a "source" call:
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes
15:24:37.790275 IP 127.0.0.1.45817 > 127.0.1.1.323: UDP, length 36
15:24:37.790326 IP 127.0.0.1.323 > 127.0.0.1.45817: UDP, length 32
15:24:37.790337 IP 127.0.0.1.45817 > 127.0.1.1.323: UDP, length 36
15:24:37.790349 IP 127.0.0.1.323 > 127.0.0.1..45817: UDP, length 32
15:24:37.790356 IP 127.0.0.1.45817 > 127.0.1.1.323: UDP, length 36
15:24:37.790361 IP 127.0.0.1.323 > 127.0.0.1.45817: UDP, length 32
Which appears to be fine...?
There is no firewall installed on this system to my knowledge.
The configuration file is as follows (ubuntu 14.04 default, plus the annotated line, other comments removed)
keyfile /etc/chrony/chrony.keys
commandkey 1
driftfile /var/lib/chrony/chrony.drift
log tracking measurements statistics
logdir /var/log/chrony
maxupdateskew 100.0
dumponexit
dumpdir /var/lib/chrony
local stratum 10
allow 127.0.0.1 # added this in a desperate attempt
allow 10/8
allow 192.168/16
allow 172.16/12
logchange 0.5
rtconutc
In the end, I'm still having synchronization issues between both computers, so I assume adjusting the time on master is not working right.
Really looking forward to any suggestions :)
Best regards,
Benjamin