Auth container not starting in Windows 2019

I am trying to troubleshoot an issue with an Auth Docker container not being able to start for a client’s test server.

The test server is a Windows 2019 OS, with Service Fabric installed to orchestrate the Docker containers. All other Docker containers are up and running except this particular one.

These are the entries indicating the issue in that container’s log file:

2023-10-19 10:21:13.257 -04:00 [DBG] [Correlation Id: ] Hosting starting
2023-10-19 10:21:13.303 -04:00 [INF] [Correlation Id: ] Starting IdentityServer4 version 3.1.3.0
2023-10-19 10:21:13.305 -04:00 [FTL] [Correlation Id: ] No storage mechanism for clients specified. Use the 'AddInMemoryClients' extension method to register a development version.
2023-10-19 10:21:13.321 -04:00 [FTL] [Correlation Id: ] Application startup exception
System.InvalidOperationException: No storage mechanism for clients specified. Use the 'AddInMemoryClients' extension method to register a development version.
   at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.TestService(IServiceProvider serviceProvider, Type service, ILogger logger, String message, Boolean doThrow)
   at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.Validate(IApplicationBuilder app)
   at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.UseIdentityServer(IApplicationBuilder app, IdentityServerMiddlewareOptions options)
   at Mdrx.PM.IdentityService.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env) in C:\tfsagent\_work\1\s\Mdrx.PM\Server\Microservices\Identity\Microservice\Startup.cs:line 297
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
   at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.<Build>b__0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
   at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.HostFilteringStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)
   at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
2023-10-19 10:21:13.325 -04:00 [DBG] [Correlation Id: ] Hosting shutdown

There is also this entry in Event Viewer, that seems to point to the root cause of this issue, however I am not able to figure out how to resolve it.

Any help is appreciated!

Have you tried to search for the above error message? It doesn’t seem to be a Docker error and I have no experience with the software you are using in the container.

https://www.google.com/search?q=No+storage+mechanism+for+clients+specified.+Use+the+%27AddInMemoryClients%27+extension+method+to+register+a+development+version

I also edited your post. Please use code blocks instead of quotes (which wasn’t used properly either). More instructions are in the following topic: