Jump to content

Realtime monitoring of network share ?


lordvader

Recommended Posts

neroasintos

In that case, where can I dig around for more info about the code behind this function?

Is there any other way to force a refresh on detection or to replicate the above mentioned magic function?

Link to comment
Share on other sites

It is enabled according to your log so it looks like you were successful in turning it on. If  you make changes in a directory and you don't see log entries similar to:

//folder/file reports change

then it's just not supported by the mono runtime for your environment and/or file system.

Link to comment
Share on other sites

neroasintos

Hmmmm...

If this should be the culprit, where do I find some logs for it?

How is it connected to Emby or where is the mono function called in the realtime monitor script?

Where can I find the realtime monitor function script?

What linux distribution is the most "mono" friendly?

The "40" from <RealtimeLibraryMonitorDelay>40</RealtimeLibraryMonitorDelay> value represents the interval in seconds at which library folders are checked for changes?

 

OS is a fresh install Ubuntu 14.04.03, mono seems to be enabled and no trace of errors in the OS logs. I have uploaded a printscreen of mono --version output

 

Thanks in advance :)

post-103181-0-56793600-1451968524_thumb.png

Edited by neroasintos
Link to comment
Share on other sites

You have mono 4.2.1 which is very new and I know others have used it on ubuntu so i'm surprised at your lack of success.

 

That being said, we depend entirely on mono for this feature, so if those events aren't firing, there's nothing from the emby side that can be done to fix it.

 

I do see this on the mono website so maybe this might help

What are the issues with FileSystemWatcher?
The Mono implementation of FileSystemWatcher has a number of backends, the most optimal one, the one with fewer dependencies is the inotify-backend (available in Mono 1.1.17 and newer versions).

With this backend the kernel provides Mono with updates on any changes to files on the file system but it requires an inotify-enabled kernel, which only newer Linux distributions ship.

http://www.mono-project.com/docs/faq/technical/

Link to comment
Share on other sites

neroasintos

Thank you very much Luke, for all the info. I will go on and see what I can dig about Mono.

So far i have tried similar software but Emby is the prize winner for me therefore I will keep a close eye on its forums and help when and where I can :)

Link to comment
Share on other sites

That mono article looks old so I am guessing by now the ubuntu kernel has this feature. Is the path local or does it map to a network path? If the storage is on the network then realtime changes are generally more difficult to accomplish.

Link to comment
Share on other sites

neroasintos

The storage is local (forgot to mention the VPS is 1.2 TB) and the owner is emby along with its group. So far it seems like mono has a fallback function if "watchdog" fails, currently looking into log for errors.

Link to comment
Share on other sites

When you get the next stable release this setting should be back in the UI, so no config file needed.

Link to comment
Share on other sites

  • 2 months later...
Sireone

The feature is working for me.  The question I have is, why does it have to scan the entire library instead of just what was just added?  I have over 2000 videos and the scan takes over 45 mins each time.  In comparison, Watchdog on Kodi will literally take less than 10 seconds to scan (and that includes metadata download).  Am I missing something?  Is there an option to only scan newly added content?

Link to comment
Share on other sites

Sireone

It's an area of improvement that we can make in the future

 

Got it, so what I get below is expected for now?

 

5701dc414f95f_Snap5.jpg

Link to comment
Share on other sites

  • 3 weeks later...
horstepipe

hey

is the option

<RealtimeLibraryMonitorDelay>

not available anymore in system.xml?

What does it exactly do?

Link to comment
Share on other sites

Cerothen

Got it, so what I get below is expected for now?

 

5701dc414f95f_Snap5.jpg

That's a pretty long time. I run my server in vms lxc containers and the emby library is accessed over samba but even with 3k movies and 25k episodes with meta data on the disk it's only 15-20 mins.

Link to comment
Share on other sites

Sireone

That's a pretty long time. I run my server in vms lxc containers and the emby library is accessed over samba but even with 3k movies and 25k episodes with meta data on the disk it's only 15-20 mins.

 

Tell me about it.  When I add one movie to watch with the family, we all have to wait at least 15 minutes when I force an update and wait for it to appear in Kodi.  In contrast, Watchdog on Kodi took less that 15 seconds to scan that movie in WITH the metadata.  Not sure why Emby can't use the same technology, or at least work with the dev to make it a plugin.

 

http://kodi.wiki/view/Add-on:Watchdog

Link to comment
Share on other sites

mgworek

My scans on my my server that is running accessing my files locally on my unraid box (emby is a docker in it) take that long as well. I only run a scan once a week now. Thank god for Sonarr. It tells emby I have a new show and it doesn't kick off a scan, it just adds it. Couch potato will set of a scan so I don't notify Emby. Only thing I miss about Plex are the quick library scans.

Link to comment
Share on other sites

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...