Jellyfin Forum
DLNA Panasonic Internal Server Error 500 - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: DLNA Panasonic Internal Server Error 500 (/t-dlna-panasonic-internal-server-error-500)



DLNA Panasonic Internal Server Error 500 - gnmbj0ß94678 - 2024-01-29

Hey guys,

I'm running into Internal Server Errors 500 when trying to cast to a Panasonic TX-58GX800W using DLNA.
Why cast to? The OS is My Home Screen 4.0 and it has no Jellyfin app, and the TV itself does not show/discover Jellyfin as DLNA device.
Therefore I can only cast to the TV, but this generally works with other apps.

Jellyfin is 10.8.13 and was installed using Windows installer.
Here are logs using DLNA debug logging:
Code:
...

[2024-01-29 09:53:11.315 +01:00] [INF] [17] Emby.Dlna.DlnaManager: No matching device profile found. The default will need to be used.
DeviceIdentification { FriendlyName: "58GX800_Series", ModelNumber: "TX-58GX800W", SerialNumber: null, ModelName: "Panasonic VIErA", ModelDescription: null, ModelUrl: null, Manufacturer: "Panasonic", ManufacturerUrl: null, Headers: [] }
[2024-01-29 09:53:11.321 +01:00] [INF] [17] Emby.Dlna.Main.DlnaEntryPoint: DLNA Session created for "58GX800_Series" - "Panasonic VIErA"

...

How to fix this?
[2024-01-29 09:53:27.778 +01:00] [INF] [26] Emby.Dlna.DlnaManager: No matching device profile found. The default will need to be used.
DeviceIdentification { FriendlyName: "58GX800_Series", ModelNumber: "TX-58GX800W", SerialNumber: null, ModelName: "Panasonic VIErA", ModelDescription: null, ModelUrl: null, Manufacturer: "Panasonic", ManufacturerUrl: null, Headers: [] }
[2024-01-29 09:53:27.818 +01:00] [INF] [26] Emby.Dlna.Main.DlnaEntryPoint: StreamBuilder.BuildVideoItem( Profile="Generic Device", Path="x.mp4", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/2811bf0e-c8cb-2651-a862-e8f0241af8b3/stream.mov?MediaSourceId=2811bf0ec8cb2651a862e8f0241af8b3&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&api_key=<token>&Tag=fb3bf165b3becc9fc8359f4f7aef2484"
[2024-01-29 09:53:27.860 +01:00] [ERR] [29] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL "POST" "/Sessions/e6ce447666953f032f7df6cbd2c4e739/Playing".
System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
  at Emby.Dlna.PlayTo.SsdpHttpClient.SendCommandAsync(String baseUrl, DeviceService service, String command, String postData, String header, CancellationToken cancellationToken)
  at Emby.Dlna.PlayTo.Device.SetAvTransport(String url, String header, String metaData, CancellationToken cancellationToken)
  at Emby.Dlna.PlayTo.PlayToController.SetPlaylistIndex(Int32 index, CancellationToken cancellationToken)
  at Emby.Dlna.PlayTo.PlayToController.PlayItems(IEnumerable`1 items, CancellationToken cancellationToken)
  at Emby.Server.Implementations.Session.SessionManager.SendMessageToSession[T](SessionInfo session, SessionMessageType name, T data, CancellationToken cancellationToken)
  at Emby.Server.Implementations.Session.SessionManager.SendPlayCommand(String controllingSessionId, String sessionId, PlayRequest command, CancellationToken cancellationToken)
  at Jellyfin.Api.Controllers.SessionController.Play(String sessionId, PlayCommand playCommand, Guid[] itemIds, Nullable`1 startPositionTicks, String mediaSourceId, Nullable`1 audioStreamIndex, Nullable`1 subtitleStreamIndex, Nullable`1 startIndex)
  at lambda_method972(Closure , Object )
  at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
  at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
  at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
  at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
  at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
  at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
  at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
  at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
  at Jellyfin.Server.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
  at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
  at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
  at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
  at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
  at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
  at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
  at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
  at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
  at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
 
...

[2024-01-29 09:53:42.477 +01:00] [ERR] [32] Emby.Dlna.Main.DlnaEntryPoint: Error updating device info for "58GX800_Series"
System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
  at Emby.Dlna.PlayTo.SsdpHttpClient.SendCommandAsync(String baseUrl, DeviceService service, String command, String postData, String header, CancellationToken cancellationToken)
  at Emby.Dlna.PlayTo.Device.GetTransportInfo(TransportCommands avCommands, CancellationToken cancellationToken)
  at Emby.Dlna.PlayTo.Device.TimerCallback(Object sender)



RE: DLNA Panasonic Internal Server Error 500 - TheDreadPirate - 2024-01-29

Do you have transcoding setup?


RE: DLNA Panasonic Internal Server Error 500 - gnmbj0ß94678 - 2024-01-29

Yes, but it should not trigger on 1080p h264 anyways for this TV.


RE: DLNA Panasonic Internal Server Error 500 - TheDreadPirate - 2024-01-29

Try creating a DLNA profile of your device since it doesn't have one. It is using the default profile.


RE: DLNA Panasonic Internal Server Error 500 - gnmbj0ß94678 - 2024-01-29

Ah, I did not notice that it couldn't match a profile, despite calling it correctly Viera.

Well, I copied over the system profile for Panasonic Viera, with slight adjustments, e.g. VIErA instead of Viera.

Now it matches the profile, but I still get 500s:
Code:
[2024-01-29 21:38:15.847 +01:00] [INF] [7] Emby.Dlna.Main.DlnaEntryPoint: StreamBuilder.BuildVideoItem( Profile="58GX800_Series", Path="h264.1080p.mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/3ad0a945-f6cf-e6f8-274a-4c72c4ebb3db/stream.mkv?MediaSourceId=3ad0a945f6cfe6f8274a4c72c4ebb3db&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&api_key=<token>&Tag=17e54f9632b68b3d5ecea0efc0431e11"
[2024-01-29 21:38:15.858 +01:00] [ERR] [12] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL "POST" "/Sessions/e6ce447666953f032f7df6cbd2c4e739/Playing".
System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).

Playback for a h264.mp4 did work, but only if nothing is currently playing - if something is playing -> 500. That's unexpected behaviour?


RE: DLNA Panasonic Internal Server Error 500 - TheDreadPirate - 2024-01-29

Unfortunately, I don't know much about DLNA and how Jellyfin behaves when using it (I don't have any DLNA devices).