Jump to content

Spontaneously using all RAM and crashing.


Go to solution Solved by Luke,

Recommended Posts

Posted (edited)

So i had problem with a certain videofile earlier this day, but since this happend now for the second time in 48 hours (thought the first crash wasnt necessary to mention).

 

Second time this is happening in 2 days.

 

Log 1 ends at 20:47.

Log 2 starts at 21:26.

Crash was somewhere around 21:20... So thats weird thing #1.

There was 1 client logged in and was playing which was a kodi box with direct-stream, so no encoding or something else.

The emby-service was overloading big time, using all my memory.

 

CPU: Intel quad core 2.8ghz

RAM: 8GB ddr4

OS installed on a SSD, internal raid5 system with the media on it.

O/S: Ubuntu 18.04 X64 non-graphical.

Emby is directly installed so no use of docker and such.

No other running services except ubuntuś pre-installed and

 

All my tasks are disabled except subtitle search, but this is in the afternoon and both crashes where in the evening.

Using SubDB, AutoBoxSet, IMVDb and Opensubtitles, after the last crash removed IMVDb and SubDB.

Next to this the emby server is in default settings.

 

Only thing noticable in log is spamming of the following:

2018-10-27 20:46:33.239 Error HttpServer: WebSocketException Success
	*** Error Report ***
	Version: 3.5.3.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 4.15.0.29
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 4
	Program data path: /var/lib/emby
	Application directory: /opt/emby-server/system
	System.Net.WebSockets.WebSocketException (0x80004005): net_WebSockets_InvalidState
	   at SocketHttpListener.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
	   at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync(ArraySegment`1 buffer, CancellationToken cancellationToken)
	--- End of stack trace from previous location where exception was thrown ---
	   at SocketHttpListener.Net.WebSockets.WebSocket.ReceiveAsync(Memory`1 buffer, CancellationToken cancellationToken)
	   at EmbyServer.SocketSharp.SharpWebSocket.StartReceive()
	System.Net.WebSockets.WebSocketException
	   at SocketHttpListener.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
	   at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync(ArraySegment`1 buffer, CancellationToken cancellationToken)
	--- End of stack trace from previous location where exception was thrown ---
	   at SocketHttpListener.Net.WebSockets.WebSocket.ReceiveAsync(Memory`1 buffer, CancellationToken cancellationToken)
	   at EmbyServer.SocketSharp.SharpWebSocket.StartReceive()

2018-10-27 20:46:33.240 Error HttpServer: WebSocketException Success
    *** Error Report ***
    Version: 3.5.3.0
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Unix 4.15.0.29
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Processor count: 4
    Program data path: /var/lib/emby
    Application directory: /opt/emby-server/system
    System.Net.WebSockets.WebSocketException (0x80004005): net_WebSockets_InvalidState
       at SocketHttpListener.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
       at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync(ArraySegment`1 buffer, CancellationToken cancellationToken)
    --- End of stack trace from previous location where exception was thrown ---
       at SocketHttpListener.Net.WebSockets.WebSocket.ReceiveAsync(Memory`1 buffer, CancellationToken cancellationToken)
       at EmbyServer.SocketSharp.SharpWebSocket.StartReceive()
    System.Net.WebSockets.WebSocketException
       at SocketHttpListener.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
       at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync(ArraySegment`1 buffer, CancellationToken cancellationToken)
    --- End of stack trace from previous location where exception was thrown ---
       at SocketHttpListener.Net.WebSockets.WebSocket.ReceiveAsync(Memory`1 buffer, CancellationToken cancellationToken)
       at EmbyServer.SocketSharp.SharpWebSocket.StartReceive()

This error is spammed alot, example of timestamps:

2018-10-27 20:46:33.238 Error HttpServer: WebSocketException Success

2018-10-27 20:46:33.239 Error HttpServer: WebSocketException Success

2018-10-27 20:46:33.240 Error HttpServer: WebSocketException Success

2018-10-27 20:46:33.240 Error HttpServer: WebSocketException Success

2018-10-27 20:46:33.241 Error HttpServer: WebSocketException Success

2018-10-27 20:46:33.242 Error HttpServer: WebSocketException Success

and this keeps going without any pause.

 

What should i do?

Edited by smalak
  • Solution
Posted

Hi, this is resolved for the next release of Emby Server. If you need immediate relief you can try the beta package. Thanks.

  • Like 1
Posted

Sir, you are super fast, thanks for your reply!
Question, any e.t.a. on the next release?
And if none, updating would be as easy as wget the beta package and extract over the existing one? (leaving all my library/user/etc. stuff?)

  • Like 1
Posted

We don't have an ETA, sorry, and yes you can install on top of your current version. Thanks.

  • Like 1
Posted

Thats not a problem, thanks you

  • Like 1

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