Hello,
When upgrading one tentacle, the upgrade failed and this message was returned when running Deploy.ps1:
Running PowerShell script: D:\Octopus\Applications\<snip>\Octopus.Tentacle\2.4.10.235\Deploy.ps1
Verbose 11:20:30
Failed receiving Octopus.Tentacle.Orchestration.Procedures.CallProcedureCommand
Error when attempting to execute powershell.exe: The system cannot find the file specified
System.Exception: Error when attempting to execute powershell.exe: The system cannot find the file specified ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Pipefish.Async.CaptiveProcess`1.BeginExecute(CaptiveProcessStartInfo startInfo, Action`1 output, Action`1 error, Int32& processId) in y:\work\3cbe05672d69a231\source\Pipefish\Async\CaptiveProcess.cs:line 217
--- End of inner exception stack trace ---
at Pipefish.Async.CaptiveProcess`1.BeginExecute(CaptiveProcessStartInfo startInfo, Action`1 output, Action`1 error, Int32& processId) in y:\work\3cbe05672d69a231\source\Pipefish\Async\CaptiveProcess.cs:line 241
at Pipefish.Async.CaptiveProcess`1.Start(CaptiveProcessStartInfo startInfo, TInProcState initialState, Action`2 outputWritten, Action`2 errorOutputWritten) in y:\work\3cbe05672d69a231\source\Pipefish\Async\CaptiveProcess.cs:line 107
at Octopus.Tentacle.Orchestration.Procedures.ProcedureCallOrchestrator.RunProcess(CaptiveProcessStartInfo startInfo, Action`2 outputWritten, Action`2 errorOutputWritten) in y:\work\refs\heads\master\source\Octopus.Tentacle\Orchestration\Procedures\ProcedureCallOrchestrator.cs:line 157
at Octopus.Tentacle.Procedures.Implementations.Scripts.PowerShellScriptProcedure.Start(IProcedureHost host, ProcedureState state) in y:\work\refs\heads\master\source\Octopus.Tentacle\Procedures\Implementations\Scripts\PowerShellScriptProcedure.cs:line 64
at Octopus.Tentacle.Orchestration.Procedures.ProcedureCallOrchestrator.Receive(CallProcedureCommand message) in y:\work\refs\heads\master\source\Octopus.Tentacle\Orchestration\Procedures\ProcedureCallOrchestrator.cs:line 73
at Pipefish.Actor.OnReceivingTyped[TBody](Message message) in y:\work\3cbe05672d69a231\source\Pipefish\Actor.cs:line 113
Fatal 11:20:30
Error when attempting to execute powershell.exe: The system cannot find the file specified
System.Exception: Error when attempting to execute powershell.exe: The system cannot find the file specified ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Pipefish.Async.CaptiveProcess`1.BeginExecute(CaptiveProcessStartInfo startInfo, Action`1 output, Action`1 error, Int32& processId) in y:\work\3cbe05672d69a231\source\Pipefish\Async\CaptiveProcess.cs:line 217
--- End of inner exception stack trace ---
at Pipefish.Async.CaptiveProcess`1.BeginExecute(CaptiveProcessStartInfo startInfo, Action`1 output, Action`1 error, Int32& processId) in y:\work\3cbe05672d69a231\source\Pipefish\Async\CaptiveProcess.cs:line 241
at Pipefish.Async.CaptiveProcess`1.Start(CaptiveProcessStartInfo startInfo, TInProcState initialState, Action`2 outputWritten, Action`2 errorOutputWritten) in y:\work\3cbe05672d69a231\source\Pipefish\Async\CaptiveProcess.cs:line 107
at Octopus.Tentacle.Orchestration.Procedures.ProcedureCallOrchestrator.RunProcess(CaptiveProcessStartInfo startInfo, Action`2 outputWritten, Action`2 errorOutputWritten) in y:\work\refs\heads\master\source\Octopus.Tentacle\Orchestration\Procedures\ProcedureCallOrchestrator.cs:line 157
at Octopus.Tentacle.Procedures.Implementations.Scripts.PowerShellScriptProcedure.Start(IProcedureHost host, ProcedureState state) in y:\work\refs\heads\master\source\Octopus.Tentacle\Procedures\Implementations\Scripts\PowerShellScriptProcedure.cs:line 64
at Octopus.Tentacle.Orchestration.Procedures.ProcedureCallOrchestrator.Receive(CallProcedureCommand message) in y:\work\refs\heads\master\source\Octopus.Tentacle\Orchestration\Procedures\ProcedureCallOrchestrator.cs:line 73
at Pipefish.Actor.OnReceivingTyped[TBody](Message message) in y:\work\3cbe05672d69a231\source\Pipefish\Actor.cs:line 113
I’ve verified that the file: D:\Octopus\Applications\<snip>\Octopus.Tentacle\2.4.10.235\Deploy.ps1
exists.
This also affects running the PostDeploy.ps1 script on a deployment to the tentacle.
Thus far I haven’t attempted to upgrade the tentacle manually.
Tentacle OS: Windows Server 2008 R2 Standard (SP1)
Tentacle Version: (sorry, looking for this, will update if/when I find it…)
Server Version: 2.4.10.235
Let me know if more information is required.
Thanks
Greg.