Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. backitup bricht bei sicherung zigbee2mqtt ab

    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

    backitup bricht bei sicherung zigbee2mqtt ab

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @arteck last edited by

      @arteck

      Die Zeile mit dem read (kann ich nich kopieren, da Screenshot...) geht 100% noch weiter.

      arteck 1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active @Thomas Braun last edited by arteck

        @thomas-braun da ist nix

        2023-03-09 21:25:47.653  - info: host.ioBroker stopInstance system.adapter.backitup.0 send kill signal
        2023-03-09 21:25:48.023  - info: admin.0 (610) <== Disconnect system.user.admin from ::ffff:192.168.16.200 
        2023-03-09 21:25:48.166  - info: host.ioBroker instance system.adapter.backitup.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
        2023-03-09 21:25:48.769  - debug: shuttercontrol.0 (1212) Brightness State Down is: true
        2023-03-09 21:25:50.810  - info: host.ioBroker instance system.adapter.backitup.0 started with pid 65808
        2023-03-09 21:25:52.923  - info: backitup.0 (65808) starting. Version 2.6.9 in /opt/iobroker/node_modules/iobroker.backitup, node: v16.19.1, js-controller: 4.0.24
        2023-03-09 21:25:53.048  - info: backitup.0 (65808) [iobroker] backup was activated at 02:40 every 1 day(s)
        2023-03-09 21:25:53.132  - info: backitup.0 (65808) [ccu] backup was activated at 03:00 every 1 day(s)
        2023-03-09 21:26:01.457  - info: admin.0 (610) ==> Connected system.user.admin from ::ffff:192.168.16.200
        2023-03-09 21:26:40.748  - debug: shuttercontrol.0 (1212) Brightness sensor value: 0
        2023-03-09 21:26:50.748  - debug: shuttercontrol.0 (1212) Brightness State Down is: true
        2023-03-09 21:26:57.509  - error: backitup.0 (65808) [iobroker/zigbee2mqtt] Error: EISDIR: illegal operation on a directory, read
        2023-03-09 21:26:57.515  - error: backitup.0 (65808) [iobroker/zigbee2mqtt] Error: EISDIR: illegal operation on a directory, read
        2023-03-09 21:26:57.516  - error: backitup.0 (65808) [iobroker] Error: EISDIR: illegal operation on a directory, read
        2023-03-09 21:27:42.759  - debug: shuttercontrol.0 (1212) Brightness sensor value: 0
        2023-03-09 21:27:52.760  - debug: shuttercontrol.0 (1212) Brightness State Down is: true
        2023-03-09 21:28:44.795  - debug: shuttercontrol.0 (1212) Brightness sensor value: 0
        2023-03-09 21:28:54.796  - debug: shuttercontrol.0 (1212) Brightness State Down is: true
        2023-03-09 21:29:22.058  - info: admin.0 (610) <== Disconnect system.user.admin from ::ffff:192.168.16.200 
        2023-03-09 21:29:26.508  - info: admin.0 (610) ==> Connected system.user.admin from ::ffff:192.168.16.200
        2023-03-09 21:29:40.306  - info: host.ioBroker stopInstance system.adapter.backitup.0 (force=false, process=true)
        2023-03-09 21:29:40.475  - info: backitup.0 (65808) Got terminate signal TERMINATE_YOURSELF
        2023-03-09 21:29:40.477  - info: backitup.0 (65808) cleaned everything up...
        2023-03-09 21:29:40.479  - info: backitup.0 (65808) terminating
        2023-03-09 21:29:40.481  - info: backitup.0 (65808) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
        2023-03-09 21:29:40.483  - info: host.ioBroker stopInstance system.adapter.backitup.0 send kill signal
        

        das ist es ja... mein Dilema.. dann wirds duch backupit abgeschnitten..

        Thomas Braun simatec 2 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @arteck last edited by

          @arteck

          Nee, die Meldung schau wohl wirklich so abgeschnitten aus...
          Ist aber eigentlich was aus der npm-Ecke, wenn ich das richtig sehe. Keine Ahnung ob backitup an der Stelle npm aufruft.

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

            @arteck Hat der User iobroker Berechtigungen im Volume Pfad?
            Ist zigbee2mqtt läuft als Docker oder?

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

              @simatec also

              es läuft auf einem Pi

              /opt/iobroker                     rechte user iobroker
              /opt/zigbee2mqtt                  rechte user pi
              

              so ist die installation

              aus der Fehlermeldung werde ich nicht schlau aber ja wenns an den rechten liegt ..dann
              muss der pi user ?? was in die iobroker Gruppe ??

              Homoran Thomas Braun simatec 3 Replies Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @arteck last edited by

                @arteck sagte in backitup bricht bei sicherung zigbee2mqtt ab:

                muss der pi user ?? was in die iobroker Gruppe ??

                natürlich

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

                  @arteck sagte in backitup bricht bei sicherung zigbee2mqtt ab:

                  was in die iobroker Gruppe ??

                  Oder in eine etwaige Gruppe 'influx' oder so ähnlich.

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

                    @arteck Ist bei dir /opt/zigbee2mqtt ein Volumepfad oder hast du zigbee2mqtt nicht als Docker Container laufen?

                    Zeige mir mal bitte die kompletten Rechte

                    ls -lah /opt/zigbee2mqtt
                    
                    arteck 2 Replies Last reply Reply Quote 0
                    • arteck
                      arteck Developer Most Active @simatec last edited by arteck

                      @simatec es ist kein docker....

                      @rotamint kannst du die ausgabe mal posten

                      ls -lah /opt/zigbee2mqtt
                      
                      R 1 Reply Last reply Reply Quote 0
                      • R
                        rotamint @arteck last edited by

                        @arteck sagte in backitup bricht bei sicherung zigbee2mqtt ab:

                        ls -lah /opt/zigbee2mqtt

                        
                        pi@ioBroker:~ $ ls -lah /opt/zigbee2mqtt
                        insgesamt 776K
                        drwxr-xr-x  12 pi   pi   4,0K  9. Mär 23:16 .
                        drwxr-xr-x   4 root root 4,0K  9. Mär 23:11 ..
                        -rw-r--r--   1 pi   pi    328  9. Mär 23:11 babel.config.js
                        -rwxr-xr-x   1 pi   pi    179  9. Mär 23:11 cli.js
                        -rw-r--r--   1 pi   pi   5,4K  9. Mär 23:11 CODE_OF_CONDUCT.md
                        -rw-r--r--   1 pi   pi   1,4K  9. Mär 23:11 CONTRIBUTING.md
                        drwxr-xr-x   3 pi   pi   4,0K 10. Mär 17:25 data
                        drwxr-xr-x   6 pi   pi   4,0K  9. Mär 23:16 dist
                        drwxr-xr-x   2 pi   pi   4,0K  9. Mär 23:11 docker
                        -rw-r--r--   1 pi   pi    166  9. Mär 23:11 .dockerignore
                        -rw-r--r--   1 pi   pi     20  9. Mär 23:11 .eslintignore
                        -rw-r--r--   1 pi   pi   1,6K  9. Mär 23:11 .eslintrc.js
                        drwxr-xr-x   8 pi   pi   4,0K  9. Mär 23:11 .git
                        drwxr-xr-x   4 pi   pi   4,0K  9. Mär 23:11 .github
                        -rw-r--r--   1 pi   pi   1,2K  9. Mär 23:11 .gitignore
                        drwxr-xr-x   2 pi   pi   4,0K  9. Mär 23:11 images
                        -rw-r--r--   1 pi   pi   4,0K  9. Mär 23:11 index.js
                        drwxr-xr-x   6 pi   pi   4,0K  9. Mär 23:11 lib
                        -rw-r--r--   1 pi   pi    35K  9. Mär 23:11 LICENSE
                        drwxr-xr-x 398 pi   pi    16K  9. Mär 23:12 node_modules
                        -rw-r--r--   1 pi   pi    234  9. Mär 23:11 .npmignore
                        -rw-r--r--   1 pi   pi     23  9. Mär 23:11 .npmrc
                        -rw-r--r--   1 pi   pi   2,8K  9. Mär 23:11 package.json
                        -rw-r--r--   1 pi   pi   612K  9. Mär 23:11 package-lock.json
                        -rw-r--r--   1 pi   pi   6,1K  9. Mär 23:11 README.md
                        drwxr-xr-x   2 pi   pi   4,0K  9. Mär 23:11 scripts
                        drwxr-xr-x   6 pi   pi   4,0K  9. Mär 23:11 test
                        -rw-r--r--   1 pi   pi    605  9. Mär 23:11 tsconfig.json
                        -rwxr-xr-x   1 pi   pi    937  9. Mär 23:11 update.sh
                        pi@ioBroker:~ $
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • arteck
                          arteck Developer Most Active @simatec last edited by

                          @simatec also was liegts es an den rechten ??

                          simatec JLeg 3 Replies Last reply Reply Quote 0
                          • simatec
                            simatec Developer Most Active @arteck last edited by

                            @arteck Jup sieht ganz danach aus... Das ist halt wie erwartet ein Problem mit unterschiedlichen Usern und dann halt ein Backup über iobroker.
                            Backitup wird ja logischerweise vom User "iobroker" ausgeführt.

                            @rotamint Stelle mal bitte Backitup auf Debuglog und poste mal die komplette Ausgabe vom Backupprozess (bitte gefiltert nach Backitup)

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

                              @arteck Kannst du mir irgendwie mal auflisten, welche Datei denn für ein Backup von zigbee2mqtt relevant sind.
                              Habe das gerade bei mir mal installiert und es macht sicher keinen Sinn, die komplette Directory mit node_modules und allem zu sichern.
                              Da gibt es doch sicher Dateien, die man für einen Restore benötigt und den rest würde ich weglassen

                              Auf den ersten Blick sehe ich nur eine "configuration.yaml"

                              Laut der Update Anleitung wird wohl nur der Inhalt vom data Ordner benötigt

                              https://www.zigbee2mqtt.io/guide/installation/01_linux.html#for-later-update-zigbee2mqtt-to-the-latest-version

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

                                @simatec Danke für Deine Mühe:

                                backitup.0
                                	2023-03-10 21:13:45.931	error	[iobroker] Error: EISDIR: illegal operation on a directory, read
                                backitup.0
                                	2023-03-10 21:13:45.930	error	[iobroker/zigbee2mqtt] Error: EISDIR: illegal operation on a directory, read
                                backitup.0
                                	2023-03-10 21:13:45.930	error	[iobroker/zigbee2mqtt] Error: EISDIR: illegal operation on a directory, read
                                backitup.0
                                	2023-03-10 21:13:45.905	debug	[iobroker/zigbee2mqtt] detected Zigbee2MQTT file: state.json
                                backitup.0
                                	2023-03-10 21:13:45.904	debug	[iobroker/zigbee2mqtt] detected Zigbee2MQTT file: log
                                backitup.0
                                	2023-03-10 21:13:45.903	debug	[iobroker/zigbee2mqtt] detected Zigbee2MQTT file: database.db
                                backitup.0
                                	2023-03-10 21:13:45.903	debug	[iobroker/zigbee2mqtt] detected Zigbee2MQTT file: coordinator_backup.json
                                backitup.0
                                	2023-03-10 21:13:45.901	debug	[iobroker/zigbee2mqtt] detected Zigbee2MQTT file: configuration.yaml
                                backitup.0
                                	2023-03-10 21:13:45.901	debug	[iobroker/zigbee2mqtt] compress from Zigbee2MQTT started ...
                                backitup.0
                                	2023-03-10 21:13:45.900	debug	[iobroker/zigbee2mqtt] Created new zigbee2mqtt_tmp directory
                                backitup.0
                                	2023-03-10 21:13:45.886	debug	[iobroker/zigbee2mqtt] old zigbee2mqtt_tmp directory "/opt/iobroker/backups/zigbee2mqtt_tmp" successfully deleted
                                backitup.0
                                	2023-03-10 21:13:45.258	debug	[iobroker/zigbee2mqtt] Try deleting the old zigbee2mqtt_tmp directory: "/opt/iobroker/backups/zigbee2mqtt_tmp"
                                backitup.0
                                	2023-03-10 21:13:44.588	debug	[iobroker/zigbee] done
                                backitup.0
                                	2023-03-10 21:13:44.587	debug	[iobroker/zigbee] found zigbee database: zigbee.0
                                backitup.0
                                	2023-03-10 21:13:44.432	debug	[iobroker/historyDB] done
                                backitup.0
                                	2023-03-10 21:13:44.430	debug	[iobroker/historyDB] Backup created: /opt/iobroker/backups/historyDB_2023_03_10-21_13_26_backupiobroker.tar.gz
                                backitup.0
                                	2023-03-10 21:13:36.003	debug	[iobroker/historyDB] Packed 6MB so far...
                                backitup.0
                                	2023-03-10 21:13:26.000	debug	[iobroker/historyDB] compress from historyDB started ...
                                backitup.0
                                	2023-03-10 21:13:25.096	debug	[iobroker/iobroker] done
                                backitup.0
                                	2023-03-10 21:13:23.365	debug	[iobroker/iobroker] Backup created: /opt/iobroker/backups/iobroker_2023_03_10-21_13_02_backupiobroker.tar.gz
                                backitup.0
                                	2023-03-10 21:13:11.478	debug	[iobroker/iobroker] host.ioBroker 13660 objects saved
                                backitup.0
                                	2023-03-10 21:13:06.234	debug	[iobroker/iobroker] host.ioBroker 10614 states saved
                                backitup.0
                                	2023-03-10 21:13:01.880	debug	[iobroker/mount] done
                                backitup.0
                                	2023-03-10 21:13:01.876	debug	[iobroker/mount] mount successfully completed
                                backitup.0
                                	2023-03-10 21:13:01.584	debug	[iobroker/mount] cifs-mount command: "sudo mount -t cifs -o username=IoBroker,password=****,domain=SynologyDS218j,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777,vers=3.0 //192.168.16.9/IoBroker_Backup/ /opt/iobroker/backups"
                                backitup.0
                                	2023-03-10 21:13:01.582	debug	[iobroker/mount] noserverino option: false
                                backitup.0
                                	2023-03-10 21:12:51.579	debug	Backup has started ...
                                backitup.0
                                	2023-03-10 21:12:51.508	debug	The local storage check was completed successfully. On the host "ioBroker" are currently 47995 MB free space available!
                                backitup.0
                                	2023-03-10 21:12:47.670	debug	The local storage check was completed successfully. On the host "ioBroker" are currently 47995 MB free space available!
                                
                                simatec 1 Reply Last reply Reply Quote 0
                                • simatec
                                  simatec Developer Most Active @rotamint last edited by simatec

                                  @rotamint Kannst du mir den Inhalt von /data mal zeigen

                                  ls -l /opt/zigbee2mqtt/data

                                  R 1 Reply Last reply Reply Quote 0
                                  • JLeg
                                    JLeg @arteck last edited by

                                    @arteck sagte in backitup bricht bei sicherung zigbee2mqtt ab:

                                    @simatec also was liegts es an den rechten ??

                                    imo: eher nicht. EISDIR bedeutet ‚Error, is a directory‘ => jemand oder etwas versucht ein Directory als ‚Datei‘ zu lesen

                                    1 Reply Last reply Reply Quote 1
                                    • R
                                      rotamint @simatec last edited by

                                      @simatec sagte in backitup bricht bei sicherung zigbee2mqtt ab:

                                      ls -l /opt/zigbee2mqtt/data

                                      pi@ioBroker:~ $ ls -l /opt/zigbee2mqtt/data
                                      insgesamt 60
                                      -rw-r--r--  1 pi pi  3559 10. Mär 10:13 configuration.yaml
                                      -rw-r--r--  1 pi pi  7546 10. Mär 10:24 coordinator_backup.json
                                      -rw-r--r--  1 pi pi 35566 10. Mär 20:35 database.db
                                      drwxr-xr-x 12 pi pi  4096 10. Mär 10:25 log
                                      -rw-r--r--  1 pi pi  7019 10. Mär 21:20 state.json
                                      pi@ioBroker:~ $
                                      
                                      
                                      simatec 1 Reply Last reply Reply Quote 0
                                      • simatec
                                        simatec Developer Most Active @rotamint last edited by

                                        @rotamint Gut das sollten bis auf den Log Ordner alle wichtigen Dateien sein

                                        @arteck Ist das korrekt?

                                        arteck simatec 2 Replies Last reply Reply Quote 0
                                        • arteck
                                          arteck Developer Most Active @simatec last edited by arteck

                                          @simatec jo genau alles was im data liegt ausser log.. da sind aber noch mehr dateien.. kommt auf die konfiguration an ...
                                          also würde ich nur den log ausschliessen..

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

                                            @arteck hab ich erstmal so angepasst und läuft auch. Müsste ich aber in der Doku aufnehmen, wie der Pfad aussehen müsste.

                                            Oder habt ihr den Pfad im zigbee2mqtt Adapter irgendwo definiert, wo Backitup sich den direkt aus der Config holen kann?

                                            Hintergrund ist, dass es im Docker ja etwas anders vom Pfad ausschaut. Da liegt das Volume ja direkt auf dem data Pfad.

                                            Restore ist gerade zwecks Dateirechten noch tricky. Muss ich heute mal schauen.

                                            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

                                            468
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            35
                                            1684
                                            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