I just upgraded from 2.6.0.749 to 2.6.0.778, and despite the major version not changing, it is prompting me on the environments page to upgrade all my tentacles. When I try to do so, more than half our tentacles are failing with the following:
Reconfiguring the Octopus Tentacle Windows Service to use path: C:\Octopus\Applications\.SQ-PHLVDQA58UPGR-8D8649B6\Octopus.Tentacle\2.6.0.778_1\Tentacle.exe
Tentacle instance: Tentacle
Octopus Deploy: Tentacle version 2.6.0.778
C:\Octopus\Applications\.SQ-PHLVDQA58UPGR-8D8649B6\Octopus.Tentacle\2.6.0.778_1\Deploy.ps1 : Tentacle.exe reconfigure returned exit code 100
Unable to configure the proxy server: Could not find a part of the path 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\50e2rs4p.tmp'.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\50e2rs4p.tmp'.
Server stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at Octopus.Shared.Configuration.XmlKeyValueStore.LoadSettings(IDictionary`2 settingsToFill) in y:\work\refs\heads\release\source\Octopus.Shared\Configuration\XmlKeyValueStore.cs:line 22
at Octopus.Shared.Configuration.DictionaryKeyValueStore.Load() in y:\work\refs\heads\release\source\Octopus.Shared\Configuration\DictionaryKeyValueStore.cs:line 35
at System.Lazy`1.CreateValue()
Exception rethrown at [0]:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at Octopus.Shared.Configuration.XmlKeyValueStore.LoadSettings(IDictionary`2 settingsToFill) in y:\work\refs\heads\release\source\Octopus.Shared\Configuration\XmlKeyValueStore.cs:line 22
at Octopus.Shared.Configuration.DictionaryKeyValueStore.Load() in y:\work\refs\heads\release\source\Octopus.Shared\Configuration\DictionaryKeyValueStore.cs:line 35
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Octopus.Shared.Configuration.DictionaryKeyValueStore.Read(String key) in y:\work\refs\heads\release\source\Octopus.Shared\Configuration\DictionaryKeyValueStore.cs:line 23
at Octopus.Shared.Configuration.AbstractKeyValueStore.Get[TData](String name, TData defaultValue, Nullable`1 protectionScope) in y:\work\refs\heads\release\source\Octopus.Shared\Configuration\AbstractKeyValueStore.cs:line 37
at Octopus.Shared.Configuration.ProxyConfiguration.get_UseDefaultProxy() in y:\work\refs\heads\release\source\Octopus.Shared\Configuration\ProxyConfiguration.cs:line 18
at Octopus.Shared.Configuration.ProxyInitializer.InitializeProxy() in y:\work\refs\heads\release\source\Octopus.Shared\Configuration\ProxyInitializer.cs:line 35
-------------------------------------------------------------------------------
Error: Could not find a part of the path 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\50e2rs4p.tmp'.
-------------------------------------------------------------------------------
I am still able to run scripts on these machines and deploy packages, but it is very confusing that all environments show the machines need upgraded, and I would like to resolve this now so that when I later need to upgrade them this doesn’t crop up again.