Ends in:
7 DAYS
23 HRS
52 MIN
14 SEC
Ends in:
7 D
23 H
52 M
14 S
Open Closed

template app-pro run in docker error #4089


User avatar
0
yinchang created
  • ABP Framework version: v6.0.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:below
  • Steps to reproduce the issue:"
  1. abp new FS -t app-pro -u mvc --tiered
  2. cd aspnet-core\etc\build and run build-images-locally.ps1
  3. cd aspnet-core\etc\docker and fix docker-compose.yml typo fs-authserver to identity-server
  4. runrun-docker.ps1
  5. go to https://localhost:44353/ and try to login with admin 1q2w3E* will get error:
  6. check log:
2022-11-22 12:23:23 [04:23:23 ERR] An unhandled exception has occurred while executing the request.
2022-11-22 12:23:23 System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'http://fs-identity-server/.well-known/openid-configuration'.
2022-11-22 12:23:23    at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsync(AuthenticationProperties properties)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.ChallengeAsync(AuthenticationProperties properties)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, String scheme, AuthenticationProperties properties)
2022-11-22 12:23:23    at FS.Web.Pages.IndexModel.OnPostLoginAsync() in C:\Works\11111\FS7\aspnet-core\src\FS.Web\Pages\Index.cshtml.cs:line 15
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.NonGenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResourceFilter()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
2022-11-22 12:23:23    at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
2022-11-22 12:23:23    at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2022-11-22 12:23:23    at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2022-11-22 12:23:23    at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23    at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23    at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

1 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Thanks for reporting. We have noticed there are errors on generated docker-compose files. We'll fix them as soon as possible.

    I have refunded your credit.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06