Fedora 38 Zeit Sync. einstellen?

Gregorie

Lt. Commander
Registriert
Apr. 2017
Beiträge
1.056
Ich bekomme aktuell in den Fedora System-Protokollen Rubrik wichtig regelmäßig die Meldung:
chronyd: Could not add source 192.168.178.1 Priorität 3.
Hat was mit der Zeitsynchronisation zu tun oder?
192.168.178.1 ist meine FB 7530.
 
@FCK_PTN
Danke, sieht kompliziert aus.
Unter Gnome Desktop + Xorg, sieht der Code im Terminal so aus: (zuvor hatte ich eine Xfce Session statt dessen laufen)
Code:
chronyd.service - NTP client/server
     Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Sun 2023-08-27 18:28:33 CEST; 2min 46s ago
       Docs: man:chronyd(8)
             man:chrony.conf(5)
    Process: 911 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 974 (chronyd)
      Tasks: 1 (limit: 18913)
     Memory: 8.2M
        CPU: 46ms
     CGroup: /system.slice/chronyd.service
             └─974 /usr/sbin/chronyd -F 2

Aug 27 18:28:33 MyFedoraWS systemd[1]: Starting chronyd.service - NTP client/server...
Aug 27 18:28:33 MyFedoraWS chronyd[974]: chronyd version 4.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +>
Aug 27 18:28:33 MyFedoraWS chronyd[974]: Loaded 0 symmetric keys
Aug 27 18:28:33 MyFedoraWS chronyd[974]: Frequency -19.096 +/- 0.110 ppm read from /var/lib/chrony/drift
Aug 27 18:28:33 MyFedoraWS chronyd[974]: Using right/UTC timezone to obtain leap second data
Aug 27 18:28:33 MyFedoraWS chronyd[974]: Loaded seccomp filter (level 2)
Aug 27 18:28:33 MyFedoraWS systemd[1]: Started chronyd.service - NTP client/server.
Aug 27 18:28:59 MyFedoraWS chronyd[974]: Could not add source 192.168.178.1
Aug 27 18:29:03 MyFedoraWS chronyd[974]: Selected source 192.168.178.1 (_gateway)
Aug 27 18:29:03 MyFedoraWS chronyd[974]: System clock TAI offset set to 37 seconds

Wo kann ich denn die NTP Server, die verwendet weren sollen bei Fedora eintragen?
 
Alles klar.
Ist nicht viel:
at /etc/chrony.conf
# These servers were defined in the installation:
server _gateway iburst

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (https://www.pool.ntp.org/join.html).

# Use NTP servers from DHCP.
sourcedir /run/chrony-dhcp

# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift

# Allow the system clock to be stepped in the first three updates
# if its offset is larger than 1 second.
makestep 1.0 3

# Enable kernel synchronization of the real-time clock (RTC).
rtcsync

# Enable hardware timestamping on all interfaces that support it.
#hwtimestamp *

# Increase the minimum number of selectable sources required to adjust
# the system clock.
#minsources 2

# Allow NTP client access from local network.
#allow 192.168.0.0/16

# Serve time even if not synchronized to a time source.
#local stratum 10

# Require authentication (nts or key option) for all NTP sources.
#authselectmode require

# Specify file containing keys for NTP authentication.
keyfile /etc/chrony.keys

# Save NTS keys and cookies.
ntsdumpdir /var/lib/chrony

# Insert/delete leap seconds by slewing instead of stepping.
#leapsecmode slew

# Get TAI-UTC offset and leap seconds from the system tz database.
leapsectz right/UTC

# Specify directory for log files.
logdir /var/log/chrony

# Select which information is logged.
#log measurements statistics tracking
 
Gregorie schrieb:
# Allow NTP client access from local network.
#allow 192.168.0.0/16
Nimm bitte einmal testweise die Raute vor allow 192.168.0.0/16 weg und ersetze die IP durch die 192.168.178.1. Du kannst die alte Conf natürlich vorher sichern, bei der kleinen Änderung kann man das aber im Zweifel (oder einem Mißerfolg) schnell wieder herstellen.
 
Das hat noch keine Veränderung gebracht.
Ich google noch, woran das liegen kann und ob überhaupt aktuell die Zeit korrekt online synchronisiert wird.
Was sagt mir das?
Code:
yFedoraWS ~]$ timedatectl
               Local time: So 2023-08-27 21:36:29 CEST
           Universal time: So 2023-08-27 19:36:29 UTC
                 RTC time: So 2023-08-27 21:36:29
                Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
         This mode cannot 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'.

Aber dem chrony Dämon passt irgendwas nicht.
 
na das würd ich nicht machen, seine Zeitzone ist ja Europa CEST, +0200

mmn passt alles, und der eine Service spackt halt rum, ist aber kein Problem im eigentlichen Sinn. Vermutlich ist es manchmal einfacher nicht alles in den Logs zu verfolgen ;-)
 
netzgestaltung schrieb:
mmn passt alles, und der eine Service spackt halt rum, ist aber kein Problem im eigentlichen Sinn.
Naja... Das ist schon ein Problem. Unerwartetes Verhalten bei Software...

Ich spiele seit einiger Zeit mit dem Gedanken systemd zu verlassen. In meinem Kopf wird die gute alte Zeit wieder sehr gut. :freak:
 
@LochinSocke
Ich habe mir das ganze SYSTEMD Zeug und Gnome 3.0 erspart.
War zwar 2 Wochen ARbeit 2006 Gentoo Linux sinnerfassend die Dokumentation zu lesen.
Ist immer noch dieselbe Installation von wo ich aus schreibe.
gentoo is about choice.
Ich habe openrc / eudev anstatt systemd. Obwohl eines der Pakete auch irgendetwas mit systemd-utils bezeichnet wird. Sehe gerade eudev ist nicht mehr im System hinterlegt.

--

Zeit sollte NTP Protokoll sein.
 
@_roman_ Gentoo habe ich auch. Deshalb sagte ich systemd verlassen, woanders ist das etwas problematisch bis zu unmöglich.

Grundsätzlich läuft systemd gut bei mir. Ab und zu kommt aber was seltsames, letzens hatte ich Probleme mit DNS. Meines konnte nicht auflösen, dann hat systemd ungefragt einen nicht von mir hinterlegten Defaultserver genommen.
 
Zurück
Oben