Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Backup InfluxDB ioBroker

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Backup InfluxDB ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      danwir @Marc Berg last edited by danwir

      @marc-berg

      Ja der Pi4 hat einen anderen Admin Token, hab auch schon probiert nur für den Import den Pi3 Token zu verwenden ging auch nicht

      ich versuch mal paar Infos bereitzustellen:
      Backup läuft mit SMB3.0
      Datenbanken bzw. Bucket heist auf beiden Maschinen Absolut gleich

      Im Broker eim Restore auf dem Pi4 kommt: Error: {"errno":-3,"code":"Z_DATA_ERROR"}
      Log:
      Started restore ...
      [DEBUG] [influxDB] - Try deleting the old InfluxDB tmp directory
      [DEBUG] [influxDB] - InfluxDB old tmp directory was successfully deleted
      [DEBUG] [influxDB] - Created tmp directory
      [DEBUG] [influxDB] - Start infuxDB Restore ...
      [ERROR] [influxDB] - Error: incorrect header check
      [ERROR] [influxDB] - infuxDB Restore not completed
      [EXIT] 0
      [DEBUG] [influxDB] - influxdb.0 is stopped
      [DEBUG] [influxDB] - influxdb.1 is stopped
      [DEBUG] [influxDB] - influxdb.2 is stopped
      .

      Marc Berg 1 Reply Last reply Reply Quote 0
      • Marc Berg
        Marc Berg Most Active @danwir last edited by Marc Berg

        @danwir sagte in Backup InfluxDB ioBroker:

        Im Broker eim Restore auf dem Pi4 kommt: Error: {"errno":-3,"code":"Z_DATA_ERROR"}

        Das spricht für korrupte Backup-Dateien. Hast du die Möglichkeit, das Backup mal auszupacken und anzuschauen? Außerdem mach' mal ein "ls -la" in dem Verzeichnis, in welchem die Backups liegen und zeige mal das Ergebnis.

        D 1 Reply Last reply Reply Quote 0
        • D
          danwir @Marc Berg last edited by

          @marc-berg
          ich versuch mein bestes .. die Backup Dateien liegen auf einem NAS (WIN). Normal haben die PI`s komplette Berechtigung darauf. Aber ich cheke das mal gegen und öffne mal die gepackten Dateien.

          Guter Ansatz, danke schonmal

          Marc Berg 1 Reply Last reply Reply Quote 0
          • Marc Berg
            Marc Berg Most Active @danwir last edited by Marc Berg

            @danwir sagte in Backup InfluxDB ioBroker:

            Aber ich cheke das mal gegen und öffne mal die gepackten Dateien.

            Und am besten mal alles Mögliche hier als Screenshot oder Text in Code-Tags zeigen, dann kann man vielleicht was sehen.

            D 2 Replies Last reply Reply Quote 0
            • D
              danwir @Marc Berg last edited by

              @marc-berg SO beide Maschinen nutzen den gleichen FritzBox Zugang und haben daher gleiche und alle Berechtigungen bzgl. lesen/schreiben.

              fritz.box.JPG

              Backup auf Maschine (ALT, PI3)

              Started iobroker ...
              [DEBUG] [mount] - noserverino option: true
              [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=iobroker,password=****,noserverino,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777,vers=3.0 //192.168.178.1/fritz.nas/ext_Festplatte/PI3+4_Backup /opt/iobroker/backups"
              [DEBUG] [mount] - mount successfully completed
              [DEBUG] [mount] - done
              [DEBUG] [iobroker] - host.raspberrypi 10290 states saved
              
              [DEBUG] [iobroker] - host.raspberrypi 10997 objects saved
              
              [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2023_09_17-13_51_05_backupiobroker.tar.gz
              
              [DEBUG] [iobroker] - done
              [DEBUG] [influxDB] - InfluxDB-Backup for influxdb.0 is started ...
              [DEBUG] [influxDB] - Start InfluxDB Backup ...
              [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
              [DEBUG] [influxDB] - Packed 0MB so far...
              [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2023_09_17-13_51_37_influxdb.0_backupiobroker.tar.gz
              [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_09_17-13_51_37_influxdb.0_backupiobroker"
              [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_09_17-13_51_37_influxdb.0_backupiobroker" successfully deleted
              [DEBUG] [influxDB] - InfluxDB-Backup for influxdb.0 is finish
              [DEBUG] [influxDB] - InfluxDB-Backup for influxdb.1 is started ...
              [DEBUG] [influxDB] - Start InfluxDB Backup ...
              [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
              [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2023_09_17-13_52_07_influxdb.1_backupiobroker.tar.gz
              [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_09_17-13_52_07_influxdb.1_backupiobroker"
              [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_09_17-13_52_07_influxdb.1_backupiobroker" successfully deleted
              [DEBUG] [influxDB] - InfluxDB-Backup for influxdb.1 is finish
              [DEBUG] [influxDB] - done
              [DEBUG] [cifs] - used copy path: /fritz.nas/ext_Festplatte/PI3+4_Backup
              [DEBUG] [cifs] - done
              [DEBUG] [clean] - No older backup files are deleted, because this backup was started manually
              [DEBUG] [clean] - done
              [DEBUG] [historyHTML] - new history html values created
              [DEBUG] [historyHTML] - done
              [DEBUG] [historyJSON] - new history json values created
              [DEBUG] [historyJSON] - done
              [DEBUG] [umount] - mount activ, umount is started ...
              [DEBUG] [umount] - umount successfully completed
              [DEBUG] [umount] - done
              [EXIT] 0
              

              iobroker alt.JPG

              RESTORE auf neuer Maschine: (PI4)
              iobroker neu.JPG

              Fehler beim REstore:
              iobroker neu restore fehler.JPG

              1 Reply Last reply Reply Quote 0
              • D
                danwir @Marc Berg last edited by danwir

                @marc-berg kann das der Fehler sein ? bisschen klein die Dateien oder ? dafür das da 3 Monate dutzende Daten reinlaufen.
                fehler.JPG

                fehler2.JPG

                Marc Berg 2 Replies Last reply Reply Quote 0
                • Marc Berg
                  Marc Berg Most Active @danwir last edited by

                  @danwir sagte in Backup InfluxDB ioBroker:

                  @marc-berg kann das der Fehler sein ? bisschen klein die Dateien oder ? dafür das da 3 Monate dutzende Daten reinlaufen.
                  fehler.JPG

                  Ja, viel zu klein. Da läuft beim Backup schon was schief.

                  D 2 Replies Last reply Reply Quote 0
                  • Marc Berg
                    Marc Berg Most Active @danwir last edited by

                    @danwir sagte in Backup InfluxDB ioBroker:

                    @marc-berg kann das der Fehler sein ? bisschen klein die Dateien oder ? dafür das da 3 Monate dutzende Daten reinlaufen.
                    fehler.JPG

                    fehler2.JPG

                    Ich habe dunkel in Erinnerung, dass auch @Thomas-Braun mit dem Mount auf der Fritzbox Probleme hatte. Vielleicht könnte er helfen? Da bin ich nicht fit genug, um sinnvoll helfen zu können. Aber zumindest haben wir die Ursache schon eingekreist.

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • D
                      danwir @Marc Berg last edited by danwir

                      @marc-berg ich glaub ich hab ne Idee... 24ba82f6-bb9b-48e2-a972-3be99a6023ed-image.png

                      ggf falsch herum .. teste

                      korrektur .. war egal geht trotzdem nicht

                      Marc Berg 1 Reply Last reply Reply Quote 0
                      • D
                        danwir @Marc Berg last edited by

                        @marc-berg ich könnte auch versuchen auf nen Stick am PI direkt .. aber keine Ahnung wie ich den als Ordner einrichten im iOBrocker Backup

                        1 Reply Last reply Reply Quote 0
                        • Marc Berg
                          Marc Berg Most Active @danwir last edited by

                          @danwir sagte in Backup InfluxDB ioBroker:

                          ggf falsch herum .. teste

                          Heißen die Buckets in der InfluxDB so wie unter "Name der Datenbank" angegeben?

                          1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Marc Berg last edited by

                            @marc-berg sagte in Backup InfluxDB ioBroker:

                            Ich habe dunkel in Erinnerung, dass auch @Thomas-Braun mit dem Mount auf der Fritzbox Probleme hatte. Vielleicht könnte er helfen?

                            Richtig. Betrifft bei mir aber nur Backitup-Backups unter nodejs@20 auf einem per CIFS in /opt/iobroker/backup gemounteten ext4-Dateisystem eines FritzNAS. Alle anderen Konstellationen sind nicht betroffen.

                            Marc Berg 1 Reply Last reply Reply Quote 0
                            • Marc Berg
                              Marc Berg Most Active @Thomas Braun last edited by Marc Berg

                              @thomas-braun sagte in Backup InfluxDB ioBroker:

                              Richtig. Betrifft bei mir aber nur Backitup-Backups unter nodejs@20 auf einem per CIFS in /opt/iobroker/backup gemounteten ext4-Dateisystem eines FritzNAS. Alle anderen Konstellationen sind nicht betroffen

                              Okay, danke! Scheinbar haben wir es hier doch noch mit einem anderen Problem zu tun.

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                danwir @Marc Berg last edited by

                                @marc-berg ja Buckets heissen gleich

                                Bucket PI alt.JPG Bucket PI neu.JPG

                                merkwürdig ist ja er macht ja das BAckup nur irgendwie ohne Inhalt. Das Backup läuft ja auch sauber im Log durch.

                                Started iobroker ...
                                [DEBUG] [mount] - noserverino option: true
                                [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=iobroker,password=****,noserverino,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777,vers=3.0 //192.168.178.1/fritz.nas/ext_Festplatte/PI3+4_Backup /opt/iobroker/backups"
                                [DEBUG] [mount] - mount successfully completed
                                [DEBUG] [mount] - done
                                [DEBUG] [iobroker] - host.raspberrypi 10290 states saved
                                
                                [DEBUG] [iobroker] - host.raspberrypi 10997 objects saved
                                
                                [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2023_09_17-14_13_39_backupiobroker.tar.gz
                                
                                [DEBUG] [iobroker] - done
                                [DEBUG] [influxDB] - InfluxDB-Backup for KNX is started ...
                                [DEBUG] [influxDB] - Start InfluxDB Backup ...
                                [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
                                [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2023_09_17-14_13_57_KNX_backupiobroker.tar.gz
                                [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_09_17-14_13_57_KNX_backupiobroker"
                                [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_09_17-14_13_57_KNX_backupiobroker" successfully deleted
                                [DEBUG] [influxDB] - InfluxDB-Backup for KNX is finish
                                [DEBUG] [influxDB] - InfluxDB-Backup for IR_Lesekopf_Zaehler is started ...
                                [DEBUG] [influxDB] - Start InfluxDB Backup ...
                                [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
                                [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2023_09_17-14_13_57_IR_Lesekopf_Zaehler_backupiobroker.tar.gz
                                [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_09_17-14_13_57_IR_Lesekopf_Zaehler_backupiobroker"
                                [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_09_17-14_13_57_IR_Lesekopf_Zaehler_backupiobroker" successfully deleted
                                [DEBUG] [influxDB] - InfluxDB-Backup for IR_Lesekopf_Zaehler is finish
                                [DEBUG] [influxDB] - done
                                [DEBUG] [cifs] - used copy path: /fritz.nas/ext_Festplatte/PI3+4_Backup
                                [DEBUG] [cifs] - done
                                [DEBUG] [clean] - No older backup files are deleted, because this backup was started manually
                                [DEBUG] [clean] - done
                                [DEBUG] [historyHTML] - new history html values created
                                [DEBUG] [historyHTML] - done
                                [DEBUG] [historyJSON] - new history json values created
                                [DEBUG] [historyJSON] - done
                                [DEBUG] [umount] - mount activ, umount is started ...
                                [DEBUG] [umount] - umount successfully completed
                                [DEBUG] [umount] - done
                                [EXIT] 0
                                
                                Marc Berg simatec 2 Replies Last reply Reply Quote 0
                                • Marc Berg
                                  Marc Berg Most Active @danwir last edited by Marc Berg

                                  @danwir sagte in Backup InfluxDB ioBroker:

                                  merkwürdig ist ja er macht ja das BAckup nur irgendwie ohne Inhalt. Das Backup läuft ja auch sauber im Log durch.

                                  Ja, aber auch das eigentliche ioBroker Backup ist viel zu klein. Ich glaube weiterhin, dass da durch den Mount was verhunzt wird. Kannst du das Ganze mal ohne SMB Mount online bringen?

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    danwir @Marc Berg last edited by

                                    @marc-berg verrate mir wie ? was soll ich machen

                                    Marc Berg 1 Reply Last reply Reply Quote 0
                                    • Marc Berg
                                      Marc Berg Most Active @danwir last edited by Marc Berg

                                      @danwir sagte in Backup InfluxDB ioBroker:

                                      verrate mir wie ? was soll ich machen

                                      Im Backitup Adapter alle "Storage locations" abschalten. Dann wird das Backup lokal unter /opt/iobroker/backups abgelegt. Da mal schauen, wie die Größen aussehen.

                                      e130950e-1ead-46d6-bbb9-7ca4a749753b-grafik.png

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        danwir @Marc Berg last edited by danwir

                                        @marc-berg okay interessant ..
                                        7e414e0b-b628-42fd-b9ed-45a7adbf9997-image.png

                                        ca 3MB groß ... man was für ein dreck

                                        ahh moment influx vergessen mit zunhemen

                                        ich krieg nen affen ... cd253ac7-e2a8-4d5d-917b-e5d174b9cca1-image.png

                                        auch nur 10KB groß

                                        Marc Berg 1 Reply Last reply Reply Quote 0
                                        • Marc Berg
                                          Marc Berg Most Active @danwir last edited by

                                          @danwir sagte in Backup InfluxDB ioBroker:

                                          auch nur 10KB groß

                                          Aber lässt sich die Datei nun öffnen?

                                          1 Reply Last reply Reply Quote 0
                                          • simatec
                                            simatec Developer Most Active @danwir last edited by

                                            @danwir sagte in Backup InfluxDB ioBroker:

                                            [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=iobroker,password=****,noserverino,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777,vers=3.0 //192.168.178.1/fritz.nas/ext_Festplatte/PI3+4_Backup /opt/iobroker/backups"

                                            Stelle bitte für die Fritzbox smb auf 3.1.1.
                                            Sollte dies nicht funktionieren, erstelle erstmal ein lokales Backup, um zu schauen, ob es am Mount liegt.

                                            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

                                            677
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            25
                                            1052
                                            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