Jump to content

library not updating in gui


Recommended Posts

Posted

Hi,

I hope you can help me with 2 issues.

1 When i download and put forward a serie/movie, the gui doesnt display the new addition till the next morning or the scan library files is run manually

2 When i try and download subtitles, i don't get any results back

Emby server version 4.6.7.0 is run on a synology nas (DSM 7.1-42661 Update 20/DS918+)

=====================================================

1:   

 
 
Reproduction steps:
  • a movie gets downloaded by radarr and is moved into the correct folder.
  • the movie doesn't show up in the dashboard overview "latest movies"
  • No log entry is shown that display any errors
  • When a manual "scan library files" is run, the movie is shown in "latest movies"

My conclusion so far is that the authorization is setup correctly, since it does update manually.

2:

 
Reproduction steps:
  • I have setup open subtitles (vip box not ticked)
    • i have checked, my account is working via open subtitles browser page
  • I go in emby into the movie and try to find a subtitle via the ... more edit subtitles
  • no subtitles are returned
  • No (error) msgs are shown in logging

can someone please help me?

  • Agree 1
FrostByte
Posted

Is RTM enabled for those libraries?  Can you upload the server log which includes the time in which you added an episode or movie?

Posted

image.png.47dadf69ea1bd684ef50e576c9932111.png

If with RTM u mean real time monitoring, yes

 Here is my logfile. (time 13:19 today 18th june 2022)

 

After this testing today i tried to fix it (via old post) by adding portnapisi and subdb add ons, but they are giving errors now in the new log file. before i just had subtitles add on

embyserver-63791161447.txt

Posted

ok scratch problem 2. i don't know how exactly, but when i try to download subtitles now, it finds it....maybe by adding portnapisi and subdb add ons?

 

only problem 1 remains

FrostByte
Posted

You have exceeded the default number of inotify watches.  You will need to update that number in order for RTM to work

2022-06-18 12:57:07.674 Error LibraryMonitor: Error in Directory watcher for: /volume4/Movies
	*** Error Report ***
	Version: 4.6.7.0
	Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology7_{version}_x86_64.spk
	Operating system: Linux version 4.4.180+ (root@build3) (gcc version 8.5.0 (GCC) ) #42661 SMP Fri May 27 17:10:49 CST 2022
	Framework: .NET Core 3.1.21
	OS/Process: x64/x64
	Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/packages/EmbyServer/var
	Application path: /volume1/@appstore/EmbyServer/system
	System.IO.IOException: System.IO.IOException: The configured user limit (8192) on the number of inotify watches has been reached, or the operating system failed to allocate a required resource.
	Source: 
	TargetSite: 
	No Stack Trace Available

 

FrostByte
Posted

I created a little guide for increasing the number of inotify watches and instances.  Right now, you're only exceeding the default watches and can skip the stances if you wish.  

 

Posted

wow ok! ty!! i will ook into this right after dinner (got guests over )

  • Like 1
Posted

Gm, i tried ur solution but it is still not showing any changesembyserver (1).txt (new file (supernatural created around 6:09/11)

FrostByte
Posted
6 hours ago, Alda76 said:

Gm, i tried ur solution but it is still not showing any changesembyserver (1).txt (new file (supernatural created around 6:09/11)

Your inotify watches are still default of 8192 according to your log.  Did you run the task or reboot afterward?

Posted

Hey @FrostByte

I also dealt with this a long time ago and recently noticed a strange behaviour.

My library is growing nicely and I thought I could simply increase the value and went to the following values:

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

As you can see, you also refer to the numbers in your instructions (max. possible).

Of course, I restarted and Synology also took over the values, but I suddenly had failures and the monitoring no longer worked as reliably as usual. I then simply went back to the value 204800, which then worked again. Now to my question, on which value are you currently and are you sure that it works with 524288?


Many greetings

Seger

 

 

FrostByte
Posted

That's a Unix limit I found online and real limit is based on things like memory, 64-bit, mono, etc.  I haven't had a need to increase mine, but I know I've seen others go higher than 204800 though I've not seen anyone try to max it out either.

As, a test I was able to set mine at 524288 though.

From my picture you can see I had it at 204800, then I changed it to 524288.  It didn't show the first couple times because I didn't wait the 90 seconds I used in my command, but it eventually changed by the third time I looked.

image.jpeg.b2344fa0fb776cb4963c7dde40009d57.jpeg

Posted

I could also set the value, but the real-time monitoring in Emby then no longer worked. At least it only worked partially, that's my recollection.

I would have to check again...

  

  • Like 1
Posted

i did run the task, i did not reboot the system. should i?

FrostByte
Posted
1 minute ago, Alda76 said:

i did run the task, i did not reboot the system. should i?

A reboot will just run the task as long as you checked that option, so no it won't do any different than running it within task sceduler.

Can I see some screen shots?  Also, make sure you used root as the userid.

After you run the task (wait 90 seconds) and then open a Terminal window and type the command

cat /proc/sys/fs/inotify/max_user_watches

You should see something like what I posted a couple posts up

Posted

how do i open up a terminal? (sorry newby here)

FrostByte
Posted

The commands look good, I assume you copy and pasted text from the guide.

Are you logged on as Admin when you click "Run"?  Go ahead and reboot NAS, it might be a permissions thing.

Posted

i think it works now...i saw the episode added, but i have been out to dinner for a couple of hours! thx! i will test some more

 

And yes i am logged in as an admin

  • Like 1
  • Thanks 1
Posted

its fixed! takes a lil while but thanks man! after the restart it works now, so happy!!

  • Like 1
FrostByte
Posted (edited)
16 minutes ago, Alda76 said:

its fixed! takes a lil while but thanks man! after the restart it works now, so happy!!

Great.  You should be set for a while then, but if your libraries grow a lot and RTM stops working again search the log for "inotify" and up the number of instances or watches accordingly if you find any inotify errors.  

The way inotify works is that every folder, file, etc requires another watch to monitor for changes.  So, when you add a movie that could be another 10 - 20 watches.  The instances are the number of changes tracked.   You could also be running other apps which use inotify, so the watches and instances can add up quickly.

Edited by FrostByte
  • 8 months later...
Posted

Hi, so it has happened again. not sure why, but the number is not updated again, just the standard

image.png.05015cb6ecb1ac2be91dc5d50f379459.png

i ran this task again as root and rebooted.

How do i check the current value?

Posted

well the problem is, i don't know how to use the terminal 😅

I'm very gui minded. i think i need something like putty? but then what?

 

cat /proc/sys/fs/inotify/max_user_watches

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