Deployment error with Octopus.Features.IISWebSite-BeforePostDeploy.ps1

Anyone know what this means and how to fix it? This is during a deployment of a release. It doesn’t get the webSiteName variable.

Error At D:\…..website….\Octopus.Features.IISWebSite_BeforePostDeploy.ps1:695 char:4

+             Start-Website $webSiteName

Error
    + CategoryInfo          : InvalidData: (IIS:\sites\....website...:String) [Start-WebItem], ArgumentException
    + FullyQualifiedErrorId : InvalidOperation,Microsoft.IIs.PowerShell.Provider.StartItemCommand

Hi Stuart,

Thank you for getting in touch. Could you turn on write variables to the log and send me the export of the log? You can message it to me directly by clicking on my username above and selecting Message.

Robert W

Completed and log sent. Thanks ahead.

Hi Stuart,

Thanks for that. On the line immediately prior to the one you sent is the message start-webitem : Value does not fall within the expected range.. T

he most likely cause of this is an error in the configuration of the website, bindings or app pool. The configuration I can see looks ok, but perhaps another website is using the same bindings. Try logging onto the machine and starting the website manually though IIS Manager.

It is getting the $webSiteName variable, PowerShell is just printing the source script. This is the block of code that it is running. As you can see it successfully gets the website state, sees it is stopped and then tries to start it (using the same variable name)

On manual start of the website in IISM I am getting “Value does not fall within the expected range” in a popup dialog/error box from IISM.

Hi Stuart,

Could you try changing/simplifying things on the website though IISM until it starts (remove bindings, change app pool user, etc).

Rob

It was a bad ip being used by another site. When that was changed, Octopus got past that. At this point, it is blocking on a password issue - the password is correctly set in the A/D domain controller and has been thoroughly checked. The password is in the Octopus global variable set for the particular library set. We’ve recreated the deploy fresh so that the variable gets in but it gives this:

Executing script on ‘xan-web-oc2-q01’
June 5th 2018 10:28:30Info
WARNING: The names of some imported commands from the module ‘Library_COMUtilities_636637985096629269’ include
June 5th 2018 10:28:30Info
unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the
June 5th 2018 10:28:30Info
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
June 5th 2018 10:28:30Info
WARNING: Some imported command names contain one or more of the following restricted characters: # , ( ) {{ }} [ ] & -
June 5th 2018 10:28:30Info
/ \ $ ^ ; : " ’ < > | ? @ ` * % + = ~
June 5th 2018 10:28:30Info
WARNING: The names of some imported commands from the module ‘Library_CommonUtils_636637985096629269’ include
June 5th 2018 10:28:30Info
unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the
June 5th 2018 10:28:30Info
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
June 5th 2018 10:28:30Info
WARNING: The names of some imported commands from the module ‘Library_GACUtilities_636637985096629269’ include
June 5th 2018 10:28:30Info
unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the
June 5th 2018 10:28:30Info
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
June 5th 2018 10:28:31Info
Install ‘rDesk’ COM+ application if not already installed
June 5th 2018 10:28:31Info
rDesk COM+ App Not Found - Recreating with identity rediv\svc-xan-iusr-qa
June 5th 2018 10:28:31Error
The identity or password set on the application is not valid (Exception from HRESULT: 0x80110414)
June 5th 2018 10:28:31Error
At D:\Octopus\Work\20180605172828–302\Bootstrap.Script.ps1:1640 char:5
June 5th 2018 10:28:31Error

  • $result = $appColl.SaveChanges()
    

June 5th 2018 10:28:31Error

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

June 5th 2018 10:28:31Error
+ CategoryInfo : OperationStopped: (:slight_smile: [], COMException
June 5th 2018 10:28:31Error
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
June 5th 2018 10:28:31Error
June 5th 2018 10:28:31Fatal
The remote script failed with exit code 1

Okay, we’re up. An app config had to be done. Thanks for your input very much Robert!

No worries, glad you got it going

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