You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I enable AutoSetup and DatabaseShellsConfiguration, the container is unable to start.
To Reproduce
Steps to reproduce the behavior:
Add both features in Startup.cs
Run the container
Navigate to the url to trigger the setup
Check the logs
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.0032", "level": "WARN", "message": "Storing keys in a directory '\/root\/.aspnet\/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.", "callSite": "Microsoft.Extensions.Logging.LoggingExtensions.UsingEphemeralFileSystemLocationInContainer" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.4200", "level": "WARN", "message": "No XML encryptor configured. Key {bb6be5ed-9e65-4b5f-8403-d38cab10db14} may be persisted to storage in unencrypted form.", "callSite": "Microsoft.Extensions.Logging.LoggingExtensions.NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.7576", "level": "INFO", "message": "Now listening on: http:\/\/[::]:80", "callSite": "Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.7576", "level": "INFO", "message": "Now listening on: http:\/\/[::]:80", "callSite": "Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.7576", "level": "INFO", "message": "Application started. Press Ctrl+C to shut down.", "callSite": "Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.OnApplicationStarted" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.7576", "level": "INFO", "message": "Application started. Press Ctrl+C to shut down.", "callSite": "Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.OnApplicationStarted" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.7663", "level": "INFO", "message": "Hosting environment: Production", "callSite": "Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.OnApplicationStarted" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.7663", "level": "INFO", "message": "Hosting environment: Production", "callSite": "Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.OnApplicationStarted" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.7663", "level": "INFO", "message": "Content root path: \/app", "callSite": "Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.OnApplicationStarted" }
2024-04-05 19:28:36 { "timestamp": "2024-04-05 11:28:36.7663", "level": "INFO", "message": "Content root path: \/app", "callSite": "Microsoft.Extensions.Hosting.Internal.ConsoleLifetime.OnApplicationStarted" }
2024-04-05 19:30:18 { "timestamp": "2024-04-05 11:30:18.1390", "level": "INFO", "message": "Start creation of shells", "callSite": "OrchardCore.Environment.Shell.ShellHost.PreCreateAndRegisterShellsAsync" }
2024-04-05 19:30:19 { "timestamp": "2024-04-05 11:30:19.9092", "level": "ERROR", "message": "Connection id \"0HN2LCF2JD9GV\", Request id \"0HN2LCF2JD9GV:00000002\": An unhandled exception was thrown by the application.", "callSite": "Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ReportApplicationError" }
2024-04-06 05:41:49.4876|None|00-1f07678b321c97c02b01a248c5dbcb85-e6fea4625ecde3d2-00||Microsoft.AspNetCore.Server.Kestrel|ERROR|Connection id "0HN2LVH0D571G", Request id "0HN2LVH0D571G:00000002": An unhandled exception was thrown by the application. System.ArgumentException: Keyword not supported: 'mssql;database'.
at Microsoft.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at Microsoft.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at Microsoft.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at Microsoft.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at Microsoft.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at Microsoft.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at YesSql.DbConnectionFactory`1.CreateConnection()
at YesSql.Store.InitializeAsync()
Expected behavior
When I navigate the root address, a setup screen should be shown for a new instance, when I navigate to the auto setup path the auto set up should be triggered, and the site is usable.
I was able to get it to work if I do not include the ".AddDatabaseShellsConfiguration()" but I need to persist the data elsewhere as I require the containers to be stateless.
From my understanding, the AddDatabaseShellsConfiguration will show the setup page if it does not find any settings in the database.
Describe the bug
When I enable AutoSetup and DatabaseShellsConfiguration, the container is unable to start.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When I navigate the root address, a setup screen should be shown for a new instance, when I navigate to the auto setup path the auto set up should be triggered, and the site is usable.
I was able to get it to work if I do not include the ".AddDatabaseShellsConfiguration()" but I need to persist the data elsewhere as I require the containers to be stateless.
From my understanding, the
AddDatabaseShellsConfiguration
will show the setup page if it does not find any settings in the database.my env variables
I have also tried removing the call to auto setup, but still get the same error.
The text was updated successfully, but these errors were encountered: