Navigation

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

    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

    Probleme beim Restore

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

      Nachdem man das zu wiederherstellende Backup ausgewählt hat und Restore klick fängt der Prozess an und eine neues Fenster öffnet sich.

      [DEBUG] [iobroker] Start ioBroker Restore ...
      [DEBUG] [iobroker] iobroker controller daemon is not running
      [DEBUG] [iobroker] host.heimautomation OK.
      [DEBUG] [iobroker] host.heimautomation Clear all objects and states...
      [DEBUG] [iobroker] clean 391 objects...
      [ERROR] [iobroker] [Not critical] Cannot delete object 0_userdata.0: "Object is marked as non deletable"
      [ERROR] [iobroker] [Not critical] Cannot delete object alias.0: "Object is marked as non deletable"
      [ERROR] [iobroker] [Not critical] Cannot delete object system.repositories: "Object is marked as non deletable"
      [ERROR] [iobroker] [Not critical] Cannot delete object system.config: "Object is marked as non deletable"
      [ERROR] [iobroker] [Not critical] Cannot delete object enum.functions: "Object is marked as non deletable"
      [ERROR] [iobroker] [Not critical] Cannot delete object enum.rooms: "Object is marked as non deletable"
      [DEBUG] [iobroker] clean 305 states...
      [DEBUG] [iobroker] host.heimautomation done.
      [DEBUG] [iobroker] host.heimautomation Processed 0/15398 states
      [DEBUG] [iobroker] host.heimautomation Processed 200/15398 states
      [DEBUG] [iobroker] host.heimautomation Processed 400/15398 states
      .
      .
      .
      [DEBUG] [iobroker] host.heimautomation Processed 7200/17466 objects
      [DEBUG] [iobroker] host.heimautomation Processed 7400/17466 objects
      [ERROR] [iobroker] /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:385
      [ERROR] [iobroker] && _objects[_index].id.match(/^system\.adapter\./)
      [ERROR] [iobroker] ^
      [ERROR] [iobroker] TypeError: Cannot read property 'match' of null
      [ERROR] [iobroker] at BackupRestore._setObjHelper (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:385:36)
      [ERROR] [iobroker] at runCallback (timers.js:706:11)
      [ERROR] [iobroker] at tryOnImmediate (timers.js:676:5)
      [ERROR] [iobroker] at processImmediate (timers.js:658:5)
      [DEBUG] [iobroker] ioBroker Restore completed successfully
      [EXIT] 1 **** Restore completed successfully!! ****
      

      Mod-Edit: Code in Code-Tags gesetzt!

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

        @Schwammal sagte in Probleme beim Restore:

        das zu wiederherstellende Backup

        Minimal oder Full?

        1 Reply Last reply Reply Quote 0
        • S
          Schwammal last edited by

          Kann es sein dass diese Auswahl rausgefallen ist? Ich habe gerade die Version 1.3.6 drauf und kann es nicht mehr auswählen, daher gehe ich davon aus dass es Full ist. Auf dem NAS sind aber noch alte Minimal Backups zu finden (und zusätzlich noch Zigbee + Homematic)

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

            @Schwammal Und genau deswegen ist das FULL rausgefallen - es gab immer wieder Probleme wegen nicht korrekter Nutzung!

            Das Full durfte nur auf dem ursprünglichen System wieder hergestllt werden (incl, node und npm-Version)!!!

            1 Reply Last reply Reply Quote 0
            • S
              Schwammal last edited by

              Aber wenn ich bei auf beiden Systemen die gleiche Backitup Version nutze, sollte es doch egal sein, oder?

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

                @Schwammal sagte in Probleme beim Restore:

                Aber wenn ich bei auf beiden Systemen die gleiche Backitup Version nutze, sollte es doch egal sein, oder?

                Nein!

                Das Full ist für die Hardware und die node/npm Version kompiliert.
                Sobald auch nur ein Faktor anders ist klappt es nicht!

                1 Reply Last reply Reply Quote 0
                • S
                  Schwammal last edited by

                  OK, dann wäre ja das Minimal Backup das Richtige, welches es nicht mehr gibt. Ich würde mal versuchen die alte Installation auf die neuere NPM Version hoch zu bekommen, was vorhin leider nicht funktioniert hat. Ist die 6.1 Version schon zu gebrauchen?

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

                    @Schwammal sagte in Probleme beim Restore:

                    dann wäre ja das Minimal Backup das Richtige,

                    Richtig, da wird alles neu kompiliert

                    @Schwammal sagte in Probleme beim Restore:

                    welches es nicht mehr gibt

                    Doch! es gibt nur noch das minimal - heisst jetzt nur anders.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Schwammal last edited by

                      aber wenn es nur noch das Minimal gibt, sollte es ja auch unabhängig von anderen NPM Versionen funktioniert oder sehe ich das falsch.

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

                        @Schwammal sagte in Probleme beim Restore:

                        aber wenn es nur noch das Minimal gibt, sollte es ja auch unabhängig von anderen NPM Versionen funktioniert oder sehe ich das falsch.

                        Genau - das ist ja SInn des Minimal
                        gesichert werden die Konfigurationen.
                        Alles wird neu installiert bzw. kompiliert

                        1 Reply Last reply Reply Quote 0
                        • S
                          Schwammal last edited by

                          Hi

                          Ich muss leider noch einmal nachfragen da das Update leider nicht so will wie ich. Ich habe das Gefühl die aktuelle 6.13 schon installiert zu haben aber Iobroker sieht das Anders:
                          npm install -g npm@latest
                          /opt/iobroker$ npm ls npm
                          iobroker@1.0.0 /opt/iobroker
                          ├─┬ iobroker.vis-weather@2.5.2
                          │ └── npm@6.13.4
                          └── npm@6.13.4

                          Trotzdem zeigt die Webgui 6.5 an und das auch noch dem ausführen des reinstall Skripts

                          Homoran 2 Replies Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Schwammal last edited by Homoran

                            @Schwammal sagte in Probleme beim Restore:

                            iobroker@1.0.0

                            stimmt denn das?
                            Wir sind inzwischen bei 2.1.1

                            und was sagt:

                            node -v
                            npm -v
                            nodejs -v
                            
                            1 Reply Last reply Reply Quote 0
                            • S
                              Schwammal last edited by

                              Ich habe keine Ahnung wo die 1.0 herkommt. Das Webinterface sagt mit Controllerversion 2.1.1. Kann es sein dass ich mehrere Versionen installiert habe. Die Installation ist schon ein paar Jahre alt.

                              /opt/iobroker$ node -v
                              v10.18.0

                              /opt/iobroker$ npm -v
                              6.5.0

                              /opt/iobroker$ nodejs -v
                              v10.18.0

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

                                @Schwammal sagte in Probleme beim Restore:

                                Kann es sein dass ich mehrere Versionen installiert habe.

                                das hatte ich befürchtet.
                                Die Daten über node und npm zeigen es aber zumindest nicht auf Anhieb

                                Wie sieht das denn bei deiner neuen Installation aus?

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Schwammal last edited by

                                  /opt/iobroker$ node -v
                                  v10.18.0

                                  /opt/iobroker$ npm -v (kann ich nur mit sudo abfragen)
                                  6.13.4

                                  /opt/iobroker$ nodejs -v
                                  v10.18.0

                                  Ich hab kein Problem damit die alte Installation platt zu machen aber die Daten würde ich schon gerne mitnehmen

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

                                    @Schwammal sagte in Probleme beim Restore:

                                    aber die Daten würde ich schon gerne mitnehmen

                                    Wenn die Backups aber schon korrupte Daten enthalten geht das nicht so einfach.

                                    Hast du auf der neuen Installation schon ioBroker neu installiert ohne weiteres zu machen?

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Schwammal last edited by

                                      Dachte ich mir fast. Die neue Installation ist quasi nackt und hat nur den Backitup Adapter geladen

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

                                        @Schwammal sagte in Probleme beim Restore:

                                        Hi

                                        Ich muss leider noch einmal nachfragen da das Update leider nicht so will wie ich. Ich habe das Gefühl die aktuelle 6.13 schon installiert zu haben aber Iobroker sieht das Anders:
                                        npm install -g npm@latest
                                        /opt/iobroker$ npm ls npm
                                        iobroker@1.0.0 /opt/iobroker
                                        ├─┬ iobroker.vis-weather@2.5.2
                                        │ └── npm@6.13.4
                                        └── npm@6.13.4

                                        Trotzdem zeigt die Webgui 6.5 an und das auch noch dem ausführen des reinstall Skripts

                                        Was sagt die neue denn dazu?

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Schwammal last edited by

                                          Interessant. Auch hier wird nicht die 2.1.1 angezeigt

                                          /opt/iobroker$ npm ls npm
                                          iobroker.inst@2.0.3 /opt/iobroker
                                          └── (empty)

                                          J 1 Reply Last reply Reply Quote 0
                                          • J
                                            janschmidt76 @Schwammal last edited by janschmidt76

                                            Hi,
                                            ich bin gerade beim Umzug meiner "alten" ioBroker-Installation von einem RPi3 auf einen RPi4 und bin an dem selben Fehler gescheitert. Ich habe mich ein bisschen durch den Code gelesen und debugged und habe einen "quick'n'dirty"-Fix eingebaut: in der Datei /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js in Zeile 385 die Bedingung "&& _objects[_index].id != null" ergänzt (s.u., Zeile 4). Ist sicherlich nicht schön und müsste u.U. genauer geprüft werden, insbesondere woher dieser null-Value um Backup kommt.
                                            Mit dieser Änderung lief der Restore bei mir dann aber fehlerfrei durch. Alles ohne Garantie, aber vielleicht hilft es Dir ja. 😊

                                                _setObjHelper(_index, _objects, callback) {                                                                                                                                                 
                                                    // Disable all adapters.                                                                                                                                                                                                                                                                                          
                                                    if (!this.dbMigration                                                                                                                                                                   
                                                        && _objects[_index].id != null                                                                                                                                                      
                                                        && _objects[_index].id.match(/^system\.adapter\./)                                                                                                                                  
                                                        && !_objects[_index].id.match(/^system\.adapter\.admin\./)                                                                                                                          
                                                        && !_objects[_index].id.match(/^system\.adapter\.backitup\./)) {                                                                                                                    
                                                        if (_objects[_index].doc.common && _objects[_index].doc.common.enabled) {                                                                                                           
                                                            _objects[_index].doc.common.enabled = false;                                                                                                                                    
                                                        }                                                                                                                                                                                   
                                                    }                                                                                                                                                                                       
                                            
                                            
                                            S apollon77 2 Replies Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

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

                                            411
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            backitup
                                            5
                                            27
                                            1357
                                            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