# Scanner error tips?

**URL:** <https://forums.plex.tv/t/scanner-error-tips/561278>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux\
**Created:** [March 25, 2020, 12:08pm UTC](https://forums.plex.tv/t/scanner-error-tips/561278 "2020-03-25T12:08:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crosseyedswede](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/crosseyedswede/32/5749_2.png) [@Crosseyedswede](https://forums.plex.tv/u/Crosseyedswede)\
**Post date:** [March 25, 2020, 12:08pm UTC](https://forums.plex.tv/t/scanner-error-tips/561278/1 "2020-03-25T12:08:33Z")

</div>

Server Version#: 1.18.4.2171

Found a Debian cloud service to host Plex and using GDrive as media storage. Had the TV section index fine for the first few weeks but now the scanner chokes on something. I’ve been digging through the logs but not certain what I should be filtering for other than the “TV” and “Error”. Not a novice but can’t seem to find what is causing the problem. Any tips on what I should be looking for?

---

<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:** [March 25, 2020, 2:52pm UTC](https://forums.plex.tv/t/scanner-error-tips/561278/2 "2020-03-25T14:52:15Z")

</div>

Seeing the error message & DEBUG logs ZIP would help diagnose and mitigate a lot easier 😉

---

<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:** [March 25, 2020, 3:31pm UTC](https://forums.plex.tv/t/scanner-error-tips/561278/4 "2020-03-25T15:31:19Z")

</div>

First tip at reading logs. Turn VERBOSE off again (we have it off by default to avoid flooding the logs with useless information while maximizing the capture duration). Logs have a fixed size of 10 MB.

Please make the change, restart PMS, and regenerate the error activity?

I’ll show you what I find (copy/paste the records here in my reply)

---

<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:** [March 25, 2020, 4:53pm UTC](https://forums.plex.tv/t/scanner-error-tips/561278/6 "2020-03-25T16:53:40Z")

</div>

First step at reading logs: Plex Media Server.log

This error occupies the vast majority of your logs.

- You have more than 8192 directories being monitored by Plex (the linux default table size is 8192)

```auto
device)
Mar 25, 2020 16:36:11.241 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/13 Assassins (2010)" (28: No space left on device)
Mar 25, 2020 16:36:11.242 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/13 Ghosts (1960)" (28: No space left on device)
Mar 25, 2020 16:36:11.242 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/13th (2016)" (28: No space left on device)
Mar 25, 2020 16:36:11.243 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/1776 (1972)" (28: No space left on device)
Mar 25, 2020 16:36:11.244 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/18 Again! (1988)" (28: No space left on device)
Mar 25, 2020 16:36:11.245 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/1900 (1976)" (28: No space left on device)
Mar 25, 2020 16:36:11.246 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/1917 (2019)" (28: No space left on device)
Mar 25, 2020 16:36:11.246 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/1941 (1979)" (28: No space left on device)
Mar 25, 2020 16:36:11.247 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/1945 (2017)" (28: No space left on device)
Mar 25, 2020 16:36:11.247 [0x7f1d0592c700] ERROR - [Notify] Failed to add watch for "/home28/bingolouis/MergerFS/Pretty/movies/2 or 3 Things I Know About Her (1967)" (28: No space left on device)

```

This is important enough to PMS operation, because of how the transcoder works, to fix this first and re-evaluate.

It looks like the bulk of your media (if not all) is in `/home28/bingolouis/MergerFS`?  
If there are more, include them in finding the total number of directories used.

If you need help with this, please don’t hesitate to ask. I’ll help you work out what tuning parameters to give to Linux. I only need to know the total number of diretories in use.

> [@Increase the number of directories Linux can monitor (Notify)](https://forums.plex.tv/t/increase-the-number-of-directories-linux-can-monitor-notify/209156):
>
> The default size of the Linux inotify table is 8192 directories. When PMS is configured to update automatically when media is added, with properly organized media, especially music, this table rapidly fills and exceeds the default allocation. The solution to this is straight forward. Increasing the table size is easy. The first step is to determine how many directories to allocate, A. Determine how many directories are currently in use: sudo find /dir1 /dir2 /dir3 -type d -print…

---

<div class="post-metadata">

**Author:** ![Crosseyedswede](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/crosseyedswede/32/5749_2.png) [@Crosseyedswede](https://forums.plex.tv/u/Crosseyedswede)\
**Post date:** [March 25, 2020, 9:02pm UTC](https://forums.plex.tv/t/scanner-error-tips/561278/7 "2020-03-25T21:02:33Z")

</div>

I do not have sudo rights to the server, so will have to put in a support ticket. Teaches me to not organize my collection better. Thanks so much for the help!

---

<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:** [June 23, 2020, 9:02pm UTC](https://forums.plex.tv/t/scanner-error-tips/561278/8 "2020-06-23T21:02:35Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
