Jump to content

Recommended Posts

Pseudomax
Posted

Hi

 

I have been using Emby for years without any problems until recently where I had a transcoding error. I have always had Emby hosted on a Windows HTPC, but for completely different reasons, I have recently given up on Windows due to yet another bug (my firewall was corrupted by a recent Windows update) and moved to Ubuntu 18.04

 

However, I installed Emby without a problem but could not work out why after a few hours it seemed not to be active... and indeed it had crashed. Given I had installed a whole lot of software in the process of changing OS I thought maybe something had gone wrong ... so I installed the latest beta version over the version I had. However this too crashes fairly soon after a restart.

 

I have looked at the logs but there is nothing I can tell that has an error attached... but if you can direct me to the correct log to send then I will obviously send this. Given that on searching I see that for Ubuntu this is not such an uncommon experience ... I wonder if someone could point me to a script that will monitor and restart emby-server if it does crash? Daemontools I believe does this, but I can't seem to get this working?!!

 

Thanks in advance!

 

Pseudomax

Posted

Hi there, can you please attach the emby server log? Thanks !

Posted

It looks like the server is being denied read access to a file:

System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/mnt/share/Multimedia/Pictures/Scan0002.jpg' is denied. ---> System.IO.IOException: Permission denied

I think our image processing library doesn't handle this very well and it ends up bringing down the server. We'll have to see if we can catch that and prevent the crash, but you should also look at file permissions.

Pseudomax
Posted

Thanks @@Luke ... yes I did see that and had tried to change all the permissions ... but clearly need to try again! It does seem to be happening every 5-10min ... so thankfully I have daemontools working now!c

Pseudomax
Posted

Just as follow up ... having reset permissions on my NAS ... that does seem to have fixed the problem ... thanks for the help ...

  • 5 months later...
Posted

Emby has started crashing similarly for me:  Syslog give the clue (nothing in emby logs I can see, but attached one prior to the crash):

Sep 28 12:05:28 marvin emby-server[15095]: Unhandled Exception: System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. ---> System.Net.Sockets.SocketException: Connection reset by peerSep 28 12:05:28 marvin emby-server[15095]:    --- End of inner exception stack trace ---Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.ThrowIfExceptional()Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolean shutdownCheck)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.CheckOldKeyDecryptedData(Memory`1 buffer)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.HandleQueuedCallback(Object& queuedStateRequest)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.FinishHandshakeRead(Int32 newState)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.FinishHandshake(Exception e, AsyncProtocolRequest asyncRequest)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.RehandshakeCompleteCallback(IAsyncResult result)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.LazyAsyncResult.Complete(IntPtr userToken)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.AsyncProtocolRequest.CompleteUserWithError(Exception e)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)Sep 28 12:05:28 marvin emby-server[15095]: --- End of stack trace from previous location where exception was thrown ---Sep 28 12:05:28 marvin emby-server[15095]:    at System.Threading.ThreadPoolWorkQueue.Dispatch()Sep 28 12:05:28 marvin systemd[1]: emby-server.service: Main process exited, code=killed, status=6/ABRTSep 28 12:05:28 marvin systemd[1]: emby-server.service: Unit entered failed state.Sep 28 12:05:28 marvin systemd[1]: emby-server.service: Failed with result 'signal'.Am running Kubuntu 16.04.1.  Emby 4.2.1.0.

The event is easily reproducible, just restart emby-server service, play around with the server (using Android App) like refreshing TV shows and Movies.

 

Any help appreciated, note this had been working perfectly.

embycrash.txt

embyhwlog.txt

Posted

Emby has started crashing similarly for me:  Syslog give the clue (nothing in emby logs I can see, but attached one prior to the crash):

Sep 28 12:05:28 marvin emby-server[15095]: Unhandled Exception: System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. ---> System.Net.Sockets.SocketException: Connection reset by peerSep 28 12:05:28 marvin emby-server[15095]:    --- End of inner exception stack trace ---Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.ThrowIfExceptional()Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolean shutdownCheck)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.CheckOldKeyDecryptedData(Memory`1 buffer)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.HandleQueuedCallback(Object& queuedStateRequest)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.FinishHandshakeRead(Int32 newState)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.FinishHandshake(Exception e, AsyncProtocolRequest asyncRequest)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.Security.SslState.RehandshakeCompleteCallback(IAsyncResult result)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.LazyAsyncResult.Complete(IntPtr userToken)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.AsyncProtocolRequest.CompleteUserWithError(Exception e)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)Sep 28 12:05:28 marvin emby-server[15095]:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)Sep 28 12:05:28 marvin emby-server[15095]: --- End of stack trace from previous location where exception was thrown ---Sep 28 12:05:28 marvin emby-server[15095]:    at System.Threading.ThreadPoolWorkQueue.Dispatch()Sep 28 12:05:28 marvin systemd[1]: emby-server.service: Main process exited, code=killed, status=6/ABRTSep 28 12:05:28 marvin systemd[1]: emby-server.service: Unit entered failed state.Sep 28 12:05:28 marvin systemd[1]: emby-server.service: Failed with result 'signal'.Am running Kubuntu 16.04.1.  Emby 4.2.1.0.

The event is easily reproducible, just restart emby-server service, play around with the server (using Android App) like refreshing TV shows and Movies.

 

Any help appreciated, note this had been working perfectly.

 

hi @@plsecker, the solution to this can be found here:

https://emby.media/community/index.php?/topic/69167-emby-server-4010-crashing-on-music-playback/?p=692461

Thanks.

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