Hello,
Trying to run a deployment process but having an issue detailed below, surely remember it worked on a different solution, but now even stopped working on that as well, with the same problem. Looks like an access prevellege, but cant see how to address it.
Was running experiments on the machine (not octopus deploy related), ending up uninstall/re-install IIS. If this helps at all.
Thanks in advance.
ZZ
The error:
== Failed: Step 4: Deploy ==
09:07:10 Fatal | The step failed: Activity Deploy on LocalDev failed with error ‘The remote script failed with exit code 1’.
09:07:10 Verbose | Deploy completed
|
| Failed: LocalDev
09:05:43 Verbose | Octopus Server version: 3.13.0+Branch.master.Sha.872899cdf487a79ef334d6b3c310d671b65a57df
09:05:43 Verbose | Environment Information:
| OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
| OsBitVersion: x64
| Is64BitProcess: True
| CurrentUser: NT AUTHORITY\SYSTEM
| MachineName: W7PC7535
| ProcessorCount: 8
| CurrentDirectory: C:\windows\system32
| TempDirectory: C:\windows\TEMP
| HostProcessName: Octopus.Server
09:05:43 Info | Deploying package ‘C:\Octopus\Tentacle\Files\CapitaPortal.1.0.0.0.nupkg-960bf668-15dc-42d6-affe-d0ab3d87428a’ to machine 'https://localhost:10933/'
09:05:44 Verbose | Octopus Deploy: Calamari version 3.7.58+Branch.master.Sha.09995cad06e02fc582376226a19d6baa8181c81d
09:05:44 Verbose | Environment Information:
09:05:44 Verbose | OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
09:05:44 Verbose | OsBitVersion: x64
09:05:44 Verbose | Is64BitProcess: True
09:05:44 Verbose | CurrentUser: NT AUTHORITY\SYSTEM
09:05:44 Verbose | MachineName: W7PC7535
09:05:44 Verbose | ProcessorCount: 8
09:05:44 Verbose | CurrentDirectory: C:\Octopus\Tentacle\Work\20170504080543-8
09:05:44 Verbose | TempDirectory: C:\windows\TEMP
09:05:44 Verbose | HostProcessName: Calamari
09:05:44 Info | Deploying package: C:\Octopus\Tentacle\Files\CapitaPortal.1.0.0.0.nupkg-960bf668-15dc-42d6-affe-d0ab3d87428a
09:05:51 Verbose | Extracting package to: C:\Octopus\Applications\Development\CapitaPortal\1.0.0.0_8
09:06:20 Verbose | Extracted 4201 files
09:06:25 Info | Transforming ‘C:\Octopus\Applications\Development\CapitaPortal\1.0.0.0_8\Web.config’ using ‘C:\Octopus\Applications\Development\CapitaPortal\1.0.0.0_8\Web.Release.config’.
09:06:25 Verbose | Warning will be elevated to errors. Prevent this by adding the variable Octopus.Action.Package.TreatConfigTransformationWarningsAsErrors and setting it to false.
09:06:25 Verbose | Executing SetAttributes (transform line 8, 10)
09:06:25 Verbose | on /configuration/connectionStrings/add[@name=‘Xrm’]
09:06:25 Verbose | Applying to ‘add’ element (source line 16, 6)
09:06:25 Verbose | Set ‘name’ attribute
09:06:25 Verbose | Set ‘connectionString’ attribute
09:06:25 Verbose | Set 2 attributes
09:06:25 Verbose | Done executing SetAttributes
09:06:25 Verbose | Executing RemoveAttributes (transform line 12, 18)
09:06:25 Verbose | on /configuration/system.web/compilation
09:06:25 Verbose | Applying to ‘compilation’ element (source line 68, 6)
09:06:25 Verbose | Removed ‘debug’ attribute
09:06:25 Verbose | Removed 1 attributes
09:06:25 Verbose | Done executing RemoveAttributes
09:06:25 Verbose | Looking for appSettings, applicationSettings, and connectionStrings in any .config files
09:06:25 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Development\CapitaPortal\1.0.0.0_8\Web.config
09:06:25 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Development\CapitaPortal\1.0.0.0_8\Web.Debug.config
09:06:25 Verbose | File ‘C:\Octopus\Applications\Development\CapitaPortal\1.0.0.0_8\Web.Release.config’ was interpreted as an XML configuration transform; variable substitution won’t be attempted.
09:06:25 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Development\CapitaPortal\1.0.0.0_8\bin\CapitaPortal.dll.config
09:06:25 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Development\CapitaPortal\1.0.0.0_8\Views\Web.config
09:06:25 Info | Purging the directory 'c:\inetput\myaccount’
09:06:40 Info | Copying package contents to 'c:\inetput\myaccount’
09:06:55 Info | Copied 4201 files
09:06:55 Verbose | Executing feature-class 'Calamari.Deployment.Features.IisWebSiteBeforeDeployFeature’
09:07:00 Verbose | Creating ‘c:\inetput\myaccount\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ from embedded resource
09:07:00 Verbose | Executing 'c:\inetput\myaccount\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’
09:07:00 Verbose | Name Value
09:07:00 Verbose | ---- -----
09:07:00 Verbose | CLRVersion 2.0.50727.5485
09:07:00 Verbose | BuildVersion 6.1.7601.17514
09:07:00 Verbose | PSVersion 2.0
09:07:00 Verbose | WSManStackVersion 2.0
09:07:00 Verbose | PSCompatibleVersions {1.0, 2.0}
09:07:00 Verbose | SerializationVersion 1.1.0.1
09:07:00 Verbose | PSRemotingProtocolVersion 2.1
09:07:00 Verbose | PowerShell Environment Information:
09:07:00 Verbose | OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
09:07:00 Verbose | OsBitVersion: x86
09:07:00 Verbose | CurrentDirectory: c:\inetput\myaccount
09:07:00 Verbose | CurrentLocation: C:\inetput\myaccount
09:07:00 Verbose | TempDirectory: C:\windows\TEMP
09:07:00 Verbose | HostProcessName: powershell
09:07:00 Verbose | TotalPhysicalMemory: 16735348 KB
09:07:00 Verbose | AvailablePhysicalMemory: 9756584 KB
09:07:00 Verbose | Call to Get-WindowsFeature Web-WebServer failed.
09:07:00 Verbose | Unable to determine if IIS is installed on this server but will optimistically continue.
09:07:00 Info | Making sure a Website “MyAccount” is configured in IIS…
09:07:05 Verbose | Acquired SemaphoreInstance Global\Octopus-IIS-Metabase
09:07:05 Verbose | Loading Application pool
09:07:05 Info | Application pool “DefaultAppPool” already exists
09:07:05 Info | Attempt 1 of 5 failed: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
09:07:05 Info | Waiting for 1 seconds before retrying…
09:07:10 Info | Retrying…
09:07:10 Verbose | Loading Application pool
09:07:10 Info | Application pool “DefaultAppPool” already exists
09:07:10 Info | Attempt 2 of 5 failed: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
09:07:10 Info | Waiting for 1 seconds before retrying…
09:07:10 Info | Retrying…
09:07:10 Verbose | Loading Application pool
09:07:10 Info | Application pool “DefaultAppPool” already exists
09:07:10 Info | Attempt 3 of 5 failed: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
09:07:10 Info | Waiting for 1 seconds before retrying…
09:07:10 Info | Retrying…
09:07:10 Verbose | Loading Application pool
09:07:10 Info | Application pool “DefaultAppPool” already exists
09:07:10 Info | Attempt 4 of 5 failed: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
09:07:10 Info | Waiting for 1 seconds before retrying…
09:07:10 Info | Retrying…
09:07:10 Verbose | Loading Application pool
09:07:10 Info | Application pool “DefaultAppPool” already exists
09:07:10 Info | 0
09:07:10 Error | Get-WebItemState : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACC
09:07:10 Error | ESSDENIED))
09:07:10 Error | + CategoryInfo : InvalidOperation: (Microsoft.IIs.P…rationAttri
09:07:10 Error | bute:ConfigurationAttribute) [Get-WebItemState], UnauthorizedAccessExcepti
09:07:10 Error | on
09:07:10 Error | + FullyQualifiedErrorId : runtimeProperty,Microsoft.IIs.PowerShell.Provide
09:07:10 Error | r.GetItemStateCommand
09:07:10 Verbose | Deleting 'c:\inetput\myaccount\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’
09:07:10 Error | Script ‘c:\inetput\myaccount\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: 1
09:07:10 Error | Running rollback conventions…
09:07:10 Verbose | Adding journal entry:
09:07:10 Verbose |
09:07:10 Error | Script ‘c:\inetput\myaccount\Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: 1
09:07:10 Verbose | Updating manifest with output variables
09:07:10 Verbose | Updating manifest with action evaluated variables
09:07:10 Verbose | Planning retention policy
09:07:10 Fatal | The remote script failed with exit code 1
09:07:10 Verbose | at Octopus.Worker.Scripting.ScriptResult.EnsureSuccessful() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Worker\Scripting\ScriptResult.cs:line 97
| at Octopus.Server.Orchestration.Deploy.Package.PackageActionHandler.Execute(ActionCommand command, Machine machine) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\Package\PackageActionHandler.cs:line 38
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.<>c__DisplayClass28_0.b__0() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 324
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteWithTransientErrorDetection(Action action, Machine machine) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 428
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteActionAndInitLoggingContext(PlannedStep step, Machine machine, PlannedAction action) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 321
09:07:10 Fatal | Deploy on LocalDev
|
| Canceled: Step 5: Go online
09:07:10 Verbose | Step “Go online” runs only when all previous steps succeeded; skipping
|
| Canceled: Apply retention policy on Tentacles
09:07:10 Verbose | Step “Apply Tentacle Retention Policy” runs only when all previous steps succeeded; skipping