Hi NTP Community, this is my first post. I’m a NTP server operator for quite some time now. Running Ubuntu, haven’t needed to join the forum before today.
I’m trying to add a Debian10 server to the pool but i’m having a problem setting up ntp.
There seems to be a conflict between ntpd and systemd-timesyncd.
Here’s some lines, do you have an idea how I could fix this?
# systemctl status ntp.service
● ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enab
Active: active (running) since Tue 2020-01-21 15:59:12 EST; 1min 43s ago
Docs: man:ntpd(8)
Process: 3147 ExecStart=/usr/lib/ntp/ntp-systemd-wrapper (code=exited, status=
Main PID: 3153 (ntpd)
Tasks: 2 (limit: 4671)
Memory: 1.6M
CGroup: /system.slice/ntp.service
└─3153 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -c /run/ntp.conf.dhcp -
Jan 21 15:59:12 ntpd[3153]: Listen and drop on 0 v6wildcard [::]:123
Jan 21 15:59:12 ntpd[3153]: Listen and drop on 1 v4wildcard 0.0.0.0:
Jan 21 15:59:12 ntpd[3153]: Listen normally on 2 lo 127.0.0.1:123
Jan 21 15:59:12 ntpd[3153]: Listen normally on 3 ens2 10.68.182.15:1
Jan 21 15:59:12 ntpd[3153]: Listen normally on 4 lo [::1]:123
Jan 21 15:59:12 ntpd[3153]: Listen normally on 5 ens2 [2001:bc8:608:
Jan 21 15:59:12 ntpd[3153]: Listen normally on 6 ens2 [fe80::dc1c:94
Jan 21 15:59:12 ntpd[3153]: Listening on routing socket on fd #23 fo
Jan 21 15:59:12 ntpd[3153]: kernel reports TIME_ERROR: 0x2041: Clock
Jan 21 15:59:12 ntpd[3153]: kernel reports TIME_ERROR: 0x2041: Clock
# systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled; vend
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: inactive (dead) since Tue 2020-01-21 15:56:03 EST; 13min ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 1755 (code=exited, status=0/SUCCESS)
Status: "Shutting down..."
Jan 21 13:49:28 systemd[1]: Starting Network Time Synchronization...
Jan 21 13:49:28 systemd[1]: Started Network Time Synchronization.
Jan 21 13:49:28 systemd-timesyncd[1755]: Synchronized to time server
Jan 21 15:56:03 systemd[1]: Stopping Network Time Synchronization...
Jan 21 15:56:03 systemd[1]: systemd-timesyncd.service: Succeeded.
Jan 21 15:56:03 systemd[1]: Stopped Network Time Synchronization.
lines 1-15/15 (END)
---
# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
*10.1.94.8 172.16.34.5 5 u 58 64 377 0.496 -0.248 2.158
10.1.94.9 .INIT. 16 u - 256 0 0.000 0.000 0.000
# systemctl show -p After,Before,Wants,WantedBy,Requres,RequiredBy,Conflicts,ConflictedBy ntp.service systemd-timesyncd.service
Wants=
RequiredBy=
WantedBy=multi-user.target
Conflicts=shutdown.target systemd-timesyncd.service
ConflictedBy=
Before=multi-user.target shutdown.target
After=sysinit.target network.target system.slice systemd-journald.socket basic.t
Wants=time-sync.target
RequiredBy=
WantedBy=
Conflicts=shutdown.target
ConflictedBy=ntp.service
Before=sysinit.target time-sync.target shutdown.target
After=systemd-journald.socket systemd-tmpfiles-setup.service systemd-remount-fs.
# ps aux | grep "time\|ntp"
ntp 3153 1.1 0.1 77052 4292 ? Ssl 15:59 0:09 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -c /run/ntp.conf.dhcp -u 107:113
root 3262 0.0 0.0 6212 884 pts/1 S+ 16:12 0:00 grep time\|ntp