Open Closed

Error When run OpenIddictServer on docker #6291


User avatar
0
nawaf.maqbali created

PS C:\Users\NawafAlMaqbali\Desktop> docker compose up [+] Running 1/1

  • Container authserver Recreated 0.7s Attaching to authserver authserver | [06:37:02 INF] Starting Thiqah.Maroof.AuthServer. authserver | [06:37:03 FTL] Thiqah.Maroof.AuthServer terminated unexpectedly! authserver | Volo.Abp.AbpInitializationException: An error occurred during ConfigureServicesAsync phase of the module Volo.Abp.OpenIddict.AbpOpenIddictDomainModule, Volo.Abp.OpenIddict.Domain, Version=7.3.3.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. authserver | ---> System.Security.Cryptography.CryptographicException: The X509 certificate could not be added to the store. authserver | ---> System.UnauthorizedAccessException: Access to the path '/home/maroofuser' is denied. authserver | ---> System.IO.IOException: Permission denied authserver | --- End of inner exception stack trace --- authserver | at System.IO.FileSystem.CreateParentsAndDirectory(String fullPath, UnixFileMode unixCreateMode) authserver | at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode) authserver | at System.IO.Directory.CreateDirectory(String path) authserver | at System.Security.Cryptography.X509Certificates.OpenSslDirectoryBasedStoreProvider.AddCertToStore(ICertificatePal certPal) authserver | at System.Security.Cryptography.X509Certificates.OpenSslDirectoryBasedStoreProvider.Add(ICertificatePal certPal) authserver | --- End of inner exception stack trace --- authserver | at System.Security.Cryptography.X509Certificates.OpenSslDirectoryBasedStoreProvider.Add(ICertificatePal certPal) authserver | at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddDevelopmentEncryptionCertificate(X500DistinguishedName subject) authserver | at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddDevelopmentEncryptionCertificate() authserver | at Thiqah.Maroof.MaroofAuthServerModule.<>c__DisplayClass0_0.<PreConfigureServices>b__2(OpenIddictServerBuilder options) in /src/src/Thiqah.Maroof.AuthServer/MaroofAuthServerModule.cs:line 175 authserver | at Microsoft.Extensions.DependencyInjection.OpenIddictServerExtensions.AddServer(OpenIddictBuilder builder, Action1 configuration) authserver | at Thiqah.Maroof.MaroofAuthServerModule.<>c__DisplayClass0_0.<PreConfigureServices>b__1(OpenIddictBuilder builder) in /src/src/Thiqah.Maroof.AuthServer/MaroofAuthServerModule.cs:line 113 authserver | at Volo.Abp.Options.PreConfigureActionList1.Configure(TOptions options) authserver | at Microsoft.Extensions.DependencyInjection.ServiceCollectionPreConfigureExtensions.ExecutePreConfiguredActions[TOptions](IServiceCollection services, TOptions options) authserver | at Volo.Abp.OpenIddict.AbpOpenIddictDomainModule.AddOpenIddictCore(IServiceCollection services) authserver | at Volo.Abp.OpenIddict.AbpOpenIddictDomainModule.ConfigureServices(ServiceConfigurationContext context) authserver | at Volo.Abp.Modularity.AbpModule.ConfigureServicesAsync(ServiceConfigurationContext context) authserver | at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() authserver | --- End of inner exception stack trace --- authserver | at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() authserver | at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) authserver | at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) authserver | at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action`1 optionsAction) authserver | at Thiqah.Maroof.Program.Main(String[] args) in /src/src/Thiqah.Maroof.AuthServer/Program.cs:line 57 authserver exited with code 1 PS C:\Users\NawafAlMaqbali\Desktop>
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello ,

    Please check this https://stackoverflow.com/questions/74151697/how-to-install-x509-certificate-to-the-personal-store-current-user-in-openshift4 https://support.abp.io/QA/Questions/3537/OpenIddict-WindowsCryptographicException-Access-is-denied

    Thank you

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on October 06, 2026, 12:23
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.