Jump to content

Emby server starting to freeze after an error.


Recommended Posts

Posted

Hello, few times per month the server display an error and starting  to taking 3610981ms per request:

 

2024-11-02 23:01:48.305 Error Server: Error processing request
    *** Error Report ***
    Version: 4.8.8.0
    Command line: C:\Users\Administrateur\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
    Operating system: Microsoft Windows 10.0.17763
    Framework: .NET 6.0.30
    OS/Process: x64/x64
    Runtime: C:/Users/Administrateur/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    Processor count: 8
    Data path: C:\Users\Administrateur\AppData\Roaming\Emby-Server\programdata
    Application path: C:\Users\Administrateur\AppData\Roaming\Emby-Server\system
    Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Unexpected end of request content.
       at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1ContentLengthMessageBody.ReadAsyncInternal(CancellationToken cancellationToken)
       at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
       at System.IO.Pipelines.PipeReader.CopyToAsyncCore[TStream](TStream destination, Func`4 writeAsync, CancellationToken cancellationToken)
       at ServiceStack.StreamExtensions.CopyToNewMemoryStreamAsync(Stream stream) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack.Text/src/ServiceStack.Text/StreamExtensions.cs:line 687
       at ServiceStack.Text.NetCoreMemory.DeserializeAsync(Stream stream, Type type, DeserializeStringSpanDelegate deserializer) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack.Text/src/ServiceStack.Text/NetCoreMemory.cs:line 175
       at Emby.Server.Implementations.Services.ServiceHandler.CreateRequest(HttpListenerHost host, IRequest httpReq, RestPath restPath)
       at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
       at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
    Source: Microsoft.AspNetCore.Server.Kestrel.Core
    TargetSite: Void Throw(Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.RequestRejectionReason)

 

 

 

 

i have put the full log. 

embyserver-63866188792.txt

Posted

You need to look at what was taking place at that time.  You were syncing data to an Android Device.
You had videos playing on Android and AppleTV which were transcoding.
Emby Server received a shutdown command http://host4/System/Restart?api_key=x_secret100_x
It started shutting down the ffmpeg processes running, was waiting for playSession info from the clients to mark how much they played.
You then got a bunch of 500 errors for playing and syncing
These all show one after another buts it's probably just logged this way. The high ms times are probably due to request time received until request logged which would take a while as it was processing the restart.

Posted

Hi, are you using a reverse proxy?

Posted
On 11/10/2024 at 8:56 PM, Luke said:

Hi, are you using a reverse proxy?

Yes

 

Posted
On 11/12/2024 at 2:17 PM, damien_c2 said:

Yes

 

What reverse proxy are you using?

  • 1 month later...
Posted
On 11/16/2024 at 7:59 PM, Luke said:

What reverse proxy are you using?

Im using NGINX. 

  • 2 weeks later...
Posted
15 minutes ago, Luke said:

@damien_c2have you taken a look at this?

 

Yes already. 

Posted
51 minutes ago, damien_c2 said:

Yes already. 

Did you find any differences in your configuration compared to that one?

Posted
5 hours ago, Luke said:

Did you find any differences in your configuration compared to that one?

No but i may have find something, i will check if it crash again. 

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