Jump to content

Real time monitoring not working


Recommended Posts

Posted

Hi,

When adding or removing files, the changes only seem to take affect when I do a manual library scan.

Am I missing something?

Thanks

Happy2Play
Posted
1 minute ago, Ninko said:

Hi,

When adding or removing files, the changes only seem to take affect when I do a manual library scan.

Am I missing something?

Thanks

Please post a server log.

  • Like 1
FrostByte
Posted

At what time in the log did you copy something new to your library expecting RTM to kick in?

Posted

Erm... Wasn't long ago, within the last hour.

Thanks

FrostByte
Posted

I assume you turned RTM on for that library.  

I'm looking for something like this:

2022-02-19 23:34:44.110 Info LibraryMonitor: Watching directory /volume1/surveillance

Or, some error referring to inotify, but I'm not seeing either.

Posted

I have enabled it yeah.

I've got a few more things to add again shortly, I'll send another log afterwards.

Thanks

  • Like 1
FrostByte
Posted

No.  @Happy2Play do you see anything.  Other than the invalid user at the beginning I'm not seeing anything.

Happy2Play
Posted

Nothing stands out and there are no librarymonitor events in the log.  If RTM is enabled on all libraries I would enable debug logging add new media, wait 5 minutes to see if it is added then do a library scan and post that log.

  • Like 1
Posted

I've tried restarting emby, sometimes it helps.

Another file attached.

Thanks

embyserver (1).txt

FrostByte
Posted

Okay, I'm seeing the errors now.  You're maxing out your inotify watches and will need to increase them

You can see the errors starting at line and then further down it mentions inotify

2022-02-20 14:55:54.019 Info LibraryMonitor: Watching directory /volume1/Ebooks

 

Posted

Right ok, how do I do that?

Thanks

FrostByte
Posted (edited)

Create a Triggered Task to run at Boot-up and paste the following code under Task Settings.

sh -c '(sleep 90 && echo 204800 > /proc/sys/fs/inotify/max_user_watches)&'
sh -c '(sleep 90 && echo 10000 > /proc/sys/fs/inotify/max_user_instances)&'

 

You can then run it manually now and then it will kick off every time you start your NAS.

I added a line for "Instances" also which you aren't maxing out yet, but you might as well change it now

inotify2.thumb.jpg.394f26ec15f0cf8a0c4990cc29461fd7.jpg

 

Edited by FrostByte
  • Thanks 1
Posted

Ok, I'll try that, thanks @FrostByte

  • Like 1
  • Thanks 1

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