The remote script failed with exit code 1'. URITrainingDEVEnvironment

I am deploying one application on server. for testing purpose my octopus and tentacle is on same machine if it succeeds then I move on to other machines. But I am not able to do even deploy simple html. Please find below error and let me know what to do.

The step failed: Activity hellooctopus2 on URITrainingDEVEnvironment failed with error ‘The remote script failed with exit code 1’.
URITrainingDEVEnvironment
08:39:12Info
Deploying package ‘D:\OctopusTentacle\Files\hellooctopus.1.0.0.nupkg-28c53a39-bcef-4c22-ac57-eef37c1da7ab’ to machine ‘https://localhost:10933/
08:39:14Info
Deploying package: D:\OctopusTentacle\Files\hellooctopus.1.0.0.nupkg-28c53a39-bcef-4c22-ac57-eef37c1da7ab
08:39:19Info
Found binding: @{protocol=http; ipAddress=*; port=8089; host=; thumbprint=; requireSni=False; enabled=True}
08:39:19Error
pushd : Cannot find drive. A drive with the name ‘IIS’ does not exist.
08:39:19Error
At D:\OctopusTentacle\Applications\URITrainingDEVEnvironment\hellooctopus\1.0.0
08:39:19Error
_20\Octopus.Features.IISWebSite_BeforePostDeploy.ps1:282 char:1
08:39:19Error

  • pushd IIS:
    08:39:19Error

08:39:19Error
+ CategoryInfo : ObjectNotFound: (IIS:String) [Push-Location], Dr
08:39:19Error
iveNotFoundException
08:39:19Error
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.Push
08:39:19Error
LocationCommand
08:39:19Error
08:39:19Error
Script ‘D:\OctopusTentacle\Applications\URITrainingDEVEnvironment\hellooctopus\1.0.0_20\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: 1
08:39:19Error
Running rollback conventions…
08:39:19Error
Script ‘D:\OctopusTentacle\Applications\URITrainingDEVEnvironment\hellooctopus\1.0.0_20\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: 1
08:39:19Fatal
hellooctopus2 on URITrainingDEVEnvironment

Hi,

Thanks for getting in touch.

You may be missing the Windows PowerShell Snap-In for IIS. You can install it from this location: http://www.iis.net/downloads/microsoft/powershell

It will allow you to configure IIS from PowerShell which is required by Octopus when deploying a web site.

Please let me know if that helps.

Cheers,
Shane

Hi Shane ,

I have installed everything on my machine. My project architecture is both
client and server are on same machine (windows 7).

Please share any patch of windows power shell so that I can complete this
assignment for my client.

Hi,

I have a few questions that might help figure out why it isn’t working:
What version of IIS are you running?
Can you run the following command from the script console (http://docs.octopusdeploy.com/display/OD/Script+Console) and send the results:

Get-module -listavailable
Get-website

Thanks.

Shane