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.
    • Röstkartoffel
      Röstkartoffel last edited by Röstkartoffel

      Ich habe noch ein Problem bei der Redis Sicherung während des Minimal Backups mit "Error: EACCES: permission denied, scandir '/var/lib/redis'".
      Das minimale Backup wird einwandfrei ausgeführt.

      ioBroker frisch aufgesetzt mit allerneuesten Installer.
      Redis eingerichtet und läuft, Backitup V1.1.1, NPM 6.4.1, Node.js v8.15.0, lokale Sicherung

      Egal wie ich das Backup starte (mit DP auf "true" setzten oder automatisch), kommt immer diese Fehlermeldung im Log:

      backitup.0	2019-02-15 11:01:22.481	debug	system.adapter.admin.0: logging false
      backitup.0	2019-02-15 11:01:22.479	debug	redis pmessage io.*.logging io.system.adapter.admin.0.logging {"val":false,"ack":true,"ts":1550224882470,"q":0,"from":"system.adapter.admin.0","lc":1550224882470}
      backitup.0	2019-02-15 11:00:55.915	debug	system.adapter.admin.0: logging true
      backitup.0	2019-02-15 11:00:55.912	debug	redis pmessage io.*.logging io.system.adapter.admin.0.logging {"val":true,"ack":true,"ts":1550224855909,"q":0,"from":"system.adapter.admin.0","lc":1550224855909}
      backitup.0	2019-02-15 10:57:00.351	debug	redis pmessage io.backitup.0.oneClick.* io.backitup.0.oneClick.minimal {"val":false,"ack":true,"ts":1550224620346,"q":0,"from":"system.adapter.backitup.0","lc":1550224620346}
      backitup.0	2019-02-15 10:57:00.339	debug	[minimal] exec: done
      backitup.0	2019-02-15 10:57:00.328	debug	[minimal/history] done
      backitup.0	2019-02-15 10:57:00.256	debug	[minimal/clean] done
      backitup.0	2019-02-15 10:57:00.253	debug	[minimal/clean] Backup files not deleted from /opt/iobroker/backups because some errors.
      backitup.0	2019-02-15 10:57:00.235	debug	[minimal/redis] [IGNORED] Error: EACCES: permission denied, scandir '/var/lib/redis'
      backitup.0	2019-02-15 10:57:00.162	debug	[minimal/minimal] done
      backitup.0	2019-02-15 10:57:00.103	debug	[minimal/minimal] Backup created: /opt/iobroker/backups/minimal_2019_02_15-10_56_47_BananaPiPro_backupiobroker.tar.gz
      backitup.0	2019-02-15 10:56:45.796	debug	redis pmessage io.backitup.0.oneClick.* io.backitup.0.oneClick.minimal {"val":true,"ack":false,"ts":1550224605789,"q":0,"from":"system.adapter.admin.0","lc":1550224605789}
      backitup.0	2019-02-15 10:56:45.213	debug	system.adapter.admin.0: logging false
      backitup.0	2019-02-15 10:56:45.211	debug	redis pmessage io.*.logging io.system.adapter.admin.0.logging {"val":false,"ack":true,"ts":1550224605204,"q":0,"from":"system.adapter.admin.0","lc":1550224605204}
      backitup.0	2019-02-15 10:56:27.491	debug	system.adapter.admin.0: logging true
      backitup.0	2019-02-15 10:56:27.484	debug	redis pmessage io.*.logging io.system.adapter.admin.0.logging {"val":true,"ack":true,"ts":1550224587476,"q":0,"from":"system.adapter.admin.0","lc":1550224587476}
      backitup.0	2019-02-15 10:56:14.757	debug	[total] 10 00 06 */3 * *
      backitup.0	2019-02-15 10:56:14.744	info	[total] backup was activated at 06:00 every 3 day(s)
      backitup.0	2019-02-15 10:56:14.743	debug	[minimal] 10 00 05 */1 * *
      backitup.0	2019-02-15 10:56:14.659	info	[minimal] backup was activated at 05:00 every 1 day(s)
      backitup.0	2019-02-15 10:56:14.590	info	starting. Version 1.1.1 in /opt/iobroker/node_modules/iobroker.backitup, node: v8.15.0
      backitup.0	2019-02-15 10:56:14.237	info	States connected to redis: 127.0.0.1:6379
      backitup.0	2019-02-15 10:56:14.219	debug	statesDB connected
      backitup.0	2019-02-15 10:56:14.108	debug	objectDB connected
      

      Berechtigung Dateien/Ordner:
      Redis Ordner.JPG

      Redis Backup.JPG

      Was kann ich tun?

      simatec 1 Reply Last reply Reply Quote 0
      • simatec
        simatec Developer Most Active @Röstkartoffel last edited by

        @Röstkartoffel

        Das ist leider wieder ein Rechteproblem des Users iobroker.
        Ich schaue mal, ob wir das mit backitup irgendwie umgehen können.
        Der User iobroker, der mit dem Installer angelegt wird, hat nur sehr beschränkte Rechte.
        In dem Fall hat er keine Rechte, den Pfad von Redis zu lesen.

        Ich kümmere mich darum.

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

          In dem Fall dürfte es reichen, den User zur redis-Gruppe hinzuzufügen
          sudo usermod -a -G redis iobroker

          simatec P 3 Replies Last reply Reply Quote 1
          • simatec
            simatec Developer Most Active @AlCalzone last edited by

            @AlCalzone
            Vielleicht können wir das nach erfolgreichen Testen noch mit in den Installer aufnehmen.

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

              @simatec Gerne!

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

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

                In dem Fall dürfte es reichen, den User zur redis-Gruppe hinzuzufügen
                sudo usermod -a -G redis iobroker

                @Röstkartoffel
                Kannst du das mal bitte testen und hier berichten.

                1 Reply Last reply Reply Quote 1
                • Röstkartoffel
                  Röstkartoffel last edited by

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

                  usermod -a -G redis iobroker

                  👍 👍 👍

                  sudo usermod -a -G redis iobroker 
                  reboot
                  

                  oneclick Backup gestartet und voila, keine Fehlermeldung, RedisBackup vorhanden:

                  674cb6e3-8e26-47d7-a127-3c9a1540a006-image.png

                  Danke.

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

                    Prima 🙂
                    https://github.com/ioBroker/ioBroker/pull/125

                    AlCalzone created this issue in ioBroker/ioBroker

                    closed Add user to redis group aswell #125

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

                      Ich habe irgendwann dann das Problem, dass nach dem backup anscheinend nicht sauber geschlossen wird und beim nächsten backup DRIVE IS BUSY kommt. Leider kommt auch keine Meldung, dass das angedachte (cron) backup nicht erstellt werden konnte.

                      Ich merke es erst wenn ich mal nachschaue was auf meinen NAS abgelegt wurde.

                      Kann man da nicht eine Meldung reinbringen ?
                      Per Putty mach ich ein einfaches UMOUNT und danach geht wieder alles. Das könnte man auch einbringen oder ?

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

                        @Segway
                        Das dürfte ab Version 1.0.9 nicht mehr vorkommen.
                        Wenn kein umount gemacht werden kann, da noch Daten geschrieben werden, wird jetzt 10 Minuten gewartet und dann der umount erneut durchgeführt.

                        Segway 1 Reply Last reply Reply Quote 0
                        • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            474
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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