During an update to the latest version of Octopus in a DEV environment, I receive the following, can you please explain where the error originates from?
Saving instance: OctopusServer
Setting home directory to: E:\Data\Octopus_Data
Overriding master key
Setting database connection string to: data source=(local)\APPTCS;initial catalog=Octopus;integrated security=True
========== SQL Database Connection Details ========
SQL Server: (local)\APPTCS
SQL Database: Octopus
Authentication Type: Windows Integrated Security
User: PII\ParkerS
===================================================
Processing user account ‘PII\SVC_PIOctupus_PP’…
Adding ‘PII\SVC_PIOctupus_PP’ as a member of the ‘db_owner’ role…
Ensuring the database principal mapped to PII\SVC_PIOctupus_PP belongs to the role db_owner…
Checking the Octopus Master Key has been configured.
Making sure it’s safe to upgrade the database schema…
Checking to see if database schema upgrade is required…
Database already has the expected schema. No changes are required.
Creating built-in role System manager
Error: ===============================================================================
Error: A user role with this name already exists. Please choose a different name.
Error: Nevermore.UniqueConstraintViolationException
Error: at Nevermore.RelationalTransaction.DetectAndThrowIfKnownException(SqlException ex, DocumentMap mapping)
Error: at Nevermore.RelationalTransaction.Insert[TDocument](String tableName, TDocument instance, String customAssignedId, String tableHint, Nullable1 commandTimeoutSeconds) Error: at Nevermore.RelationalTransaction.Insert[TDocument](TDocument instance, String customAssignedId) Error: at Octopus.Core.Initialization.BuiltIn.BuiltInTeamInitializer.EnsureRoleExists(IRelationalTransaction transaction, BuiltInRole builtInRole) Error: at Octopus.Core.Initialization.BuiltIn.BuiltInTeamInitializer.EnsureBuiltInRolesExist(IRelationalTransaction transaction) Error: at Octopus.Core.Initialization.BuiltIn.BuiltInTeamInitializer.Initialize(IRelationalStore store) Error: at Nevermore.StoreInitializer.Initialize() Error: at Octopus.Server.Commands.DatabaseCommand.Start() Error: at Octopus.Shared.Startup.AbstractCommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions) Error: at Octopus.Shared.Startup.ConsoleHost.Run(Action
1 start, Action shutdown)
Error: at Octopus.Shared.Startup.OctopusProgram.Run()
Error: -------------------------------------------------------------------------------
Error: Terminating process with exit code 100
Error: Full error details are available in the log files at:
Error: C:\Users\ParkerS\AppData\Local\Octopus\Logs
Error: E:\Data\Octopus_Data\Logs
Error: If you need help, please send these log files to https://octopus.com/support
Error: -------------------------------------------------------------------------------
Error:
Error: The previous command returned a non-zero exit code of: 100
Error: The command that failed was: “E:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe” database --instance “OctopusServer” --connectionString “Data Source=(local)\APPTCS;Initial Catalog=Octopus;Integrated Security=True” --masterKey “xxx” --grant “PII\SVC_PIOctupus_PP”
Deregistered OctopusServer from the database
Deleted instance: OctopusServer