Jellyfin Forum
New Windows install, media scan stuck at %0 - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: New Windows install, media scan stuck at %0 (/t-new-windows-install-media-scan-stuck-at-0)



New Windows install, media scan stuck at %0 - rpod - 2025-01-01

I have an existing Linux laptop with Jellyfin installed and it is working fine. That laptop is aging though, so I got a new Beelink mini PC with Windows preinstalled, and am trying to set up Jellyfin on it. I copied all the media over via sftp, and it is in a folder on my C drive, C:\Library\Videos.

I installed Jellyfin using the Windows installer, and there is some problem with the initial media scan. When I log in to localhost:8096 and navigate to Home, it just spins forever. If I go to dashboard/libraries, I see my Library there along side the Add Media Library button, but the image is just a '?' and there is a '0%' in the corner. If I do Scan All Libraries, the bar never fills, it stays at 0%. 

I turned on debug logging in C:\Library\Videos\config\logging.default.json (set Serilog.MinimumLevel.Default = "Debug") but I don't see anything that looks like or is logged as an error in the logs. If I let it run for a long time, mostly I see messages like this:
Code:
[2025-01-01 12:48:39.506 -05:00] [DBG] [3] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "127.0.0.1" received message: InboundWebSocketMessage`1 { Data: null, MessageType: KeepAlive, ServerId: null }
[2025-01-01 12:48:44.618 -05:00] [DBG] [3] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[2025-01-01 12:48:56.608 -05:00] [DBG] [31] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[2025-01-01 12:49:08.617 -05:00] [DBG] [31] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[2025-01-01 12:49:20.613 -05:00] [DBG] [31] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[2025-01-01 12:49:32.605 -05:00] [DBG] [3] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[2025-01-01 12:49:33.952 -05:00] [INF] [3] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2025-01-01 12:49:36.020 -05:00] [DBG] [3] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "127.0.0.1" received message: InboundWebSocketMessage`1 { Data: null, MessageType: KeepAlive, ServerId: null }
[2025-01-01 12:49:44.607 -05:00] [DBG] [3] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.

I can see in Task Manager that Jellyfin.Server is quite busy. Always between 50%-100% of CPU usage. But it never seems to make progress that I can tell. The percentage of media scan never goes past 0%, and nothing in the logs indicates it is looking at files, etc.

What else can I try or look at?


RE: New Windows install, media scan stuck at %0 - TheDreadPirate - 2025-01-01

Is the new device able to reach the internet? AFAIK, even with debug logging metadata retrieval messages aren't printed unless it can't resolve hostnames.


RE: New Windows install, media scan stuck at %0 - rpod - 2025-01-02

Ugh well I figured out my problem. The windows installer has a confusing prompt about choosing where to install the server followed by the where the data folder should be. It says something like "do not choose the server installation folder", which is the default. But that is actually what I should have done. I misunderstood data to mean my media folder, so basically I had my data folder and media folder set to the same thing. After reinstalling with the default choices things seem normal now.