{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5259","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5259/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5259/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5259/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/5259","id":255993902,"number":5259,"title":"Azure App Service Deploy fails for .net core 2.0 with ERROR_FILE_IN_USE","user":{"login":"IvanAlekseev","id":23052247,"avatar_url":"https://avatars3.githubusercontent.com/u/23052247?v=4","gravatar_id":"","url":"https://api.github.com/users/IvanAlekseev","html_url":"https://github.com/IvanAlekseev","followers_url":"https://api.github.com/users/IvanAlekseev/followers","following_url":"https://api.github.com/users/IvanAlekseev/following{/other_user}","gists_url":"https://api.github.com/users/IvanAlekseev/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanAlekseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanAlekseev/subscriptions","organizations_url":"https://api.github.com/users/IvanAlekseev/orgs","repos_url":"https://api.github.com/users/IvanAlekseev/repos","events_url":"https://api.github.com/users/IvanAlekseev/events{/privacy}","received_events_url":"https://api.github.com/users/IvanAlekseev/received_events","type":"User","site_admin":false},"labels":[{"id":573634893,"url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20AzureAppService","name":"Area: AzureAppService","color":"bfdadc","default":false},{"id":391088230,"url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20Release","name":"Area: Release","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"kmkumaran","id":11780076,"avatar_url":"https://avatars2.githubusercontent.com/u/11780076?v=4","gravatar_id":"","url":"https://api.github.com/users/kmkumaran","html_url":"https://github.com/kmkumaran","followers_url":"https://api.github.com/users/kmkumaran/followers","following_url":"https://api.github.com/users/kmkumaran/following{/other_user}","gists_url":"https://api.github.com/users/kmkumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkumaran/subscriptions","organizations_url":"https://api.github.com/users/kmkumaran/orgs","repos_url":"https://api.github.com/users/kmkumaran/repos","events_url":"https://api.github.com/users/kmkumaran/events{/privacy}","received_events_url":"https://api.github.com/users/kmkumaran/received_events","type":"User","site_admin":false},"assignees":[{"login":"kmkumaran","id":11780076,"avatar_url":"https://avatars2.githubusercontent.com/u/11780076?v=4","gravatar_id":"","url":"https://api.github.com/users/kmkumaran","html_url":"https://github.com/kmkumaran","followers_url":"https://api.github.com/users/kmkumaran/followers","following_url":"https://api.github.com/users/kmkumaran/following{/other_user}","gists_url":"https://api.github.com/users/kmkumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkumaran/subscriptions","organizations_url":"https://api.github.com/users/kmkumaran/orgs","repos_url":"https://api.github.com/users/kmkumaran/repos","events_url":"https://api.github.com/users/kmkumaran/events{/privacy}","received_events_url":"https://api.github.com/users/kmkumaran/received_events","type":"User","site_admin":false},{"login":"vincentdass","id":20121508,"avatar_url":"https://avatars3.githubusercontent.com/u/20121508?v=4","gravatar_id":"","url":"https://api.github.com/users/vincentdass","html_url":"https://github.com/vincentdass","followers_url":"https://api.github.com/users/vincentdass/followers","following_url":"https://api.github.com/users/vincentdass/following{/other_user}","gists_url":"https://api.github.com/users/vincentdass/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdass/subscriptions","organizations_url":"https://api.github.com/users/vincentdass/orgs","repos_url":"https://api.github.com/users/vincentdass/repos","events_url":"https://api.github.com/users/vincentdass/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdass/received_events","type":"User","site_admin":false}],"milestone":null,"comments":88,"created_at":"2017-09-07T16:17:41Z","updated_at":"2018-04-09T15:10:09Z","closed_at":null,"author_association":"NONE","body":"I am trying to deploy an Asp.Net Core 2.0 web app to Azure App Service and receive this error \r\n```\r\n2017-09-07T15:20:07.7379097Z ##[section]Starting: Deploy Azure App Service\r\n2017-09-07T15:20:07.7569101Z ==============================================================================\r\n2017-09-07T15:20:07.7569101Z Task         : Azure App Service Deploy\r\n2017-09-07T15:20:07.7569101Z Description  : Update Azure Web App Services, Web App On Linux , Function Apps, Mobile Apps using Web Deploy / Kudu REST APIs\r\n2017-09-07T15:20:07.7569101Z Version      : 3.3.14\r\n2017-09-07T15:20:07.7569101Z Author       : Microsoft Corporation\r\n2017-09-07T15:20:07.7569101Z Help         : [More Information](https://aka.ms/azurermwebdeployreadme)\r\n2017-09-07T15:20:07.7569101Z ==============================================================================\r\n2017-09-07T15:20:11.9902809Z Got connection details for Azure App Service:'██████████████'\r\n2017-09-07T15:20:16.5780995Z [command]\"C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe\" -verb:sync -source:package='d:\\a\\r1\\a\\██████████████\\drop\\██████████████.zip' -dest:auto,ComputerName='https://██████████████.scm.azurewebsites.net:443/msdeploy.axd?site=██████████████',UserName='********',Password='********',AuthType='Basic' -setParam:name='IIS Web Application Name',value='██████████████' -enableRule:AppOffline -retryInterval:6000 -retryAttempts:10 -enableRule:DoNotDeleteRule -userAgent:VSTS_e29e8f6a-6b5e-463d-ba6e-72dd7866010e_release_10_50_99_1\r\n2017-09-07T15:20:17.1910281Z Info: Using ID '████████████████████████████████████' for connections to the remote server.\r\n2017-09-07T15:20:21.1058805Z Info: Using ID '████████████████████████████████████' for connections to the remote server.\r\n2017-09-07T15:20:27.0283815Z Info: Updating file (██████████████\\appsettings.Development.json).\r\n2017-09-07T15:20:27.0283815Z Info: Updating file (██████████████\\appsettings.json).\r\n2017-09-07T15:20:27.0283815Z Info: Updating file (██████████████\\Connected Services\\Application Insights\\ConnectedService.json).\r\n2017-09-07T15:20:27.0283815Z Info: Updating file (██████████████\\██████████████.Contract.dll).\r\n2017-09-07T15:20:27.0283815Z Info: Updating file (██████████████\\██████████████.Contract.pdb).\r\n2017-09-07T15:20:27.0283815Z Info: Updating file (██████████████\\██████████████.deps.json).\r\n2017-09-07T15:20:27.0283815Z Info: Updating file (██████████████\\██████████████.dll).\r\n2017-09-07T15:21:24.7852633Z ##[error]Failed to deploy web package to App Service.\r\n2017-09-07T15:21:24.7862628Z ##[warning]Try to deploy app service again with Rename locked files option selected.\r\n2017-09-07T15:21:24.7862628Z ##[error]Error Code: ERROR_FILE_IN_USE\r\nMore Information: Web Deploy cannot modify the file '██████████████.dll' on the destination because it is locked by an external process.  In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net applications on your next publish attempt.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.\r\nError count: 1.\r\n\r\n2017-09-07T15:21:24.7862628Z ##[error]Error: C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe failed with return code: 4294967295\r\n2017-09-07T15:21:26.2210992Z Successfully updated deployment History at https://██████████████.scm.azurewebsites.net/deployments/501504797684782\r\n2017-09-07T15:21:26.2321177Z ##[section]Finishing: Deploy Azure App Service\r\n```\r\n\r\nI've tried some workarounds from similar issue without any luck https://github.com/Microsoft/vsts-tasks/issues/1607\r\n\r\nAny ideas on what should I do to fix this?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/379786296","html_url":"https://github.com/Microsoft/vsts-tasks/issues/5259#issuecomment-379786296","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5259","id":379786296,"user":{"login":"davidebbo","id":556238,"avatar_url":"https://avatars1.githubusercontent.com/u/556238?v=4","gravatar_id":"","url":"https://api.github.com/users/davidebbo","html_url":"https://github.com/davidebbo","followers_url":"https://api.github.com/users/davidebbo/followers","following_url":"https://api.github.com/users/davidebbo/following{/other_user}","gists_url":"https://api.github.com/users/davidebbo/gists{/gist_id}","starred_url":"https://api.github.com/users/davidebbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidebbo/subscriptions","organizations_url":"https://api.github.com/users/davidebbo/orgs","repos_url":"https://api.github.com/users/davidebbo/repos","events_url":"https://api.github.com/users/davidebbo/events{/privacy}","received_events_url":"https://api.github.com/users/davidebbo/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T15:10:09Z","updated_at":"2018-04-09T15:10:09Z","author_association":"NONE","body":"@PaitoAnderson unfortunately, there were some delays, and the deployment in East US is only partial. To confirm that it is the reason, please try the following:\r\n\r\n- For each of the two apps, go to Kudu (AppName.scm.azurewebsites.net)\r\n- Look at the Azure App Service field (not the 'Build'). 71.0.x is the old build, and 72.0.x is the new one\r\n\r\nDoes that match your working / non-working app?"}}
{"actor":{"display_login":"davidebbo"}}