Skip to content

Installing with Chocolatey failed #416

@nilshjalmarson

Description

@nilshjalmarson

I'm trying to install gitversion.portable with Choco but am failing. Any ideas?

Logfile as the following:

2015-04-07 17:01:53,362 [INFO ] - ============================================================
2015-04-07 17:01:53,392 [INFO ] - Chocolatey v0.9.9.4
2015-04-07 17:01:53,400 [DEBUG] - Chocolatey is running on Windows v 6.1.7601.65536
2015-04-07 17:01:53,404 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2015-04-07 17:01:53,405 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2015-04-07 17:01:53,420 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install gitversion.portable -v -debug
2015-04-07 17:01:53,421 [DEBUG] - Received arguments: install gitversion.portable -v -debug
2015-04-07 17:01:53,459 [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-04-07 17:01:53,470 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\nhjalm\AppData\Local\Temp'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|
Sources='https://chocolatey.org/api/v2/'|Debug='True'|Verbose='True'|
Force='False'|Noop='False'|HelpRequested='False'|RegularOutput='True'|
PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='gitversion.portable'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='gitversion.portable'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|ForceDependencies='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='6.1.7601.65536'|
Information.PlatformName='Windows Server 2008 R2'|
Information.ChocolateyVersion='0.9.9.4'|
Information.ChocolateyProductVersion='0.9.9.4'|
Information.FullName='choco, Version=0.9.9.4, 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-04-07 17:01:53,476 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2015-04-07 17:01:53,484 [INFO ] - Installing the following packages:
2015-04-07 17:01:53,485 [INFO ] - gitversion.portable
2015-04-07 17:01:53,486 [INFO ] - By installing you accept licenses for the packages.
2015-04-07 17:01:55,236 [INFO ] - Installing 'GitVersion.Portable 2.0.1'.
2015-04-07 17:01:55,246 [DEBUG] - Added file 'chocolateyInstall.ps1' to folder 'GitVersion.Portable\Tools'.
2015-04-07 17:01:55,247 [DEBUG] - Added file 'chocolateyUninstall.ps1' to folder 'GitVersion.Portable\Tools'.
2015-04-07 17:01:55,252 [DEBUG] - Added file 'GitVersion.exe' to folder 'GitVersion.Portable\Tools'.
2015-04-07 17:01:55,254 [DEBUG] - Added file 'GitVersion.pdb' to folder 'GitVersion.Portable\Tools'.
2015-04-07 17:01:55,259 [DEBUG] - Added file 'GitVersion.Portable.nupkg' to folder 'GitVersion.Portable'.
2015-04-07 17:01:55,260 [INFO ] - Successfully installed 'GitVersion.Portable 2.0.1'.
2015-04-07 17:01:55,262 [INFO ] -
GitVersion.Portable v2.0.1
2015-04-07 17:01:55,325 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\GitVersion.Portable\Tools\chocolateyInstall.ps1':
2015-04-07 17:01:55,327 [DEBUG] - Generate-BinFile "gfv" "$packageFolder\Tools\GitVersion.exe"
Write-ChocolateySuccess "GitVersion"
2015-04-07 17:01:55,328 [INFO ] - Found 'chocolateyInstall.ps1':
2015-04-07 17:01:55,329 [INFO ] -
Generate-BinFile "gfv" "$packageFolder\Tools\GitVersion.exe"
Write-ChocolateySuccess "GitVersion"

2015-04-07 17:01:55,347 [INFO ] -
Do you want to run the script?
NOTE: If you choose not to run the script, the installation will
fail.
Skip is an advanced option and most likely will never be wanted.

2015-04-07 17:01:55,348 [INFO ] - 1) yes
2015-04-07 17:01:55,348 [INFO ] - 2) no [Default - Press Enter]
2015-04-07 17:01:55,349 [INFO ] - 3) skip
2015-04-07 17:01:58,960 [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\GitVersion.Portable\Tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''"']
2015-04-07 17:01:59,526 [DEBUG] - DEBUG: Posh version is 3.0
2015-04-07 17:01:59,590 [INFO ] - VERBOSE: Exporting function 'Generate-BinFile'.
2015-04-07 17:01:59,591 [INFO ] - VERBOSE: Exporting function 'Get-BinRoot'.
2015-04-07 17:01:59,592 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2015-04-07 17:01:59,593 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2015-04-07 17:01:59,594 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2015-04-07 17:01:59,595 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2015-04-07 17:01:59,612 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2015-04-07 17:01:59,615 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2015-04-07 17:01:59,617 [INFO ] - VERBOSE: Exporting function 'Get-ProcessorBits'.
2015-04-07 17:01:59,619 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2015-04-07 17:01:59,620 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2015-04-07 17:01:59,624 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2015-04-07 17:01:59,626 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2015-04-07 17:01:59,628 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2015-04-07 17:01:59,630 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2015-04-07 17:01:59,632 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2015-04-07 17:01:59,634 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2015-04-07 17:01:59,636 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2015-04-07 17:01:59,639 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2015-04-07 17:01:59,641 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2015-04-07 17:01:59,643 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2015-04-07 17:01:59,645 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2015-04-07 17:01:59,647 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2015-04-07 17:01:59,650 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2015-04-07 17:01:59,652 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2015-04-07 17:01:59,654 [INFO ] - VERBOSE: Exporting function 'Remove-BinFile'.
2015-04-07 17:01:59,656 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2015-04-07 17:01:59,658 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2015-04-07 17:01:59,660 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2015-04-07 17:01:59,662 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2015-04-07 17:01:59,665 [INFO ] - VERBOSE: Exporting function 'UnInstall-ChocolateyZipPackage'.
2015-04-07 17:01:59,667 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2015-04-07 17:01:59,669 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2015-04-07 17:01:59,671 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2015-04-07 17:01:59,673 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2015-04-07 17:01:59,679 [DEBUG] - DEBUG: Loading community extensions
2015-04-07 17:01:59,688 [WARN ] - WARNING: The names of some imported commands from the module
2015-04-07 17:01:59,689 [INFO ] - 'chocolateyInstaller' include unapproved verbs that might make them less
2015-04-07 17:01:59,690 [INFO ] - discoverable. To find the commands with unapproved verbs, run the Import-Module
2015-04-07 17:01:59,690 [INFO ] - command again with the Verbose parameter. For a list of approved verbs, type
2015-04-07 17:01:59,691 [INFO ] - Get-Verb.
2015-04-07 17:01:59,753 [DEBUG] - DEBUG: Running 'Generate-BinFile' for gfv with
2015-04-07 17:01:59,754 [INFO ] - path:'C:\ProgramData\chocolatey\lib\GitVersion.Portable\Tools\GitVersion.exe'|$
2015-04-07 17:01:59,755 [INFO ] - useStart:False|$command:
2015-04-07 17:01:59,862 [ERROR] - Join-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-07 17:01:59,863 [ERROR] - At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:24 char:37
2015-04-07 17:01:59,864 [ERROR] - + $packageBatchFileName = Join-Path $nugetExePath "$name.bat"
2015-04-07 17:01:59,864 [ERROR] - + ~~~~~~~~~~~~~
2015-04-07 17:01:59,865 [ERROR] - + CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingVa
2015-04-07 17:01:59,866 [ERROR] - lidationException
2015-04-07 17:01:59,867 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
2015-04-07 17:01:59,867 [ERROR] - icrosoft.PowerShell.Commands.JoinPathCommand
2015-04-07 17:01:59,868 [ERROR] - Join-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-07 17:01:59,869 [ERROR] - At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:25 char:36
2015-04-07 17:01:59,870 [ERROR] - + $packageBashFileName = Join-Path $nugetExePath "$name"
2015-04-07 17:01:59,871 [ERROR] - + ~~~~~~~~~~~~~
2015-04-07 17:01:59,871 [ERROR] - + CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingVa
2015-04-07 17:01:59,872 [ERROR] - lidationException
2015-04-07 17:01:59,873 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
2015-04-07 17:01:59,874 [ERROR] - icrosoft.PowerShell.Commands.JoinPathCommand
2015-04-07 17:01:59,875 [ERROR] - Join-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-07 17:01:59,876 [ERROR] - At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:26 char:36
2015-04-07 17:01:59,877 [ERROR] - + $packageShimFileName = Join-Path $nugetExePath "$name.exe"
2015-04-07 17:01:59,877 [ERROR] - + ~~~~~~~~~~~~~
2015-04-07 17:01:59,878 [ERROR] - + CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingVa
2015-04-07 17:01:59,879 [ERROR] - lidationException
2015-04-07 17:01:59,880 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
2015-04-07 17:01:59,881 [ERROR] - icrosoft.PowerShell.Commands.JoinPathCommand
2015-04-07 17:01:59,885 [ERROR] - Test-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-07 17:01:59,885 [ERROR] - At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:28 char:17
2015-04-07 17:01:59,892 [ERROR] - + if (Test-Path ($packageBatchFileName)) {Remove-Item $packageBatchFileName -
2015-04-07 17:01:59,892 [ERROR] - for ...
2015-04-07 17:01:59,893 [ERROR] - + ~~~~~~~~~~~~~~~~~~~~~~~
2015-04-07 17:01:59,894 [ERROR] - + CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingVa
2015-04-07 17:01:59,895 [ERROR] - lidationException
2015-04-07 17:01:59,895 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
2015-04-07 17:01:59,896 [ERROR] - icrosoft.PowerShell.Commands.TestPathCommand
2015-04-07 17:01:59,897 [ERROR] - Test-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-07 17:01:59,898 [ERROR] - At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:29 char:17
2015-04-07 17:01:59,898 [ERROR] - + if (Test-Path ($packageBashFileName)) {Remove-Item $packageBashFileName -fo
2015-04-07 17:01:59,899 [ERROR] - rce ...
2015-04-07 17:01:59,900 [ERROR] - + ~~~~~~~~~~~~~~~~~~~~~~
2015-04-07 17:01:59,901 [ERROR] - + CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingVa
2015-04-07 17:01:59,902 [ERROR] - lidationException
2015-04-07 17:01:59,902 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
2015-04-07 17:01:59,903 [ERROR] - icrosoft.PowerShell.Commands.TestPathCommand
2015-04-07 17:01:59,908 [ERROR] - You cannot call a method on a null-valued expression.
2015-04-07 17:01:59,909 [ERROR] - At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:31 char:3
2015-04-07 17:01:59,909 [ERROR] - + $path = $path.ToLower().Replace($nugetPath.ToLower(), "..").Replace("","
2015-04-07 17:01:59,910 [ERROR] - ")
2015-04-07 17:01:59,911 [ERROR] - + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2015-04-07 17:01:59,911 [ERROR] - ~~~
2015-04-07 17:01:59,912 [ERROR] - + CategoryInfo : InvalidOperation: (:) [], RuntimeException
2015-04-07 17:01:59,913 [ERROR] - + FullyQualifiedErrorId : InvokeMethodOnNull
2015-04-07 17:01:59,929 [DEBUG] - DEBUG: ShimGen found at 'C:\ProgramData\chocolatey\tools\shimgen.exe'
2015-04-07 17:01:59,930 [DEBUG] - DEBUG: Calling C:\ProgramData\chocolatey\tools\shimgen.exe -o "" -p
2015-04-07 17:01:59,931 [INFO ] - "C:\ProgramData\chocolatey\lib\GitVersion.Portable\Tools\GitVersion.exe" -i
2015-04-07 17:01:59,932 [INFO ] - "C:\ProgramData\chocolatey\lib\GitVersion.Portable\Tools\GitVersion.exe"
2015-04-07 17:02:00,031 [ERROR] - Test-Path : Cannot bind argument to parameter 'Path' because it is null.
2015-04-07 17:02:00,032 [ERROR] - At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:70 char:17
2015-04-07 17:02:00,033 [ERROR] - + if (Test-Path ($packageShimFileName)) {
2015-04-07 17:02:00,033 [ERROR] - + ~~~~~~~~~~~~~~~~~~~~~~
2015-04-07 17:02:00,034 [ERROR] - + CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingVa
2015-04-07 17:02:00,034 [WARN ] - WARNING: Write-ChocolateySuccess is deprecated. If you are the maintainer,
2015-04-07 17:02:00,035 [INFO ] - please remove it from your package file.
2015-04-07 17:02:00,035 [ERROR] - lidationException
2015-04-07 17:02:00,036 [ERROR] - + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
2015-04-07 17:02:00,037 [ERROR] - icrosoft.PowerShell.Commands.TestPathCommand
2015-04-07 17:02:00,051 [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\GitVersion.Portable\Tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''"'] exited with '0'
2015-04-07 17:02:00,097 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\GitVersion.Portable.2.0.1.sxs".
2015-04-07 17:02:00,098 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\GitVersion.Portable.2.0.1.pin".
2015-04-07 17:02:00,100 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\GitVersion.Portable".
2015-04-07 17:02:00,107 [ERROR] - gitversion.portable install not successful.
2015-04-07 17:02:00,110 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\GitVersion.Portable\Tools\chocolateyInstall.ps1'.
See log for details.
2015-04-07 17:02:00,115 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\GitVersion.Portable'
to 'C:\ProgramData\chocolatey\lib-bad\GitVersion.Portable'
2015-04-07 17:02:02,131 [WARN ] -
Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details.
2015-04-07 17:02:02,132 [ERROR] - Failures:
2015-04-07 17:02:02,133 [ERROR] - - gitversion.portable
2015-04-07 17:02:02,134 [DEBUG] - Exiting with 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions