Squidex fails to login when hosted on rancher ingress


#1

I have…
Attempted to install squidex under rancher

I’m submitting a…

  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Application fires up, the ui and login screen work fine, the application hangs with spinner.

Javascript console:

app.js?a8271a7654d03678c558:2 UserManager.getUser: user not found in storage
app.js?a8271a7654d03678c558:2 PopupWindow.error: Popup window closed
UserManager.signinPopup: signinPopup successful, signed in sub: 5d06bcaaf85e2e0001fe60f9
app.js?a8271a7654d03678c558:2 ERROR Error: Uncaught (in promise): e: {“statusCode”:500,“message”:“Failed to load apps. Please reload.”,“details”:[],“displayMessage”:“Failed to load apps. Please reload.”}
at F (shims.js?a8271a7654d03678c558:2)
at F (shims.js?a8271a7654d03678c558:2)
at shims.js?a8271a7654d03678c558:2
at r.invokeTask (shims.js?a8271a7654d03678c558:2)
at Object.onInvokeTask (app.js?a8271a7654d03678c558:2)
at r.invokeTask (shims.js?a8271a7654d03678c558:2)
at n.runTask (shims.js?a8271a7654d03678c558:2)
at b (shims.js?a8271a7654d03678c558:2)
at u.invokeTask [as invoke] (shims.js?a8271a7654d03678c558:2)
at i (shims.js?a8271a7654d03678c558:2)

Expected behavior

user logs in successfully, application is displayed

Minimal reproduction of the problem

Install mongodb, install squidex - set environment variables to correct settings,
Set Rancher ingress pointing to squidex with ssl termination
Attempt login

Environment

  • [x] Self hosted with rancher 2.0.14 (k8s) + ingress

Version: 2.0.4

Browser:

  • [X] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [X] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:
The following error

{
“logLevel”: “Error”,
“message”: “Connection id “0HLNIKQ3O855J”, Request id “0HLNIKQ3O855J:0000000A”: An unhandled exception was thrown by the application.”,
“eventId”: {
“id”: 13,
“name”: “ApplicationError”
},
“connectionId”: “0HLNIKQ3O855J”,
“traceIdentifier”: “0HLNIKQ3O855J:0000000A”,
“exception”: {
“type”: “System.InvalidOperationException”,
“message”: “IDX20803: Unable to obtain configuration from: ‘[PII is hidden]’.”,
“stackTrace”: " at Microsoft.IdentityModel.Protocols.ConfigurationManager1.GetConfigurationAsync(CancellationToken cancel)\n at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()\n at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()\n at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.AuthenticateAsync()\n at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)\n at IdentityServer4.AccessTokenValidation.IdentityServerAuthenticationHandler.HandleAuthenticateAsync()\n at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.AuthenticateAsync()\n at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthenticateAsync(AuthorizationPolicy policy, HttpContext context)\n at Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter.OnAuthorizationAsync(AuthorizationFilterContext context)\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()\n at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)\n at NSwag.AspNetCore.Middlewares.SwaggerDocumentMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\n at Squidex.Web.Pipeline.EnforceHttpsMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in /src/src/Squidex.Web/Pipeline/EnforceHttpsMiddleware.cs:line 28\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_1.<<UseMiddlewareInterface>b__1>d.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at Squidex.Web.Pipeline.LocalCacheMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in /src/src/Squidex.Web/Pi peline/LocalCacheMiddleware.cs:line 30\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_1.<<UseMiddlewareInterface>b__1>d.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at Squidex.Web.Pipeline.RequestLogPerformanceMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in /src/src/Squidex.Web/Pipeline/RequestLogPerformanceMiddleware.cs:line 33\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_1.<<UseMiddlewareInterface>b__1>d.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application)"
},


#2

Please upload the logs as a file somewhere . They are super hard to read in this forum.


#3

Probably the same problem like: Login problems behind haproxy