Jump to content

Real-Time scanning not working


Recommended Posts

nuentes
Posted (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.04
    • Hypervisor: Virtualbox
      • Guest OS: Ubuntu Mate 18.04
        • Emby 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.04
      • Emby 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:

  1. shut down emby on both my new and old device
  2. exported the /var/lib/emby folder from my old server and migrated it to the new server and corrected permissions
  3. moved all hard drives to the new server
  4. configured my paths so they matched the folder structure I used previously
  5. chown and chmod 775 recursively for all drives
  6. 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 by nuentes
mastrmind11
Posted (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 by mastrmind11
Posted

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.

Posted

Hi there, can you please go over an example and attach the emby server log? Thanks.

Posted

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

Posted

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.

Posted

another bump. Still interested to learn why real-time scanning won't work for my use-case

Posted

Can you capture a server log of an example with debug logging enabled? Thanks.

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