Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choco install failure due to VirtualBox 4.3.22 having issues with Shared Folders when running PowerShell #275

Closed
kbrowns opened this issue May 7, 2015 · 11 comments

Comments

@kbrowns
Copy link

kbrowns commented May 7, 2015

I'm struggling to understand what's wrong here. I just spun up a brand new, blank Windows server 2012 R2 VM. I installed VirtualBox Additions on it, pulled up the command line and installed Chocolatey. I've recycled cmd.exe and even rebooted, but I cannot install any packages. I'm running cmd.exe as an administrator and I see that it's downloading the package to C:\ProgramData and it appears to be failing on the ChocolateyInstall.ps1. It does me the package did not install successfully and to check the log for details - then moves the package into the "lib-bad" folder. I've tried this and received the same result on the Puppet package, ConsoleZ and several others. One interested tidbit is Puppet appears to actually install successfully - at least according to Add/Remove Programs it's installed.

Here is the chocolatey.log followed by a choco install run + -debug piped to a file. Can someone help me understand what's wrong here? BTW... I noticed that version 9.9.5 is what came down when I installed Chocolatey.

Chocolatey.log

2015-05-07 16:09:04,128 [INFO ] - ============================================================
2015-05-07 16:09:04,159 [INFO ] - Chocolatey v0.9.9.5
2015-05-07 16:09:04,159 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2015-05-07 16:09:04,159 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2015-05-07 16:09:04,159 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2015-05-07 16:09:04,175 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install consolez -debug
2015-05-07 16:09:04,175 [DEBUG] - Received arguments: install consolez -debug
2015-05-07 16:09:04,206 [DEBUG] -
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
2015-05-07 16:09:04,222 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\ADMINI~1\AppData\Local\Temp'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|
Sources='https://chocolatey.org/api/v2/'|Debug='True'|Verbose='False'|
Force='False'|Noop='False'|HelpRequested='False'|RegularOutput='True'|
PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='consolez'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='consolez'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|ForceDependencies='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows Server 2012 R2'|
Information.ChocolateyVersion='0.9.9.5'|
Information.ChocolateyProductVersion='0.9.9.5'|
Information.FullName='choco, Version=0.9.9.5, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|Features.AutoUninstaller='False'|
Features.CheckSumFiles='True'|ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|
UpgradeCommand.FailOnUnfound='False'|
NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'|
FeatureCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'|
PinCommand.Command='unknown'|
2015-05-07 16:09:04,222 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2015-05-07 16:09:04,237 [INFO ] - Installing the following packages:
2015-05-07 16:09:04,237 [INFO ] - consolez
2015-05-07 16:09:04,237 [INFO ] - By installing you accept licenses for the packages.
2015-05-07 16:09:05,831 [INFO ] - Installing 'ConsoleZ 1.13.0.15044'.
2015-05-07 16:09:05,831 [DEBUG] - Added file 'ConsoleZ_48.png' to folder 'ConsoleZ'.
2015-05-07 16:09:05,831 [DEBUG] - Added file 'chocolateyInstall.ps1' to folder 'ConsoleZ\tools'.
2015-05-07 16:09:05,831 [DEBUG] - Added file 'Console.exe.gui' to folder 'ConsoleZ\tools'.
2015-05-07 16:09:05,847 [DEBUG] - Added file 'ConsoleWow.exe.ignore' to folder 'ConsoleZ\tools'.
2015-05-07 16:09:05,847 [DEBUG] - Added file 'ConsoleZ.nupkg' to folder 'ConsoleZ'.
2015-05-07 16:09:05,847 [INFO ] - Successfully installed 'ConsoleZ 1.13.0.15044'.
2015-05-07 16:09:05,847 [INFO ] -
ConsoleZ v1.13.0.15044
2015-05-07 16:09:05,863 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\ConsoleZ\tools\chocolateyInstall.ps1':
2015-05-07 16:09:05,863 [DEBUG] - $name = 'ConsoleZ'
$url = 'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x86.1.13.0.15044.zip'
$url64 = 'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip'
$tools = Split-Path -parent $MyInvocation.MyCommand.Definition

Install-ChocolateyZipPackage $name $url $tools $url64
2015-05-07 16:09:05,863 [INFO ] - The package ConsoleZ wants to run 'chocolateyInstall.ps1'.
2015-05-07 16:09:05,863 [INFO ] - Note: If you don't run this script, the installation will fail.
2015-05-07 16:09:05,878 [INFO ] - Do you want to run the script?
2015-05-07 16:09:05,878 [INFO ] - 1) yes
2015-05-07 16:09:05,878 [INFO ] - 2) no
2015-05-07 16:09:05,878 [INFO ] - 3) print
2015-05-07 16:09:08,363 [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\ConsoleZ\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''"']
2015-05-07 16:09:08,503 [ERROR] - Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
2015-05-07 16:09:08,722 [DEBUG] - DEBUG: Posh version is 4.0
2015-05-07 16:09:08,832 [DEBUG] - DEBUG: Running 'Install-ChocolateyZipPackage' for ConsoleZ with
2015-05-07 16:09:08,832 [INFO ] - url:'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x86.1.13.0.15044.zip', unzipLocation:
2015-05-07 16:09:08,832 [INFO ] - 'C:\ProgramData\chocolatey\lib\ConsoleZ\tools', url64bit:
2015-05-07 16:09:08,832 [INFO ] - 'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip', specificFolder: '',
2015-05-07 16:09:08,832 [INFO ] - checksum: '', checksumType: '', checksum64: '', checksumType64: ''
2015-05-07 16:09:08,847 [DEBUG] - DEBUG: Running 'Get-ChocolateyWebFile' for ConsoleZ with
2015-05-07 16:09:08,847 [INFO ] - url:'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x86.1.13.0.15044.zip',
2015-05-07 16:09:08,847 [INFO ] - fileFullPath:'C:\Users\ADMINI1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip',
2015-05-07 16:09:08,847 [INFO ] - url64bit:'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip', checksum: '',
2015-05-07 16:09:08,847 [INFO ] - checksumType: '', checksum64: '', checksumType64: ''
2015-05-07 16:09:08,862 [DEBUG] - DEBUG: Running 'Get-ProcessorBits'
2015-05-07 16:09:08,862 [DEBUG] - DEBUG: CPU is 64 bit
2015-05-07 16:09:08,862 [DEBUG] - DEBUG: Setting url to 'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip' and
2015-05-07 16:09:08,862 [INFO ] - bitPackage to 64
2015-05-07 16:09:08,878 [DEBUG] - DEBUG: Running 'Get-WebHeaders' with
2015-05-07 16:09:08,878 [INFO ] - url:'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip', userAgent: 'chocolatey
2015-05-07 16:09:08,878 [INFO ] - command line'
2015-05-07 16:09:08,941 [DEBUG] - DEBUG: Setting the UserAgent to 'chocolatey command line'
2015-05-07 16:09:08,957 [DEBUG] - DEBUG: Request Headers:
2015-05-07 16:09:08,957 [DEBUG] - DEBUG: 'Accept':'/'
2015-05-07 16:09:08,957 [DEBUG] - DEBUG: 'User-Agent':'chocolatey command line'
2015-05-07 16:09:10,020 [DEBUG] - DEBUG: Response Headers:
2015-05-07 16:09:10,051 [DEBUG] - DEBUG: 'x-amz-id-2':'GmCW3eB1NJ0fcuU2LgnHAQwXbGCUXl7ixbiwhrHFHCrnloD7F+AXSEjjZ0ZP/5eM'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'x-amz-request-id':'80F08EA8C8D687EA'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'x-amz-meta-surrogate-key':'repository-836421 user-363759'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'x-amz-meta-surrogate-control':'max-age=31557600'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'Content-Disposition':'attachment; filename=ConsoleZ.x64.1.13.0.15044.zip'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'Accept-Ranges':'bytes'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'Content-Length':'2634504'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'Cache-Control':'max-age=31557600'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'Content-Type':'application/octet-stream'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'Date':'Thu, 07 May 2015 23:09:11 GMT'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'ETag':'"8b21d2b0add357bfbe5035e92dc3c613"'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'Last-Modified':'Sat, 14 Feb 2015 17:16:16 GMT'
2015-05-07 16:09:10,066 [DEBUG] - DEBUG: 'Server':'AmazonS3'
2015-05-07 16:09:10,098 [DEBUG] - DEBUG: ConsoleZ's requested file has already been downloaded. Using cached copy at
2015-05-07 16:09:10,098 [INFO ] - 'C:\Users\ADMINI
1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip'.
2015-05-07 16:09:12,112 [DEBUG] - DEBUG: Checking that 'C:\Users\ADMINI1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip' is the size we
2015-05-07 16:09:12,112 [INFO ] - expect it to be.
2015-05-07 16:09:12,112 [DEBUG] - DEBUG: Verifying package provided checksum of '' for
2015-05-07 16:09:12,112 [INFO ] - 'C:\Users\ADMINI
1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip'.
2015-05-07 16:09:12,129 [DEBUG] - DEBUG: Running 'Get-ChecksumValid' with
2015-05-07 16:09:12,129 [INFO ] - file:'C:\Users\ADMINI1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip', checksum: '', checksumType: ''
2015-05-07 16:09:12,160 [DEBUG] - DEBUG: Running 'Get-ChocolateyUnzip' with
2015-05-07 16:09:12,160 [INFO ] - fileFullPath:'C:\Users\ADMINI
1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip'', destination:
2015-05-07 16:09:12,160 [INFO ] - 'C:\ProgramData\chocolatey\lib\ConsoleZ\tools', specificFolder: ', packageName: 'ConsoleZ' 2015-05-07 16:09:12,160 [INFO ] - Extracting C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip to C:\ProgramData\chocolatey\lib\ConsoleZ\tools... 2015-05-07 16:09:12,207 [DEBUG] - DEBUG: 7zip found at 'C:\ProgramData\chocolatey\tools\7za.exe' 2015-05-07 16:09:12,222 [DEBUG] - DEBUG: wrapping 7za invocation with Write-FileUpdateLog 2015-05-07 16:09:12,222 [DEBUG] - DEBUG: Running 'Write-FileUpdateLog' with 2015-05-07 16:09:12,222 [INFO ] - logFilePath:'C:\ProgramData\chocolatey\lib\ConsoleZ\ConsoleZInstall.zip.txt'', 2015-05-07 16:09:12,238 [INFO ] - locationToMonitor:C:\ProgramData\chocolatey\lib\ConsoleZ\tools, Operation: ' 2015-05-07 16:09:12,238 [INFO ] - param($7zip, $destination, $fileFullPath, [ref]$exitCodeRef) 2015-05-07 16:09:12,238 [INFO ] - Write-Debug "Calling '$7zip x -aoa -o"$destination" -y"$fileFullPath"'" 2015-05-07 16:09:12,238 [INFO ] - $process = Start-Process "$7zip" -ArgumentList "x -aoa -o"$destination" -y"$fileFullPath"" -Wait -WindowStyle 2015-05-07 16:09:12,238 [INFO ] - Hidden -PassThru 2015-05-07 16:09:12,238 [INFO ] - #$process = Start-Process $7zip -ArgumentList "x -aoa -o"$destination" -y"$fileFullPath`"" -Wait -NoNewWindow
2015-05-07 16:09:12,238 [INFO ] - -PassThru
2015-05-07 16:09:12,238 [INFO ] - # this is here for specific cases in Posh v3 where -Wait is not honored
2015-05-07 16:09:12,238 [INFO ] - $currentPreference = $ErrorActionPreference
2015-05-07 16:09:12,238 [INFO ] - $ErrorActionPreference = 'SilentlyContinue'
2015-05-07 16:09:12,238 [INFO ] - if (!($process.HasExited)) {
2015-05-07 16:09:12,238 [INFO ] - Wait-Process -Id $process.Id
2015-05-07 16:09:12,253 [INFO ] - }
2015-05-07 16:09:12,253 [INFO ] - $ErrorActionPreference = $currentPreference
2015-05-07 16:09:12,253 [INFO ] - $exitCodeRef.Value = $process.ExitCode
2015-05-07 16:09:12,253 [INFO ] - '
2015-05-07 16:09:12,253 [DEBUG] - DEBUG: Tracking current state of 'C:\ProgramData\chocolatey\lib\ConsoleZ\tools'
2015-05-07 16:09:12,253 [DEBUG] - DEBUG: Calling 'C:\ProgramData\chocolatey\tools\7za.exe x -aoa -o"C:\ProgramData\chocolatey\lib\ConsoleZ\tools" -y
2015-05-07 16:09:12,253 [INFO ] - "C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip"'
2015-05-07 16:09:13,363 [DEBUG] - DEBUG: 7za exit code: 0
2015-05-07 16:09:13,363 [INFO ] - C:\ProgramData\chocolatey\lib\ConsoleZ\tools
2015-05-07 16:09:13,379 [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\ConsoleZ\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''"'] exited with '0'
2015-05-07 16:09:13,379 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\ConsoleZ.1.13.0.15044.sxs".
2015-05-07 16:09:13,394 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\ConsoleZ.1.13.0.15044.pin".
2015-05-07 16:09:13,394 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\ConsoleZ".
2015-05-07 16:09:13,394 [ERROR] - The install of consolez was NOT successful.
2015-05-07 16:09:13,394 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\ConsoleZ\tools\chocolateyInstall.ps1'.
See log for details.
2015-05-07 16:09:13,394 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\ConsoleZ'
to 'C:\ProgramData\chocolatey\lib-bad\ConsoleZ'
2015-05-07 16:09:15,456 [WARN ] -
Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2015-05-07 16:09:15,456 [ERROR] - Failures:
2015-05-07 16:09:15,456 [ERROR] - - consolez
2015-05-07 16:09:15,456 [DEBUG] - Exiting with 1

choco install consolez -debug

Chocolatey v0.9.9.5
Chocolatey is running on Windows v 6.3.9600.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install consolez -debug
Received arguments: install consolez -debug

NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
Configuration: CommandName='install'|
CacheLocation='C:\Users\ADMINI~1\AppData\Local\Temp'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|
Sources='https://chocolatey.org/api/v2/'|Debug='True'|Verbose='False'|
Force='False'|Noop='False'|HelpRequested='False'|RegularOutput='True'|
PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='consolez'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='consolez'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|ForceDependencies='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows Server 2012 R2'|
Information.ChocolateyVersion='0.9.9.5'|
Information.ChocolateyProductVersion='0.9.9.5'|
Information.FullName='choco, Version=0.9.9.5, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|Features.AutoUninstaller='False'|
Features.CheckSumFiles='True'|ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|
UpgradeCommand.FailOnUnfound='False'|
NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'|
FeatureCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'|
PinCommand.Command='unknown'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
consolez
By installing you accept licenses for the packages.
Installing 'ConsoleZ 1.13.0.15044'.
Added file 'ConsoleZ_48.png' to folder 'ConsoleZ'.
Added file 'chocolateyInstall.ps1' to folder 'ConsoleZ\tools'.
Added file 'Console.exe.gui' to folder 'ConsoleZ\tools'.
Added file 'ConsoleWow.exe.ignore' to folder 'ConsoleZ\tools'.
Added file 'ConsoleZ.nupkg' to folder 'ConsoleZ'.
Successfully installed 'ConsoleZ 1.13.0.15044'.

ConsoleZ v1.13.0.15044
Contents of 'C:\ProgramData\chocolatey\lib\ConsoleZ\tools\chocolateyInstall.ps1':
$name = 'ConsoleZ'
$url = 'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x86.1.13.0.15044.zip'
$url64 = 'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip'
$tools = Split-Path -parent $MyInvocation.MyCommand.Definition

Install-ChocolateyZipPackage $name $url $tools $url64
The package ConsoleZ wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Do you want to run the script?

  1. yes
  2. no
  3. print
    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\ConsoleZ\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''"']
    Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
    DEBUG: Posh version is 4.0
    DEBUG: Running 'Install-ChocolateyZipPackage' for ConsoleZ with
    url:'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x86.1.13.0.15044.zip', unzipLocation:
    'C:\ProgramData\chocolatey\lib\ConsoleZ\tools', url64bit:
    'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip', specificFolder: '',
    checksum: '', checksumType: '', checksum64: '', checksumType64: ''
    DEBUG: Running 'Get-ChocolateyWebFile' for ConsoleZ with
    url:'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x86.1.13.0.15044.zip',
    fileFullPath:'C:\Users\ADMINI1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip',
    url64bit:'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip', checksum: '',
    checksumType: '', checksum64: '', checksumType64: ''
    DEBUG: Running 'Get-ProcessorBits'
    DEBUG: CPU is 64 bit
    DEBUG: Setting url to 'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip' and
    bitPackage to 64
    DEBUG: Running 'Get-WebHeaders' with
    url:'https://github.com/cbucher/console/releases/download/1.13.0/ConsoleZ.x64.1.13.0.15044.zip', userAgent: 'chocolatey
    command line'
    DEBUG: Setting the UserAgent to 'chocolatey command line'
    DEBUG: Request Headers:
    DEBUG: 'Accept':'/'
    DEBUG: 'User-Agent':'chocolatey command line'
    DEBUG: Response Headers:
    DEBUG: 'x-amz-id-2':'GmCW3eB1NJ0fcuU2LgnHAQwXbGCUXl7ixbiwhrHFHCrnloD7F+AXSEjjZ0ZP/5eM'
    DEBUG: 'x-amz-request-id':'80F08EA8C8D687EA'
    DEBUG: 'x-amz-meta-surrogate-key':'repository-836421 user-363759'
    DEBUG: 'x-amz-meta-surrogate-control':'max-age=31557600'
    DEBUG: 'Content-Disposition':'attachment; filename=ConsoleZ.x64.1.13.0.15044.zip'
    DEBUG: 'Accept-Ranges':'bytes'
    DEBUG: 'Content-Length':'2634504'
    DEBUG: 'Cache-Control':'max-age=31557600'
    DEBUG: 'Content-Type':'application/octet-stream'
    DEBUG: 'Date':'Thu, 07 May 2015 23:09:11 GMT'
    DEBUG: 'ETag':'"8b21d2b0add357bfbe5035e92dc3c613"'
    DEBUG: 'Last-Modified':'Sat, 14 Feb 2015 17:16:16 GMT'
    DEBUG: 'Server':'AmazonS3'
    DEBUG: ConsoleZ's requested file has already been downloaded. Using cached copy at
    'C:\Users\ADMINI
    1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip'.
    DEBUG: Checking that 'C:\Users\ADMINI1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip' is the size we
    expect it to be.
    DEBUG: Verifying package provided checksum of '' for
    'C:\Users\ADMINI
    1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip'.
    DEBUG: Running 'Get-ChecksumValid' with
    file:'C:\Users\ADMINI1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip', checksum: '', checksumType: ''
    DEBUG: Running 'Get-ChocolateyUnzip' with
    fileFullPath:'C:\Users\ADMINI
    1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip'', destination:
    'C:\ProgramData\chocolatey\lib\ConsoleZ\tools', specificFolder: ', packageName: 'ConsoleZ' Extracting C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip to C:\ProgramData\chocolatey\lib\ConsoleZ\tools... DEBUG: 7zip found at 'C:\ProgramData\chocolatey\tools\7za.exe' DEBUG: wrapping 7za invocation with Write-FileUpdateLog DEBUG: Running 'Write-FileUpdateLog' with logFilePath:'C:\ProgramData\chocolatey\lib\ConsoleZ\ConsoleZInstall.zip.txt'', locationToMonitor:C:\ProgramData\chocolatey\lib\ConsoleZ\tools, Operation: ' param($7zip, $destination, $fileFullPath, [ref]$exitCodeRef) Write-Debug "Calling '$7zip x -aoa -o"$destination" -y"$fileFullPath"'" $process = Start-Process "$7zip" -ArgumentList "x -aoa -o"$destination" -y"$fileFullPath"" -Wait -WindowStyle Hidden -PassThru #$process = Start-Process $7zip -ArgumentList "x -aoa -o"$destination" -y"$fileFullPath`"" -Wait -NoNewWindow
    -PassThru

this is here for specific cases in Posh v3 where -Wait is not honored

$currentPreference = $ErrorActionPreference
$ErrorActionPreference = 'SilentlyContinue'
if (!($process.HasExited)) {
Wait-Process -Id $process.Id
}
$ErrorActionPreference = $currentPreference
$exitCodeRef.Value = $process.ExitCode
'
DEBUG: Tracking current state of 'C:\ProgramData\chocolatey\lib\ConsoleZ\tools'
DEBUG: Calling 'C:\ProgramData\chocolatey\tools\7za.exe x -aoa -o"C:\ProgramData\chocolatey\lib\ConsoleZ\tools" -y
"C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\ConsoleZ\ConsoleZInstall.zip"'
DEBUG: 7za exit code: 0
C:\ProgramData\chocolatey\lib\ConsoleZ\tools
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\ConsoleZ\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''"'] exited with '0'
Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\ConsoleZ.1.13.0.15044.sxs".
Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\ConsoleZ.1.13.0.15044.pin".
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\ConsoleZ".
The install of consolez was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\ConsoleZ\tools\chocolateyInstall.ps1'.
See log for details.
Moving 'C:\ProgramData\chocolatey\lib\ConsoleZ'
to 'C:\ProgramData\chocolatey\lib-bad\ConsoleZ'

Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:

  • consolez
    Exiting with 1
@kbrowns
Copy link
Author

kbrowns commented May 7, 2015

BTW... this ERROR:

2015-05-07 16:09:08,503 [ERROR] - Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.

Is because Powershell doesn't like one of my VirtualBox shared folders... thinks it's a be network share (although it's not). That shouldn't be in this mix at all. I'll try to resolve that and see if the problem goes away.

@kbrowns
Copy link
Author

kbrowns commented May 7, 2015

wow... well, that seemed to be the problem. When I removed the shared folder, choco behavior swimmingly. As a test, I threw a shared folder back on there, saw it show up in the Guest as "Disconnected Network Drive F:" just as before, and saw Powershell/Choco poop out again. I'm a little surprised this impacted it at all as nothing I"m trying to do is touching F:, but nonetheless, this seems to be the culprit. Now I'm on to trying to figure out why Shared Folders in VirtualBox are showing up on the Guest like this :(

@kbrowns kbrowns closed this as completed May 7, 2015
@kbrowns
Copy link
Author

kbrowns commented May 8, 2015

Looks like a bug with the latest release of VirtualBox: https://forums.virtualbox.org/viewtopic.php?f=1&t=66067

Beware to Chocolatey users using the latest of VB

@ferventcoder
Copy link
Member

Can you verify that choco list -lo throws the error or not?

@ferventcoder
Copy link
Member

Beware to PowerShell users using the latest version of VB. ;)

Basically that means no vagrant either.

@ferventcoder
Copy link
Member

Good that you picked up on that issue and found the reason. I saw it and knew it wasn't a choco issue - was thinking you had some bad posh code somewhere... :)

@kbrowns
Copy link
Author

kbrowns commented May 8, 2015

"choco list -lo" does NOT throw the error. It works just fine

@ferventcoder
Copy link
Member

Definitely a posh issue then.

@kbrowns
Copy link
Author

kbrowns commented May 8, 2015

Update: last night VB released an update to their Guest Additions (v4.3.26) which fixed the disconnected drive issue... and in turn, Powershell/Posh/Chocolatey are all humming again.

@ferventcoder
Copy link
Member

\o/

On Friday, May 8, 2015, Kelly Brownsberger [email protected] wrote:

Update: last night VB released an update to their Guest Additions
(v4.3.26) which fixed the disconnected drive issue... and in turn,
Powershell/Posh/Chocolatey are all humming again.


Reply to this email directly or view it on GitHub
#275 (comment).

Rob
"Be passionate in all you do"

http://devlicio.us/blogs/rob_reynolds
http://ferventcoder.com
http://twitter.com/ferventcoder

@ferventcoder ferventcoder changed the title choco install failure choco install failure due to VirtualBox 4.3.22 having issue with PowerShell and Shared Folders May 11, 2015
@ferventcoder ferventcoder changed the title choco install failure due to VirtualBox 4.3.22 having issue with PowerShell and Shared Folders choco install failure due to VirtualBox 4.3.22 having issues with Shared Folders when running PowerShell May 11, 2015
@ferventcoder
Copy link
Member

#349 and #445 are related to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants