Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. NTP Zeit für iobroker

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    NTP Zeit für iobroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @TH G last edited by

      @TH-G Raspberry Pi OS?
      Da die Kiste keine RTC verbaut hat muss die Zeit ohnehin immer von einem ntp Server gezogen werden. Da musst du eigentlich nix selber einstellen.

      1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @TH G last edited by

        @TH-G sagte:

        Ich bekomme aber leider nicht den NTP Service gestartet.

        Was hast Du versucht ?

        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @TH G last edited by

          @TH-G

          sudo timedatectl set-ntp true
          

          mal probiert?

          TH G 1 Reply Last reply Reply Quote 0
          • TH G
            TH G @Thomas Braun last edited by TH G

            @Thomas-Braun

            Ja ich habe alle gängigen Dinge die ich finden konnte gemacht.

            Irgendetwas muss ich mir zerschossen haben.

            Ich bin hiernach vorgegangen:

            https://blog.doenselmann.com/uhrzeit-ueber-systemd-timesyncd-synchronisieren/

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @TH G last edited by

              @TH-G Rückmeldungen wenn du obigen Befehl absetzt?
              Ggf. muss da dann rebootet werden.

              TH G 1 Reply Last reply Reply Quote 0
              • TH G
                TH G @Thomas Braun last edited by

                @Thomas-Braun

                Habe ich gemacht es ändert sich nichts

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @TH G last edited by

                  @TH-G Tja, mit supergeheimen top-secret Systemen ist das so eine Sache... Da du ja keine Konsolenreaktionen posten darfst wird das schwierig

                  TH G 1 Reply Last reply Reply Quote 0
                  • TH G
                    TH G @Thomas Braun last edited by

                    @Thomas-Braun

                    Was möchtest du denn sehen?

                    Thomas Braun Fenian 2 Replies Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @TH G last edited by

                      @TH-G Ich hatte doch nur eine Zeile vorgeschlagen. Wie wäre es mit der?

                      TH G 1 Reply Last reply Reply Quote 0
                      • TH G
                        TH G @Thomas Braun last edited by TH G

                        @Thomas-Braun

                        pi@rpi4-iobroker:~ $ timedatectl
                                       Local time: Mi 2020-09-16 23:40:50 CEST
                                   Universal time: Mi 2020-09-16 21:40:50 UTC
                                         RTC time: n/a
                                        Time zone: Europe/Berlin (CEST, +0200)
                        System clock synchronized: no
                                      NTP service: inactive
                                  RTC in local TZ: no
                        pi@rpi4-iobroker:~ $ sudo timedatectl set-ntp true
                        pi@rpi4-iobroker:~ $ timedatectl
                                       Local time: Mi 2020-09-16 23:42:54 CEST
                                   Universal time: Mi 2020-09-16 21:42:54 UTC
                                         RTC time: n/a
                                        Time zone: Europe/Berlin (CEST, +0200)
                        System clock synchronized: no
                                      NTP service: inactive
                                  RTC in local TZ: no
                        pi@rpi4-iobroker:~ $ 
                        
                        

                        und auch mit einem sudo reboot ändert sich nichts

                        1 Reply Last reply Reply Quote 0
                        • Fenian
                          Fenian @TH G last edited by

                          @TH-G Läuft timesync denn?

                          sudo systemctl status systemd-timesyncd.service
                          
                          TH G 1 Reply Last reply Reply Quote 0
                          • TH G
                            TH G @Fenian last edited by TH G

                            @Fenian sagte in NTP Zeit für iobroker:

                            sudo systemctl status systemd-timesyncd.service

                            pi@rpi4-iobroker:~ $ sudo systemctl status systemd-timesyncd.service
                            Warning: The unit file, source configuration file or drop-ins of systemd-timesyn
                            ● systemd-timesyncd.service - Network Time Synchronization
                               Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendo
                              Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
                                       └─disable-with-time-daemon.conf
                               Active: inactive (dead)
                            Condition: start condition failed at Wed 2020-09-16 23:42:49 CEST; 4min 9s ago
                                       └─ ConditionFileIsExecutable=!/usr/sbin/ntpd was not met
                                 Docs: man:systemd-timesyncd.service(8)
                            
                            Sep 16 23:40:26 rpi4-iobroker systemd[1]: Condition check resulted in Network Ti
                            Sep 16 23:42:49 rpi4-iobroker systemd[1]: Condition check resulted in Network Ti
                            lines 1-12/12 (END)
                            
                            

                            Das sagt mir jetzt nicht so viel aber da scheint ja was nicht zu stimmen.

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @TH G last edited by Thomas Braun

                              @TH-G Bitte keine Screenshots, bei denen dann auch noch die Hälfte fehlt.
                              Text-Ausgaben auch als Text in CodeTags hier rein posten.

                              TH G 1 Reply Last reply Reply Quote 0
                              • TH G
                                TH G @Thomas Braun last edited by TH G

                                @Thomas-Braun

                                Sorry deine Antwort verstehe ich nicht. Ich kopiere das aus der Konsole/Terminal hier rein. Bitte sage mir genau was ich für dich machen muss, denn ich bin leider nur Anwender.

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @TH G last edited by Thomas Braun

                                  @TH-G

                                  ConditionFileIsExecutable=!/usr/sbin/ntpd was not met
                                  

                                  Da hast du irgendwas in den Einstellungen auf /usr/sbin/ntpd gelinkt.
                                  Die Datei gibt es aber auf meinem laufenden System gar nicht:

                                  Last login: Wed Sep 16 23:55:03 2020 from 192.168.178.21
                                  pi@raspberrypi:~ $ ls -la /usr/sbin/n
                                  newusers   nfnl_osf   nfsidmap   nfsiostat  nfsstat    nologin
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • Fenian
                                    Fenian last edited by

                                    @TH-G

                                    Condition: start condition failed at Wed 2020-09-16 23:42:49 CEST; 4min 9s ago
                                               └─ ConditionFileIsExecutable=!/usr/sbin/ntpd was not met
                                    

                                    Sieht mir nach einem Konflikt von ntpd und systemd-timesyncd
                                    Hatte ich auch schon.
                                    Da waren noch Reste von ntpd verhanden

                                    apt purge ntp
                                    

                                    Danach /etc/systemd/timesyncd.conf konfigurien und

                                    systemctl restart systemd-timesyncd.service 
                                    

                                    dann

                                    timedatectl set-ntp true
                                    
                                    TH G 1 Reply Last reply Reply Quote 0
                                    • TH G
                                      TH G @Fenian last edited by TH G

                                      @Fenian

                                      DANKE das wars!

                                      Fenian Thomas Braun 2 Replies Last reply Reply Quote 0
                                      • Fenian
                                        Fenian @TH G last edited by

                                        @TH-G
                                        Freut mich,wenn ich helfen konnte

                                        1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @TH G last edited by

                                          @TH-G Das System mal von einer Vorversion upgegradet?
                                          Denn auf einer frischen Installation ist ntp nicht installiert:

                                          pi@raspberrypi:~ $ apt policy ntp
                                          ntp:
                                            Installiert:           (keine)
                                            Installationskandidat: 1:4.2.8p12+dfsg-4
                                            Versionstabelle:
                                               1:4.2.8p12+dfsg-4 500
                                                  500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                          pi@raspberrypi:~ $
                                          
                                          TH G 1 Reply Last reply Reply Quote 0
                                          • TH G
                                            TH G @Thomas Braun last edited by TH G

                                            @Thomas-Braun

                                            Ich hatte NTP installiert weil ich den Fehler nicht finden konnte und dachte, eventuell geht es damit. Mit dem Befehl aus der oben aufgeführten Website/Blog wollte ich dann NTP wieder stoppen aber das ging ja dann in die Hose.

                                            sudo systemctl stop ntp && sudo systemctl disable ntp
                                            

                                            Nochmals danke für die Hilfe.

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            741
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            ntp
                                            4
                                            23
                                            1543
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo