# I get error no space left on device

**URL:** <https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370>\
**Category:** General Discussions\
**Created:** [January 5, 2018, 9:42am UTC](https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370 "2018-01-05T09:42:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yche2990](https://avatars.discourse-cdn.com/v4/letter/y/50afbb/32.png) [@yche2990](https://forums.plex.tv/u/yche2990)\
**Post date:** [January 5, 2018, 9:42am UTC](https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370/1 "2018-01-05T09:42:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [January 5, 2018, 11:11am UTC](https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370/2 "2018-01-05T11:11:57Z")

</div>

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](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”.

---

<div class="post-metadata">

**Author:** ![yche2990](https://avatars.discourse-cdn.com/v4/letter/y/50afbb/32.png) [@yche2990](https://forums.plex.tv/u/yche2990)\
**Post date:** [January 5, 2018, 12:01pm UTC](https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370/3 "2018-01-05T12:01:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [January 5, 2018, 12:10pm UTC](https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370/4 "2018-01-05T12:10:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 5, 2018, 3:49pm UTC](https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370/5 "2018-01-05T15:49:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [January 5, 2018, 4:52pm UTC](https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370/6 "2018-01-05T16:52:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 12:24am UTC](https://forums.plex.tv/t/i-get-error-no-space-left-on-device/220370/7 "2020-01-08T00:24:22Z")

</div>


