Jump to content

Real time monitoring not working


Ninko

Recommended Posts

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

Link to comment
Share on other sites

Happy2Play
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
Link to comment
Share on other sites

FrostByte

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Happy2Play

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
Link to comment
Share on other sites

FrostByte

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

 

Link to comment
Share on other sites

FrostByte

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