VSTS Release Agent 'Failed' to deploy to IIS Site

Duncan Palmer

I am in the process of enabling CI/CD in our NP Environments. I have recently come across an issue where I am deploying to our staging environments which consists of two servers.

The first server deploys no problem, but the second server fails (Or so it says). Upon looking at the IIS Site directory the files do actually get released, but the log would indicated otherwise:

2019-04-07T21:07:22.1153713Z Total changes: 231 (229 added, 0 deleted, 2 updated, 0 parameters changed, 53453549 bytes copied)
2019-04-07T21:07:22.1309716Z ##[debug]rc:0
2019-04-07T21:07:22.1309716Z ##[debug]rc:0
2019-04-07T21:07:22.1309716Z ##[debug]success:false
2019-04-07T21:07:22.1309716Z ##[debug]success:false
2019-04-07T21:07:22.1465719Z Error: C:\azagent\A1\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.0.51\node_modules\webdeployment-common\MSDeploy3.6\msdeploy.exe failed with return code: 0
2019-04-07T21:07:22.1465719Z     at ChildProcess.<anonymous> (C:\azagent\A1\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.0.51\node_modules\vsts-task-lib\toolrunner.js:569:30)
2019-04-07T21:07:22.1465719Z     at emitTwo (events.js:106:13)
2019-04-07T21:07:22.1465719Z     at ChildProcess.emit (events.js:191:7)
2019-04-07T21:07:22.1465719Z     at maybeClose (internal/child_process.js:886:16)
2019-04-07T21:07:22.1465719Z     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
2019-04-07T21:07:22.1465719Z Retrying to deploy the package.

I've tried a couple of things:

  1. Making sure the user the release service is running under has the correct permissions to manage that directory.

  2. I have reinstalled the Release Agent.

Not sure what else to try or check. Any suggestions?

Duncan Palmer

So I have discovered what the issue was. Funnily enough it appears the issue has stemmed from the environment variable 'COR_PROFILING_ENABLED' being set to enabled '0x01'. It looks like for whatever reason Dynatrace is configured incorrectly and so a Dynatrace specific error is being thrown during the release process.

Since disabling disabling the release successfully completes.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

VSTS IIS Deploy Configure IIS site SSL Certificates

Release Agent Demands in VSTS

VSTS: Release and deploy a console application

Failed to deploy web package to IIS website. By the Self-hosted Windows agent

VSTS Deploy failed with error -1073740791

VSTS - how to select local agent for Release definition

TFS/VSTS Release Agent best practices

Octopus Deploy vs VSTS Release Tooling

Deploy static website to IIS from VSTS

VSTS Deployment Agent: Failed to bind to CoreCLR

Deploy multiple projects to same IIS web site

Permissions necessary to web deploy to IIS site

Deploy Test agent failing in VSTS due to WinRM issue

VSTS 2017: How to deploy task on MacOSX test agent?

How to update VSTS release job agent pool using powershell

What ports are used for VSTS/TFS Build/Release Agent?

VSTS Agent cannot overwrite nor remove the DLL when used by IIS

VSTS - Deployment Group release not working: Unable to deploy to the target as the target is offline

How to deploy to Azure Resource Group using VSTS release management

VSTS: Deploy Azure SQL DACPAC Release Management throwing an error

Deploy a NuGet package to folder location during a VSTS release

Formatting Release notes in VSTS Deploy to App Center build task

VSTS IIS Web App Deploy fails with return 2148734720

TeamCity + VSTS - Failed to perform checkout on agent target file already exists

JSON file to create release pipeline and add Agent Job and tasks to deploy Web App on Azure App Service Deploy

How to deploy ASP Core Web API VueJS site to IIS

VSTS Can we use App service as a machine with Deploy Visual Studio Test Agent Task

UWP App with release configuration and .net native crashes only when build on VSTS hosted agent

How to deploy an ASP.NET Core targetting net452 project as an IIS application of a Web Site in IIS