Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Adapter lässt sich nicht löschen

    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 lässt sich nicht löschen

    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      guergen @Negalein last edited by

      @negalein https://forum.iobroker.net/topic/57271/problem-beim-löschen-von-node-red

      Negalein 1 Reply Last reply Reply Quote 0
      • Negalein
        Negalein Global Moderator @guergen last edited by

        @guergen sagte in Adapter lässt sich nicht löschen:

        @negalein https://forum.iobroker.net/topic/57271/problem-beim-löschen-von-node-red

        das hab ich versucht.

        Mit for i in $(ls -dR */.[^.]*-*/); do rm -rf ${i%%/}; done in /opt/iobroker/node_modules$ kommt unter anderem (nur ein sehr kurzer Auszug)

        rm: cannot remove '@peter-murray/.hue-bridge-model-c8zoKMkf/src/model/sensors/ZGPSwitch.ts': Permission denied
        rm: cannot remove '@peter-murray/.hue-bridge-model-c8zoKMkf/src/model/Light.ts': Permission denied
        rm: cannot remove '@peter-murray/.hue-bridge-model-c8zoKMkf/src/HueBridgeModelError.ts': Permission denied
        rm: cannot remove '@peter-murray/.hue-bridge-model-c8zoKMkf/src/types/TimePatternType.ts': Permission denied
        rm: cannot remove '@peter-murray/.hue-bridge-model-c8zoKMkf/src/types/Int8Type.ts': Permission denied
        rm: cannot remove '@peter-murray/.hue-bridge-model-c8zoKMkf/src/types/UInt8Type.test.ts': Permission denied
        rm: cannot remove '@peter-murray/.hue-bridge-model-c8zoKMkf/src/types/StringType.test.ts': Permission denied
        
        G Thomas Braun 2 Replies Last reply Reply Quote 0
        • G
          guergen @Negalein last edited by

          @negalein Dann häng dich doch in den Threat mit rein; vielleicht bekommst du dann eher eine Antwort als immer einen neuen aufmachen!

          Negalein 1 Reply Last reply Reply Quote 0
          • Negalein
            Negalein Global Moderator @guergen last edited by

            @guergen sagte in Adapter lässt sich nicht löschen:

            Dann häng dich doch in den Threat mit rein

            done

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

              @negalein sagte in Adapter lässt sich nicht löschen:

              Permission denied

              Kann nur passieren, wenn da mit höheren Rechten herumhantiert wurde.

              Versuch es mal so:

              cd /opt/iobroker/node_modules
              for i in $(find -type d -iname ".*-*"); do sudo rm -rf ${i%%/}; done
              
              Negalein 1 Reply Last reply Reply Quote 0
              • Negalein
                Negalein Global Moderator @Thomas Braun last edited by

                @thomas-braun sagte in Adapter lässt sich nicht löschen:

                Kann nur passieren, wenn da mit höheren Rechten herumhantiert wurde.

                Ja, anfänglich lief er unter root.

                for i in $(find -type d -iname ".-"); do sudo rm -rf ${i%%/}; done

                Danke, hat funktioniert.

                Und diesen Einzeiler kann ich jetzt immer verwenden, wenn bei Adapter-Updates diese Fehler mit den komischen Endungen kommen?

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

                  @negalein

                  Ja. Aber eigentlich ohne das sudo da drin.
                  Das ist nur erforderlich, weil da mit root-Rechten herumgekaspert wurde. Im Normalfall sollten die Rechte eines einfachen Mitglieds der Gruppe 'iobroker' ausreichen.
                  Jag den ''iobroker fix'' über deine Installation.

                  Negalein 1 Reply Last reply Reply Quote 0
                  • Negalein
                    Negalein Global Moderator @Thomas Braun last edited by

                    @thomas-braun sagte in Adapter lässt sich nicht löschen:

                    Jag den ''iobroker fix'' über deine Installation.

                    der brachte dies

                    ==========================================================================
                        Checking ioBroker user and directory permissions (2/3)
                    ==========================================================================
                    
                    Created /etc/sudoers.d/iobroker
                    Fixing directory permissions...
                    chown: changing ownership of '/opt/iobroker/backups/homematic_2022_08_13-01_30_11_3.65.6_backupiobroker.tar.sbk': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/homematic_2022_08_16-01_30_11_3.65.6_backupiobroker.tar.sbk': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/iobroker_2022_08_18-23_00_10_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/historyDB_2022_08_18-23_01_23_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/grafana_2022_08_18-23_02_17_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/javascripts_2022_08_18-23_02_23_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/homematic_2022_08_19-01_30_11_3.65.8_backupiobroker.tar.sbk': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/iobroker_2022_08_19-23_00_10_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/historyDB_2022_08_19-23_01_19_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/grafana_2022_08_19-23_02_12_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/javascripts_2022_08_19-23_02_18_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/iobroker_2022_08_20-23_00_10_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/historyDB_2022_08_20-23_01_08_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/grafana_2022_08_20-23_02_02_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/javascripts_2022_08_20-23_02_08_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/homematic_2022_08_13-01_30_11_3.65.6_backupiobroker.tar.sbk': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/homematic_2022_08_16-01_30_11_3.65.6_backupiobroker.tar.sbk': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/iobroker_2022_08_18-23_00_10_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/historyDB_2022_08_18-23_01_23_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/grafana_2022_08_18-23_02_17_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/javascripts_2022_08_18-23_02_23_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/homematic_2022_08_19-01_30_11_3.65.8_backupiobroker.tar.sbk': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/iobroker_2022_08_19-23_00_10_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/historyDB_2022_08_19-23_01_19_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/grafana_2022_08_19-23_02_12_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/javascripts_2022_08_19-23_02_18_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/iobroker_2022_08_20-23_00_10_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/historyDB_2022_08_20-23_01_08_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/grafana_2022_08_20-23_02_02_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups/javascripts_2022_08_20-23_02_08_Standard_backupiobroker.tar.gz': Operation not permitted
                    chown: changing ownership of '/opt/iobroker/backups': Operation not permitted
                    This system does not support setting default permissions.
                    Do not use npm to manually install adapters unless you know what you are doing!
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Negalein last edited by

                      @negalein

                      Ist das /opt/iobroker/backups ein gemountetes externes Dateisystem?

                      Negalein 1 Reply Last reply Reply Quote 0
                      • Negalein
                        Negalein Global Moderator @Thomas Braun last edited by

                        @thomas-braun sagte in Adapter lässt sich nicht löschen:

                        Ist das /opt/iobroker/backups ein gemountetes externes Dateisystem?

                        Ja

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

                          @negalein
                          Dann ist das offenbar nicht richtig angelegt und/oder in einem 'nicht-Linux-Format' formatiert.

                          1 Reply Last reply Reply Quote 0
                          • Negalein
                            Negalein Global Moderator last edited by

                            @thomas-braun sagte in Adapter lässt sich nicht löschen:

                            Dann ist das offenbar nicht richtig angelegt und/oder in einem 'nicht-Linux-Format' formatiert.

                            Mount ist zur Synology

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

                              @negalein

                              Mit welchen Parametern?

                              Zeig mal

                              mount | sort
                              
                              Negalein 1 Reply Last reply Reply Quote 0
                              • Negalein
                                Negalein Global Moderator @Thomas Braun last edited by

                                @thomas-braun sagte in Adapter lässt sich nicht löschen:

                                mount | sort

                                /dev/mapper/pve-vm--100--disk--0 on / type ext4 (rw,relatime,stripe=16)
                                10.0.1.21:/volume1/Backups on /opt/iobroker/backups type nfs4 (rw,relatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.0.1.201,local_lock=none,addr=10.0.1.21)
                                binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
                                debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
                                devpts on /dev/console type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
                                devpts on /dev/ptmx type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
                                devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
                                devpts on /dev/tty1 type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
                                devpts on /dev/tty2 type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
                                efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
                                fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
                                lxcfs on /proc/cpuinfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
                                lxcfs on /proc/diskstats type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
                                lxcfs on /proc/loadavg type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
                                lxcfs on /proc/meminfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
                                lxcfs on /proc/stat type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
                                lxcfs on /proc/swaps type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
                                lxcfs on /proc/uptime type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
                                lxcfs on /sys/devices/system/cpu/online type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
                                mqueue on /dev/mqueue type mqueue (rw,relatime)
                                none on /dev type tmpfs (rw,relatime,size=492k,mode=755,uid=100000,gid=100000,inode64)
                                none on /proc/sys/kernel/random/boot_id type tmpfs (ro,nosuid,nodev,noexec,relatime,size=492k,mode=755,uid=100000,gid=100000,inode64)
                                none on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime)
                                proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
                                proc on /proc/sys type proc (ro,relatime)
                                proc on /proc/sys/net type proc (rw,nosuid,nodev,noexec,relatime)
                                proc on /proc/sysrq-trigger type proc (ro,relatime)
                                pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
                                securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
                                sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
                                sysfs on /sys/devices/virtual/net type sysfs (rw,nosuid,nodev,noexec,relatime)
                                tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,uid=100000,gid=100000,inode64)
                                tmpfs on /run type tmpfs (rw,nosuid,nodev,size=1626516k,mode=755,uid=100000,gid=100000,inode64)
                                tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,uid=100000,gid=100000,inode64)
                                tmpfs on /run/user/1001 type tmpfs (rw,nosuid,nodev,relatime,size=1626512k,mode=700,uid=101001,gid=101001,inode64)
                                udev on /dev/full type devtmpfs (rw,nosuid,relatime,size=8098220k,nr_inodes=2024555,mode=755,inode64)
                                udev on /dev/null type devtmpfs (rw,nosuid,relatime,size=8098220k,nr_inodes=2024555,mode=755,inode64)
                                udev on /dev/random type devtmpfs (rw,nosuid,relatime,size=8098220k,nr_inodes=2024555,mode=755,inode64)
                                udev on /dev/tty type devtmpfs (rw,nosuid,relatime,size=8098220k,nr_inodes=2024555,mode=755,inode64)
                                udev on /dev/urandom type devtmpfs (rw,nosuid,relatime,size=8098220k,nr_inodes=2024555,mode=755,inode64)
                                udev on /dev/zero type devtmpfs (rw,nosuid,relatime,size=8098220k,nr_inodes=2024555,mode=755,inode64)
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Negalein last edited by

                                  @negalein
                                  Das scheint mit auf dem nfs-client korrekt zu sein.
                                  Wie sind die Einstellungen auf dem nfs-Server?

                                  Negalein 1 Reply Last reply Reply Quote 0
                                  • Negalein
                                    Negalein Global Moderator @Thomas Braun last edited by

                                    @thomas-braun sagte in Adapter lässt sich nicht löschen:

                                    Wie sind die Einstellungen auf dem nfs-Server?

                                    37943874-315f-47c8-891f-9c84fedbb81b-image.png

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

                                      @negalein

                                      Der Squash dürfte so falsch sein. Die UID/GID sollten eigentlich 1:1 auf dem nfs-Server durchlaufen.
                                      Wem gehört denn z. B.

                                      ls -la /opt/iobroker/backups/iobroker_2022_08_19-23_00_10_Standard_backupiobroker.tar.gz
                                      getfacl /opt/iobroker/backups/iobroker_2022_08_19-23_00_10_Standard_backupiobroker.tar.gz
                                      
                                      Negalein 1 Reply Last reply Reply Quote 0
                                      • Negalein
                                        Negalein Global Moderator @Thomas Braun last edited by

                                        @thomas-braun sagte in Adapter lässt sich nicht löschen:

                                        Wem gehört denn z. B.

                                        nega@ioBroker:/opt/iobroker$ ls -la /opt/iobroker/backups/iobroker_2022_08_19-23_00_10_Standard_backupiobroker.tar.gz
                                        -rwxrwxrwx 1 nobody nogroup 438757824 Aug 19 23:01 /opt/iobroker/backups/iobroker_2022_08_19-23_00_10_Standard_backupiobroker.tar.gz
                                        nega@ioBroker:/opt/iobroker$ getfacl /opt/iobroker/backups/iobroker_2022_08_19-23_00_10_Standard_backupiobroker.tar.gz
                                        getfacl: Removing leading '/' from absolute path names
                                        # file: opt/iobroker/backups/iobroker_2022_08_19-23_00_10_Standard_backupiobroker.tar.gz
                                        # owner: nobody
                                        # group: nogroup
                                        user::rwx
                                        group::rwx
                                        other::rwx
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Negalein last edited by

                                          @negalein sagte in Adapter lässt sich nicht löschen:

                                          Statt 'nobody/nogroup' muss das natürlich weiterhin dem 'iobroker/iobroker' gehören.

                                          Negalein 1 Reply Last reply Reply Quote 0
                                          • Negalein
                                            Negalein Global Moderator @Thomas Braun last edited by

                                            @thomas-braun sagte in Adapter lässt sich nicht löschen:

                                            Statt 'nobody/nogroup' muss das natürlich weiterhin dem 'iobroker/iobroker' gehören.

                                            dann leg ich also auf der Synology den Benutzer iobroker und die Gruppe iobroker an.
                                            Und gebe auf der Syno dem Backupordner dem Benutzer iobroker Vollzugriff?

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            570
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            34
                                            718
                                            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