Problem when updating polling tentacles (v2.6)

Unable to configure the proxy server: Could not find a part of the path ‘C:\Windows\system32\config\systemprofile\AppData\Local\Temp\w1w1krlb.tmp’.
System.IO.DirectoryNotFoundException: Could not find a part of the path ‘C:\Windows\system32\config\systemprofile\AppData\Local\Temp\w1w1krlb.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(IDictionary2 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.Lazy1.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(IDictionary2 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.Lazy1.CreateValue()
at System.Lazy1.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, Nullable1 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\w1w1krlb.tmp’.

Full error details are available in the log files.
See: http://g.octopushq.com/LogFiles
Fatal 09:41:45
PowerShell script returned a non-zero exit code: 1
Tentacle version 2.6.0.749

Hi Patrik,

Thanks for reporting this issue! I have created a GitHub issue to resolve this which you can track here:

Can you confirm for me please, did you try this upgrade through Octopus or via the MSI?
If it was through Octopus, can you please confirm that the MSI has the same issue.

Thanks!
Vanessa

Hi Patrik,

Sorry to ask more questions. Have you previously upgrade this Tentacle pre-2.6?
Have you recently installed anything such as virus scanners or monitors on that Tentacle server? The error is showing that the Tentacle does not have permissions to create a temp file - so this could also be permissions based.
Can you check the user has access to the following directory: C:\Windows\system32\config\systemprofile\AppData\Local\Temp\

Thanks!
Vanessa

?Hello Vanessa,

I managed to solve the problem when manual installing the tentacle on the server

Kind Regards

Patrik Potocki