{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/4623","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/4623/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/4623/comments","events_url":"https://api.github.com/repos/chef/chef/issues/4623/events","html_url":"https://github.com/chef/chef/issues/4623","id":136201028,"number":4623,"title":"Client 12.6.0 uninstall leaves files behind and causes 12.7.2 install to fail when upgrading inside a chef-client run","user":{"login":"Stromweld","id":3476391,"avatar_url":"https://avatars.githubusercontent.com/u/3476391?v=3","gravatar_id":"","url":"https://api.github.com/users/Stromweld","html_url":"https://github.com/Stromweld","followers_url":"https://api.github.com/users/Stromweld/followers","following_url":"https://api.github.com/users/Stromweld/following{/other_user}","gists_url":"https://api.github.com/users/Stromweld/gists{/gist_id}","starred_url":"https://api.github.com/users/Stromweld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stromweld/subscriptions","organizations_url":"https://api.github.com/users/Stromweld/orgs","repos_url":"https://api.github.com/users/Stromweld/repos","events_url":"https://api.github.com/users/Stromweld/events{/privacy}","received_events_url":"https://api.github.com/users/Stromweld/received_events","type":"User","site_admin":false},"labels":[{"id":107919796,"url":"https://api.github.com/repos/chef/chef/labels/Windows","name":"Windows","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/chef/chef/milestones/13","html_url":"https://github.com/chef/chef/milestones/Accepted%20Minor","labels_url":"https://api.github.com/repos/chef/chef/milestones/13/labels","id":975715,"number":13,"title":"Accepted Minor","description":"Bucket to pull issues from for next minor","creator":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"open_issues":313,"closed_issues":166,"state":"open","created_at":"2015-02-11T18:42:48Z","updated_at":"2016-11-01T17:20:07Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2016-02-24T22:07:51Z","updated_at":"2016-11-02T09:58:14Z","closed_at":null,"body":"## Description\n\nTrying to update chef-client 12.6.0 to 12.7.2(latest) fails when executed inside a chef-client run due to access denied errors on files during chef-client 12.6.0 uninstall phase.\n## Chef Version\n\n12.6.0 and upgrading to 12.7.2\n## Platform Version\n\nWindows 2012 r2 with chef-client 12.6.0 bootstrapped in.\n## Replication Case\n\nTrying to add feature to the omnibus_updater cookbook to add support for updating windows chef-clients. Using this repo https://github.com/hw-cookbooks/omnibus_updater.git add the omnibus_updater default cookbook to runlist on a windows 2012 r2 system with chef-client 12.6.0 already installed. The cookbook will run and try to update chef-client to the latest(12.7.2) version.\n\nI tested clients 11.14.6 and 12.5.1 and everything worked just fine. Only 12.6.0 client throws access denied errors on a bunch of files during the uninstall phase. Then subsequent install phase errors out leaving a system without a chef-client installed. While logged on to the server and manually running chef-client from within powershell opened as administrator, I see a command line pop up window running the uninstall and several files saying access denied scroll by in the output.\n\nI've tried adding work arounds by executing commands to change ownership, permissions, etc... and to delete the left over files but still get access denied on the files when running the commands from within the cookbook. Manual run of the commands in the command line prompt does work.\n\nWhat's weird is while logged in and manually running the gui install and or removing files in explorer works just fine.\n## Client Output\n\nchef-client run\nhttps://gist.github.com/Stromweld/dcc3a3b4a06a9048d39d\n\nchef-client debug run\nhttps://gist.github.com/Stromweld/bf80b9b8e427d5fb94de\n\nmsiexec log during install\nhttps://gist.github.com/Stromweld/0aa0bee2d5d3461744d2\n## Stacktrace\n\nchef-stacktrace.out\nhttps://gist.github.com/Stromweld/2f073ad11906dc85838d\n"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/257820396","html_url":"https://github.com/chef/chef/issues/4623#issuecomment-257820396","issue_url":"https://api.github.com/repos/chef/chef/issues/4623","id":257820396,"user":{"login":"thommay","id":8500,"avatar_url":"https://avatars.githubusercontent.com/u/8500?v=3","gravatar_id":"","url":"https://api.github.com/users/thommay","html_url":"https://github.com/thommay","followers_url":"https://api.github.com/users/thommay/followers","following_url":"https://api.github.com/users/thommay/following{/other_user}","gists_url":"https://api.github.com/users/thommay/gists{/gist_id}","starred_url":"https://api.github.com/users/thommay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thommay/subscriptions","organizations_url":"https://api.github.com/users/thommay/orgs","repos_url":"https://api.github.com/users/thommay/repos","events_url":"https://api.github.com/users/thommay/events{/privacy}","received_events_url":"https://api.github.com/users/thommay/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T09:58:14Z","updated_at":"2016-11-02T09:58:14Z","body":"@johnnyramos \"Accepted Minor\" means that we can fix the problem in the 12.x series (ie, with a minor version bump). It's not a statement on the severity of the issue."}}
{"actor":{"display_login":"thommay"}}