Linthorn 0 Posted February 5, 2025 Posted February 5, 2025 I'm trying to find out how to get Emby to automatically refresh when I add files to the library. If I add a movie or tv show to the Synology drive, it can be a while until is is accessible through Emby. I can get the file to show up if I do a manual Library scan, but not otherwise. Anyone know how often it refreshes on its own? Seems to take a while. I've seen this discussed a few times but not recently and no one had a solution. I have checked to make sure everything is set to refresh when a new file is added and have added the "sysctl inotify fix" to my Task scheduler, but nothing changes. Has anyone actually gotten it to work on Synology?
Linthorn 0 Posted February 5, 2025 Author Posted February 5, 2025 Yes. That was the first thing I tried. Just verified that they are all still checked.
Neminem 1518 Posted February 5, 2025 Posted February 5, 2025 Sorry can't really help, not using Syno box, but unRaid.
Linthorn 0 Posted February 5, 2025 Author Posted February 5, 2025 Thanks. The "On supported file systems" seems to be the trouble. Something about the Synology system isn't communicating properly with Emby.
Happy2Play 9780 Posted February 5, 2025 Posted February 5, 2025 First we would need to see a server log when something was added. To see if you have the common Synology inotify issue. Then may need to go over how your libraries are setup.
Linthorn 0 Posted February 5, 2025 Author Posted February 5, 2025 Added a file to the folder, but no log was updated. Should I enable debug logging?
Happy2Play 9780 Posted February 5, 2025 Posted February 5, 2025 3 minutes ago, Linthorn said: Added a file to the folder, but no log was updated. Should I enable debug logging? You can but may need to go over your setup as not every configuration will support RTM. But probably still need to post a server log.
Linthorn 0 Posted February 7, 2025 Author Posted February 7, 2025 In my previous efforts to fix this, I had set up a boot task to execute: sh -c '(sleep 90 && echo 204800 > proc/sys/fs/inotify/max_user_watches)&' And found that it did not help. So I posted here while I continued to look around. In my searching, I ran across a thread that said a user changed the number from 204800 to 409600 and claimed it worked. So I tried it and voila! it does work. Now when I add a file, it updates Emby in about 2 minutes, rather than every 12 hours. No idea why this works, but I'm happy that it does. Posting so others who have the same problem can see my solution. Thanks all
Happy2Play 9780 Posted February 7, 2025 Posted February 7, 2025 1 hour ago, Linthorn said: In my previous efforts to fix this, I had set up a boot task to execute: sh -c '(sleep 90 && echo 204800 > proc/sys/fs/inotify/max_user_watches)&' And found that it did not help. So I posted here while I continued to look around. In my searching, I ran across a thread that said a user changed the number from 204800 to 409600 and claimed it worked. So I tried it and voila! it does work. Now when I add a file, it updates Emby in about 2 minutes, rather than every 12 hours. No idea why this works, but I'm happy that it does. Posting so others who have the same problem can see my solution. Thanks all Without server logs it is hard to say as the how to sort of has to set it to max values. But yes there are lot of different variable that can be used. 1
FrostByte 5392 Posted February 7, 2025 Posted February 7, 2025 It all depends on how big your libraries are (watches) and how many files you add/change at any one time (instances). Try a number and if you still get errors bump it up again. Every movie you add can easily be 15 or more (counting each folder, subfolder, and file). If you like your extrafanart and bif files it can really add up fast. 1
Happy2Play 9780 Posted February 7, 2025 Posted February 7, 2025 Pretty sure multiple servers conflate that value also or at least previous topics suggest that.
Linthorn 0 Posted February 7, 2025 Author Posted February 7, 2025 Good to know. If it stops working I'll see about increasing the number again. Any idea what the max value allowed is?
Happy2Play 9780 Posted February 7, 2025 Posted February 7, 2025 18 minutes ago, Linthorn said: Any idea what the max value allowed is? My understanding is the value in the how to. sysctl fs.inotify.max_user_watches=1048576; sysctl fs.inotify.max_user_instances=4096;
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now