Jellyfin Forum
Server suddenly stopped - 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: Server suddenly stopped (/t-server-suddenly-stopped)



Server suddenly stopped - Serge K - 2024-01-03

Jellyfin 10.8.13 stopped suddenly (already second time)
See Log

[2024-01-03 23:51:05.782 +02:00] [WRN] [16] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "192.168.1.142" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
[2024-01-03 23:51:05.785 +02:00] [INF] [16] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.142" closed
[2024-01-03 23:51:05.925 +02:00] [WRN] [46] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://192.168.1.49:8096/Sessions/Playing/Stopped" to "192.168.1.75" in 0:30:30.2809322 with Status Code 204
[2024-01-03 23:51:05.928 +02:00] [WRN] [18] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://192.168.1.49:8096/Sessions/Playing" to "192.168.1.75" in 0:29:17.6244814 with Status Code 204
[2024-01-03 23:51:05.924 +02:00] [ERR] [16] Emby.Server.Implementations.EntryPoints.LibraryChangedNotifier: Error sending LibraryChanged message
System.OperationCanceledException: The operation was canceled.
---> System.ObjectDisposedException: Cannot write to the response body, the response has completed.
Object name: 'HttpResponseStream'.
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponsePipeWriter.<ValidateState>g__ThrowObjectDisposedException|15_0()
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.WriteAsync(ReadOnlyMemory1 source, CancellationToken cancellationToken)
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpUpgradeStream.WriteAsync(ReadOnlyMemory1 source, CancellationToken cancellationToken)
  at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory1 payloadBuffer, Task lockTask, CancellationToken cancellationToken)
  --- End of inner exception stack trace ---
  at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory1 payloadBuffer, Task lockTask, CancellationToken cancellationToken)
  at Emby.Server.Implementations.EntryPoints.LibraryChangedNotifier.SendChangeNotifications(List1 itemsAdded, List1 itemsUpdated, List1 itemsRemoved, List1 foldersAddedTo, List1 foldersRemovedFrom, CancellationToken cancellationToken)
[2024-01-03 23:51:05.926 +02:00] [FTL] [12] Main: Unhandled Exception
System.OperationCanceledException: The operation was canceled.
---> System.ObjectDisposedException: Cannot write to the response body, the response has completed.
Object name: 'HttpResponseStream'.
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponsePipeWriter.<ValidateState>g__ThrowObjectDisposedException|15_0()
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.WriteAsync(ReadOnlyMemory1 source, CancellationToken cancellationToken)
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpUpgradeStream.WriteAsync(ReadOnlyMemory1 source, CancellationToken cancellationToken)
  at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory1 payloadBuffer, Task lockTask, CancellationToken cancellationToken)
  --- End of inner exception stack trace ---
  at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory1 payloadBuffer, Task lockTask, CancellationToken cancellationToken)
  at Emby.Server.Implementations.EntryPoints.UserDataChangeNotifier.SendNotifications(List1 changes, CancellationToken cancellationToken)
  at Emby.Server.Implementations.EntryPoints.UserDataChangeNotifier.UpdateTimerCallback(Object state)
  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
  at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
  at System.Threading.TimerQueue.FireNextTimers()
[2024-01-03 23:54:19.624 +02:00] [INF] [1] Main: Jellyfin version: "10.8.13"


RE: Server suddenly stoped - TheDreadPirate - 2024-01-03

Can you share your full log to pastebin?


RE: Server suddenly stoped - Serge K - 2024-01-03

log link

https://mega.nz/file/Mnl2wQoB#G0MHxhdKEMHhNHNeL9WQW2SM4u-fWuH3yByawG2uKpQ


RE: Server suddenly stoped - tmsrxzar - 2024-01-03

"share/CACHEDEV2_DATA/.qpkg"

so this is running on a qnap nas?


RE: Server suddenly stopped - Serge K - 2024-01-03

(2024-01-03, 10:31 PM)tmsrxzar Wrote: "share/CACHEDEV2_DATA/.qpkg"

so this is running on a qnap nas?


yes


RE: Server suddenly stoped - Serge K - 2024-01-04

(2024-01-03, 10:22 PM)TheDreadPirate Wrote: Can you share your full log to pastebin?

so, have you got any ideas why it is happened?


RE: Server suddenly stopped - TheDreadPirate - 2024-01-04

When the server restarted all it mentioned was that there was an unhandled exception. I'm not expert enough to read that stack trace to find the root cause.

Honestly, there is a lot wrong in your log. Like finding a needle in a haystack. There is definitely some sort of permission or configuration issue with your config/cache directory. Not sure which. Both?