[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can not set time



please check that other box and see if it has systemd-timesyncd.service on it.
You can probably start that service up and solve that problem.
Then try timedatectl set-ntp true.
That should make timesync happen on boot.
On Sat, 4 Feb 2017, Matthias Bodenbinder wrote:

Date: Sat, 4 Feb 2017 08:07:16
From: Matthias Bodenbinder <matthias@bodenbinder.de>
To: debian-user@lists.debian.org
Subject: can not set time
Resent-Date: Sat,  4 Feb 2017 13:07:40 +0000 (UTC)
Resent-From: debian-user@lists.debian.org

Hi,

I have a weird issue with one of my debian boxes (LMDE): I can not set the time. The time is off by ca. 14 min and whatever I try to fix it is failing. I tried ntp, ntpdate, date and rdate. Nothing helps.

ntpdate shows the offset but is not fixing it.

91# ntpdate 0.debian.pool.ntp.org
4 Feb 14:03:55 ntpdate[8159]: step time server 85.114.132.52 offset -855.296824 sec


rdate is showing some interesting behaviour. If I run a command like "date && rdate -v  ptbtime1.ptb.de && date" to see the time before and after rdate, the output suggests that rdate was successful:

81# date && rdate -v  ptbtime1.ptb.de && date
Sat Feb  4 14:16:04 CET 2017
Sat Feb  4 14:01:49 CET 2017
rdate: adjust local clock by -855 seconds
Sat Feb  4 14:01:49 CET 2017

But in fact 1 second later the time is back to old values again:

82# date
Sat Feb  4 14:16:06 CET 2017


timedatectl is showing wrong time as well:

93# timedatectl
     Local time: Sat 2017-02-04 14:20:39 CET
 Universal time: Sat 2017-02-04 13:20:39 UTC
       RTC time: Sat 2017-02-04 13:20:39
      Time zone: Europe/Berlin (CET, +0100)


But is should be:
     Local time: Sa 2017-02-04 14:06:25 CET
 Universal time: Sa 2017-02-04 13:06:25 UTC
       RTC time: Sa 2017-02-04 13:06:25
      Time zone: Europe/Berlin (CET, +0100)


I am lost.

Matthias








--


Reply to: