我有个问题。有类似的消息
Mar 1 15:52:34 ubuntu systemd[1]: Time has been changed
Mar 1 15:52:34 ubuntu systemd[1]: snapd.refresh.timer: Adding 1h 16min 25.978183s random time.
Mar 1 15:52:34 ubuntu systemd[1]: apt-daily.timer: Adding 8h 21min 914.167ms random time.
Mar 1 15:52:34 ubuntu systemd[6041]: Time has been changed
每5秒在/ var / log / syslog中。看起来有些事情在不断改变时间。这真的很烦人,我知道有什么不对劲,想解决一下。另外,RTC时间也不正确。
有关我的系统的一些信息:
- 在VDS上运行的Ubuntu 16.04、4.4.0-64-通用,x86_64
timedatectl
:
Local time: Ср 2017-03-01 16:05:03 MSK
Universal time: Ср 2017-03-01 13:05:03 UTC
RTC time: Пт 2017-03-03 11:33:10
Time zone: Europe/Moscow (MSK, +0300)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
iptables
:
Chain INPUT (policy DROP)
Chain OUTPUT (policy ACCEPT)
该INPUT
链在我的规则。
systemctl list-units | grep running
acpid.path loaded active running ACPI Events Check
init.scope loaded active running System and Service Manager
acpid.service loaded active running ACPI event daemon
asterisk.service loaded active running Asterisk PBX
atd.service loaded active running Deferred execution scheduler
cron.service loaded active running Regular background program processing daemon
dbus.service loaded active running D-Bus System Message Bus
getty@tty1.service loaded active running Getty on tty1
hv-kvp-daemon.service loaded active running Hyper-V KVP Protocol Daemon
hv-vss-daemon.service loaded active running Hyper-V VSS Protocol Daemon
iscsid.service loaded active running iSCSI initiator daemon (iscsid)
lvm2-lvmetad.service loaded active running LVM2 metadata daemon
lxcfs.service loaded active running FUSE filesystem for LXC
mdadm.service loaded active running LSB: MD monitoring daemon
mysql.service loaded active running MySQL Community Server
openvpn@server.service loaded active running OpenVPN connection to server
rsyslog.service loaded active running System Logging Service
snapd.service loaded active running Snappy daemon
ssh.service loaded active running OpenBSD Secure Shell server
systemd-journald.service loaded active running Journal Service
systemd-timesyncd.service loaded active running Network Time Synchronization
systemd-udevd.service loaded active running udev Kernel Device Manager
user@1000.service loaded active running User Manager for UID 1000
vpsguard.service loaded active running VPSGUARD
acpid.socket loaded active running ACPID Listen Socket
dbus.socket loaded active running D-Bus System Message Bus Socket
lvm2-lvmetad.socket loaded active running LVM2 metadata daemon socket
snapd.socket loaded active running Socket activation for snappy daemon
我曾尝试:
sudo systemctl stop systemd-timesyncd.service
- 安装/卸载NTP
sudo hwclock -w
我没有安装sclockadj。我也问我的VDS提供者是否阻止了任何NTP请求。不,他们没有。
更新1
我完全相同地设置了另一个VDS#2。systemd[1]: Time has been changed
出现此消息几分钟后,问题消息CRON[3684]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
已经消失了。但是,我已尝试升级VDS#2,并且在重启后立即更改了该时间。
找到了这个线程,也许它可以提供更多的信息。看起来这是一个内核问题。
试图降级内核,systemd,udev,但此操作无济于事。从我的一些答复中可以看出,这不仅是我的托管者和虚拟化的问题。