Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. iobroker fixer Fehler bei Rechtebereinigung

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    iobroker fixer Fehler bei Rechtebereinigung

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

      Hallo zusammen,

      wie bereits in https://forum.iobroker.net/topic/77779/rechteprobleme-von-backitup-nach-fixer-lauf?_=1734509996050&lang=de behandelt, habe ich auch fixer Probleme, aber nur bei einem Adapter (ring), den ich vor kurzem einem Update auf die neuste Version zugeführt habe (im Frontend).
      Jetzt gehören die Verzeichnisse 'root' mit dem ich NICHT und ZU KEINER ZEIT rumhampel (ausser mittels sudo).

      admin@iobroker-master:/opt/iobroker/iobroker-data/files$ ls -la
      total 252
      drwxrwxr-x+ 64 iobroker iobroker 4096 Nov  6 22:39 .
      drwxrwxr-x+ 12 iobroker iobroker 4096 Dec 18 09:33 ..
      drwxrwxr-x+  4 iobroker iobroker 4096 Sep 27 18:36 admin.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Apr 18  2024 alexa2.admin
      drwxrwxr-x+  5 iobroker iobroker 4096 Nov 30 12:10 alias-manager.admin
      drwxrwxr-x+  5 iobroker iobroker 4096 Oct 18 12:07 backitup.admin
      drwxrwxr-x+  4 iobroker iobroker 4096 Mar 31  2024 cloud.admin
      drwxrwxr-x+  4 iobroker iobroker 4096 Nov  4  2023 devices.admin
      drwxrwxr-x+  4 iobroker iobroker 4096 Jul 11 17:42 device-watcher.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Sep 24 14:43 discovery.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov 30 12:11 ds18b20.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Jul 11 17:43 email.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Apr 24  2024 feiertage.admin
      drwxrwxr-x+  5 iobroker iobroker 4096 Nov  4  2023 flot
      drwxrwxr-x+  2 iobroker iobroker 4096 Nov  4  2023 flot.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Sep 24 14:43 followthesun.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Sep 24 14:43 fronius.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 history.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 hm-rega
      drwxrwxr-x+  3 iobroker iobroker 4096 Oct 18 11:57 hm-rega.admin
      drwxrwxr-x+  4 iobroker iobroker 4096 Oct 18 11:58 hm-rpc.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 husqvarna-automower.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Mar 31  2024 ical.0
      drwxrwxr-x+  4 iobroker iobroker 4096 Nov 30 12:10 ical.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Feb 19  2024 influxdb.admin
      drwxrwxr-x+  4 iobroker iobroker 4096 Jul 11 17:41 iot.admin
      drwxrwxr-x+  5 iobroker iobroker 4096 Nov  4  2023 jarvis
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 jarvis.admin
      drwxrwxr-x+  9 iobroker iobroker 4096 Oct 18 12:19 javascript.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 linkeddevices.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Oct 18 11:58 mqtt.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Jul 11 17:44 node-red.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 nut.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Jul 11 17:41 panasonic-viera.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Sep 24 14:43 pushover.admin
      drwxrwxrwx   1 root     root      474 Dec 18 09:01 ring.0
      drwxrwxr-x+  3 iobroker iobroker 4096 Dec 17 05:45 ring.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Oct 18 11:58 scenes.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Dec 17 05:45 schoolfree.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 shelly.0
      drwxrwxr-x+  4 iobroker iobroker 4096 Nov  4  2023 shelly.1
      drwxrwxr-x+  4 iobroker iobroker 4096 Oct 18 11:59 shelly.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Jul 11 17:40 simple-api.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Jul 25 08:10 smartgarden.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Aug 18 17:07 socketio.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Oct 18 11:59 sonoff.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Nov  4  2023 synology.0
      drwxrwxr-x+  3 iobroker iobroker 4096 Apr 24  2024 synology.admin
      drwxrwxr-x+  5 iobroker iobroker 4096 Aug 18 17:07 telegram.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 terminal
      drwxrwxr-x+  2 iobroker iobroker 4096 Nov  4  2023 terminal.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Feb 19  2024 text2command.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Jul 11 17:40 tr-064.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Jul 11 17:40 trashschedule.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Aug 18 17:07 tuya.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Nov  4  2023 vis
      drwxrwxr-x+  5 iobroker iobroker 4096 Nov  4  2023 vis.0
      drwxrwxr-x+  2 iobroker iobroker 4096 Nov  4  2023 vis-colorpicker.admin
      drwxrwxr-x+  2 iobroker iobroker 4096 Apr 18  2024 vis-hqwidgets.admin
      drwxrwxr-x+  5 iobroker iobroker 4096 Apr 18  2024 web
      drwxrwxr-x+  3 iobroker iobroker 4096 Apr 18  2024 web.admin
      drwxrwxr-x+  3 iobroker iobroker 4096 Aug 18 17:07 ws.admin
      drwxrwxr-x+  4 iobroker iobroker 4096 Nov  4  2023 yahka.admin
      drwxrwxr-x+  4 iobroker iobroker 4096 Apr 26  2024 zigbee.admin
      

      Fixer Meldung:

      Fixing directory permissions...
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/#recycle/desktop.ini': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/#recycle': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/.DS_Store': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_unknown_476292060_HDSnapshot.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/_data.json': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_unknown_476292060_Snapshot.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_unknown_476292060_Livestream.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_cocoa_476292060_HDSnapshot.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1734506070048.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1734506100051.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1734506130049.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1734506160048.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir/HDsnapshot476292060_1734506070048.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir/HDsnapshot476292060_1734506100051.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir/HDsnapshot476292060_1734506130049.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir/HDsnapshot476292060_1734506160048.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1734508824589.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732715431211.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732805193082.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732805269507.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732806618523.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732972017783.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1733053764611.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732715433709.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732805196108.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732805278620.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732806620854.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732972019887.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1733053768631.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/snapshot476292060_1733053761820.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_cocoa_476292060_Livestream.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/#recycle/desktop.ini': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/#recycle': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/.DS_Store': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_unknown_476292060_HDSnapshot.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/_data.json': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_unknown_476292060_Snapshot.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_unknown_476292060_Livestream.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_cocoa_476292060_HDSnapshot.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1734506070048.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1734506100051.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1734506130049.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1734506160048.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir/HDsnapshot476292060_1734506070048.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir/HDsnapshot476292060_1734506100051.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir/HDsnapshot476292060_1734506130049.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir/HDsnapshot476292060_1734506160048.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/@eaDir': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1734508824589.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732715431211.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732805193082.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732805269507.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732806618523.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1732972017783.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/HDsnapshot476292060_1733053764611.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732715433709.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732805196108.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732805278620.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732806620854.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1732972019887.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/livestream476292060_1733053768631.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060/snapshot476292060_1733053761820.jpg': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/cocoa_476292060': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0/ring_0_cocoa_476292060_Livestream.mp4': Operation not permitted
      chown: changing ownership of '/opt/iobroker/iobroker-data/files/ring.0': Operation not permitted
      This system does not support setting default permissions.
      
      

      Inhalt der fstab sollte passen:

      admin@iobroker-master:/etc$ cat fstab
      # /etc/fstab: static file system information.
      #
      # Use 'blkid' to print the universally unique identifier for a
      # device; this may be used with UUID= as a more robust way to name devices
      # that works even if disks are added and removed. See fstab(5).
      #
      # systemd generates mount units based on this file, see systemd.mount(5).
      # Please run 'systemctl daemon-reload' after making changes here.
      #
      # <file system> <mount point>   <type>  <options>       <dump>  <pass>
      # / was on /dev/sda1 during installation
      UUID=b6b89445-5bfc-4aff-b7bb-b4585cf6b905 /               ext4   defaults,noatime,errors=remount-ro 0       1
      # swap was on /dev/sda5 during installation
      UUID=9bc352fa-9139-4e9a-ac13-abb7301edda8 none            swap    sw              0       0
      /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
      192.168.200.1:/volume1/video	/opt/iobroker/iobroker-data/files/ring.0	nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
      

      Für mich stellt sich die Frage wie das passiert/passieren kann und wie es korrekt zu korrigieren ist.
      Danke.

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

        @reutli sagte in iobroker fixer Fehler bei Rechtebereinigung:

        /opt/iobroker/iobroker-data/files/ring.0

        Das kann dann aber nur am NFS-mount liegen.
        Wie sehen die Rechte in der Freigabe auf 192.168.200.1:/volume1/video denn aus? NFS überträgt zunächst ja die UID/GID von dort. Wenn das also dem User 0/root gehört, dann auch im Mount-Punkt.

        R 1 Reply Last reply Reply Quote 0
        • R
          reutli @Thomas Braun last edited by

          @thomas-braun

          @thomas-braun sagte in iobroker fixer Fehler bei Rechtebereinigung:

          Wie sehen die Rechte in der Freigabe auf 192.168.200.1:/volume1/video denn aus?

          Wie kann ich das am besten nachschauen? ist auf der NAS...

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

            @reutli sagte in iobroker fixer Fehler bei Rechtebereinigung:

            ist auf der NAS...

            Ich hab keine Ahnung von deinem NAS...

            R 1 Reply Last reply Reply Quote 0
            • R
              reutli @Thomas Braun last edited by reutli

              @thomas-braun
              Klar, ist aber auch nur eine Linux Büchse. Mir geht es um die Befehle die ich absetzen kann.

              EDIT: So sieht es dort (auf der NAS) auf dem Share, der in iob Maschine gemountet ist, aus, also ist Deine Vermutung richtig.

              admin@nas:/volume1/video$ ls -la
              total 15820
              drwxrwxrwx+ 1 root  root      474 Dec 18 09:01 .
              drwxr-xr-x  1 root  root     1004 May 31  2024 ..
              drwxrwxrwx+ 1  1002  1002    1340 Dec 18 09:01 cocoa_476292060
              -rwxrwxrwx+ 1  1002  1002 8592837 Dec 18 09:00 _data.json
              -rwxrwxrwx+ 1 micha users   12292 Dec 18 08:27 .DS_Store
              drwxrwxrwx+ 1 root  root      360 May 23  2024 @eaDir
              drwxrwxrwx+ 1 root  root       22 Dec  9 00:00 #recycle
              -rwxrwxrwx+ 1  1002  1002   93421 Dec 18 08:16 ring_0_cocoa_476292060_HDSnapshot.jpg
              -rwxrwxrwx+ 1  1002  1002 4194352 Dec 18 09:00 ring_0_cocoa_476292060_Livestream.mp4
              -rwxrwxrwx+ 1  1002  1002   85833 Dec  1 12:49 ring_0_unknown_476292060_HDSnapshot.jpg
              -rwxrwxrwx+ 1  1002  1002 3162807 Dec  1 12:49 ring_0_unknown_476292060_Livestream.mp4
              -rwxrwxrwx+ 1  1002  1002   42330 Dec  1 12:49 ring_0_unknown_476292060_Snapshot.jpg
              

              Fraglich also wie ich das korrigieren kann.

              Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @reutli last edited by

                @reutli sagte in iobroker fixer Fehler bei Rechtebereinigung:

                Fraglich also wie ich das korrigieren kann.

                üblicherweise kann man bei einem NAS einen share konfigurieren.
                Bei der Userverwaltung kann man dem share dann den Backupuser zuweisen.

                R 1 Reply Last reply Reply Quote 0
                • R
                  reutli @Homoran last edited by

                  @homoran

                  Das ist richtig. Daran wird es aber nicht direkt liegen, sondern am Squash. Wenn ich hier aber was anderes einstelle als das:
                  Bildschirmfoto 2024-12-18 um 12.48.25.png
                  funktioniert der Share nicht mehr (mount schlägt fehl).

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

                    @reutli sagte in iobroker fixer Fehler bei Rechtebereinigung:

                    1002

                    Das ist also die dortige UID/GID.
                    Am günstigsten wäre es, wenn die mit der UID/GID des users 'iobroker' übereinstimmen würde.

                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @reutli last edited by

                      @reutli sagte in iobroker fixer Fehler bei Rechtebereinigung:

                      sondern am Squash

                      möglich.
                      Ich hsb NFS deswegen nie verstanden und mit Cifs gearbeitet

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

                        Ich halte zwar von Ubuntu als OS nicht besonders viel, aber das Wiki dort ist gut:
                        https://wiki.ubuntuusers.de/NFS/

                        1 Reply Last reply Reply Quote 0
                        • R
                          reutli @Homoran last edited by

                          @homoran
                          jupp, geht mir auch so. Wenn aber NFS läuft dann deutlich schneller und stabiler als CIFS (SMB - aus der Windows Welt).

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

                            Falls jemand bei der Suche darauf stößt...

                            Eine Teillösung wurde durch eine einfach Sache erreicht:
                            Der User "iobroker" (der interne User von iobroker) war gar nicht als berechtigter User eingetragen in den Berechtigungen auf der NAS.
                            Dadurch wurde der User "anonymous" angenommen, der wegen "root_sqash" zu root gemappt wurde. Daurch erhalten Dateien, die abgelegt werden den Owner "roor".

                            Ich habe den User "iobroker" eingetragen, dann bekommt das Verzeichnis den Owner UID=1002, welches die UID des Users "iobroker" auf dem iobroker ist.

                            admin@iobroker-master:~$ id -u iobroker
                            1002
                            

                            Bildschirmfoto 2024-12-18 um 15.03.13.png

                            Allerdings lässt sich der eigentliche Ordner /opt/iobroker/iobroker-data/files/ring.0 nicht ändern. Dieser bleibt, wenn gemountet beim Besitzerroot:
                            drwxrwxrwx 1 root root 474 Dec 18 09:01 ring.0

                            Dies führt dann zu dem oben beschriebenen Fehler im iob fix.

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

                              @reutli

                              Aber
                              192.168.200.1:/volume1/video /opt/iobroker/iobroker-data/files/ring.0 nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
                              ist doch dein Mountpunkt. Wie sehen die Rechte an dem Verzeichnis denn aus, wenn das Dateisystem gerade nicht eingehängt ist?
                              Und ist das Verzeichnis dann leer? Sonst kann es durch Überlagerungen der Dateien zu unschönen Effekten kommen.

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                reutli @Thomas Braun last edited by

                                @thomas-braun

                                Dann muss ich komplett eigenes Verzeichnis anlegen, im Adapter dieses Verzeichnis hinterlegen als Speicherort eintragen und dort dann den NFS-Export rein mounten. Das ist die sauberste Lösung. Tatsächlich ist das Verzeichnis nicht leer.

                                Danke.

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

                                  @reutli

                                  Dann stoppe den Adapter (besser noch den ioBroker), häng das Filesystem aus, verschiebe die Daten aus dem Mountpunkt in das Wurzelverzeichnis der Freigabe und häng es dann wieder auf dem dann leeren Mountpunkt per NFS ein.

                                  Wenn das funktioniert musst du nur noch schauen, dass künftig der mount vor dem Start des ioBrokers erfolgt. Kann man in systemd festlegen.

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    reutli @Thomas Braun last edited by

                                    @thomas-braun
                                    Hatte ich genauso bereits gemacht und funktioniert.
                                    Der grundsätzliche Fehler war, die Daten im Adapterverzeichnis zu speichern und auf dieses einen mount einzuhängen. Das macht man nicht und führt zu den Problemen.

                                    Ergo: Eigenes Verzeichnis (leeres) Verzeichnis z.B. in /home/iobrokeranlegen und dort den mount einhängen.

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

                                      @reutli sagte in iobroker fixer Fehler bei Rechtebereinigung:

                                      Das macht man nicht und führt zu den Problemen.

                                      Richtig.

                                      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

                                      638
                                      Online

                                      31.6k
                                      Users

                                      79.4k
                                      Topics

                                      1.3m
                                      Posts

                                      3
                                      17
                                      424
                                      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