I am using docker-compose and portainer to manage the octopus-deploy ‘stack’. The application started fine for version 2022.3.10723
. I pulled the latest release image 2023.1.9767
and redeployed the container to upgrade the instance but this resulted in the app crashing. I reverted to the original 2022.3.10723
version but it is still failing to load. All environment variables look okay.
I am able to ping the database server and access the octopus config files from within the container (using bash interactive shell). Below is the log output:
2023-03-30T15:28:22.550555060Z ======== Config already detected ========
2023-03-30T15:28:22.550583224Z ======== Starting Server =======
2023-03-30T15:28:26.015156095Z Instance OctopusServer of OctopusServer has not been configured on this machine. Available instances: .
2023-03-30T15:28:26.015246889Z Octopus.Shared.ControlledFailureException: Instance OctopusServer of OctopusServer has not been configured on this machine. Available instances: .
2023-03-30T15:28:26.015255191Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceStore.GetNamedRegistryRecord(String instanceName) in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceStore.cs:line 168
2023-03-30T15:28:26.015259718Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceStore.LoadInstanceDetails(String instanceName) in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceStore.cs:line 59
2023-03-30T15:28:26.015261316Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceSelector.LocateApplicationPrimaryConfiguration() in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceSelector.cs:line 111
2023-03-30T15:28:26.015263304Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceSelector.LoadInstance() in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceSelector.cs:line 67
2023-03-30T15:28:26.015265127Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceSelector.LoadCurrentInstance() in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceSelector.cs:line 58
2023-03-30T15:28:26.015266657Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceSelector.get_Current() in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceSelector.cs:line 35
2023-03-30T15:28:26.015268172Z at Octopus.Shared.Startup.AbstractStandardCommand.Start() in ./source/Octopus.Shared/Startup/AbstractStandardCommand.cs:line 42
2023-03-30T15:28:26.015269637Z at Octopus.Server.Commands.RunCommand.Start() in ./source/Octopus.Server/Commands/RunCommand.cs:line 80
2023-03-30T15:28:26.015271125Z at Octopus.Shared.Startup.AbstractCommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions) in ./source/Octopus.Shared/Startup/AbstractCommand.cs:line 101
2023-03-30T15:28:26.015272689Z at Octopus.Shared.Startup.OctopusProgram.Start(ICommandRuntime commandRuntime) in ./source/Octopus.Shared/Startup/OctopusProgram.cs:line 504
2023-03-30T15:28:26.015274164Z at Octopus.Shared.Startup.NoninteractiveHost.Run(Action`1 start, Action shutdown) in ./source/Octopus.Shared/Startup/NoninteractiveHost.cs:line 12
2023-03-30T15:28:26.015277779Z at Octopus.Shared.Startup.OctopusProgram.RunHost(ICommandHost host) in ./source/Octopus.Shared/Startup/OctopusProgram.cs:line 221
2023-03-30T15:28:26.015323696Z at Octopus.Shared.Startup.OctopusProgram.Run() in ./source/Octopus.Shared/Startup/OctopusProgram.cs:line 167
2023-03-30T15:28:26.036977831Z Unhandled exception. Autofac.Core.DependencyResolutionException: An exception was thrown while activating Octopus.Server.OctopusServerEngine -> λ:Octopus.Server.Extensibility.Authentication.Extensions.IAuthenticationProvider[] -> Octopus.Server.Extensibility.Authentication.DirectoryServices.DirectoryServicesAuthenticationProvider -> Octopus.Server.Extensibility.Authentication.DirectoryServices.Configuration.DirectoryServicesConfigurationStore -> Octopus.Core.Repositories.RawConfigurationStore -> λ:Octopus.Core.RelationalStorage.IRawRelationalStore -> Octopus.Core.RelationalStorage.RelationalStoreFactory -> Octopus.Core.RelationalStorage.MappedSqlDatabaseConnectionString -> Octopus.Core.Configuration.OctopusServerStorageConfiguration -> λ:Octopus.Configuration.IKeyValueStore.
2023-03-30T15:28:26.036999759Z ---> Octopus.Shared.ControlledFailureException: Instance OctopusServer of OctopusServer has not been configured on this machine. Available instances: .
2023-03-30T15:28:26.037001814Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceStore.GetNamedRegistryRecord(String instanceName) in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceStore.cs:line 168
2023-03-30T15:28:26.037003421Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceStore.LoadInstanceDetails(String instanceName) in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceStore.cs:line 59
2023-03-30T15:28:26.037004986Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceSelector.LocateApplicationPrimaryConfiguration() in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceSelector.cs:line 111
2023-03-30T15:28:26.037006523Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceSelector.LoadInstance() in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceSelector.cs:line 67
2023-03-30T15:28:26.037008032Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceSelector.LoadCurrentInstance() in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceSelector.cs:line 58
2023-03-30T15:28:26.037009970Z at Octopus.Shared.Configuration.Instances.ApplicationInstanceSelector.get_Current() in ./source/Octopus.Shared/Configuration/Instances/ApplicationInstanceSelector.cs:line 35
2023-03-30T15:28:26.037011566Z at Octopus.Shared.Configuration.ConfigurationModule.<>c.<Load>b__3_2(IComponentContext c) in ./source/Octopus.Shared/Configuration/ConfigurationModule.cs:line 79
2023-03-30T15:28:26.037013265Z at Autofac.RegistrationExtensions.<>c__DisplayClass5_0`1.<Register>b__0(IComponentContext c, IEnumerable`1 p)
2023-03-30T15:28:26.037014821Z at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass0_0`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)
2023-03-30T15:28:26.037016401Z at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
2023-03-30T15:28:26.037017860Z at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)
2023-03-30T15:28:26.037019367Z --- End of inner exception stack trace ---
2023-03-30T15:28:26.037020760Z at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)
2023-03-30T15:28:26.037022266Z at Autofac.Core.Resolving.InstanceLookup.<>c__DisplayClass6_0.<Execute>b__0()
2023-03-30T15:28:26.037023801Z at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)
2023-03-30T15:28:26.037031030Z at Autofac.Core.Resolving.InstanceLookup.Execute()
2023-03-30T15:28:26.037032523Z at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
2023-03-30T15:28:26.037036146Z at Autofac.Core.Resolving.ResolveOperation.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
2023-03-30T15:28:26.037037670Z at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
2023-03-30T15:28:26.037039153Z at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
2023-03-30T15:28:26.037040636Z at Autofac.Features.LazyDependencies.LazyRegistrationSource.<>c__DisplayClass5_1`1.<CreateLazyRegistration>b__1()
2023-03-30T15:28:26.037042762Z at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
2023-03-30T15:28:26.037044192Z at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
2023-03-30T15:28:26.037045671Z at System.Lazy`1.CreateValue()
2023-03-30T15:28:26.037047099Z at System.Lazy`1.get_Value()
2023-03-30T15:28:26.037048517Z at Octopus.Server.Commands.RunCommand.Stop() in ./source/Octopus.Server/Commands/RunCommand.cs:line 170
2023-03-30T15:28:26.037050233Z at Octopus.Shared.Startup.AbstractCommand.Octopus.Shared.Startup.ICommand.Stop() in ./source/Octopus.Shared/Startup/AbstractCommand.cs:line 139
2023-03-30T15:28:26.037051826Z at Octopus.Shared.Startup.OctopusProgram.Shutdown() in ./source/Octopus.Shared/Startup/OctopusProgram.cs:line 563
2023-03-30T15:28:26.037053352Z at Octopus.Shared.Startup.NoninteractiveHost.Stop(Action shutdown) in ./source/Octopus.Shared/Startup/NoninteractiveHost.cs:line 18
2023-03-30T15:28:26.037054919Z at Octopus.Shared.Startup.OctopusProgram.<>c__DisplayClass20_0.<RunHost>b__1(Object _, EventArgs _) in ./source/Octopus.Shared/Startup/OctopusProgram.cs:line 219
2023-03-30T15:28:26.037056574Z at System.AppContext.OnProcessExit()
2023-03-30T15:28:26.048539023Z [createdump] Gathering state for process 1 Octopus.Server
2023-03-30T15:28:26.048553651Z [createdump] Crashing thread 0000000d signal 00000006