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>

1 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team 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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 10:33