Jump to content

Scan media library task hanging recently (manually scanning individual libraries works fine)


Go to solution Solved by rekit,

Recommended Posts

rekit
Posted

When I run the scan media library task via the task scheduler (or when it's run on schedule), it seems to hang at 0.0% indefinitely. 

After running the task, this is the last bit in the log, and nothing else is added even though dashboard says it's scanning.

2025-06-06 12:13:32.024 Info TaskManager: Executing Scan media library
2025-06-06 12:13:32.024 Info Server: http/1.1 Response 204 to host1. Time: 3ms. POST http://192.168.1.144:8096/emby/ScheduledTasks/Running/6330ee8fb4a957f33981f89aa78b030f?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox Windows&X-Emby-Device-Id=73416c3c-0000-4414-8cc8-1131378307e0&X-Emby-Client-Version=4.8.11.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us

If I cancel the scan on the dashboard under "running tasks" by clicking the X, the task says "stopping" in red letters, but never actually stops unless I restart the server. If I try to do a manual scan of an individual library while the red "stopping" text is still there (in other words, before starting the server), that manual scan doesn't happen.

 

embyserver-4.txt

  • Agree 1
SShzin
Posted

I see this now as well, stuck at 99% instead of 0% and causes a hang (circle spinning). Latest stable version as well 4.8.11.0. Individually scanning each library works fine.

  • Solution
rekit
Posted

After rebooting my server, the scheduled task scan seem to be working normally again. @SShzinGive that a try

  • Disagree 1
  • Thanks 1
Posted

Thanks for following up.

  • Like 1
rekit
Posted
On 6/8/2025 at 1:18 PM, SShzin said:

I see this now as well, stuck at 99% instead of 0% and causes a hang (circle spinning). Latest stable version as well 4.8.11.0. Individually scanning each library works fine.

if restarting didn't work for you, I saw another thread where someone said the issue was one specific artwork file (thumbnail jpg or something). they narrowed it down by checking the log and seeing which file the scan was stalling on, and deleting that file.

SShzin
Posted (edited)
7 minutes ago, rekit said:

if restarting didn't work for you, I saw another thread where someone said the issue was one specific artwork file (thumbnail jpg or something). they narrowed it down by checking the log and seeing which file the scan was stalling on, and deleting that file.

Thanks. Could you send the link to the thread so I can take a look? So the manual scan library by library works fine and doesn't cause the issue, so I'm not sure that's the issue I'm seeing but will delete the last file it lands on using the normal scan to try anyway. Reboot didn't fix it for me.

Edited by SShzin
Posted
On 6/14/2025 at 10:58 AM, SShzin said:

Thanks. Could you send the link to the thread so I can take a look? So the manual scan library by library works fine and doesn't cause the issue, so I'm not sure that's the issue I'm seeing but will delete the last file it lands on using the normal scan to try anyway. Reboot didn't fix it for me.

quick search turned up a couple related

 

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