• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Container Restarting Unexpectedly

     
    • 0 Vote(s) - 0 Average

    Container Restarting Unexpectedly

    Multiple Jellyfin Container Restarts Daily
    Blaskowski
    Offline

    Junior Member

    Posts: 1
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #1
    2024-08-12, 10:29 PM
    Hello! 

    I am trying to troubleshoot and solve an issue that has recently came up with my Jellyfin Server docker install.

    I started getting emails notifications from my Synology NAS on August 3rd stating the container unexpectedly stopped. Yesterday I had 5 restarts of the container and today I have had 2 so far.

    Yesterday I went ahead an updated to 10.9.9 to see if that would resolve the issue and it doesn't not appear to have helped.


    Code:
    2024/08/12 08:18:16,stdout,"[15:18:16] [INF] [1] Main: Environment Variables: [\"[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]\", \"[JELLYFIN_LOG_DIR, /config/log]\", \"[JELLYFIN_DATA_DIR, /config]\", \"[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]\", \"[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]\", \"[JELLYFIN_CONFIG_DIR, /config/config]\", \"[JELLYFIN_CACHE_DIR, /cache]\"]
    "
    2024/08/12 08:18:16,stdout,[?1h=[15:18:16] [INF] [1] Main: Jellyfin version: 10.9.9

    2024/08/12 08:18:02,stdout,  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

    2024/08/12 08:18:02,stdout,  at System.Threading.ThreadPoolWorkQueue.Dispatch()

    2024/08/12 08:18:02,stdout,  at System.Threading.QueueUserWorkItemCallback.Execute()

    2024/08/12 08:18:02,stdout,  at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)

    2024/08/12 08:18:02,stdout,"  at Emby.Server.Implementations.Session.SessionWebSocketListener.KeepAliveSockets(Object o, EventArgs e)
    "
    2024/08/12 08:18:02,stdout,  --- End of inner exception stack trace ---

    2024/08/12 08:18:02,stdout,"  at System.Net.WebSockets.ManagedWebSocket.SendFrameLockAcquiredNonCancelableAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory`1 payloadBuffer)
    "
    2024/08/12 08:18:02,stdout,  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpUpgradeStream.FlushAsync(CancellationToken cancellationToken)

    2024/08/12 08:18:02,stdout,  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponsePipeWriter.<ValidateState>g__ThrowObjectDisposedException|15_0()

    2024/08/12 08:18:02,stdout,Object name: 'HttpResponseStream'.

    2024/08/12 08:18:02,stdout," ---> System.ObjectDisposedException: Cannot write to the response body, the response has completed.
    "
    2024/08/12 08:18:02,stdout,Unhandled exception. System.OperationCanceledException: The operation was canceled.

    2024/08/12 08:18:02,stdout,  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

    2024/08/12 08:18:02,stdout,  at System.Threading.ThreadPoolWorkQueue.Dispatch()

    2024/08/12 08:18:02,stdout,  at System.Threading.QueueUserWorkItemCallback.Execute()

    2024/08/12 08:18:02,stdout,  at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)

    2024/08/12 08:18:02,stdout,"  at Emby.Server.Implementations.Session.SessionWebSocketListener.KeepAliveSockets(Object o, EventArgs e)
    "
    2024/08/12 08:18:02,stdout,  --- End of inner exception stack trace ---

    2024/08/12 08:18:02,stdout,"  at System.Net.WebSockets.ManagedWebSocket.SendFrameLockAcquiredNonCancelableAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory`1 payloadBuffer)
    "
    2024/08/12 08:18:02,stdout,  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpUpgradeStream.FlushAsync(CancellationToken cancellationToken)

    2024/08/12 08:18:02,stdout,  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponsePipeWriter.<ValidateState>g__ThrowObjectDisposedException|15_0()

    2024/08/12 08:18:02,stdout,Object name: 'HttpResponseStream'.

    2024/08/12 08:18:02,stdout," ---> System.ObjectDisposedException: Cannot write to the response body, the response has completed.
    "
    2024/08/12 08:18:02,stdout,System.OperationCanceledException: The operation was canceled.

    2024/08/12 08:18:02,stdout,[15:18:02] [FTL] [37] Main: Unhandled Exception


    2024/08/12 15:05:30 stdout [22:05:30] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_CACHE_DIR, /cache]", "[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_CONFIG_DIR, /config/config]"]
    2024/08/12 15:05:30 stdout [?1h=[22:05:30] [INF] [1] Main: Jellyfin version: 10.9.9
    2024/08/12 15:05:09 stdout   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
    2024/08/12 15:05:09 stdout   at System.Threading.ThreadPoolWorkQueue.Dispatch()
    2024/08/12 15:05:09 stdout   at System.Threading.QueueUserWorkItemCallback.Execute()
    2024/08/12 15:05:09 stdout   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
    2024/08/12 15:05:09 stdout   at Emby.Server.Implementations.Session.SessionWebSocketListener.KeepAliveSockets(Object o, EventArgs e)
    2024/08/12 15:05:09 stdout   --- End of inner exception stack trace ---
    2024/08/12 15:05:09 stdout   at System.Net.WebSockets.ManagedWebSocket.SendFrameLockAcquiredNonCancelableAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory`1 payloadBuffer)
    2024/08/12 15:05:09 stdout   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpUpgradeStream.FlushAsync(CancellationToken cancellationToken)
    2024/08/12 15:05:09 stdout   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponsePipeWriter.<ValidateState>g__ThrowObjectDisposedException|15_0()
    2024/08/12 15:05:09 stdout Object name: 'HttpResponseStream'.
    2024/08/12 15:05:09 stdout ---> System.ObjectDisposedException: Cannot write to the response body, the response has completed.
    2024/08/12 15:05:09 stdout Unhandled exception. System.OperationCanceledException: The operation was canceled.
    2024/08/12 15:05:09 stdout   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
    2024/08/12 15:05:09 stdout   at System.Threading.ThreadPoolWorkQueue.Dispatch()
    2024/08/12 15:05:09 stdout   at System.Threading.QueueUserWorkItemCallback.Execute()
    2024/08/12 15:05:09 stdout   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
    2024/08/12 15:05:09 stdout   at Emby.Server.Implementations.Session.SessionWebSocketListener.KeepAliveSockets(Object o, EventArgs e)
    2024/08/12 15:05:09 stdout   --- End of inner exception stack trace ---
    2024/08/12 15:05:09 stdout   at System.Net.WebSockets.ManagedWebSocket.SendFrameLockAcquiredNonCancelableAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory`1 payloadBuffer)
    2024/08/12 15:05:09 stdout   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpUpgradeStream.FlushAsync(CancellationToken cancellationToken)
    2024/08/12 15:05:09 stdout   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponsePipeWriter.<ValidateState>g__ThrowObjectDisposedException|15_0()
    2024/08/12 15:05:09 stdout Object name: 'HttpResponseStream'.
    2024/08/12 15:05:09 stdout  ---> System.ObjectDisposedException: Cannot write to the response body, the response has completed.
    2024/08/12 15:05:09 stdout System.OperationCanceledException: The operation was canceled.
    2024/08/12 15:05:09 stdout [22:05:09] [FTL] [107] Main: Unhandled Exception
    2024/08/12 15:05:09 stdout [22:05:09] [INF] [89] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 192.168.0.78 closed
    2024/08/12 15:05:09 stdout [22:05:09] [WRN] [89] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS 192.168.0.78 error receiving data: The remote party closed the WebSocket connection without completing the close handshake.


    Above are the two most recent unexpected reboots from today. 

    Thank you for the help and let me know if I can provide any more information.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-08-13, 02:34 PM (This post was last modified: 2024-08-13, 02:35 PM by TheDreadPirate. Edited 1 time in total.)
    Which image are you using? The official image or Linuxserver image? Can you check if this docker environment variable is set?

    MALLOC_TRIM_THRESHOLD_=131072

    Also experiment with capping the library scan thread counts. Dashboard > General, Parallel library scan tasks limit and Parallel image encoding limit.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode