Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. BackItUp funktioniert nur einmal

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    BackItUp funktioniert nur einmal

    This topic has been deleted. Only users with topic management privileges can see it.
    • JoJo58
      JoJo58 last edited by

      Guten Morgen,

      seit etwa 2 Wochen funktioniert das Backup nur einmalig automatisch. Ich habe IoBroker auf einem PI 4 mit 4 GB RAM und einer 500 GB SSD laufen. Node.js Version 18.16.1, NPM Version 9.5.1. BackItUp Instanz Version 2.6.23. Gesichert wird per NFS auf ein NAS.
      Wenn ich BackItUp manuell anstoße, werden immer 2 Backups in einem Abstand von 2 Minuten angelegt, finde ich schon merkwürdig. Ich kann aber direkt danach das nächste Backup starten und es werden wieder 2 angelegt. Funktioniert also prinzipiell.
      Die automatischen Backups laufen jede Nacht um 00.30 Uhr. Wenn die Instanz neu gestartet wurde, läuft das Backup in der folgenden Nacht zwar durch und ich bekomme auch eine Mail über das erfolgreiche Backup. Aber in den Logs steht folgendes:

      2023-07-16 00:30:11.069 - warn: backitup.0 (30180) backup error: TypeError: Converting circular structure to JSON
      --> starting at object with constructor 'DerivedLogger'
      | property '_readableState' -> object with constructor 'ReadableState'
      | property 'pipes' -> object with constructor 'Array'
      | index 0 -> object with constructor 'DailyRotateFile'
      --- property 'parent' closes the circle ... please check your config and try again!!
      2023-07-16 00:31:28.376 - info: email.0 (29815) Send email: {"text":"BackItUp:\nEine neue iobroker (raspi4) Sicherung wurde am 16. Juli 2023 um 00:31 Uhr erstellt, und unter 192.168.1.6/RasPi-BU/iobroker4gb gespeichert.","to":"meine@gmx.de","subject":"Backitup","from":"meine@gmx.de"}
      2023-07-16 00:31:28.890 - info: email.0 (29815) sent to meine@gmx.de
      2023-07-16 00:31:41.082 - warn: backitup.0 (30180) Backup error: TypeError: Cannot set properties of undefined (setting 'backupDir') ... please check your config and and try again!!
      
      

      In der nächsten Nacht passiert dann nichts mehr. In den Logs steht absolut nichts zu BackItUp und es wird auch kein Backup erstellt.
      Zuerst habe ich gedacht, das es an der Anzahl liegt und die alten Backups nicht gelöscht werden können. Also hatte ich die Anzahl der Backups von 30 auf 50 erhöht. Es bleibt bei dem Problem.
      Dann vom PI aus auf den Backup Ordner zugegriffen und als Benutze (ohne sudo) eine ältere Datei gelöscht, funktioniert auch.
      Und jetzt weiß ich nicht weiter. Könnte zwar jeden Tag die Instanz neu starten, aber das löst das Problem ja nicht. Als letzten Versuch, würde ich gegebenenfalls BackItUp löschen und neu installieren. Aber vielleicht gibt es eine andere Lösung.
      Gruß Johannes

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @JoJo58 last edited by

        @jojo58 sagte in BackItUp funktioniert nur einmal:

        please check your config

        und zeigen

        JoJo58 1 Reply Last reply Reply Quote 0
        • JoJo58
          JoJo58 @Homoran last edited by

          @homoran Screenshots, oder die config sichern und das json posten?

          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @JoJo58 last edited by

            @jojo58 sagte in BackItUp funktioniert nur einmal:

            Screenshots

            erstmal

            JoJo58 1 Reply Last reply Reply Quote 0
            • JoJo58
              JoJo58 @Homoran last edited by

              @homoran
              Die Seite mit Benachrichtigung hab ich weggelassen.


              Backup 6 Grafana.jpg Backup 5 NAS.jpg Backup 4 InfluxDB.jpg Backup 3 IoBroker.jpg Backup 2 Extraeinstellung.jpg Backup 1 Haupteinstellung.jpg

              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @JoJo58 last edited by

                @jojo58 Was du da alles hast 😉

                da stellt sich dann die Frage, was da angelegten wird, wenn

                @jojo58 sagte in BackItUp funktioniert nur einmal:

                immer 2 Backups

                angelegt werden?

                von allem?

                JoJo58 2 Replies Last reply Reply Quote 0
                • JoJo58
                  JoJo58 @Homoran last edited by

                  @homoran Ja, Grafana, InfuxDB, IoBroker und JavaScript. Ich habe die Instanz jetzt neu gestartet und dann eine Backup gestartet. Hier in den Logs steht dann sogar, das alles 2x gemacht wird:

                  Started iobroker ...
                  [DEBUG] [mount] - mount activ... umount is started before mount!!
                  [DEBUG] [mount] - umount successfully completed
                  [DEBUG] [mount] - nfs-mount command: "sudo mount 192.168.1.6:/RasPi-BU/iobroker4gb /opt/iobroker/backups"
                  [DEBUG] [mount] - mount successfully completed
                  [DEBUG] [mount] - done
                  [DEBUG] [iobroker] - host.raspi4gb 9372 states saved
                  
                  [DEBUG] [iobroker] - host.raspi4gb 10786 objects saved
                  
                  [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2023_07_17-11_00_59_raspi4_backupiobroker.tar.gz
                  
                  [DEBUG] [iobroker] - done
                  [DEBUG] [influxDB] - InfluxDB-Backup started ...
                  [DEBUG] [influxDB] - Start InfluxDB Backup ...
                  [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
                  [DEBUG] [influxDB] - Packed 47MB so far...
                  [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2023_07_17-11_01_15_raspi4_backupiobroker.tar.gz
                  [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_07_17-11_01_15_raspi4_backupiobroker"
                  [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_07_17-11_01_15_raspi4_backupiobroker" successfully deleted
                  [DEBUG] [influxDB] - InfluxDB-Backup for is finish
                  [DEBUG] [influxDB] - done
                  [DEBUG] [grafana] - Start Grafana Backup ...
                  [DEBUG] [grafana] - Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp"
                  [DEBUG] [grafana] - Created dashboard directory
                  [DEBUG] [grafana] - Created dashboards_manually_restore directory
                  [DEBUG] [grafana] - Created datasource directory
                  [DEBUG] [grafana] - start Grafana request ...
                  [DEBUG] [grafana] - Grafana is available ... Status: 200
                  [DEBUG] [grafana] - found Dashboard: koeln-1
                  [DEBUG] [grafana] - found Dashboard: test-1
                  [DEBUG] [grafana] - start Grafana backup compress ...
                  [DEBUG] [grafana] - Backup created: /opt/iobroker/backups/grafana_2023_07_17-11_02_01_raspi4_backupiobroker.tar.gz
                  [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                  [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                  [DEBUG] [grafana] - done
                  [DEBUG] [javascripts] - Created javascript_tmp directory: "/opt/iobroker/backups/tmpScripts"
                  [DEBUG] [javascripts] - found Script: BattUeberwachung
                  [DEBUG] [javascripts] - found Script: video1
                  [DEBUG] [javascripts] - found Script: vergeiche
                  [DEBUG] [javascripts] - found Script: datentypen
                  [DEBUG] [javascripts] - found Script: Astro-Funktionen
                  [DEBUG] [javascripts] - found Script: BackItUp_DPs_Senden
                  [DEBUG] [javascripts] - found Script: RPI2_Adapter_DPs_senden
                  [DEBUG] [javascripts] - found Script: HM_Daten_sortieren
                  [DEBUG] [javascripts] - found Script: HM_Script_sortieren_2
                  [DEBUG] [javascripts] - found Script: HM_Script_sortieren_3
                  [DEBUG] [javascripts] - found Script: HM_Script_sortieren_4
                  [DEBUG] [javascripts] - found Script: HM_Script_sortieren_5
                  [DEBUG] [javascripts] - Try deleting the Javascript tmp directory: "/opt/iobroker/backups/tmpScripts"
                  [DEBUG] [javascripts] - Javascript tmp directory "/opt/iobroker/backups/tmpScripts" successfully deleted
                  [DEBUG] [javascripts] - Backup created: /opt/iobroker/backups/javascripts_2023_07_17-11_02_06_raspi4_backupiobroker.tar.gz
                  [DEBUG] [javascripts] - done
                  [DEBUG] [cifs] - used copy path: /RasPi-BU/iobroker4gb
                  [DEBUG] [cifs] - done
                  [DEBUG] [clean] - No older backup files are deleted, because this backup was started manually
                  [DEBUG] [clean] - done
                  [DEBUG] [email] - 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
                  [DEBUG] [mount] - nfs-mount command: "sudo mount 192.168.1.6:/RasPi-BU/iobroker4gb /opt/iobroker/backups"
                  [DEBUG] [mount] - mount successfully completed
                  [DEBUG] [mount] - done
                  [DEBUG] [iobroker] - host.raspi4gb 9371 states saved
                  
                  [DEBUG] [iobroker] - host.raspi4gb 10786 objects saved
                  
                  [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2023_07_17-11_02_29_raspi4_backupiobroker.tar.gz
                  
                  [DEBUG] [iobroker] - done
                  [DEBUG] [influxDB] - InfluxDB-Backup started ...
                  [DEBUG] [influxDB] - Start InfluxDB Backup ...
                  [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
                  [DEBUG] [influxDB] - Packed 48MB so far...
                  [DEBUG] [influxDB] - Packed 91MB so far...
                  [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2023_07_17-11_02_45_raspi4_backupiobroker.tar.gz
                  [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_07_17-11_02_45_raspi4_backupiobroker"
                  [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_07_17-11_02_45_raspi4_backupiobroker" successfully deleted
                  [DEBUG] [influxDB] - InfluxDB-Backup for is finish
                  [DEBUG] [influxDB] - done
                  [DEBUG] [grafana] - Start Grafana Backup ...
                  [DEBUG] [grafana] - Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp"
                  [DEBUG] [grafana] - Created dashboard directory
                  [DEBUG] [grafana] - Created dashboards_manually_restore directory
                  [DEBUG] [grafana] - Created datasource directory
                  [DEBUG] [grafana] - start Grafana request ...
                  [DEBUG] [grafana] - Grafana is available ... Status: 200
                  [DEBUG] [grafana] - found Dashboard: koeln-1
                  [DEBUG] [grafana] - found Dashboard: test-1
                  [DEBUG] [grafana] - start Grafana backup compress ...
                  [DEBUG] [grafana] - Backup created: /opt/iobroker/backups/grafana_2023_07_17-11_03_30_raspi4_backupiobroker.tar.gz
                  [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                  [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                  [DEBUG] [grafana] - done
                  [DEBUG] [javascripts] - Created javascript_tmp directory: "/opt/iobroker/backups/tmpScripts"
                  [DEBUG] [javascripts] - found Script: BattUeberwachung
                  [DEBUG] [javascripts] - found Script: video1
                  [DEBUG] [javascripts] - found Script: vergeiche
                  [DEBUG] [javascripts] - found Script: datentypen
                  [DEBUG] [javascripts] - found Script: Astro-Funktionen
                  [DEBUG] [javascripts] - found Script: BackItUp_DPs_Senden
                  [DEBUG] [javascripts] - found Script: RPI2_Adapter_DPs_senden
                  [DEBUG] [javascripts] - found Script: HM_Daten_sortieren
                  [DEBUG] [javascripts] - found Script: HM_Script_sortieren_2
                  [DEBUG] [javascripts] - found Script: HM_Script_sortieren_3
                  [DEBUG] [javascripts] - found Script: HM_Script_sortieren_4
                  [DEBUG] [javascripts] - found Script: HM_Script_sortieren_5
                  [DEBUG] [javascripts] - Try deleting the Javascript tmp directory: "/opt/iobroker/backups/tmpScripts"
                  [DEBUG] [javascripts] - Javascript tmp directory "/opt/iobroker/backups/tmpScripts" successfully deleted
                  [DEBUG] [javascripts] - Backup created: /opt/iobroker/backups/javascripts_2023_07_17-11_03_35_raspi4_backupiobroker.tar.gz
                  [DEBUG] [javascripts] - done
                  [DEBUG] [cifs] - used copy path: /RasPi-BU/iobroker4gb
                  [DEBUG] [cifs] - done
                  [DEBUG] [clean] - No older backup files are deleted, because this backup was started manually
                  [DEBUG] [clean] - done
                  [DEBUG] [email] - 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
                  

                  Verlauf.jpg

                  1 Reply Last reply Reply Quote 0
                  • JoJo58
                    JoJo58 @Homoran last edited by

                    @homoran Das Problem, bzw. den Fehler mit den doppelten Backups hab ich gefunden. Sitzt vor dem Monitor 😕 .
                    Ich schicke die DP vom BackItUp Adapter per Script und Simple API an meinen PI 8GB auf dem alles läuft und auch die VIS liegt, der PI mit 4GB ist mein Testgerät. In VIS habe ich einen Button der ebenfalls per API den OneClick Befehl an den anderen PI 4GB schickt und ich somit von der VIS ein manuelles Backup beider PIs starten kann. Da diese "Synchronisierung" des OneClick DP in beide Richtungen geht, wird der auf dem anderen PI 8GB ebenfalls getriggert und dadurch werden direkt hintereinander 2 Backups erstellt. Hoffe ich habe es einigermaßen verständlich erklärt.

                    Sorry, mein Fehler.

                    Hat aber nichts mit dem anderen Problem zu tun.

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @JoJo58 last edited by

                      @jojo58 sagte in BackItUp funktioniert nur einmal:

                      wird der auf dem anderen PI 8GB ebenfalls getriggert und dadurch werden direkt hintereinander 2 Backups erstellt

                      so etwas hatte ich vermutet.

                      @jojo58 sagte in BackItUp funktioniert nur einmal:

                      Hat aber nichts mit dem anderen Problem zu tun.

                      sicher?
                      ich bin da nicht tief genug drin, aber ggf. wird bei solchen Mehrfachzuweisungen irgendein mount geblockt.

                      JoJo58 1 Reply Last reply Reply Quote 1
                      • JoJo58
                        JoJo58 @Homoran last edited by

                        @homoran Ja, eigentlich schon. Ich kann das manuelle Backup ja jederzeit wiederholen und es läuft immer wieder durch, zwar doppelt, aber es läuft. Wenn ich die Instanz neu starte und dann nichts mache, läuft das Backup nur eine Nacht und dann nicht mehr. Was ich nicht weiß ist, ob dieser OneClick DP sich ändert wenn ein normales zyklisches Backup läuft.
                        Ich probiere das jetzt mal aus. Setzte die Backup Zeit auf 11.45 Uhr und beobachte den DP und die Meldungen im Protokoll.

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @JoJo58 last edited by

                          @jojo58 sagte in BackItUp funktioniert nur einmal:

                          den DP und die Meldungen im Protokoll.

                          bitte als debug-log

                          JoJo58 1 Reply Last reply Reply Quote 1
                          • JoJo58
                            JoJo58 @Homoran last edited by

                            @homoran So, hier das Testergebnis.

                            Der DP "oneClick.iobroker" wird während des ganzen Backups auf "true" gesetzt. Ich war der Meinung, das passiert nur bei manuellen Backups. Das war mein erster Fehler. Der zweite Fehler war die Synchronisierung dieses DP in beide Richtungen. Der dritte Fehler war, ich hab nicht zu Ende gedacht.
                            Verstehen tue ich es zwar immer noch nicht und ich begreife auch die Fehlermeldung nicht, aber wenn ich aus der beidseitigen Synchronisierung eine Einbahnstraße mache, gibt es keine doppelten, manuellen Backups mehr und die Fehlermeldungen nach dem automatischen Backup sind auch weg.
                            Jetzt habe ich zwar in VIS ein Problem und noch keine Ahnung wie ich das lösen soll, aber meine Backups sollten wieder laufen.
                            Vielen Dank für deine Hilfe.
                            Sollte wider erwarten doch noch der Wurm drin sein, melde ich mich in 2 Tagen wieder.

                            Gruß aus Köln, Johannes

                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @JoJo58 last edited by

                              @jojo58 sagte in BackItUp funktioniert nur einmal:

                              Gruß aus Köln

                              dito

                              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

                              779
                              Online

                              32.1k
                              Users

                              80.7k
                              Topics

                              1.3m
                              Posts

                              2
                              13
                              193
                              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