{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3986","labels_url":"https://api.github.com/repos/chef/chef/issues/3986/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3986/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3986/events","html_url":"https://github.com/chef/chef/pull/3986","id":108744088,"number":3986,"title":"fix errors when files go away during chown","user":{"login":"aub","id":2895,"avatar_url":"https://avatars.githubusercontent.com/u/2895?v=3","gravatar_id":"","url":"https://api.github.com/users/aub","html_url":"https://github.com/aub","followers_url":"https://api.github.com/users/aub/followers","following_url":"https://api.github.com/users/aub/following{/other_user}","gists_url":"https://api.github.com/users/aub/gists{/gist_id}","starred_url":"https://api.github.com/users/aub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aub/subscriptions","organizations_url":"https://api.github.com/users/aub/orgs","repos_url":"https://api.github.com/users/aub/repos","events_url":"https://api.github.com/users/aub/events{/privacy}","received_events_url":"https://api.github.com/users/aub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-28T20:51:36Z","updated_at":"2015-09-28T22:03:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/3986","html_url":"https://github.com/chef/chef/pull/3986","diff_url":"https://github.com/chef/chef/pull/3986.diff","patch_url":"https://github.com/chef/chef/pull/3986.patch"},"body":"The deploy resource attempts to change the owner of all files in the\r\ndeploy directory, but it breaks when files are removed during the\r\nprocess. This is because FileUtils::chown_R gets a list of the files and\r\nthen walks through and updates them, and if that takes any time at  all\r\nthen files may be deleted during the process. When this happens, the\r\ndeploy will fail with Errno::ENOENT. chown_R takes an options hash with\r\n:force as one of the available options, and the only thing it does is\r\nstop errors from being raised under these circumstances.\r\n\r\nNOTE: when I originally pushed this I hadn't updated the test, so the build failed, but it should be passing now."},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/143886765","html_url":"https://github.com/chef/chef/pull/3986#issuecomment-143886765","issue_url":"https://api.github.com/repos/chef/chef/issues/3986","id":143886765,"user":{"login":"ranjib","id":316306,"avatar_url":"https://avatars.githubusercontent.com/u/316306?v=3","gravatar_id":"","url":"https://api.github.com/users/ranjib","html_url":"https://github.com/ranjib","followers_url":"https://api.github.com/users/ranjib/followers","following_url":"https://api.github.com/users/ranjib/following{/other_user}","gists_url":"https://api.github.com/users/ranjib/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjib/subscriptions","organizations_url":"https://api.github.com/users/ranjib/orgs","repos_url":"https://api.github.com/users/ranjib/repos","events_url":"https://api.github.com/users/ranjib/events{/privacy}","received_events_url":"https://api.github.com/users/ranjib/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T22:03:28Z","updated_at":"2015-09-28T22:03:28Z","body":":+1: "}}