I'm trying to synchronize time on my Intel NUC that is running Ubuntu 16.04.3 LTS with an NTP server that is running on a Windows PC.
I already checked that the NTP server is running correctly.
It seems to me as if the service doesn't read from the config file /etc/systemd/timesyncd.conf
Output of timedatectl status
Local time: Wed 2019-01-16 21:32:01 CET
Universal time: Wed 2019-01-16 20:32:01 UTC
RTC time: Wed 2019-01-16 20:32:01
Time zone: Europe/Vienna (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no
Output of systemctl status systemd-timesyncd
right after systemctl restart systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor pr
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: active (running) since Wed 2019-01-16 21:36:08 CET; 11s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 2316 (systemd-timesyn)
Status: "Idle."
CGroup: /system.slice/systemd-timesyncd.service
└─2316 /lib/systemd/systemd-timesyncd
Jan 16 21:36:08 coretv systemd[1]: Starting Network Time Synchronization...
Jan 16 21:36:08 coretv systemd[1]: Started Network Time Synchronization.
My config file in /etc/systemd/timesyncd.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.
[Time]
NTP=192.168.20.1
#FallbackNTP=ntp.ubuntu.com
If it changes anything, all commands are run as root over an ssh connection.
Is there something I'm missing?
Edit:
I don't have time to play around with this issue anymore. I will use a workaround on my end so I don't have to rely on the system time.
Answers are still appreciated since fixing this would be a much cleaner solution.
ntp.conf
file you would putserver 192.168.20.1
– Terrance Jan 16 '19 at 14:17