Jump to content

Real Time Monitoring on Unraid Docker


Recommended Posts

Posted

I have real time monitoring set for all my libraries but when I add media to those folders (via smb)  Emby is not detecting the new media until I run a Library Scan. However, my Plex server detects the new media files almost immediately and processes it.

Also when Emby scans the library it finds the media but it will not pull in the artwork and etc. until I identify it. I am not having this issue with Plex. 

I have both running in docker containers on Unraid. I shutdown the Plex container thinking it was possibly interfering with the Emby container, but Emby still behaves the same with Plex shutdown. Can anyone help me with this issue?

 

Posted

@Luke Is this what you needed, I added everything I could think of.

I added a video to my "Kids Shows" library. That video was "Migration" that video was added at about 1930 on the 7th via smb. I waited a few minutes to see if the video would show up. It did not so I requested a library scan, once finished the movie did show in the grid but with no artwork and etc. I then requested metadata refresh to see if it would identify it. All the meta information loaded up fine from there.

Plex found Migration immediately and processed it.

I then added two more videos to my server via smb this time to the Adult Movies folder, The Beekeeper, and Freelance, I left Emby alone as in I did not tell it to run tasks like I did with Migration, those videos did not show up till this AM when I checked to see if they were there. Emby through the night ran its scheduled tasks and pulled in those two videos but only after those tasks were ran. 

I was expecting Emby to be watching those library folders for changes like Plex and immediately pull them in. I have "Enable Real Time Monitoring" set for those Libraries in Emby. After I added Migration, I shutdown my Plex container thinking maybe the Plex scan was interfering with the Emby scan, but that does not appear to be the case.

I cranked up Plex again and it immediately found The Beekeeper and Freelance and processed them.

I have attached the logs.

embyserver-63842947200.txt embyserver.txt

Posted

Out of curiosity why are you mounting your media via smb ?

When running Unraid, why not direct from share in unraid ?

 

Posted (edited)
1 hour ago, jaycedk said:

Out of curiosity why are you mounting your media via smb ?

When running Unraid, why not direct from share in unraid ?

 

I transfer the movie from my Mac to the Unraid storage share via SMB.

I have two Unraid servers, one is storage (R710 no/terrible GPU support), while the other (Dell Optiplex) has a GPU for transcoding and better performance. Unraid on the transcoding server is mapped to the storage server shares via Unassigned devices plugin. The Emby docker container path is mapped to /mnt/RemoteShares/etc... So Emby thinks it's just another share like normal. It's the same way I run Plex. So I figured Emby would function the same. Is that incorrect?

Edited by RobbieBott
Posted (edited)

What happent in you map that share to nfs using Unassigned devices.

Or make a new share using nfs, so you dont disturbe plex.

Edited by jaycedk
Posted
37 minutes ago, jaycedk said:

What happent in you map that share to nfs using Unassigned devices.

Or make a new share using nfs, so you dont disturbe plex.

Same thing. Adding a movie file to the share does not trigger Emby. 

Screenshot 2024-02-08 at 1.02.39 PM.png

Posted

NFS might not work with it. Emby uses the dotnet runtime, which in turn uses INotify for this function, and if I recall I don't think that supports nfs.

Posted
1 minute ago, Luke said:

NFS might not work with it. Emby uses the dotnet runtime, which in turn uses INotify for this function, and if I recall I don't think that supports nfs.

It was on SMB, but I moved it to NFS based on the previous recommendation. I can move it back to SMB to further troubleshoot if you could provide me a starting point.
 

Posted

You mean an smb mount?

Posted

Yes I can change that mount back to SMB. This is how it was originally configured.Screenshot2024-02-08at3_08_50PM.thumb.png.c3bb0b8d6fc148b28025c60f0e0f978a.png

Posted

Inotify does not work with network shares or FUSE filesystems.

Posted (edited)
3 minutes ago, Q-Droid said:

Inotify does not work with network shares or FUSE filesystems.

What I am understanding is that Emby will not work like Plex in my current setup?

Edited by RobbieBott
Posted

It's probably using some other mechanism besides INotify for this function, or perhaps even polling, which I'd rather we not do.

Posted
4 minutes ago, RobbieBott said:

What I am understanding is that Emby will not work like Plex in my current setup?

I don't know what Plex does or how but I do know that the functions Emby uses rely on kernel filesystem features which is why network or FUSE based filesystems can't trigger the notifications.

Posted (edited)
3 minutes ago, Luke said:

It's probably using some other mechanism besides INotify for this function, or perhaps even polling, which I'd rather we not do.

So the only thing I can do at this point is have the tasks scheduled to run every min or two. Def. not ideal but I guess it'll have to do.

Edited by RobbieBott
Posted
2 minutes ago, RobbieBott said:

So the only thing I can do at this point is have the tasks scheduled to run every min or two. Def. not ideal but I guess it'll have to do.

I know it's not ideal but I really wouldn't suggest that. That's going to hammer your file system and degrade server performance. Maybe once an hour?

Posted

If your media is changing that much then perhaps whatever is making the changes can notify Emby via API calls.

I can't find the threads but others have done something similar.

Posted
1 minute ago, Luke said:

I know it's not ideal but I really wouldn't suggest that. That's going to hammer your file system and degrade server performance. Maybe once an hour?

Understood. I'll set it to an hr. I'm just used of throwing files on my server and walking away, after a few min I tell the kids y'all should see x movie to watch now. I'll just have to take the time to run those tasks manually.

Posted
2 minutes ago, Q-Droid said:

If your media is changing that much then perhaps whatever is making the changes can notify Emby via API calls.

I can't find the threads but others have done something similar.

Its doesn't change that much, but what I normally do is start transferring files and leave, I then tell my kids/friends hey this movie is uploading you should see it in a min or two. I will either have to wait till the files transfer and run tasks or wait until the hour mark hits to notify them now.

Posted

Well, if you use automated or scripted methods I found one of the threads that might help.

 

seanbuff
Posted

I'm trying to get my head around this, as I am an UnRAID user and have no issues with RTM.

Is the the fact that you are bouncing across two UnRAID servers via remote shares causing an issue here? Have you tried moving a media file to temp location on the Emby server via whichever mechanism you use, and then use an internal tool Krusader or the native file manager to move it to its final location where Emby can see it? Does that change anything?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...