Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] Plasma 5.7 Systemzeit geht 5min vor...  (Read 1593 times)

Offline Lanzi

  • User
  • Posts: 1.779
[DE] Plasma 5.7 Systemzeit geht 5min vor...
« on: 2016/09/21, 15:30:16 »
bemerke seit einiger Zeit, das meine Systemzeit, von Plasma unten rechts angezeigt, falsch ist. die Uhr geht ca. 5min vor.
Das Widget hat die Option "Systemzeit automatisch stellen" aktiviert.

Fehlt mir irgendein Paket?

Offline bluelupo

  • User
  • Posts: 2.068
    • BluelupoMe
Re: Plasma 5.7 Systemzeit geht 5min vor...
« Reply #1 on: 2016/09/21, 20:05:23 »
Hi Lanzi,

läuft der systemd-timesyncd korrekt?

Code: [Select]
# systemctl status systemd-timesyncd.service

Was sagt timedatectl?


Offline Lanzi

  • User
  • Posts: 1.779
Re: Plasma 5.7 Systemzeit geht 5min vor...
« Reply #2 on: 2016/09/22, 14:27:17 »
ja, das ist ne heiße Spur:

Code: [Select]
~$ systemctl status systemd-timesyncd.service

● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
           └─disable-with-time-daemon.conf

   Active: inactive (dead)

Condition: start condition failed at Mi 2016-09-21 08:16:41 CEST; 1 day 6h ago
     Docs: man:systemd-timesyncd.service(8)


also tot.

Code: [Select]
h@hal:~$ timedatectl
      Local time: Do 2016-09-22 14:30:23 CEST
  Universal time: Do 2016-09-22 12:30:23 UTC
        RTC time: Do 2016-09-22 14:30:24
       Time zone: Europe/Berlin (CEST, +0200)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
         This mode can not be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.


Offline jure

  • User
  • Posts: 635
Re: Plasma 5.7 Systemzeit geht 5min vor...
« Reply #3 on: 2016/09/22, 17:47:22 »
läuft hier auch nicht
Code: [Select]
systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
           └─disable-with-time-daemon.conf
   Active: inactive (dead)
Condition: start condition failed at Di 2016-09-20 20:02:39 CEST; 1 day 21h ago
     Docs: man:systemd-timesyncd.service(8)

aber die Zeit stimmt, da NTP aktiv ist

Code: [Select]
timedatectl
      Local time: Do 2016-09-22 17:46:21 CEST
  Universal time: Do 2016-09-22 15:46:21 UTC
        RTC time: Do 2016-09-22 15:46:21
       Time zone: Europe/Berlin (CEST, +0200)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no

Gruss Juergen

Offline Lanzi

  • User
  • Posts: 1.779
Re: Plasma 5.7 Systemzeit geht 5min vor...
« Reply #4 on: 2016/09/22, 17:59:31 »
Das war der entscheidende Hinweis... ntp war nicht mehr installiert.
Keine Ahnung, wie der abhanden gekommen ist, aber nun ja, es geht wieder.
Danke!

Offline ayla

  • User
  • Posts: 1.744
Re: Plasma 5.7 Systemzeit geht 5min vor...
« Reply #5 on: 2016/09/22, 19:01:01 »
hmm...

Quote
cal@thendara:~$ apt-cache policy ntp
ntp:
  Installiert:           (keine)

  Installationskandidat: 1:4.2.8p8+dfsg-1
  Versionstabelle:
     1:4.2.8p8+dfsg-1 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages

cal@thendara:~$ systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
           └─disable-with-time-daemon.conf
   Active: active (running) since Do 2016-09-22 18:49:22 CEST; 2min 46s ago
     Docs: man:systemd-timesyncd.service(8)
 Main PID: 514 (systemd-timesyn)
   Status: "Synchronized to time server 176.9.82.67:123 (2.debian.pool.ntp.org)."
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/systemd-timesyncd.service
           └─514 /lib/systemd/systemd-timesyncd

Sep 22 18:49:22 thendara systemd[1]: Starting Network Time Synchronization...
Sep 22 18:49:22 thendara systemd[1]: Started Network Time Synchronization.
Sep 22 18:49:53 thendara systemd-timesyncd[514]: Synchronized to time server 176.9.82.67:123 (2.debian.pool.ntp.org).
cal@thendara:~$ timedatectl
      Local time: Do 2016-09-22 18:52:22 CEST
  Universal time: Do 2016-09-22 16:52:22 UTC
        RTC time: Do 2016-09-22 16:52:22
       Time zone: Europe/Berlin (CEST, +0200)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no
Gabs da nicht vor einiger Zeit Probleme mit dem ntp Paket und nen Thread mit der Empfehlung dies zu deinstallieren und systemd das ganze erledigen zu lassen?

Gruß
ayla

Offline bluelupo

  • User
  • Posts: 2.068
    • BluelupoMe
Re: Plasma 5.7 Systemzeit geht 5min vor...
« Reply #6 on: 2016/09/22, 19:47:50 »
systemd-timesyncd funktioniert nur wenn der networkd aktiv ist. NTP muss nicht installiert sein.

https://www.dinotools.de/2015/01/12/zeit-per-systemd-mit-timesyncd-synchronisieren/
https://wiki.archlinux.org/index.php/systemd-timesyncd
https://wiki.archlinux.de/title/Systemd/systemd-timesyncd

Du hättest nur folgendes tun müssen:

/etc/systemd/timesyncd.conf editieren:

Code: [Select]
[Time]
NTP=0.de.pool.ntp.org 1.de.pool.ntp.org 2.de.pool.ntp.org
FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org

Code: [Select]
# systemctl enable systemd-timesyncd.service
# systemctl start systemd-timesyncd.service
# timedatectl set-local-rtc 0
# timedatectl set-ntp true
# systemctl restart systemd-timesyncd.service
« Last Edit: 2016/09/22, 20:02:44 by bluelupo »