Jellyfin Forum
Login issue Jellyfin 10.9.4 on Yunohost - 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: Login issue Jellyfin 10.9.4 on Yunohost (/t-login-issue-jellyfin-10-9-4-on-yunohost)



Login issue Jellyfin 10.9.4 on Yunohost - Tigui14 - 2024-06-05

Hello,

I'm using Jellyfin on Yunohost and I have recently updated to 10.9.4 and I'm facing some login issues.
When trying to login, I have the following error in the logs:

Code:
[2024-06-05 19:13:30.396 +02:00] [ERR] [142] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "POST" "/Users/authenticatebyname".
System.ArgumentNullException: Value cannot be null. (Parameter 'request.App')
  at System.ArgumentNullException.Throw(String paramName)
  at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
  at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName)
  at System.ArgumentException.ThrowIfNullOrEmpty(String argument, String paramName)
  at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword)
  at Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(AuthenticateUserByName request)
  at lambda_method1145(Closure, Object)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, 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()
--- End of stack trace from previous location ---
  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()
--- End of stack trace from previous location ---
  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 Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
  at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
  at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
  at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
  at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
  at Jellyfin.Api.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.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
  at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
  at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
  at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
  at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)

I've searched for some time, did some tests and I realized that I could login perfectly fine with the Android app or if I deleted the cookies of my browser first.
Specifically, Yunohost creates a cookie to store the session user and password hash, and that's this cookie that causes problem to Jellyfin. When the cookie is deleted, Jellyfin works as expected.
The three values inside this cookie are the following: SSOwAuthUser, SSOwAuthHash and SSOwAuthExpire.

To clarify my setup, Yunohost is hosted on mydomain.com and provides a central interface to several services, including Jellyfin on jellyfin.mydomain.com.
Yunohost uses SSO/LDAP for login, and I also use LDAP in Jellyfin with the official plugin.

The problem was not present with Jellyfin 10.8.13.

Would anyone have any idea why this cookie prevent login in Jellyfin? And what I could do to solve the error (while keeping the cookie)?


RE: Login issue Jellyfin 10.9.4 on Yunohost - Tigui14 - 2024-06-21

I've just installed Jellyfin 10.9.6 and the problem is unfortunately still present.


RE: Login issue Jellyfin 10.9.4 on Yunohost - TheDreadPirate - 2024-06-21

Was the LDAP plugin updated since 10.8.13?


RE: Login issue Jellyfin 10.9.4 on Yunohost - Tigui14 - 2024-06-23

I have the 19.0.0.0 version, so yes


RE: Login issue Jellyfin 10.9.4 on Yunohost - TheDreadPirate - 2024-06-23

You can try re-enabling the startup wizard, reset the local admin and re-gain access to your jellyfin.


RE: Login issue Jellyfin 10.9.4 on Yunohost - Tigui14 - 2024-06-27

I actually can have access when deleting the cookie, or when starting a private session in my browser and accessing Jellyfin directly without going through the portal.
It seems to to be this specific connection cookie that messes with Jellyfin authentication in some way.