8

I have setup the VSTS release definition with Dev and Test environments, those environments successfully deployed without any issue from last 2 months but suddenly today I faced some issue in Test environment even Dev environment succeeded.

The issue like “Error:C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295”, if you want more information see the below screenshot. enter image description here

Before posting question I read so many answers and tried with some options like adding -retryInterval: 6000 -retryAttempts:10 and tick the Take app offline option under Additional Deployment Options of VSTS release steps. But those are not helpful for resolving my issue.

So, can anyone tell me how to resolve this issue as soon as possible?

Pradeep
  • 5,101
  • 14
  • 68
  • 140
  • Is there something different about the test environment? Can you edit the release and revalidate the configuration of the deployment info to the slot you are deploying it? Maybe it needs to reauthenticate it – Jonathan Oct 01 '17 at 02:59
  • No, Test environment is similar to Dev environment only. there is no difference. – Pradeep Oct 02 '17 at 03:51
  • Now My will be resolved by restarting the my azure app service. but I didn't know exact solution for this issue. – Pradeep Oct 02 '17 at 13:24
  • You can add system.debug variable with true value, then start release and check detail log. Could you reproduce this issue with a new azure app service? – starian chen-MSFT Oct 03 '17 at 05:16
  • 1
    @starain-MSFT, I tried by setting system.debug variable with true value. But it can't reproduce the issue with new azure app service. – Pradeep Oct 03 '17 at 05:34
  • Maybe something error in azure web app Test environment, restarting it fix the error. – starian chen-MSFT Oct 03 '17 at 06:39
  • @starianchen-MSFT, I restarted my web app then the error is gone. But the same error occurred randomly, can you please tell me what is the main issue in azure web app. – Pradeep Feb 07 '18 at 09:52
  • Does the error occurred randomly when deploy app or just access app through internet explorer? – starian chen-MSFT Feb 08 '18 at 01:23
  • @starianchen-MSFT, The above error occurred few times when ever I was deployed app through the VSTS release. – Pradeep Feb 08 '18 at 04:24
  • Are there error logs of web app deployment in azure? – starian chen-MSFT Feb 08 '18 at 05:10
  • I mean the logs of web app in azure. On the other hand, what's the result if you deploy it manually? – starian chen-MSFT Feb 08 '18 at 05:40
  • @starianchen-MSFT, This is the link for VSTS release logs of web app deployment https://1drv.ms/u/s!At-JUB9_wu9CwQ9vO2bZ2FMAv2MW – Pradeep Feb 13 '18 at 05:28
  • Check Activity log in azure (Log in azure portal>select the app service>active log) – starian chen-MSFT Feb 13 '18 at 05:51
  • I checked in my azure app service activity logs in that there is no logs related to Critical and Error from last one month on words. – Pradeep Feb 13 '18 at 06:14
  • I am facing same issue https://stackoverflow.com/questions/46306755/app-serverice-deploy-fails-from-vsts-4294967295 – Pradeep Feb 13 '18 at 06:43

2 Answers2

1

This issue was related to permissions. The IIS deployment needs permissions to override files and do file transform if you have a web.config file.

I had an Azure Pipeline running on a server and I've added the "NETWORK SERVICE" account to the security with full control.

enter image description here

enter image description here

amrswalha
  • 372
  • 8
  • 20
0

Since setting system.debug release definition variable (in variables tab) to true didn't give more information, I finally deleted and recreated the staging slot to be able to deploy again. Of course I checked that the slot app and all its web jobs were stopped.

You're lucky if you deploy to a slot.

barbara.post
  • 1,581
  • 16
  • 27