I get error no space left on device

I use a synology nas. I have about 12tb left.

The plex server recently stopped a few times.

I checked the log. It shows the following as attached in a picture.

Please help me to resolve the issue.

This is not about storage space but “watches”. Linux systems only support a limited number of folders to be “watched” for updates.

see the hint in section Update my library automatically of this Plex support page:
https://support.plex.tv/hc/en-us/articles/200289526-Library

Do you have Settings > Server > Library > Include music libraries in automated updates checked? This sometimes “explodes” the number of folders in your filesystem and eats up all the available “watches”.

I do have a lot of folders in the file system.

I did not enable including music libraries in automated updates.

Are there any ways to improve this?

no… this is a restriction applied by the operating system. nothing Plex can influence.

This is not a restriction. It is a default on Linux.
The OS kernel parameter can be increased.

  1. Using ssh, sign into the DiskStation as user admin
  2. sudo -su root
  3. echo fs.inotify.max_user_watches=131072 >> /etc/sysctl.conf
  4. Restart DSM

131072 is 128K in decimal. This increases the default kernel limit from 8K directories to 128K directories. It does increase the kernel memory utilization.

Valid possible sizes are: 32768 65536, 131072, 262144, and 524288

2 Likes

ah… scripting 101 :slight_smile:
thx… I didn’t know that.