Access Denied to Variables.secret

Using Octopus tentacle in listening mode. Health check is fine. Octopus Tentacle Windows Service is running as LocalSystem, so should have access.

Server is Windows Server 2016.

The step failed: Activity Deploy Admin App IIS on [REDACTED] failed with error ‘Access to the path ‘D:\Octopus\Work\20180925094405-74-10\Variables.secret’ is denied. Server exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.UnauthorizedAccessException: Access to the path ‘D:\Octopus\Work\20180925094405-74-10\Variables.secret’ is denied. 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, Boolean checkHost) at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost) at Octopus.Tentacle.Services.Scripts.ScriptService.<>c__DisplayClass7_0.<SaveFileToDisk>b__0(Stream stream) at Halibut.Transport.Protocol.TemporaryFileStream.Read(Action1 reader) in Z:\buildAgent\workDir\fe2b45bbd4978f75\source\Halibut\Transport\Protocol\TemporaryFileStream.cs:line 33 at System.Collections.Generic.List1.ForEach(Action1 action) at Octopus.Tentacle.Services.Scripts.ScriptService.PrepareWorkspace(StartScriptCommand command, ScriptTicket ticket) at Octopus.Tentacle.Services.Scripts.ScriptService.StartScript(StartScriptCommand command) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Halibut.ServiceModel.ServiceInvoker.Invoke(RequestMessage requestMessage) in Z:\buildAgent\workDir\fe2b45bbd4978f75\source\Halibut\ServiceModel\ServiceInvoker.cs:line 32 at Halibut.Transport.Protocol.MessageExchangeProtocol.InvokeAndWrapAnyExceptions(RequestMessage request, Func2 incomingRequestProcessor) in Z:\buildAgent\workDir\fe2b45bbd4978f75\source\Halibut\Transport\Protocol\MessageExchangeProtocol.cs:line 266’.

Hi @chrisclayton,

Thanks for getting in touch, sorry to hear that you’ve run into an issue.

We have seen this issue previously where Antivirus blocked access to any file with a .secret extension, are you able to check if this is the case with your issue?

Otherwise I would suggest forcing a refresh of the permissions on D:\Octopus\ and all subfolders and files to see if that resolves the issue.

If neither of those two approaches resolve the issue please let me know,

Regards,
Alex

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.