I have a problem. There are messages like
Mar 1 15:52:34 ubuntu systemd: Time has been changed Mar 1 15:52:34 ubuntu systemd: snapd.refresh.timer: Adding 1h 16min 25.978183s random time. Mar 1 15:52:34 ubuntu systemd: apt-daily.timer: Adding 8h 21min 914.167ms random time. Mar 1 15:52:34 ubuntu systemd: Time has been changed
every 5 seconds in /var/log/syslog. Looks like something is changing time constantly. It is really annoying and i understand that something wrong and would like to fix it. Also RTC time isn't correct.
Some info about my system:
- Ubuntu 16.04, 4.4.0-64-generic, x86_64, running on VDS
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
Chain INPUT (policy DROP) Chain OUTPUT (policy ACCEPT)
INPUT chain has my rules inside.
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 firstname.lastname@example.org 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 email@example.com 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 firstname.lastname@example.org 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
I have tried:
sudo systemctl stop systemd-timesyncd.service
- installing/uninstalling NTP
sudo hwclock -w
I don't have sclockadj installed. Also I asked my VDS provider if they block any NTP requests. No, they don't.
I set up another one VDS#2 completely the same.
systemd: Time has been changed was getting this message couple minutes, after that message
CRON: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) showed up and the problem has gone. However I have tried to upgrade VDS#2 and right after reboot have this time has been changed again.
Found this thread, maybe it can give more information. Looks like it's a kernel issue.
Tried to downgrade kernel, systemd, udev, but nothing from this doesn't work. And as I can see from some replies, it's not a problem with my hoster and virtualization only.