'timedatectl' and 'hostnamectl' command fails with error "Failed to query server: Could not activate remote peer." after starting a third party service (ipmdns.service).
Issue
timedatectlandhostnamectlcommand fails to run after running third-party service (ipmdns.service).- Below is the error while running
timedatectl.
# timedatectl
Failed to query server: Could not activate remote peer.
- We also see below services in failed state.
[root@host ~]# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-hostnamed.service loaded failed failed Hostname Service
● systemd-timedated.service loaded failed failed Time & Date Service
Environment
- Red Hat Enterprise Linux (RHEL)
- 7
- 8
- 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.