Plex Media Server Logs_2023-02-01_08-25-31.zip (6.3 MB)
I am running the newest server beta 1.30.2.6563. I have noticed over the last few weeks that Plex has stopped automatically detecting changes in the library folders when radarr and sonarr add media. This feature has worked for years and I have not changed anything recently. When plex does a scan though, it will pick up the new media. I have “Scan my library automatically” selected. I currently have to set Plex to scan every 30 minutes to help mitigate this issue a bit.
I’m currently experiencing the same issue, however even a manual scan or letting Plex automatically scan still won’t detect. I’ve already went through and checked file permissions and file/folder structure and they are exactly how they should be. Only solution I have is to do the “Plex Dance” and which that works. However, doing that almost 50%+ of the time gets annoying. Is there any solution anyone may know?
I did end up what doing what you said on the NAS through the task scheduler. Still no luck on my side as the issue still persists. I even have movies and tv shows disappear after they’ve been upgraded by sonarr or radarr. Only solution so far is moving the show or movie folder out of the monitored plex directory and back into it.
Plex Media Server Version: 1.31.0.6654
Running through package center on Synology
Changed out of hardlink. Yes, all the 3rd party applications are running within docker set to GID 101 admin group. As I was trying to troubleshoot myself I set all docker containers to admin group to see if it would let loose of the troubles.
Changing the GID will fix all future problems but you still have the issue of what to do with existing media and the permissions assigned to those files.
I suggest not putting 3rd party apps in an ‘admin’ group. Certain NAS vendors are sensitive to the user/group admin and grant special privileges. You don’t want a vulnerability here.
I’m going to suggest like what I have.
Please look at it and make certain you understand what I’m doing.
I’m capitalizing on
– Ownership control for myself
– Shared common group membership control to allow read-only sharing between the apps and Plex after the media is written.
I recommend something like this:
Create a UID/GID for Sonarr/Radarr/media-apps to run as
– Example: “media” in GID 105
Add the Plex user as a member of the ‘media’ group (it will be able to read files)
Add your username to the ‘media’ group as well.
Stop Plex,
Change each container to use whichever UID you want (maybe media)
but must use GID=media. This is where you can have the containers run as your UID. (It’s what I do)
Start each container / app (Sonarr / Radarr / etc) and remove the “change GID” assignment. It’s no longer necessary.
Each app will natively write to the ‘UID:media’ assignment
Set each container / app to set permissions of 755. Default file permissions will be 644. DO NOT assign GID. The container’s GID will handle this for you.
— At this point, All newly written media will be setup. We now only need change what exists.
The command line equivalent (for me) would be (I have all media under /vol/media on the NAS):
cd /vol/media
chown -R chuck:media . # put everything owned as me but in the new group
find . -type d -exec chmod 755 {} \; # Change all directories (moves, tv, music, etc)
find . -type f -exec chmod 644 {} \; # Likewise change all media files
What you end up with (Sonarr as example)
NZBget gets file(s) and writes them with UID:media ownership
Sonarr receives file from NZBget and imports
The last thing Sonarr does before completing the import is CHMOD 755 masked.
– This makes the directories in group ‘media’ with 755
– and files in group ‘media’ with 644
Plex, also being a member of media, can see all these filesystem changes and does its thing.
There’s no need to fuss with UID or GID because the container config handles that by design.
Easy enough, ill rework all the permissions to properly secure it down. Thank you for all the help its much appreciated. I’ll post back if the issue still persists.