Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Adapter: iobroker.backitup (stable Release)

    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

    Adapter: iobroker.backitup (stable Release)

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

      @simatec sagte in Adapter: iobroker.backitup (stable Release):

      Das dürfte ab Version 1.0.9 nicht mehr vorkommen.

      Okay, ich habe die 1.0.8 laufen. Dann date ich mal auf 1.1.1 ab.

      Schuss in Ofen ... der startet erst gar nicht 😞

      backitup.0	2019-02-15 17:42:29.067	info	terminating
      backitup.0	2019-02-15 17:42:28.561	error	at tryOnImmediate (timers.js:768:5)
      backitup.0	2019-02-15 17:42:28.561	error	at runCallback (timers.js:814:20)
      backitup.0	2019-02-15 17:42:28.561	error	at Immediate.createInstancesObjects [as _onImmediate] (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:748:13)
      backitup.0	2019-02-15 17:42:28.561	error	at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:788:29
      backitup.0	2019-02-15 17:42:28.561	error	at initAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4990:18)
      backitup.0	2019-02-15 17:42:28.561	error	at Adapter.emit (events.js:208:7)
      backitup.0	2019-02-15 17:42:28.561	error	at emitNone (events.js:106:13)
      backitup.0	2019-02-15 17:42:28.561	error	at Adapter.main (/opt/iobroker/node_modules/iobroker.backitup/main.js:615:5)
      backitup.0	2019-02-15 17:42:28.561	error	at createBackupDir (/opt/iobroker/node_modules/iobroker.backitup/main.js:600:12)
      backitup.0	2019-02-15 17:42:28.561	error	at Object.fs.mkdirSync (fs.js:885:18)
      backitup.0	2019-02-15 17:42:28.561	error	Error: EEXIST: file already exists, mkdir '/opt/iobroker/backups'
      backitup.0	2019-02-15 17:42:28.561	error	uncaught exception: EEXIST: file already exists, mkdir '/opt/iobroker/backups'
      backitup.0	2019-02-15 17:42:28.544	info	starting. Version 1.1.1 in /opt/iobroker/node_modules/iobroker.backitup, node: v8.15.0
      backitup.0	2019-02-15 17:42:28.350	info	States connected to redis: 127.0.0.1:6379
      
      1 Reply Last reply Reply Quote 0
      • simatec
        simatec Developer Most Active last edited by

        @Segway sagte in Adapter: iobroker.backitup (stable Release):

        600

        Starte einfach mal neu ... da ist irgendwas beim Update schief gelaufen.
        Ggfs mal ein upload machen

        Segway 1 Reply Last reply Reply Quote 0
        • Segway
          Segway @simatec last edited by

          @simatec sagte in Adapter: iobroker.backitup (stable Release):

          @Segway sagte in Adapter: iobroker.backitup (stable Release):

          600

          Starte einfach mal neu ... da ist irgendwas beim Update schief gelaufen.
          Ggfs mal ein upload machen

          nur den Adapter neu starten ? Habe ich gemacht. Wird nicht grün

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

            @Segway

            Mach mal ein Upload ...
            Es wird probiert den backup Ordner anzulegen.
            Das kann nicht sein, denn das macht er nur, wenn er nicht exitiert.

            Aber das ist schon seit Version 0.3.0 so ...
            Also kann es nur an deinem Update liegen.

            Segway 1 Reply Last reply Reply Quote 0
            • Segway
              Segway @simatec last edited by

              @simatec
              Nö, weiterhin gleiches Problem 😞

              1 Reply Last reply Reply Quote 0
              • Segway
                Segway last edited by

                auch beim Downgrade gleiches Bild. Hier mal was da alles kam beim install

                Update backitup from @1.1.1 to @1.0.9
                NPM version: 6.4.1
                npm install iobroker.backitup@1.0.9 --production --save --prefix "/opt/iobroker" (System call)
                gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
                gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/epoll/.node-gyp"
                gyp WARN install got an error, rolling back install
                gyp WARN install got an error, rolling back install
                gyp ERR! configure error
                gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/epoll/.node-gyp'
                gyp ERR! System Linux 4.9.0-8-amd64
                gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                gyp ERR! cwd /opt/iobroker/node_modules/epoll
                gyp ERR! node -v v8.15.0
                gyp ERR! node-gyp -v v3.8.0
                gyp ERR! not ok
                gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
                gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/unix-dgram/.node-gyp"
                gyp WARN install got an error, rolling back install
                gyp WARN install got an error, rolling back install
                gyp ERR! configure error
                gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/unix-dgram/.node-gyp'
                gyp ERR! System Linux 4.9.0-8-amd64
                gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                gyp ERR! cwd /opt/iobroker/node_modules/unix-dgram
                gyp ERR! node -v v8.15.0
                gyp ERR! node-gyp -v v3.8.0
                gyp ERR! not ok
                node-pre-gyp WARN Using request for node-pre-gyp https download
                node-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.5.0/usb_bindings-v1.5.0-node-v57-linux-x64.tar.gz
                node-pre-gyp WARN Pre-built binaries not found for usb@1.5.0 and node@8.15.0 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
                gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
                gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/usb/.node-gyp"
                gyp WARN install got an error, rolling back install
                gyp WARN install got an error, rolling back install
                gyp ERR! configure error
                gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/usb/.node-gyp'
                gyp ERR! System Linux 4.9.0-8-amd64
                gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/opt/iobroker/node_modules/usb/src/binding" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
                gyp ERR! cwd /opt/iobroker/node_modules/usb
                gyp ERR! node -v v8.15.0
                gyp ERR! node-gyp -v v3.8.0
                gyp ERR! not ok
                node-pre-gyp ERR! build error
                node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/opt/iobroker/node_modules/usb/src/binding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
                node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/opt/iobroker/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
                node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
                node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
                node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:915:16)
                node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
                node-pre-gyp ERR! System Linux 4.9.0-8-amd64
                node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
                node-pre-gyp ERR! cwd /opt/iobroker/node_modules/usb
                node-pre-gyp ERR! node -v v8.15.0
                node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                node-pre-gyp ERR! not ok
                gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
                gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/bluetooth-hci-socket/.node-gyp"
                gyp WARN install got an error, rolling back install
                gyp WARN install got an error, rolling back install
                gyp ERR! configure error
                gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/bluetooth-hci-socket/.node-gyp'
                gyp ERR! System Linux 4.9.0-8-amd64
                gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                gyp ERR! cwd /opt/iobroker/node_modules/bluetooth-hci-socket
                gyp ERR! node -v v8.15.0
                gyp ERR! node-gyp -v v3.8.0
                gyp ERR! not ok
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 (node_modules/epoll):
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 install: node-gyp rebuild
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 (node_modules/unix-dgram):
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 install: node-gyp rebuild
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.5.0 (node_modules/usb):
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.5.0 install: node-pre-gyp install --fallback-to-build
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket):
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: node-gyp rebuild
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

                npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.backitup"
                npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
                npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
                npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
                npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
                npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
                npm notice created a lockfile as package-lock.json. You should commit this file.
                got /opt/iobroker/node_modules/iobroker.backitup/admin
                upload [3] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/words.js words.js application/javascript
                Update "system.adapter.backitup.0"
                upload [2] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index_m.html index_m.html text/html
                upload [1] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index.html index.html text/html
                upload [0] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/backitup.png backitup.png image/png
                Adapter "backitup" updated

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

                  Dein Problem liegt definitiv nicht an backitup.
                  Hast du js-controller 1.5.7 laufen?

                  Dein System hat ein Problem.

                  Segway 1 Reply Last reply Reply Quote 0
                  • Segway
                    Segway @simatec last edited by

                    @simatec

                    jscontroller 1.4.2
                    BEVOR ich das update gemacht hatte lief hier alles ohne ERROR in den Logs.

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

                      Starte mal komplett neu und mache das Update erneut.

                      Segway 1 Reply Last reply Reply Quote 0
                      • Segway
                        Segway @simatec last edited by

                        @simatec sagte in Adapter: iobroker.backitup (stable Release):

                        Starte mal komplett neu und mache das Update erneut.

                        also ich habe downgrade auf 1.0.8 gemacht dann ging es wieder.

                        Also dann folgendes gemacht:

                        • IoB korrekt gestoppt
                        • Host runtergefahren
                        • VM runtergefahren
                        • wieder gestartet alles OHNE Fehler im LOG
                        • auf 1.1.1 upgedatet

                        Bisher läufts........das erklär mir mal einer 😒

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

                          Da hing irgendwas an deiner IOB Installation.

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

                            Ab sofort ist die Version 1.1.2 im Github und ab heute Nacht im latest verfügbar.

                            1.1.2 (21.02.2019)

                            • (simatec) exec Start for iobroker
                            • (simatec) Fix umount before Restore

                            Hier an dieser Stelle auch noch einmal der Hinweis, dass es für den neuen Installerscript von iobroker jetzt einen Fix gibt, für alle, die Probleme mit der Rechtevergabe haben und dadurch backitup und auch andere Adapter nur eingeschränkt nutzen können.

                            1. Wenn euer iobroker System mit dem neuen Installer Script installiert wurde, kann es vorkommen, dass ihr nicht alle Rechte für den neuen User iobroker habt.
                              Dies betrifft dann leider auch backitup, da backitup einige systemrelevante Befehle benutzt.

                              Um das Problem mit fehlenden Rechten zu beheben, gibt es inzwischen einen Fix für den Installerscript von iobroker.
                              Führt bitte folgende Befehle auf eure Iobrokerumgebung in der Konsole aus:

                              curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/master/fix_installation.sh | bash 
                              sudo reboot
                              
                            2. Solltet Ihr eine Fehlermeldung beim erstellen der Redis Datenbank bekommen, prüft bitte, ob euer User iobroker die Rechte hat und ob er in der User-Gruppe Redis vorhanden ist.
                              Wenn dies nicht der Fall ist, könnt ihr das mit folgenden Befehl in der Konsole beheben.

                              sudo usermod -a -G redis iobroker
                              sudo reboot
                              

                              Wenn ihr nicht mit dem Installerscript eure Iobroker Installation aufgesetzt habt und euer User einen anderen Namen hat, bitte in dem Befehl "iobroker" durch euren User ersetzen.

                            AlCalzone 1 Reply Last reply Reply Quote 0
                            • AlCalzone
                              AlCalzone Developer @simatec last edited by

                              @simatec sagte in Adapter: iobroker.backitup (stable Release):

                              Wenn euer iobroker System mit dem neuen Installer Script installiert wurde, kann es vorkommen, dass ihr nicht alle Rechte für den neuen User iobroker habt.

                              Zur Info: Dies sollte nicht die neueste Version von Ende Januar betreffen. Bei ganz alten Installationen, bei denen noch viel mit sudo npm gearbeitet wurde, kann das Fix-Skript auch nötig sein.

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

                                @AlCalzone

                                Maximal der Fix, dass der User iobroker der Redis Gruppe hinzugefügt wird sollte mit dem Fix auch die Installationen ab Ende Januar betreffen.
                                Alles andere ist dort bereits im Installerscript gefixt.

                                1 Reply Last reply Reply Quote 0
                                • P
                                  pix @AlCalzone last edited by

                                  @AlCalzone sagte in Adapter: iobroker.backitup (stable Release):

                                  sudo usermod -a -G redis iobroker

                                  Gibt es auch einen Befehl für OS X Terminal? Dort existiert usermod nicht.

                                  Gruß
                                  Pix

                                  AlCalzone 1 Reply Last reply Reply Quote 0
                                  • P
                                    pix last edited by

                                    Etwa so?

                                    sudo chown iobroker:redis FILENAME
                                    

                                    Aber welche Datei?

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

                                      Unter Linux sieht das wie folgt aus ...

                                      @iobroker-dev:~$ sudo ls /var/lib/redis
                                      dump.rdb
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • AlCalzone
                                        AlCalzone Developer @pix last edited by

                                        @pix sagte in Adapter: iobroker.backitup (stable Release):

                                        Gibt es auch einen Befehl für OS X Terminal? Dort existiert usermod nicht.

                                        http://lmgtfy.com/?q=osx+add+user+to+group

                                        Auf OSX wird ioBroker derzeit noch unter dem Account des Users ausgeführt, der es installiert hat. Im Zweifel muss also der eigene Account zur Redis-Gruppe hinzugefügt werden.

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          pix last edited by

                                          Also kurz zum Nachmachen
                                          Terminal Befehle für OS X

                                          • Listenpunktredis Datenbank finden
                                          mdfind dump.rdb
                                          
                                          • Den Pfad ohne dump.rdb in den Adapter-Einstellungen unter "Redis Backup" als Pfad eintragen

                                          • In das Verzeichnis von dump.rdb wechseln oder Pfad verwenden und den eigenen OS X Benutzernamen der Rechteliste der Redis Datenbank hinzufügen

                                          sudo chown osxusername dump.rdb
                                          
                                          • Dann manuell ein Standard Backup manuell starten und in der Ausgabe müsste sowas erscheinen
                                          [DEBUG] [redis] start with {"type":"creator","path":"/Users/pix/"}
                                          [DEBUG] [redis] - Packed 66MB so far...
                                          [DEBUG] [redis] - Packed 135MB so far...
                                          [DEBUG] [redis] - Packed 178MB so far...
                                          [DEBUG] [redis] - Packed 218MB so far...
                                          [DEBUG] [redis] - Packed 266MB so far...
                                          [DEBUG] [redis] - Packed 327MB so far...
                                          [DEBUG] [redis] - Packed 377MB so far...
                                          [DEBUG] [redis] - Packed 476MB so far...
                                          [DEBUG] [redis] - Packed 524MB so far...
                                          [DEBUG] [redis] - Packed 577MB so far...
                                          

                                          Dann klappt's auch wieder mit dem OS X Redis Backup 👍

                                          Gruß
                                          Pix

                                          AlCalzone 1 Reply Last reply Reply Quote 2
                                          • AlCalzone
                                            AlCalzone Developer @pix last edited by

                                            @pix sagte in Adapter: iobroker.backitup (stable Release):

                                            und den eigenen OS X Benutzernamen der Rechteliste der Redis Datenbank hinzufügen

                                            Kann danach redis selbst noch darauf zugreifen?

                                            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

                                            934
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter backitup backup iobroker backup iobroker.backitup
                                            185
                                            2335
                                            1112546
                                            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