Bug#863038: Fwd: Re: Bug#863038: systemd-timesyncd ignores FallbackNTP config setting
Marcus Jodorf
m at bogomips.de
Sat May 20 23:13:18 BST 2017
Hi Michael,
sure, no problem.
$ ls /usr/lib/systemd/timesyncd.conf.d/*.conf
ls: cannot access '/usr/lib/systemd/timesyncd.conf.d/*.conf': No such
file or directory
$ ls /run/systemd/timesyncd.conf.d/*.conf
ls: cannot access '/run/systemd/timesyncd.conf.d/*.conf': No such file
or directory
$ ls /etc/systemd/timesyncd.conf.d/*.conf
ls: cannot access '/etc/systemd/timesyncd.conf.d/*.conf': No such file
or directory
$ls /etc/systemd/timesyncd.conf
/etc/systemd/timesyncd.conf
$cat /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=
FallbackNTP=0.de.pool.ntp.org 1.de.pool.ntp.org 2.de.pool.ntp.org
3.de.pool.ntp.org
$
#systemd-analyze set-log-level debug
#systemctl restart systemd-timesyncd
#journalctl -u systemd-timesyncd.service
-- Logs begin at Sat 2017-05-20 23:27:54 CEST, end at Sat 2017-05-20
23:46:45 CEST. --
May 20 23:27:54 black systemd[1]: Starting Network Time Synchronization...
May 20 23:27:54 black systemd[1]: Started Network Time Synchronization.
May 20 23:28:29 black systemd-timesyncd[534]: Synchronized to time
server 91.198.10.4:123 (2.debian.pool.ntp.org).
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Trying to
enqueue job systemd-timesyncd.service/restart/replace
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Installed
new job systemd-timesyncd.service/restart as 1381
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Enqueued
job systemd-timesyncd.service/restart as 1381
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Changed
running -> stop-sigterm
May 20 23:46:44 black systemd[1]: Stopping Network Time Synchronization...
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 534 (WATCHDOG=1)
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 534 (STOPPING=1, STATUS=Shutting down...)
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 534 (STATUS=Idle.)
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 534 (STATUS=Idle.)
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 534 (STATUS=Idle.)
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Child 534
belongs to systemd-timesyncd.service
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Main
process exited, code=exited, status=0/SUCCESS
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Changed
stop-sigterm -> dead
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Job
systemd-timesyncd.service/restart finished, result=done
May 20 23:46:44 black systemd[1]: Stopped Network Time Synchronization.
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Converting
job systemd-timesyncd.service/restart -> systemd-timesyncd.service/start
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: cgroup is empty
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service:
ConditionFileIsExecutable=!/usr/sbin/VBoxService succeeded.
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service:
ConditionFileIsExecutable=!/usr/sbin/chronyd succeeded.
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service:
ConditionFileIsExecutable=!/usr/sbin/openntpd succeeded.
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service:
ConditionFileIsExecutable=!/usr/sbin/ntpd succeeded.
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service:
ConditionVirtualization=!container succeeded.
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service:
ConditionCapability=CAP_SYS_TIME succeeded.
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Passing 0
fds to service
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: About to
execute: /lib/systemd/systemd-timesyncd
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Forked
/lib/systemd/systemd-timesyncd as 4195
May 20 23:46:44 black systemd[1]: systemd-timesyncd.service: Changed
dead -> start
May 20 23:46:44 black systemd[1]: Starting Network Time Synchronization...
May 20 23:46:45 black systemd[4195]: systemd-timesyncd.service:
Executing: /lib/systemd/systemd-timesyncd
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 4195 (WATCHDOG=1)
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 4195 (READY=1, STATUS=Daemon is running)
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Changed
start -> running
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Job
systemd-timesyncd.service/start finished, result=done
May 20 23:46:45 black systemd[1]: Started Network Time Synchronization.
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Failed to
send unit change signal for systemd-timesyncd.service: Connection reset
by peer
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 4195 (STATUS=Idle.)
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Failed to
send unit change signal for systemd-timesyncd.service: Transport
endpoint is not connected
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 4195 (STATUS=Idle.)
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 4195 (STATUS=Idle.)
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 4195 (STATUS=Connecting to time server
77.243.43.213:123 (0.debian.pool.ntp.org).)
May 20 23:46:45 black systemd-timesyncd[4195]: Synchronized to time
server 77.243.43.213:123 (0.debian.pool.ntp.org).
May 20 23:46:45 black systemd[1]: systemd-timesyncd.service: Got
notification message from PID 4195 (STATUS=Synchronized to time server
77.243.43.213:123 (0.debian.pool.ntp.org).)
If I set other servers as fallback like for example "ptbtime1.ptb.de
ptbtime2.ptb.de" the result is the same.
But if I set the "NTP=" setting then this setting is respected. Only
"FallbackNTP=" is not working.
The system is running network-manager and there are no manual network
settings. DHCP is not announcing any time servers.
Please tell me if you need more information and how I should provide it
if necessary.
Best regards,
Marcus Jodorf
On 05/20/2017 05:34 PM, Michael Biebl wrote:
> Am 20.05.2017 um 16:20 schrieb Marcus Jodorf:
>> Package: systemd
>> Version: 232-23
>> Severity: normal
>>
>>
>> systemd-timesyncd ignores FallbackNTP
>> config settings in /etc/systemd/timesyncd.conf
>>
>> If FallbackNTP is set and no other configuration is existing
>> in all the other places listed in timesyncd.conf(5) manpage,
>> it instead falls back to compiled-in ntp servers
>> (0.debian.pool.ntp.org and so on).
>>
> Can you place share your complete configuration and then provide a debug
> log:
> systemd-analyze set-log-level debug
> systemctl restart systemd-timesyncd
> journalctl -u systemd-timesyncd.service
>
> Regards,
> Michael
>
>
More information about the Pkg-systemd-maintainers
mailing list