{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/choco/issues/349","labels_url":"https://api.github.com/repos/chocolatey/choco/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/choco/issues/349/comments","events_url":"https://api.github.com/repos/chocolatey/choco/issues/349/events","html_url":"https://github.com/chocolatey/choco/issues/349","id":93384444,"number":349,"title":"Handle PowerShell's `InitializeDefaultDrives` Error (that should just be a warning)","user":{"login":"adamsea","id":1156885,"avatar_url":"https://avatars.githubusercontent.com/u/1156885?v=3","gravatar_id":"","url":"https://api.github.com/users/adamsea","html_url":"https://github.com/adamsea","followers_url":"https://api.github.com/users/adamsea/followers","following_url":"https://api.github.com/users/adamsea/following{/other_user}","gists_url":"https://api.github.com/users/adamsea/gists{/gist_id}","starred_url":"https://api.github.com/users/adamsea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamsea/subscriptions","organizations_url":"https://api.github.com/users/adamsea/orgs","repos_url":"https://api.github.com/users/adamsea/repos","events_url":"https://api.github.com/users/adamsea/events{/privacy}","received_events_url":"https://api.github.com/users/adamsea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chocolatey/choco/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/chocolatey/choco/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/chocolatey/choco/labels/Enhancement","name":"Enhancement","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/chocolatey/choco/milestones/17","html_url":"https://github.com/chocolatey/choco/milestones/0.9.9.9","labels_url":"https://api.github.com/repos/chocolatey/choco/milestones/17/labels","id":1183253,"number":17,"title":"0.9.9.9","description":"","creator":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":11,"state":"open","created_at":"2015-06-26T21:22:33Z","updated_at":"2015-09-18T03:12:56Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-07-06T21:47:48Z","updated_at":"2015-09-18T03:15:52Z","closed_at":null,"body":"Hello,\r\n\r\nI began having an issue today with all install/upgrade operations in chocolatey.  A sample of the error is attached:\r\n\r\n![choco](https://cloud.githubusercontent.com/assets/1156885/8533953/67b1ea7c-2406-11e5-9eec-5f6b4121a42b.jpg)\r\n\r\nThe related debug info is here:\r\n\r\n```\r\n2015-07-06 17:39:49,663 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _\r\n2015-07-06 17:39:49,663 [INFO ] - Installing the following packages:\r\n2015-07-06 17:39:49,679 [INFO ] - ruby\r\n2015-07-06 17:39:49,679 [INFO ] - By installing you accept licenses for the packages.\r\n2015-07-06 17:39:51,042 [INFO ] - \r\nruby v2.1.6\r\n2015-07-06 17:39:51,230 [DEBUG] - Contents of 'C:\\ProgramData\\chocolatey\\lib\\ruby\\tools\\chocolateyInstall.ps1':\r\n2015-07-06 17:39:51,246 [DEBUG] - try {\r\n\r\n  $packageId = 'ruby'\r\n  $binRoot = Get-BinRoot\r\n\r\n  # $rubyFolder = '187'\r\n  # $url = 'http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.8.7-p374.exe?direct'\r\n  # $checksum = '2e33a098f126275f7cb29ddcd0eb9845'\r\n\r\n  # $rubyFolder = '193'\r\n  # $url = 'http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.9.3-p551.exe?direct'\r\n  # $checksum = '25de5ff94b76d7d308cb75ba8179a6c0'\r\n\r\n  # $rubyFolder = '200'\r\n  # $url = 'http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p645.exe?direct'\r\n  # $checksum = 'cb25a38508e22a869b48df7974840eb78c77635c'\r\n  # $url64 = 'http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p645-x64.exe?direct'\r\n  # $checksum64 = '8f8f39d69a222b5472254969755ff5d36dc42585'\r\n\r\n  $rubyFolder = '21'\r\n  $url = 'http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.1.6.exe?direct'\r\n  $checksum = '28aeded17ca34f685fb3fb862fb35ad9414edd05'\r\n  $url64 = 'http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.1.6-x64.exe?direct'\r\n  $checksum64 = '07069b095c17f5b108e71951b4f16c410932a02d'\r\n\r\n  $rubyPath = join-path $binRoot $('ruby' + \"$rubyFolder\")\r\n  $silentArgs = \"/verysilent /dir=`\"$rubyPath`\" /tasks=`\"assocfiles,modpath`\"\"\r\n\r\n  # Install-ChocolateyPackage \"$packageId\" 'exe' \"$silentArgs\" \"$url\" -checksum $checksum\r\n  Install-ChocolateyPackage \"$packageId\" 'exe' \"$silentArgs\" \"$url\" \"$url64\"\r\n  #Checksum type sha1 has a bug fixed in 0.9.9.6 - https://github.com/chocolatey/choco/issues/253\r\n  #-checksum $checksum -checksumType 'sha1' -checksum64 $checksum64 -checksumType64 'sha1'\r\n\r\n  $rubyBin = join-path $rubyPath 'bin'\r\n  Write-Host \"Adding `'$rubyBin`' to the local path\"\r\n  $env:Path = \"$($env:Path);$rubyBin\"\r\n\r\n  # # Install and configure pik\r\n  # Write-Host \"Now we are going to install pik and set up the folder - so Ruby is pointed to the correct version\"\r\n  # $nugetBin = join-path $env:ChocolateyInstall 'bin'\r\n  # #$gem = 'gem.bat'\r\n  # $pikInstall = 'pik_install.bat'\r\n  # & gem install pik\r\n  # & $pikInstall \"$nugetBin\"\r\n\r\n  # & pik add $rubyBin\r\n  # & pik use $rubyFolder\r\n\r\n} catch {\r\n  Write-ChocolateyFailure \"$packageId\" $($_.Exception.Message)\r\n  throw\r\n}\r\n\r\n2015-07-06 17:39:51,261 [DEBUG] - Calling command ['\"C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoProfile -NoLogo -ExecutionPolicy Bypass -Command \"[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyInstaller.psm1'; & 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyScriptRunner.ps1' -packageScript 'C:\\ProgramData\\chocolatey\\lib\\ruby\\tools\\chocolateyInstall.ps1' -installArguments '' -packageParameters ''\"']\r\n2015-07-06 17:39:53,538 [ERROR] -  Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.\r\n2015-07-06 17:39:54,293 [INFO ] -  Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versions on them.\r\n2015-07-06 17:39:57,051 [INFO ] -  Installing ruby...\r\n2015-07-06 17:40:11,994 [INFO ] -  ruby has been installed.\r\n2015-07-06 17:40:11,994 [INFO ] -  Adding 'C:\\tools\\ruby21\\bin' to the local path\r\n2015-07-06 17:40:12,025 [DEBUG] - Command ['\"C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoProfile -NoLogo -ExecutionPolicy Bypass -Command \"[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyInstaller.psm1'; & 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyScriptRunner.ps1' -packageScript 'C:\\ProgramData\\chocolatey\\lib\\ruby\\tools\\chocolateyInstall.ps1' -installArguments '' -packageParameters ''\"'] exited with '0'\r\n2015-07-06 17:40:12,025 [DEBUG] - Calling command ['\"shutdown\" /a']\r\n2015-07-06 17:40:12,056 [DEBUG] - Command ['\"shutdown\" /a'] exited with '1116'\r\n2015-07-06 17:40:12,103 [DEBUG] - Capturing package files in 'C:\\ProgramData\\chocolatey\\lib\\ruby'\r\n2015-07-06 17:40:12,119 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\ruby\\ruby.nupkg'\r\n  with checksum '0E2737AC542C9491F4C94CFD13C98C9B'\r\n2015-07-06 17:40:12,119 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\ruby\\tools\\chocolateyInstall.ps1'\r\n  with checksum 'CF47C0F08CDBB3ADEFD9AE1D33BB38F8'\r\n2015-07-06 17:40:12,150 [DEBUG] - Attempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\ruby.2.1.6\\.sxs\".\r\n2015-07-06 17:40:12,165 [DEBUG] - Attempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\ruby.2.1.6\\.pin\".\r\n2015-07-06 17:40:12,165 [DEBUG] - Attempting to delete directory \"C:\\ProgramData\\chocolatey\\lib-bad\\ruby\".\r\n2015-07-06 17:40:12,181 [ERROR] - The install of ruby was NOT successful.\r\n2015-07-06 17:40:12,181 [ERROR] - Error while running 'C:\\ProgramData\\chocolatey\\lib\\ruby\\tools\\chocolateyInstall.ps1'.\r\n See log for details.\r\n2015-07-06 17:40:12,197 [DEBUG] - Moving 'C:\\ProgramData\\chocolatey\\lib\\ruby'\r\n to 'C:\\ProgramData\\chocolatey\\lib-bad\\ruby'\r\n2015-07-06 17:40:14,231 [WARN ] - \r\nChocolatey installed 0/1 package(s). 1 package(s) failed.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n2015-07-06 17:40:14,231 [ERROR] - Failures:\r\n2015-07-06 17:40:14,247 [ERROR] -  - ruby\r\n2015-07-06 17:40:14,247 [DEBUG] - Exiting with 1\r\n```\r\n\r\nWhatever program I install with `choco install` *will still install*, it just won't appear on subsequent `choco list --local-only` commands, and all related files are in lib-bad.\r\n\r\nThe \"Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.\" issue is from a disconnected network drive, but that shouldn't be mapping anything from the default install directory.  Could that error still be the root of this issue, or is this a known issue?\r\n\r\nThanks,\r\n-Eric"},"comment":{"url":"https://api.github.com/repos/chocolatey/choco/issues/comments/141332414","html_url":"https://github.com/chocolatey/choco/issues/349#issuecomment-141332414","issue_url":"https://api.github.com/repos/chocolatey/choco/issues/349","id":141332414,"user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T03:15:52Z","updated_at":"2015-09-18T03:15:52Z","body":"@adamsea ping"}}