Jump to content

Emby: “Scan media library” hangs tasks stuck running


Recommended Posts

Belenkiy
Posted

Hi! I’m running Emby Server on Synology (DSM7.3.2 , package, x86_64). I’m trying to fix a long-standing issue: library scans hang and sometimes artwork doesn’t load / UI feels stalled.

Environment

  • Device: Synology NAS (DSM 7.3.2-86009 update 1), volume is Btrfs (/volume1)

  • Emby Server: 4.9.3.0, (also tested 10.0.4 and 10.0.5version, issue persists)

  • ProgramData: /var/packages/EmbyServer/var → symlink to /volume1/@appdata/EmbyServer

  • Libraries:

    TV: /volume1/video/Serials

    Movies: /volume1/video/Movies

Symptoms

  • “Scan media library” hangs

  • Logs stop showing “next step” as if the previous step was successful but the next one did not start:

  • In logs Emby completes some scan steps, then no further “start next step” entries appear for a long time, while server still shows “Scan media library” running.

What I already checked / tried

  • File system is fast; find /volume1/video/Serials -type f completes quickly.

  • Permissions: ProgramData cache/metadata folders are owned by emby:emby; emby user can write to them (su emby -c touch ... OK).

  • Removed local NFO files temporarily and disabled NFO metadata reader to avoid broken/empty NFO overriding online metadata.

  • Disabled UPnP mapping in Emby (auto port mapping) to prevent external influence.

Questions

Any recommended diagnostics to identify where the scan is blocked (e.g. enabling debug for TaskManager / library scanner)?


embyserver.txt logs around scan start and the hang point

Thanks!

embyserver.txt

  • 2 months later...
sa2000
Posted

Is this still an issue - with the current beta 4.10.0.11 ?

Seems to have got stuck when scanning The BikeRiders.mkv within the movies library (/volume1/video/Movies)

If still an issue, you can try with disabling adult content on the libraries and see if the scan compeltes. Also if it hangs, wait an hour and if no activity, shutdown the server through the dashboard and may get some clues in the log captured after that as to what task was in progress

The log that was captured at 14:04:23 shows the scan at the moment was active with a tmdb search sent at that time. The earlier scan did hang at 00:13:08

 

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