When trying to use any powershell script steps in a deployment to a specific box we receive the following error:
Tentacle script execution
The term ‘C:\Windows\system32\config\systemprofile\AppData\Local\Tentacle\Temp
Bootstrap.769d797a-fa3b-41c3-b022-a3828d84f467.ps1’ is not recognized as the na
me of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try
At line:1 char:5
FullyQualifiedErrorId : CommandNotFoundException
PowerShell exit code: 1
PowerShell script returned a non-zero exit code: 1
Tentacle version 22.214.171.1240
This error is reproducible on the same box, but not on others, and we were wondering how we might go about debugging this. Additionally, it only seems to be affecting pure powershell script steps; any NuGet package steps that also use deployment scripts work fine.
That box is running Windows server 2008 R2, it is 64 bit and it is running PowerShell version 2. The boxes it is working on are running Windows 7 (x64), also PowerShell v2. All tentacles are version 126.96.36.1990.
Upon further inspection, it seems that all of the working boxes have a collection of hidden boostrap.-.ps1 files in C:\Windows\System32\config\systemprofile\AppData\Local\Tentacle\Temp, which in turn line up with the names of scripts that this box complains about. It seems, therefore, that the script file isn’t getting transferred, for whatever reason, or is being deleted immediately.
I have checked and the local system user (that the Tentacle is running under) has complete read/write access to this folder.
Thanks for the extra information, yeah we saw from your first error that it looked like the script wasn’t properly getting placed in the folder and thus asked for the Windows and PowerShell versions.
We are still trying to figure this out, and will get back you to soon. In the mean time if you could provide a full deployment log for the failing deployment that might help. http://docs.octopusdeploy.com/display/OD/Get+the+raw+output+from+a+task
Sorry for the delay in getting back to you. We are still at a bit of a loss here, so a screen sharing session might be the only way to get to the bottom of this.
If you could select a suitable time from the following link: https://octopusdeploy.acuityscheduling.com/schedule.php we will help you track this down