Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst]BackitUp: [ERROR] [iobroker] - permission denied

    NEWS

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

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    [gelöst]BackitUp: [ERROR] [iobroker] - permission denied

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

      Hallo,
      ein erfolgreiches Neues Jahr zusammen!

      Backitup erzeugt Fehlermeldung:

      Started iobroker ...
      [DEBUG] [mount] start with {"mountType":"CIFS","type":"storage","source":"cifs","mount":"//192.168.2.200","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"bkpType":"Minimal","dir":"Backup","dirMinimal":"sharename/backupDir","user":"iobroker_backup","pass":"****"}
      [DEBUG] [mount] - noserverino option: false
      [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=iobroker_backup,password=****,rw,file_mode=0777,dir_mode=0777,vers=1.0 //192.168.2.200/Backup /opt/iobroker/backups"
      [DEBUG] [mount] - mount successfully completed
      [DEBUG] [mount] - done
      [DEBUG] [iobroker] start with {"type":"creator","time":"02:00","debugging":true,"slaveBackup":"Single","everyXDays":"1","nameSuffix":"IObroker_Standard_Backup","deleteBackupAfter":0,"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"cifs","mount":"//192.168.2.200","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"bkpType":"Minimal","dir":"/Backup","dirMinimal":"sharename/backupDir","user":"iobroker_backup","pass":"****","context":{"fileNames":[],"errors":{},"done":["mount"],"types":[]},"adapter":null,"influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[]},"dir":"/opt/iobroker","historyHTML":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"historyJSON":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"telegram":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":"longTelegramNotice","User":"none","onlyError":false,"telegramWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"email":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","NoticeType":"longEmailNotice","emailReceiver":"arehder@yahoo.com","emailSender":"arehder@yahoo.com","onlyError":false,"emailWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"pushover":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":"longPushoverNotice","deviceID":"","onlyError":false,"pushoverWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"whatsapp":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","NoticeType":"longWhatsappNotice","onlyError":false,"whatsappWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"backupDir":"/opt/iobroker/backups"}
      [DEBUG] [iobroker] - host.ioBroker-RasPi 3227 states saved
      
      [DEBUG] [iobroker] - host.ioBroker-RasPi 3922 objects saved
      
      [ERROR] [iobroker] - host.ioBroker-RasPi Cannot pack directory /opt/iobroker/node_modules/iobroker.js-controller/tmp/backup: Error: EACCES: permission denied, open '/opt/iobroker/backups/iobroker_2022_01_02-18_34_19_IObroker_Standard_Backup_backupiobroker.tar.gz'
      
      [DEBUG] [iobroker] - done
      [DEBUG] [cifs] - done
      [DEBUG] [cifs] start with {"mountType":"CIFS","type":"storage","source":"cifs","mount":"//192.168.2.200","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"bkpType":"Minimal","dir":"/Backup","dirMinimal":"sharename/backupDir","user":"iobroker_backup","pass":"****","backupDir":"/opt/iobroker/backups","influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[],"deleteBackupAfter":0}
      [DEBUG] [clean] - done
      [DEBUG] [email] - done
      [DEBUG] [email] start with {"type":"creator","time":"02:00","debugging":true,"slaveBackup":"Single","everyXDays":"1","nameSuffix":"IObroker_Standard_Backup","deleteBackupAfter":0,"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"cifs","mount":"//192.168.2.200","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"bkpType":"Minimal","dir":"/Backup","dirMinimal":"sharename/backupDir","user":"iobroker_backup","pass":"****","context":{"fileNames":["/opt/iobroker/backups/iobroker_2022_01_02-18_34_19_IObroker_Standard_Backup_backupiobroker.tar.gz"],"errors":{},"done":["mount","iobroker"],"types":["iobroker"]},"adapter":null,"influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[]},"dir":"/opt/iobroker","historyHTML":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"historyJSON":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"telegram":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":"longTelegramNotice","User":"none","onlyError":false,"telegramWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"email":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","NoticeType":"longEmailNotice","emailReceiver":"arehder@yahoo.com","emailSender":"arehder@yahoo.com","onlyError":false,"emailWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de","time":"02. Januar 2022 um 18:34 Uhr"},"pushover":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":"longPushoverNotice","deviceID":"","onlyError":false,"pushoverWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"whatsapp":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","NoticeType":"longWhatsappNotice","onlyError":false,"whatsappWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"backupDir":"/opt/iobroker/backups","influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[]}
      [DEBUG] [historyHTML] - new history html values created
      [DEBUG] [historyHTML] - done
      [DEBUG] [historyHTML] start with {"type":"creator","time":"02:00","debugging":true,"slaveBackup":"Single","everyXDays":"1","nameSuffix":"IObroker_Standard_Backup","deleteBackupAfter":0,"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"cifs","mount":"//192.168.2.200","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"bkpType":"Minimal","dir":"/Backup","dirMinimal":"sharename/backupDir","user":"iobroker_backup","pass":"****","context":{"fileNames":["/opt/iobroker/backups/iobroker_2022_01_02-18_34_19_IObroker_Standard_Backup_backupiobroker.tar.gz"],"errors":{},"done":["mount","iobroker"],"types":["iobroker"]},"adapter":null,"influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[]},"dir":"/opt/iobroker","historyHTML":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de","time":"02. Januar 2022 um 18:34 Uhr"},"historyJSON":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"telegram":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":"longTelegramNotice","User":"none","onlyError":false,"telegramWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"email":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","NoticeType":"longEmailNotice","emailReceiver":"arehder@yahoo.com","emailSender":"arehder@yahoo.com","onlyError":false,"emailWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"pushover":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":"longPushoverNotice","deviceID":"","onlyError":false,"pushoverWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"whatsapp":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","NoticeType":"longWhatsappNotice","onlyError":false,"whatsappWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"backupDir":"/opt/iobroker/backups","influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[]}
      [DEBUG] [historyJSON] - new history json values created
      [DEBUG] [historyJSON] - done
      [DEBUG] [umount] - mount activ, umount is started ...
      [DEBUG] [historyJSON] start with {"type":"creator","time":"02:00","debugging":true,"slaveBackup":"Single","everyXDays":"1","nameSuffix":"IObroker_Standard_Backup","deleteBackupAfter":0,"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"cifs","mount":"//192.168.2.200","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"bkpType":"Minimal","dir":"/Backup","dirMinimal":"sharename/backupDir","user":"iobroker_backup","pass":"****","context":{"fileNames":["/opt/iobroker/backups/iobroker_2022_01_02-18_34_19_IObroker_Standard_Backup_backupiobroker.tar.gz"],"errors":{},"done":["mount","iobroker"],"types":["iobroker"]},"adapter":null,"influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[]},"dir":"/opt/iobroker","historyHTML":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"historyJSON":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de","time":"02. Januar 2022 um 18:34 Uhr"},"telegram":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":"longTelegramNotice","User":"none","onlyError":false,"telegramWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"email":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","NoticeType":"longEmailNotice","emailReceiver":"arehder@yahoo.com","emailSender":"arehder@yahoo.com","onlyError":false,"emailWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"pushover":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":"longPushoverNotice","deviceID":"","onlyError":false,"pushoverWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"whatsapp":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","NoticeType":"longWhatsappNotice","onlyError":false,"whatsappWaiting":0,"hostName":"IObroker_Standard_Backup","systemLang":"de"},"backupDir":"/opt/iobroker/backups","influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[]}
      [DEBUG] [umount] start with {"mountType":"CIFS","type":"storage","source":"cifs","mount":"//192.168.2.200","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"bkpType":"Minimal","dir":"/Backup","dirMinimal":"sharename/backupDir","user":"iobroker_backup","pass":"****","backupDir":"/opt/iobroker/backups","influxDBEvents":[],"mySqlEvents":[],"pgSqlEvents":[]}
      [DEBUG] [umount] - umount successfully completed
      [DEBUG] [umount] - done
      [EXIT] 9
      

      Wenn ich das backup von der Kosole starte, bekomme ich keine Fehler:

      pi@ioBroker-RasPi:/opt/iobroker/backups $ iobroker backup
      host.ioBroker-RasPi 3227 states saved
      host.ioBroker-RasPi 3922 objects saved
      Backup created: /opt/iobroker/backups/2022_01_02-18_38_53_backupiobroker.tar.gz
      
      pi@ioBroker-RasPi:/opt/iobroker/backups $ ls -l
      insgesamt 5256
      -rw-rwxrw-+ 1 iobroker iobroker 2688087 Jan  2 17:14 2022_01_02-17_14_31_backupiobroker.tar.gz
      -rw-rw-rw-+ 1 iobroker iobroker 2688747 Jan  2 18:39 2022_01_02-18_38_53_backupiobroker.tar.gz
      

      Habe den fixer laufen lassen:

      pi@ioBroker-RasPi:/opt/iobroker/backups $ iobroker fix
      library: loaded
      Library version=2021-12-27
      
      ==========================================================================
      
          Welcome to the ioBroker installation fixer!
          Script version: 2021-12-27
      
          You might need to enter your password a couple of times.
      
      ==========================================================================
      
      
      ==========================================================================
          Installing prerequisites (1/3)
      ==========================================================================
      
      Holen:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15,0 kB]
      OK:2 http://archive.raspberrypi.org/debian stretch InRelease
      OK:3 https://deb.nodesource.com/node_14.x stretch InRelease
      Es wurden 15,0 kB in 1 s geholt (10,7 kB/s).
      Paketlisten werden gelesen... Fertig
      Installed gcc-c++
      
      ==========================================================================
          Checking ioBroker user and directory permissions (2/3)
      ==========================================================================
      
      Created /etc/sudoers.d/iobroker
      Fixing directory permissions...
      
      ==========================================================================
          Checking autostart (3/3)
      ==========================================================================
      
      Enabling autostart...
      Autostart enabled!
      
      ==========================================================================
      
          Your installation was fixed successfully
          Run iobroker start to start ioBroker again!
      
      ==========================================================================
      

      Hat jemand eine Idee, wie man den Zugriffsfehler beseitige kann?

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

        @axel56 sagte in BackitUp: [ERROR] [iobroker] - permission denied:

        Wenn ich das backup von der Kosole starte, bekomme ich keine Fehler:

        Da mountest du ja auch keine smb-Freigabe mit vers=1.0.
        Stell da den smb-Dialekt ein, den dein Server spricht. Vermutlich eine Version 3.

        A 1 Reply Last reply Reply Quote 0
        • A
          axel56 @Thomas Braun last edited by

          @thomas-braun wie kann ich denn den smb-Dialekt einstellen? Hab da leider keine Ahnung 😕

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

            @axel56 In den Einstellungen des Backitup-Adapters. Bei dir steht da v1 drin. Was dein smb-Server quasselt weiß ich nicht, ich würde aber mal mit 3.1.1 anfangen und nach unten gehen, wenn du das nicht weißt.

            A 1 Reply Last reply Reply Quote 1
            • A
              axel56 @Thomas Braun last edited by

              @thomas-braun Danke, das war ein Volltreffer!
              Ich sichere die backups auf meiner NAS (Synology DSM 4.3). Dort war der Dienst SMB 2 nicht aktiviert.
              Im Backitup Adapter habe ich den SMB-Typ von 1.0 auf 2.0 gestellt.
              Das Backup funktioniert und wird auf das NAS kopiert. 👍

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

                @axel56 Wenn es geht würde ich auf die Version 3 gehen.

                A 1 Reply Last reply Reply Quote 0
                • A
                  axel56 @Thomas Braun last edited by

                  @thomas-braun Jawoll - SMB 3.0 geht auch.

                  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

                  444
                  Online

                  32.0k
                  Users

                  80.5k
                  Topics

                  1.3m
                  Posts

                  2
                  7
                  853
                  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