[Eisfair] minidlna: Schluckauf beim SAMBA Installation: inotify watch limit reached

Peter Bäumer peter at baeumer.duckdns.org
Fr Jul 12 08:24:54 CEST 2024


Glück Auf!

Die unten stehende Meldungen (Failed to add a watch for /run/systemd/ask-password: inotify watch limit reached ) kommt nur wo auch minidlna läuft.

Beim systemctl minidlna ist zu lesen:
minidlna.service: Failed to add control inotify watch descriptor for control group /system.slice/minidlna.service: No space left on device

und beim Googeln bin ich über die Seite gestolpert:
https://askubuntu.com/questions/1088272/inotify-add-watch-failed-no-space-left-on-device
https://forum.ubuntuusers.de/topic/inotify-fuer-minidlna-optimieren-max-user-inst/

cat /proc/sys/fs/inotify/max_user_watches
8192


Ich gehe mal davon aus das der Wert 8192 beim laufenden minidlna zu wenig ist,
ein
     sysctl --write fs.inotify.max_user_watches=65536
bringt da Besserung, ob der Wert jetzt aus reicht oder noch immer zu klein ist muss sich noch zeigen...
die Lösung hält auch nur bis zum nächsten reboot und
ich bin mir nicht sicher ob das der richtige Ansatz ist um das Problem zu lösen...

Bei Ubuntu soll /etc/sysctl.conf den Eintrag   fs.inotify.max_user_watches=1048576   bekommen.

Der Eis hat die sysctl.conf nicht, gibt es eine anderen *.conf File wo man das einstellen kann?

MfG
   Peter B.

--------------------------------------------------------------------------------------------------------------------

  eisman install samba

The following packages will be installed:

version  status   name                   source
---------------------------------------------------------------------
17.0.14  stable   samba                  http://ananke.all.local

1 package(s) using approx. 1 MB of disk space.

Continue (y/n) [yes]?
Downloading required packages ...
=> [####################] samba (17.0.14)...                                                                                                           [  OK  ]
Done!
Installation of: samba (17.0.14) ...
  * Stopping SMBFS - Mount predefined share mounts ...
Failed to add a watch for /run/systemd/ask-password: inotify watch limit reached                                                                       [  OK  ]
  * Stopping Samba server ...
Failed to add a watch for /run/systemd/ask-password: inotify watch limit reached                                                                       [  OK  ]
  * Starting SMBFS - Mount predefined share mounts ...
Failed to add a watch for /run/systemd/ask-password: inotify watch limit reached                                                                       [  OK  ]
  * Starting Samba server ...
Failed to add a watch for /run/systemd/ask-password: inotify watch limit reached                                                                       [  OK  ]
Successfully installed: samba (17.0.14)!





  systemctl status minidlna.service
● minidlna.service
      Loaded: loaded (/etc/init.d/minidlna; generated)
      Active: active (running) since Fri 2024-07-12 00:00:03 CEST; 7h ago
        Docs: man:systemd-sysv-generator(8)
       Tasks: 2 (limit: 2344)
         CPU: 1.414s
      CGroup: /system.slice/minidlna.service
              └─9523 /usr/sbin/minidlnad -P /var/run/minidlna.pid -f /etc/minidlna/minidlna.conf

Jul 12 00:00:02 thebe systemd[1]: Starting minidlna.service...
Jul 12 00:00:02 thebe minidlna[9516]:  * Starting minidlna ...
Jul 12 00:00:03 thebe minidlna[9516]: [26B blob data]
Jul 12 00:00:03 thebe systemd[1]: Started minidlna.service.
Jul 12 07:04:21 thebe systemd[1]: minidlna.service: Failed to add control inotify watch descriptor for control group /system.slice/minidlna.service: No space left on device
Jul 12 07:04:21 thebe systemd[1]: minidlna.service: Failed to add control inotify watch descriptor for control group /system.slice/minidlna.service: No space left on device
Jul 12 07:10:38 thebe systemd[1]: minidlna.service: Failed to add control inotify watch descriptor for control group /system.slice/minidlna.service: No space left on device
Jul 12 07:10:38 thebe systemd[1]: minidlna.service: Failed to add control inotify watch descriptor for control group /system.slice/minidlna.service: No space left on device


Mehr Informationen über die Mailingliste Eisfair