Jellyfin Forum
Error Jellyfin Docker container is "unhealthy," - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Error Jellyfin Docker container is "unhealthy," (/t-error-jellyfin-docker-container-is-unhealthy)



Error Jellyfin Docker container is "unhealthy," - Yaichi_JK - 2024-08-04

The logs indicate that the Jellyfin server encountered an unhandled exception related to WebSocket connections, specifically an
ArgumentOutOfRangeException
. This exception suggests that the server attempted to access an index in a collection that does not exist, which led to the crash.

Code:
[23:46:27] [INF] [297] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 187.189.246.111 closed
[23:55:06] [INF] [310] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 187.189.246.111 request
[23:55:18] [INF] [303] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 187.189.246.111 request
[23:57:21] [INF] [298] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for Anime. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[23:57:54] [INF] [310] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[23:59:06] [WRN] [301] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS 187.189.246.111 error receiving data: The remote party closed the WebSocket connection without completing the close handshake.
[23:59:06] [WRN] [298] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS 187.189.246.111 error receiving data: The remote party closed the WebSocket connection without completing the close handshake.
[23:59:06] [INF] [298] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 187.189.246.111 closed
[23:59:06] [INF] [301] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 187.189.246.111 closed
[23:59:06] [FTL] [301] Main: Unhandled Exception
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
  at Emby.Server.Implementations.Session.WebSocketController.OnConnectionClosed(Object sender, EventArgs e)
  at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
  at System.Threading.QueueUserWorkItemCallback.Execute()
  at System.Threading.ThreadPoolWorkQueue.Dispatch()
  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
  at Emby.Server.Implementations.Session.WebSocketController.OnConnectionClosed(Object sender, EventArgs e)
  at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
  at System.Threading.QueueUserWorkItemCallback.Execute()
  at System.Threading.ThreadPoolWorkQueue.Dispatch()
  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()



RE: Error Jellyfin Docker container is "unhealthy," - TheDreadPirate - 2024-08-04

Can you describe your setup. OS, specs, if you're using docker compose can you share the compose file.

And share your full jellyfin log via pastebin.


RE: Error Jellyfin Docker container is "unhealthy," - Yaichi_JK - 2024-08-12

jellyfin 1.9.9 version docker pull jellyfin/jellyfin

Using rclone Google Drive as mounted storage on a folder on a vps
deleting the cache folder from time to time
I have been using this method for a long time

Storage: 80GB
RAM: 16GB
CPU: 10 cores
Network: 1Gbps
Ubuntu 24.04 LTS
-----------------------------------------
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 10
On-line CPU(s) list: 0-9
Vendor ID: AuthenticAMD
Model name: AMD EPYC-Milan Processor
CPU family: 25
Model: 1
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 10
Stepping: 1
BogoMIPS: 8399.96


RE: Error Jellyfin Docker container is "unhealthy," - TheDreadPirate - 2024-08-13

What client are you using when this happens? Can you provide your full jellyfin log via pastebin? Preferably one that includes the Jellyfin startup.


RE: Error Jellyfin Docker container is "unhealthy," - Yaichi_JK - 2024-08-27

(2024-08-04, 04:24 AM)TheDreadPirate Wrote: Can you describe your setup.  OS, specs, if you're using docker compose can you share the compose file.

And share your full jellyfin log via pastebin.

(2024-08-13, 02:37 PM)TheDreadPirate Wrote: What client are you using when this happens?  Can you provide your full jellyfin log via pastebin?  Preferably one that includes the Jellyfin startup.

I already deleted everything and had to rebuild, this happened to me a month ago and I no longer have any record.