Jump to content

emy-server suddenly started crashing


nobanzai
 Share

Recommended Posts

After running for weeks, my emby-server started crashing yesterday.

When browsing the library, the log always tells me:

 

emby-server[5027]: UnhandledException
emby-server[5027]: System.IO.IOException: Unable to read data from the transport connection: Conn
ection reset by peer. ---> System.Net.Sockets.SocketException: Connection reset by peer
emby-server[5027]:    --- End of inner exception stack trace ---
emby-server[5027]:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(S
ocketError error)
emby-server[5027]:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16
token)
emby-server[5027]:    at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtoc
olRequest request)
emby-server[5027]:    at System.Net.Security.SslState.ThrowIfExceptional()
emby-server[5027]:    at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolea
n shutdownCheck)
emby-server[5027]:    at System.Net.Security.SslState.CheckOldKeyDecryptedData(Memory`1 buffer)
emby-server[5027]:    at System.Net.Security.SslState.HandleQueuedCallback(Object& queuedStateRequest)
emby-server[5027]:    at System.Net.Security.SslState.FinishHandshakeRead(Int32 newState)
emby-server[5027]:    at System.Net.Security.SslState.FinishHandshake(Exception e, AsyncProtocolRequest asyncRequest)
emby-server[5027]:    at System.Net.Security.SslState.RehandshakeCompleteCallback(IAsyncResult result)
emby-server[5027]:    at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
emby-server[5027]:    at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
emby-server[5027]:    at System.Net.AsyncProtocolRequest.CompleteUserWithError(Exception e)
emby-server[5027]:    at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)
emby-server[5027]:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
emby-server[5027]: --- End of stack trace from previous location where exception was thrown ---

I tried a few things including reinstalling version 3.5.1 and even 3.5.0 - to no avail.

 

Then I wiped everything regarding emby from the server and tried a new installation.

Now I get:

 

● emby-server.service - Emby Server is a personal media server with apps on just about every device.
   Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: core-dump) since Fr 2018-07-27 21:30:31 CEST; 13min ago
  Process: 1657 ExecStart=/opt/emby-server/bin/emby-server (code=dumped, signal=ABRT)
 Main PID: 1657 (code=dumped, signal=ABRT)

systemd[1]: Stopped emby-server.service.
systemd[1]: Started Emby Server is a personal media server with apps on just about every device..
systemd[1]: emby-server.service: Main process exited, code=dumped, status=6/ABRT
systemd[1]: emby-server.service: Unit entered failed state.
systemd[1]: emby-server.service: Failed with result 'core-dump'.

At this point I'm really clueless 8-(

 

This is an openSUSE Leap 42.3 installation with all the latest updates installed.

Nothing changed on this system before emby started crashing.

 

Any idea?

 

TIA.

 

Bye.

Michael.

Link to comment
Share on other sites

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

 

For the latest installations there is no log at all - obviously emby didn't get that far.

And regarding the .Net exception I wiped everything including the logs 8-<

 

Perhaps this is relevant:

 

Output of emby-server-rpm_3.5.1.0_x86_64.rpm %posttrans script:

    usermod: no changes

    chmod: cannot access '/var/lib/emby': No such file or directory

    chown: cannot access '/var/lib/emby': No such file or directory

 

I get this when installing this rpm.

Link to comment
Share on other sites

For the latest installations there is no log at all - obviously emby didn't get that far.

And regarding the .Net exception I wiped everything including the logs 8-<

 

Perhaps this is relevant:

 

Output of emby-server-rpm_3.5.1.0_x86_64.rpm %posttrans script:

    usermod: no changes

    chmod: cannot access '/var/lib/emby': No such file or directory

    chown: cannot access '/var/lib/emby': No such file or directory

 

I get this when installing this rpm.

 

Got it - the rpm has an error:

 

/etc/emby-server.conf contains EMBY_DATA=/var/lib/emby, but the rpm does not create it.

Creating the directory or modifying the conf file solves this problem.

 

Now I can try to recreate my library and see, if the first problem reoccurs.

Link to comment
Share on other sites

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

Ok, this time it crashed when scanning the files to add to the library.

Is it necessary to upload the complete log? It contains names and other sensible information 8-(

 

The important part is:

 

2018-07-27 22:45:52.084 Info HttpClient: GET http://musicbrainz01.eastus2.cloudapp.azure.com:8080/ws/2/release/?query="Dust+And+Dreams"AND artist:"Camel"

2018-07-27 22:45:52.204 Info HttpClient: GET http://www.theaudiodb.com/api/v1/json/49jhsf8248yfahka89724011/album-mb.php?i=1976c6e9-8e7a-3362-9201-b61f2a696ca1

2018-07-27 22:45:52.788 Error Main: UnhandledException

  *** Error Report ***

  Version: 3.5.1.0

  Command line: /opt/emby-server/system/EmbyServer.dll -programdata /home/archiv/emby-server -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-rpm_{version}_x86_64.rpm

  Operating system: Unix 4.4.138.59

  64-Bit OS: True

  64-Bit Process: True

  User Interactive: True

  Processor count: 24

  Program data path: /home/archiv/emby-server

  Application directory: /opt/emby-server/system

  System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. ---> System.Net.Sockets.SocketException: Connection reset by peer

     --- End of inner exception stack trace ---

     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error)

     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)

     at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)

     at System.Net.Security.SslState.ThrowIfExceptional()

     at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolean shutdownCheck)

     at System.Net.Security.SslState.CheckOldKeyDecryptedData(Memory`1 buffer)

     at System.Net.Security.SslState.HandleQueuedCallback(Object& queuedStateRequest)

     at System.Net.Security.SslState.FinishHandshakeRead(Int32 newState)

     at System.Net.Security.SslState.FinishHandshake(Exception e, AsyncProtocolRequest asyncRequest)

     at System.Net.Security.SslState.RehandshakeCompleteCallback(IAsyncResult result)

     at System.Net.LazyAsyncResult.Complete(IntPtr userToken)

     at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)

     at System.Net.AsyncProtocolRequest.CompleteUserWithError(Exception e)

     at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)

     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

  --- End of stack trace from previous location where exception was thrown ---

     at System.Threading.ThreadPoolWorkQueue.Dispatch()

  System.IO.IOException

     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error)

     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)

     at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)

     at System.Net.Security.SslState.ThrowIfExceptional()

     at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolean shutdownCheck)

     at System.Net.Security.SslState.CheckOldKeyDecryptedData(Memory`1 buffer)

     at System.Net.Security.SslState.HandleQueuedCallback(Object& queuedStateRequest)

     at System.Net.Security.SslState.FinishHandshakeRead(Int32 newState)

     at System.Net.Security.SslState.FinishHandshake(Exception e, AsyncProtocolRequest asyncRequest)

     at System.Net.Security.SslState.RehandshakeCompleteCallback(IAsyncResult result)

     at System.Net.LazyAsyncResult.Complete(IntPtr userToken)

     at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)

     at System.Net.AsyncProtocolRequest.CompleteUserWithError(Exception e)

     at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)

     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

  --- End of stack trace from previous location where exception was thrown ---

     at System.Threading.ThreadPoolWorkQueue.Dispatch()

  InnerException: System.Net.Sockets.SocketException

  System.Net.Sockets.SocketException (104): Connection reset by peer

 

Link to comment
Share on other sites

I had the exact same error output where it would crash right after requesting data through the TheAudioDB API. I disabled that metadata downloader, and the metadata sync went a little bit farther than before. It crashed again trying to retrieve an image from FanArt. I've attached the log. Movie syncing appears to work fine

 

I'm using version 3.5.1.0 in a Docker container on Debian 9

Log.txt

Edited by kribby
Link to comment
Share on other sites

I had the exact same error output where it would crash right after requesting data through the TheAudioDB API. I disabled that metadata downloader, and the metadata sync went a little bit farther than before. It crashed again trying to retrieve an image from FanArt. I've attached the log. Movie syncing appears to work fine

 

I'm using version 3.5.1.0 in a Docker container on Debian 9

 

Same here. I disabled the TheAudiDB download service - no crashes since then.

FanArt didn't crash here until now.

Edited by nobanzai
Link to comment
Share on other sites

@@wedgekc as a test can you try disabling audiodb metadata for music albums and see if this resolves it? You can do this for each of your music libraries. thanks.

Link to comment
Share on other sites

I did try disabling theaudiodb and refreshing anything in music would still cause a server crash.  Is it possible theaudiodb servers are still contacted despite being turned off?  Maybe I missed something per the screenshot? However, once I blocked all theaudiodb traffic on my firewall, all appears to be well.  No more crashes refreshing album/artist metadata etc.  I'll report back if that changes.  Thanks

post-130277-0-15063800-1532834615_thumb.jpg

Link to comment
Share on other sites

julie.mossom

My Emby has also started doing the same thing - whilst playing a video and no sign of any activity of scanning the media or anything.

 

Likewise running in a Docker - it didn't happen in the previous version.

Link to comment
Share on other sites

Emby Server 3.5.2 is on it's way up and will remove the audiodb metadata provider to stop the crashing. We'll get it restored for 3.6. Thanks.

  • Like 1
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...