# Library stopped adding files

**URL:** <https://forums.plex.tv/t/library-stopped-adding-files/575374>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux\
**Created:** [April 16, 2020, 4:32pm UTC](https://forums.plex.tv/t/library-stopped-adding-files/575374 "2020-04-16T16:32:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![numbers1thru9](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/numbers1thru9/32/183329_2.png) [@numbers1thru9](https://forums.plex.tv/u/numbers1thru9)\
**Post date:** [April 16, 2020, 4:32pm UTC](https://forums.plex.tv/t/library-stopped-adding-files/575374/1 "2020-04-16T16:32:09Z")

</div>

Server Version#:1.16.5.1488 upgraded to 1.19.1.2645 to try and fix

For some reason after a server shutdown for moving, the library works just fine for playing, however when my external systems indicate that there are new media files, the server is not adding them. I have verified their names, rescanned and refreshed the library, but no new files are showing for any TV shows being added. Drive space isnt an issue. Updated to the latest version, applied patches, could not find an issue. I have attached the log files I downloaded [Plex Media Server Logs\_2020-04-16\_11-46-15.zip](https://forums.plex.tv/uploads/short-url/mTrinOTtWt24beUNO7S9M7RGmrV.zip) (2.2 MB) . For example we are trying to watch Family Matters Season 02 but the will not show in the library. I cannot find any errors in the logs to indicate why it fails to add the folder to the library. Any and all help is appreciated.

---

<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:** [April 16, 2020, 4:51pm UTC](https://forums.plex.tv/t/library-stopped-adding-files/575374/2 "2020-04-16T16:51:36Z")

</div>

Permissions are an issue.  
The `lost+found` directory (which should only exist in the root of the filesystem) has been copied (?) into the new location? Might want to address this too.

```auto
Apr 16, 2020 11:41:26.237 [0x7fd3e7fff700] DEBUG - [Notify] Now watching "/data/Videos/Movies"
Apr 16, 2020 11:41:26.237 [0x7fd3cf7fe700] DEBUG - PluginRepository::setStartState: 3, complete
Apr 16, 2020 11:41:26.237 [0x7fd3e7fff700] DEBUG - [Notify] Now watching "/data/Videos/Movies/Movies2"
Apr 16, 2020 11:41:26.237 [0x7fd3737fe700] DEBUG - HTTP requesting GET http://127.0.0.1:56188/:/plugins/com.plexapp.agents.imdb/prefs
Apr 16, 2020 11:41:26.238 [0x7fd3e7fff700] ERROR - [Notify] Failed to add watch for "/data/Videos/Movies/Movies2/lost+found" (13: Permission denied)
Apr 16, 2020 11:41:26.238 [0x7fd3e7fff700] DEBUG - [Notify] Caught exception on directory.
Apr 16, 2020 11:41:26.238 [0x7fd3e7fff700] ERROR - [Notify] Failed to add watch for "/data/Videos/Movies/lost+found" (13: Permission denied)
Apr 16, 2020 11:41:26.238 [0x7fd3e7fff700] DEBUG - [Notify] Caught exception on directory.

```

---

<div class="post-metadata">

**Author:** ![numbers1thru9](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/numbers1thru9/32/183329_2.png) [@numbers1thru9](https://forums.plex.tv/u/numbers1thru9)\
**Post date:** [April 16, 2020, 4:54pm UTC](https://forums.plex.tv/t/library-stopped-adding-files/575374/3 "2020-04-16T16:54:02Z")

</div>

Thanks! I removed those folders and rescanned just in case it was causing the problem but it wasnt.

---

<div class="post-metadata">

**Author:** ![numbers1thru9](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/numbers1thru9/32/183329_2.png) [@numbers1thru9](https://forums.plex.tv/u/numbers1thru9)\
**Post date:** [April 16, 2020, 5:08pm UTC](https://forums.plex.tv/t/library-stopped-adding-files/575374/4 "2020-04-16T17:08:32Z")

</div>

Well it looks like something changed in my system when it rebooted for the move. Turns out everything new being added was with the wrong permissions. It was adding it with 600 instead of 644. Setting permissions and rescanning added to the library. Now I just have to figure out why its suddenly adding with incorrect permissions…

---

<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:** [April 16, 2020, 6:50pm UTC](https://forums.plex.tv/t/library-stopped-adding-files/575374/5 "2020-04-16T18:50:10Z")

</div>

If I may recommend?

```auto
find /DirName -type d -exec chmod 755 {} \;
find /DirName -type f -exec chmod 644 {} \;

```

You can also add the `setuid` and `setgid` bits to enforce permissions on the directories and files created from this point forward.

---

<div class="post-metadata">

**Author:** ![numbers1thru9](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/numbers1thru9/32/183329_2.png) [@numbers1thru9](https://forums.plex.tv/u/numbers1thru9)\
**Post date:** [April 17, 2020, 12:23pm UTC](https://forums.plex.tv/t/library-stopped-adding-files/575374/6 "2020-04-17T12:23:46Z")

</div>

This is what I did to fix it earlier. I have the setuid and gid bits and thats why im not sure how it decided to reset that. Thanks for your fast replies! Was pulling my hair out for a few hours on this one.

---

<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:** [July 16, 2020, 12:27pm UTC](https://forums.plex.tv/t/library-stopped-adding-files/575374/7 "2020-07-16T12:27:15Z")

</div>

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