{"action":"opened","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/38","labels_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/38/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/38/events","html_url":"https://github.com/chocolatey/chocolatey-cookbook/issues/38","id":78654256,"number":38,"title":"Exception installing on 2008r2 with \"exit code 16389\"","user":{"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-20T19:12:58Z","updated_at":"2015-05-20T19:12:58Z","closed_at":null,"body":"```\r\n       Recipe: chocolatey::default\r\n       \r\n           \r\n           ================================================================================\r\n           Error executing action `run` on resource 'powershell_script[install chocolatey]'\r\n           ================================================================================\r\n           \r\n           Mixlib::ShellOut::ShellCommandFailed\r\n           ------------------------------------\r\n           Expected process to exit with [0], but received '1'\r\n           ---- Begin output of \"powershell.exe\" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File \"C:/Users/vagrant/AppData/Local/Temp/chef-script20150520-1280-1e8f9ki.ps1\" ----\r\n           STDOUT: Downloading https://chocolatey.org/api/v2/package/chocolatey/ to C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall\\chocolatey.zip\r\n           Download 7Zip commandline tool\r\n           Downloading https://chocolatey.org/7za.exe to C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall\\7za.exe\r\n           Extracting C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall\\chocolatey.zip to C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall...\r\n           \r\n           7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18\r\n           \r\n           Processing archive: C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall\\chocolatey.zip\r\n           \r\n           Extracting  _rels\\.rels\r\n           Extracting  chocolatey.nuspec\r\n           Extracting  tools\\chocolateyInstall.ps1\r\n           Extracting  tools\\chocolateysetup.psm1\r\n           Extracting  tools\\init.ps1\r\n           Extracting  tools\\chocolateyInstall\\choco.exe\r\n           Extracting  tools\\chocolateyInstall\\choco.exe.ignore\r\n           Extracting  package\\services\\metadata\\core-properties\\61804721eec44e8592a61904d0a62022.psmdcp\r\n           Extracting  [Content_Types].xml\r\n           \r\n           Everything is Ok\r\n           \r\n           Files: 9\r\n           Size:       3738621\r\n           Compressed: 1259522\r\n           Installing chocolatey on this machine\r\n           Downloading 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe' to 'C:\\Users\\vagrant\\AppData\\Local\\Temp\\dotNetFx40_Full_x86_x64.exe' - the installer is 40+ MBs, so this could take awhile on a slow connection.\r\n           Installing 'C:\\Users\\vagrant\\AppData\\Local\\Temp\\dotNetFx40_Full_x86_x64.exe' - this may take awhile with no output.\r\n           WARNING: First try of .NET framework install failed with exit code '16389'. \r\n           Trying again.\r\n           Installing 'C:\\Users\\vagrant\\AppData\\Local\\Temp\\dotNetFx40_Full_x86_x64.exe' - this may take awhile with no output.\r\n           STDERR: .NET Framework install failed with exit code '16389'. \r\n            This will cause the rest of the install to fail.Error installing .NET Framework 4.0 (exit code 16389). \r\n            Please install the .NET Framework 4.0 manually and then try to install Chocolatey again. \r\n            Download at 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe'\r\n           ---- End output of \"powershell.exe\" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File \"C:/Users/vagrant/AppData/Local/Temp/chef-script20150520-1280-1e8f9ki.ps1\" ----\r\n           Ran \"powershell.exe\" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File \"C:/Users/vagrant/AppData/Local/Temp/chef-script20150520-1280-1e8f9ki.ps1\" returned 1\r\n           \r\n           Resource Declaration:\r\n           ---------------------\r\n           # In C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/chocolatey/recipes/default.rb\r\n           \r\n            27: powershell_script 'install chocolatey' do\r\n            28:   code \"iex ((new-object net.webclient).DownloadString('#{node['chocolatey']['Uri']}'))\"\r\n            29:   convert_boolean_return true\r\n            30:   not_if { ChocolateyHelpers.chocolatey_installed? }\r\n            31: end\r\n            32: \r\n           \r\n           Compiled Resource:\r\n           ------------------\r\n           # Declared in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/chocolatey/recipes/default.rb:27:in `from_file'\r\n           \r\n           powershell_script(\"install chocolatey\") do\r\n             action \"run\"\r\n             retries 0\r\n             retry_delay 2\r\n             default_guard_interpreter :powershell_script\r\n             command \"install chocolatey\"\r\n             backup 5\r\n             returns 0\r\n             code \"iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))\"\r\n             interpreter \"powershell.exe\"\r\n             convert_boolean_return true\r\n             declared_type :powershell_script\r\n             cookbook_name \"chocolatey\"\r\n             recipe_name \"default\"\r\n             not_if { #code block }\r\n           end\r\n           \r\n       \r\n       Running handlers:\r\n       [2015-05-20T12:08:36-07:00] ERROR: Running exception handlers\r\n       Running handlers complete\r\n       [2015-05-20T12:08:36-07:00] ERROR: Exception handlers complete\r\n       [2015-05-20T12:08:36-07:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out\r\n       Chef Client failed. 0 resources updated in 80.3125 seconds\r\n       [2015-05-20T12:08:36-07:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: powershell_script[install chocolatey] (chocolatey::default line 27) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'\r\n       ---- Begin output of \"powershell.exe\" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File \"C:/Users/vagrant/AppData/Local/Temp/chef-script20150520-1280-1e8f9ki.ps1\" ----\r\n       STDOUT: Downloading https://chocolatey.org/api/v2/package/chocolatey/ to C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall\\chocolatey.zip\r\n       Download 7Zip commandline tool\r\n       Downloading https://chocolatey.org/7za.exe to C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall\\7za.exe\r\n       Extracting C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall\\chocolatey.zip to C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall...\r\n       \r\n       7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18\r\n       \r\n       Processing archive: C:\\Users\\vagrant\\AppData\\Local\\Temp\\chocolatey\\chocInstall\\chocolatey.zip\r\n       \r\n       Extracting  _rels\\.rels\r\n       Extracting  chocolatey.nuspec\r\n       Extracting  tools\\chocolateyInstall.ps1\r\n       Extracting  tools\\chocolateysetup.psm1\r\n       Extracting  tools\\init.ps1\r\n       Extracting  tools\\chocolateyInstall\\choco.exe\r\n       Extracting  tools\\chocolateyInstall\\choco.exe.ignore\r\n       Extracting  package\\services\\metadata\\core-properties\\61804721eec44e8592a61904d0a62022.psmdcp\r\n       Extracting  [Content_Types].xml\r\n       \r\n       Everything is Ok\r\n       \r\n       Files: 9\r\n       Size:       3738621\r\n       Compressed: 1259522\r\n       Installing chocolatey on this machine\r\n       Downloading 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe' to 'C:\\Users\\vagrant\\AppData\\Local\\Temp\\dotNetFx40_Full_x86_x64.exe' - the installer is 40+ MBs, so this could take awhile on a slow connection.\r\n       Installing 'C:\\Users\\vagrant\\AppData\\Local\\Temp\\dotNetFx40_Full_x86_x64.exe' - this may take awhile with no output.\r\n       WARNING: First try of .NET framework install failed with exit code '16389'. \r\n       Trying again.\r\n       Installing 'C:\\Users\\vagrant\\AppData\\Local\\Temp\\dotNetFx40_Full_x86_x64.exe' - this may take awhile with no output.\r\n       STDERR: .NET Framework install failed with exit code '16389'. \r\n        This will cause the rest of the install to fail.Error installing .NET Framework 4.0 (exit code 16389). \r\n        Please install the .NET Framework 4.0 manually and then try to install Chocolatey again. \r\n        Download at 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe'\r\n       ---- End output of \"powershell.exe\" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File \"C:/Users/vagrant/AppData/Local/Temp/chef-script20150520-1280-1e8f9ki.ps1\" ----\r\n       Ran \"powershell.exe\" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File \"C:/Users/vagrant/AppData/Local/Temp/chef-script20150520-1280-1e8f9ki.ps1\" returned 1\r\n>>>>>> Converge failed on instance <default-windows-2008r2-standard>.\r\n>>>>>> Please see .kitchen/logs/default-windows-2008r2-standard.log for more details\r\n>>>>>> ------Exception-------\r\n>>>>>> Class: Kitchen::ActionFailed\r\n>>>>>> Message: WinRM exited (1) for command: [\r\n$env:PATH = [System.Environment]::GetEnvironmentVariable(\"PATH\",\"Machine\")\r\n\r\n& $env:systemdrive\\opscode\\chef\\bin\\chef-client.bat --local-mode --config $env:TEMP\\kitchen\\client.rb --log_level auto --force-formatter --no-color --json-attributes $env:TEMP\\kitchen\\dna.json --chef-zero-port 8889]\r\n```\r\n\r\nUnsure of where to go with this one but neither this repo or the chocolatey repo have an issue that matches this exit code, open or closed.\r\n"}}