nuentes 41 Posted June 8, 2020 Posted June 8, 2020 (edited) Real-Time scanning isn't working for me. Yes, I have it enabled. For all Libraries. I'll start with the backstory (sorry in advance for the wall of text). The setup on my old hardware Host OS: Lubuntu 18.04Hypervisor: VirtualboxGuest OS: Ubuntu Mate 18.04Emby 4.4.3 installed here Drives shared via Shared Folders - essentially my media folders (NOT the drives) were shared directly with the Guest OS. The setup on my new hardware Host OS / Hypervisor: XCP-ng (basically a XEN server)Guest OS: Ubuntu Mate 20.04Emby 4.4.3 installed here Drives shared directly through the hypervisor With my old setup, Real-Time scanning was not working either. I was told on here that it was because inotify doesn't work via Virtualbox Shared folders. Not a big deal, I figured. I was hoping to upgrade hardware anyway. So no I am upgrading hardware. I was in my new guest OS and I tested this. I tested whether Real-Time scanning worked. This was a deal breaker for me. It had to work. I moved a small collection of media to a drive and moved it to the new hardware. I then tested Real-time scanning, by moving files in/out of the emby folders. It worked! It was finally working! It took maybe 1-2 minutes to process, but any file added/removed was processed in a reasonable amount of time. I repeat - it was tested as working, and my setup was confirmed to be able to perform real-time scanning. So next I went about migrating emby to the new server by: shut down emby on both my new and old device exported the /var/lib/emby folder from my old server and migrated it to the new server and corrected permissions moved all hard drives to the new server configured my paths so they matched the folder structure I used previously chown and chmod 775 recursively for all drives started emby This perfectly recovered Emby. However, it again will NOT real time scan. And again, yes, I have checked. So I deleted my TV library from Emby as a test, and re-added it. Again, yes, I enabled real-time scanning. I added a couple new episodes to a show, and after 2 hours, they still have not processed. Please let me know what further information I need to provide. I can share logs if needed, I'm just not sure what to share. Thank you for any assistance. Edited June 10, 2020 by nuentes
mastrmind11 722 Posted June 10, 2020 Posted June 10, 2020 (edited) were the files you moved added to a local library on the box? no network shares support inotify so I'd be pretty shocked if you mounted a network share and real time worked. there are workarounds if you know your way around scripting. and if you add media via sonarr/radarr/etc, then there are API hooks that will do this for you. Edited June 10, 2020 by mastrmind11
nuentes 41 Posted June 10, 2020 Author Posted June 10, 2020 Great question. I never used network shares. These are direct shares straight from the HDD. Drives are all mounted in: /media/user/drive_name and then symlinked to somewhere in /mnt/ which is where Emby sees them. This is the exact config I used in my successful testing as well. Much of the /mnt/ drive is shared via SMB as well, but that's not how I have Emby fetch my media.
Luke 42078 Posted June 12, 2020 Posted June 12, 2020 Hi there, can you please go over an example and attach the emby server log? Thanks.
nuentes 41 Posted June 12, 2020 Author Posted June 12, 2020 here is my log from today thus far: https://pastebin.com/6qkrTJRj According to Sonarr, Into The Dark s02e09 was grabbed at 12:50am, and it appears that Emby processed it at 2:49am. These applications are hosted on the same server, so the time is in sync. Also, Top Chef s17e13 was processed by Sonarr at 6:31am, and it is currently 9:12am, and it still has not been processed by Emby. The API hook idea is interesting, but doesn't seem ideal. Except I don't download exclusively from Sonarr/Radarr. I actually only began using Sonarr with this new server, so about a week. Also, it appears the API hooks only really allow me to request a full library update, which seems... inefficient.
mastrmind11 722 Posted June 13, 2020 Posted June 13, 2020 On 6/12/2020 at 9:12 AM, nuentes said: The API hook idea is interesting, but doesn't seem ideal. Except I don't download exclusively from Sonarr/Radarr. I actually only began using Sonarr with this new server, so about a week. Also, it appears the API hooks only really allow me to request a full library update, which seems... inefficient. nah, just point sonarr/radarr at emby and you'll get real time notified. i've been doing it this way for years.
nuentes 41 Posted June 15, 2020 Author Posted June 15, 2020 Bump again. I'd rather leave the API hook as a worst-case-scenario, as I'm still not convinced that sonarr/radarr will be my only means of downloading.
nuentes 41 Posted June 20, 2020 Author Posted June 20, 2020 another bump. Still interested to learn why real-time scanning won't work for my use-case
Luke 42078 Posted June 26, 2020 Posted June 26, 2020 Can you capture a server log of an example with debug logging enabled? Thanks.
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