I just upgraded our Octopus to 3.3.22 and upgraded all of our tentacles, after which things appeared to be operating normally.
There was then a power outage at our hosting site. (yeah, I know, using a hosting site is suppose to avoid that kind of problem.) once the site came back online and our servers restarted, on about a third of them, the tentacles would not start.
this is the error reported:
Error: Error: Unhandled Exception: System.TypeInitializationException: The type initializer for 'Octopus.Tentacle.Properties.OctopusTentacle' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Error: at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) Error: at System.Reflection.RuntimeAssembly.get_DefinedTypes() Error: at Octopus.Shared.Versioning.SemanticVersionInfo.LoadGitVersionDetails(Assembly assembly) in Y:\Work\refs\tags\3.3.22\source\Octopus.Shared\Versioning\SemanticVersionInfo.cs:line 27 Error: at System.Lazy1.CreateValue()
Error: at System.Lazy
1.LazyInitValue() Error: at Octopus.Shared.Versioning.SemanticVersionInfo.get_NuGetVersion() in Y:\Work\refs\tags\3.3.22\source\Octopus.Shared\Versioning\SemanticVersionInfo.cs:line 107 Error: at Octopus.Tentacle.Properties.OctopusTentacle..cctor() in Y:\Work\refs\tags\3.3.22\source\Octopus.Tentacle\Properties\OctopusTentacle.cs:line 13 Error: --- End of inner exception stack trace --- Error: at Octopus.Tentacle.Program..ctor(String commandLineArguments) in Y:\Work\refs\tags\3.3.22\source\Octopus.Tentacle\Program.cs:line 20 Error: at Octopus.Tentacle.Program.Main(String args) in Y:\Work\refs\tags\3.3.22\source\Octopus.Tentacle\Program.cs:line 31 Error: The previous command returned a non-zero exit code of: -532462766 Error: The command that failed was: "C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" service --instance "Tentacle" --start
this happens when trying to start the service, as well as trying to resinstall or uninstall the service.
on these server, we have multiple tentacle instances installed, and the error occurs for all of them. on other servers, also running 3.3.22, the tentacles are running fine, and can be stopped/restarted with no problems.
thanks for you help.
tentacle_error.txt (1 KB)