Jump to content


Photo

Emby crashes on Ubuntu

crash ubuntu

  • Please log in to reply
7 replies to this topic

#1 Pseudomax OFFLINE  

Pseudomax

    Member

  • Members
  • 19 posts
  • Local time: 11:43 PM

Posted 24 April 2019 - 04:46 PM

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



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:43 PM

Posted 25 April 2019 - 09:01 AM

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

#3 Pseudomax OFFLINE  

Pseudomax

    Member

  • Members
  • 19 posts
  • Local time: 11:43 PM

Posted 25 April 2019 - 12:55 PM

Ok, I have (after a little more reading) figured out how to use daemontools to keep emby-server up, so the logs provided are representing what I think are 4 crashes over 25min ... (I have included the time stamp for them in their names). Any fixes will be very useful!

Attached Files



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:43 PM

Posted 25 April 2019 - 01:23 PM

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.



#5 Pseudomax OFFLINE  

Pseudomax

    Member

  • Members
  • 19 posts
  • Local time: 11:43 PM

Posted 25 April 2019 - 05:48 PM

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



#6 Pseudomax OFFLINE  

Pseudomax

    Member

  • Members
  • 19 posts
  • Local time: 11:43 PM

Posted 26 April 2019 - 04:40 PM

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



#7 plsecker OFFLINE  

plsecker

    Newbie

  • Members
  • 1 posts
  • Local time: 01:43 PM

Posted 27 September 2019 - 08:19 PM

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 peer
Sep 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/ABRT
Sep 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.

Attached Files



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:43 PM

Posted 27 September 2019 - 11:27 PM

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 peer
Sep 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/ABRT
Sep 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/c...yback/?p=692461

Thanks.


  • plsecker likes this





Also tagged with one or more of these keywords: crash, ubuntu

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users