chrony error: 506 Cannot talk to daemon

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • chrony

Issue

  • chronyc throws error as shown below:
[root@node-0 ~]# chronyc sources
506 Cannot talk to daemon

Resolution

  • Start chronyd service.
# systemctl start chronyd
  • Comment out below parameters in "/etc/chrony.conf" file if present:
port 0
cmdport 0
  • Then restart chronyd service.
# systemctl restart chronyd

Diagnostic Steps

  • Verify the status of chronyd service. Chronyd service in Inactive state.
[root@node-0 ~]# systemctl status chronyd
● chronyd.service - NTP client/server
   Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2023-09-12 01:31:25 EDT; 3s ago
     Docs: man:chronyd(8)
           man:chrony.conf(5)
  Process: 569 ExecStartPost=/usr/libexec/chrony-helper update-daemon (code=exited, status=0/SUCCESS)
  Process: 550 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 566 (code=exited, status=0/SUCCESS)
  • Verify if port 0 and cmdport 0 parameters are added in the /etc/chrony.conf file.
$ cat /etc/chrony.conf |grep -E 'port|cmdport'
  • Component
  • ntp

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments