Error deploying with Octopus - exit code 1

Web site is stopped. Attempting to start…

15:38:04

Error
start-webitem : Cannot create a file when that file already exists. (Exception

15:38:04

Error
from HRESULT: 0x800700B7)

15:38:04

Error
At C:\Octopus\Applications\Development\C_WebApplication\1.0.0.0_1\Octopus.Featu

15:38:04

Error
res.IISWebSite_BeforePostDeploy.ps1:450 char:3

15:38:04

Error

  •     Start-Website $WebSiteName
    

15:38:04

Error

  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    

15:38:04

Error
+ CategoryInfo : InvalidOperation: (:slight_smile: [Start-WebItem], COMExcept

15:38:04

Error
ion

15:38:04

Error
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.IIs.PowerShell.Provid

15:38:04

Error
er.StartItemCommand

15:38:04

Error

15:38:04

Error
Script ‘C:\Octopus\Applications\Development\C_WebApplication\1.0.0.0_1\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: 1

15:38:04

Error
Running rollback conventions…

15:38:09

Error
Script ‘C:\Octopus\Applications\Development\C_WebApplication\1.0.0.0_1\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: 1

15:38:10

Fatal
The remote script failed with exit code 1

Hi Pallavi,

Thanks for reaching out.

The message Cannot create a file when that file already exists. usually means that you are trying to start a website witha port binding that’s already in use by another project. Is this possible?

If that doesn’t ring any bells, we’ll need to see the full log instead of only this tiny fragment

http://docs.octopusdeploy.com/display/OD/Get+the+raw+output+from+a+task .

Thanks,
Dalmiro

Yes the issue was with port number which was already been used by another website…
Its working now…Thank you…