{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/5472","repository_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks","labels_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/5472/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/5472/comments","events_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/5472/events","html_url":"https://github.com/Microsoft/azure-pipelines-tasks/issues/5472","id":260720705,"node_id":"MDU6SXNzdWUyNjA3MjA3MDU=","number":5472,"title":"Copy Files using Clean Target Folder sometimes fails with EPERM: operation not permitted","user":{"login":"perreaultd","id":18683846,"node_id":"MDQ6VXNlcjE4NjgzODQ2","avatar_url":"https://avatars3.githubusercontent.com/u/18683846?v=4","gravatar_id":"","url":"https://api.github.com/users/perreaultd","html_url":"https://github.com/perreaultd","followers_url":"https://api.github.com/users/perreaultd/followers","following_url":"https://api.github.com/users/perreaultd/following{/other_user}","gists_url":"https://api.github.com/users/perreaultd/gists{/gist_id}","starred_url":"https://api.github.com/users/perreaultd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perreaultd/subscriptions","organizations_url":"https://api.github.com/users/perreaultd/orgs","repos_url":"https://api.github.com/users/perreaultd/repos","events_url":"https://api.github.com/users/perreaultd/events{/privacy}","received_events_url":"https://api.github.com/users/perreaultd/received_events","type":"User","site_admin":false},"labels":[{"id":391089120,"node_id":"MDU6TGFiZWwzOTEwODkxMjA=","url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/labels/Area:%20Core","name":"Area: Core","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"stephenmichaelf","id":450490,"node_id":"MDQ6VXNlcjQ1MDQ5MA==","avatar_url":"https://avatars1.githubusercontent.com/u/450490?v=4","gravatar_id":"","url":"https://api.github.com/users/stephenmichaelf","html_url":"https://github.com/stephenmichaelf","followers_url":"https://api.github.com/users/stephenmichaelf/followers","following_url":"https://api.github.com/users/stephenmichaelf/following{/other_user}","gists_url":"https://api.github.com/users/stephenmichaelf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenmichaelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenmichaelf/subscriptions","organizations_url":"https://api.github.com/users/stephenmichaelf/orgs","repos_url":"https://api.github.com/users/stephenmichaelf/repos","events_url":"https://api.github.com/users/stephenmichaelf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenmichaelf/received_events","type":"User","site_admin":false},"assignees":[{"login":"stephenmichaelf","id":450490,"node_id":"MDQ6VXNlcjQ1MDQ5MA==","avatar_url":"https://avatars1.githubusercontent.com/u/450490?v=4","gravatar_id":"","url":"https://api.github.com/users/stephenmichaelf","html_url":"https://github.com/stephenmichaelf","followers_url":"https://api.github.com/users/stephenmichaelf/followers","following_url":"https://api.github.com/users/stephenmichaelf/following{/other_user}","gists_url":"https://api.github.com/users/stephenmichaelf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenmichaelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenmichaelf/subscriptions","organizations_url":"https://api.github.com/users/stephenmichaelf/orgs","repos_url":"https://api.github.com/users/stephenmichaelf/repos","events_url":"https://api.github.com/users/stephenmichaelf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenmichaelf/received_events","type":"User","site_admin":false},{"login":"damccorm","id":42773683,"node_id":"MDQ6VXNlcjQyNzczNjgz","avatar_url":"https://avatars2.githubusercontent.com/u/42773683?v=4","gravatar_id":"","url":"https://api.github.com/users/damccorm","html_url":"https://github.com/damccorm","followers_url":"https://api.github.com/users/damccorm/followers","following_url":"https://api.github.com/users/damccorm/following{/other_user}","gists_url":"https://api.github.com/users/damccorm/gists{/gist_id}","starred_url":"https://api.github.com/users/damccorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damccorm/subscriptions","organizations_url":"https://api.github.com/users/damccorm/orgs","repos_url":"https://api.github.com/users/damccorm/repos","events_url":"https://api.github.com/users/damccorm/events{/privacy}","received_events_url":"https://api.github.com/users/damccorm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2017-09-26T18:18:35Z","updated_at":"2019-03-20T17:01:05Z","closed_at":null,"author_association":"NONE","body":"I have release definitions having the \"Copy Files\" task and \"Clean target folder\" option checked.\r\nMost of the deployments are successfull, so security seems rights.\r\nService account is in server local admin group which have full control of folder within NTFS security.\r\n\r\nSometimes the tasks end up giving the EPERM: operation not permitted error message. After getting the error, we can see that the folder deletion occured correctly because the folder exists no more. We just have to press \"Deploy\" again and the deployment ends up good. The issue seems to be \"on and off\" because we had 5 straight good release before hitting the problem. Then pressing re-deploy did the job. The next release got again the issue and we needed to re-deploy twice before ending up the release.\r\nWhen the issue occured, we are sure no Windows Explorer were open by dev team into the folder that got cleanup.\r\n\r\nDo you have an idea what can cause this issue?\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/comments/474931885","html_url":"https://github.com/Microsoft/azure-pipelines-tasks/issues/5472#issuecomment-474931885","issue_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/5472","id":474931885,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3NDkzMTg4NQ==","user":{"login":"codehunter13","id":7559059,"node_id":"MDQ6VXNlcjc1NTkwNTk=","avatar_url":"https://avatars2.githubusercontent.com/u/7559059?v=4","gravatar_id":"","url":"https://api.github.com/users/codehunter13","html_url":"https://github.com/codehunter13","followers_url":"https://api.github.com/users/codehunter13/followers","following_url":"https://api.github.com/users/codehunter13/following{/other_user}","gists_url":"https://api.github.com/users/codehunter13/gists{/gist_id}","starred_url":"https://api.github.com/users/codehunter13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codehunter13/subscriptions","organizations_url":"https://api.github.com/users/codehunter13/orgs","repos_url":"https://api.github.com/users/codehunter13/repos","events_url":"https://api.github.com/users/codehunter13/events{/privacy}","received_events_url":"https://api.github.com/users/codehunter13/received_events","type":"User","site_admin":false},"created_at":"2019-03-20T17:01:05Z","updated_at":"2019-03-20T17:01:05Z","author_association":"NONE","body":"i still have this issue"}}
{"actor":{"display_login":"codehunter13"}}