Skip to content
This repository has been archived by the owner on Jul 13, 2018. It is now read-only.

I get an error upon trying to install Atom #21

Closed
mithun-daa opened this issue Jul 10, 2014 · 4 comments
Closed

I get an error upon trying to install Atom #21

mithun-daa opened this issue Jul 10, 2014 · 4 comments
Labels

Comments

@mithun-daa
Copy link

I issued the following command:

cinst Atom -force

and got the following error:

Chocolatey (v0.9.8.20) is installing Atom and dependencies. By installing you accept the license for Atom and each dependency you are installing.
______ Atom v0.113.0 ______
Downloading Atom (https://github.com/atom/atom/releases/download/v0.113.0/atom-windows.zip) to C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip
Using this proxyserver: xxx.xxx.x.x:xxxx
Extracting C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip to C:\Chocolatey\lib\Atom.0.113.0\tools...
Write-Error : Atom did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] Exception calling "Substring" with "1" argument(s): "startIndex cannot be larger than length of string.
Parameter name: startIndex"
-----------------------
At C:\Chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:29 char:2
+     Write-Error $errorMessage
+     ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Exception calling "Substring" with "1" argument(s): "startIndex cannot be larger than length of string.
Parameter name: startIndex"
At C:\Chocolatey\chocolateyinstall\helpers\functions\Get-ChocolateyUnzip.ps1:82 char:5
+     $insideZipFile=$file.path.substring($fileIndex)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException

I added the -force since it failed the first time and it said that it already exists.

@kevinsawicki
Copy link
Contributor

Can you try upgrading to the latest chocolatey?

cinst chocolatey should get you to 0.9.8.25 and then run cinst Atom -force -debug after that to get more debug output in the case that it still fails.

@mithun-daa
Copy link
Author

Here you go:

The default install location has been changed to 'C:\ProgramData\chocolatey'.
  This install will be updated to that location in the next version. It
  is strongly suggested you move this installation to the new location
  as soon as possible to limit write access from all users. Do not forget
  to update PATH & ChocolateyInstall environment variables.
DEBUG: Running 'Append-InstallLog' with chocoInstallLog:''
DEBUG: Arguments: $command = 
'install'|$packageNames='Atom'|$source=''|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=False|$force=True
|$prerelease=False|$localonly=False|$verbosity=False|$debug=True|$quiet=False|$name=''|$ignoreDependencies=False|$forceX86=False|$
packageParameters=''|PowerShellVersion=3.0
DEBUG: Running 'Chocolatey-Install' for 'Atom' with source: '', version: '', installerArguments:''
DEBUG: Running 'Chocolatey-NuGet' for Atom with source:''. Force? True
Chocolatey (v0.9.8.25) is installing 'Atom' and dependencies. By installing you accept the license for 'Atom' and each dependency you are installing.
DEBUG: Installing packages to "C:\Chocolatey\lib".
DEBUG: Running 'Run-NuGet' for Atom with source: '', version:''
DEBUG: ___ NuGet ____
DEBUG: Running 'Get-ConfigValue' with configValue:'useNuGetForSources'
DEBUG: Running 'Get-UserConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the user config the value of 'useNuGetForSources' is ''
DEBUG: Value not found in the user config file - checking the global config
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the global config the value of 'useNuGetForSources' is 'false'
DEBUG: Running 'Get-UserConfigValue' with configValue:'sources'
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'sources'
DEBUG: Using global sources
DEBUG: Using '-Source "https://chocolatey.org/api/v2/;"' as the source arguments
DEBUG: Calling 'C:\Chocolatey\chocolateyinstall\nuget.exe' install Atom -OutputDirectory "C:\Chocolatey\lib" -Source 
"https://chocolatey.org/api/v2/;" -NonInteractive -NoCache
DEBUG: Installing 'Atom 0.113.0'.

Successfully installed 'Atom 0.113.0'.
DEBUG: Evaluating NuGet output for line: Installing 'Atom 0.113.0'.
DEBUG: Evaluating NuGet output for line: Successfully installed 'Atom 0.113.0'.
DEBUG: NuGet installed Atom. If we are ignoring dependencies (False) then we will clean this up.

Atom v0.113.0
DEBUG: Running 'Delete-ExistingErrorLog' for Atom
DEBUG: Looking for failure log at 'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\failure.log'
DEBUG: Found the failure log. Deleting it...
DEBUG: Running 'Run-ChocolateyPS1' for Atom with packageFolder:'C:\Chocolatey\lib\Atom.0.113.0', action: 'install'
DEBUG:   __ PowerShell install (chocolateyinstall.ps1) __
DEBUG:   Looking for chocolateyinstall.ps1 in folder 'C:\Chocolatey\lib\Atom.0.113.0'. If chocolateyinstall.ps1 is found, it will 
be run.
DEBUG: Action file is 'chocolateyInstall.ps1'
DEBUG: Running 'C:\Chocolatey\lib\Atom.0.113.0\tools\chocolateyInstall.ps1'
DEBUG: Running 'Install-ChocolateyZipPackage' for Atom with 
url:'https://github.com/atom/atom/releases/download/v0.113.0/atom-windows.zip', unzipLocation: 
'C:\Chocolatey\lib\Atom.0.113.0\tools', url64bit: 'https://github.com/atom/atom/releases/download/v0.113.0/atom-windows.zip', 
specificFolder: '', checksum: '', checksumType: '', checksum64: '', checksumType64: '' 
DEBUG: Running 'Get-ChocolateyWebFile' for Atom with 
url:'https://github.com/atom/atom/releases/download/v0.113.0/atom-windows.zip', 
fileFullPath:'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip', 
url64bit:'https://github.com/atom/atom/releases/download/v0.113.0/atom-windows.zip', checksum: '', checksumType: '', checksum64: 
'', checksumType64: ''
DEBUG: Running 'Get-ProcessorBits'
DEBUG: CPU is 64 bit
DEBUG: Setting url to 'https://github.com/atom/atom/releases/download/v0.113.0/atom-windows.zip' and bitPackage to 64
DEBUG: Running 'Get-WebHeaders' with url:'https://github.com/atom/atom/releases/download/v0.113.0/atom-windows.zip', userAgent: 
'chocolatey command line'
Using this proxyserver: xxx.xxx.xx.x:xxxx
DEBUG: Setting the UserAgent to 'chocolatey command line'
DEBUG: Web Headers Received:
DEBUG:   'x-amz-id-2':'Rt0RV9gt77rNcRbcH9kl3S72n/9Vc7x2iObN8SzXjnqTc0geBdAL2sp/49v2qQbn'
DEBUG:   'x-amz-request-id':'2741D775CD500E92'
DEBUG:   'x-amz-meta-surrogate-control':'max-age=31557600'
DEBUG:   'x-amz-meta-surrogate-key':'repository-3228505 user-3697332'
DEBUG:   'Content-Disposition':'attachment; filename=atom-windows.zip'
DEBUG:   'Accept-Ranges':'bytes'
DEBUG:   'Content-Length':'69208497'
DEBUG:   'Cache-Control':'max-age=31557600'
DEBUG:   'Content-Type':'application/octet-stream'
DEBUG:   'Date':'Thu, 10 Jul 2014 18:14:10 GMT'
DEBUG:   'ETag':'"228a370204a847ab39bcabe7eed2c0e7"'
DEBUG:   'Last-Modified':'Tue, 08 Jul 2014 22:34:50 GMT'
DEBUG:   'Server':'AmazonS3'
DEBUG: Atom's requested file has already been downloaded. Using cached copy at
  'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'.
DEBUG: Checking that 'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip' is the size we expect it to be.
DEBUG: Verifying package provided checksum of '' for 'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'.
DEBUG: Running 'Get-CheckSumValid' with file:'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip', checksum: '', 
checksumType: ''
DEBUG: Verifying downloaded file is not known to contain viruses. FilePath: 
'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'.
DEBUG: Running 'Get-VirusCheckValid' with location:'https://github.com/atom/atom/releases/download/v0.113.0/atom-windows.zip', 
file: 'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'
DEBUG: Running 'Get-ChocolateyUnzip' with fileFullPath:'C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'', 
destination: 'C:\Chocolatey\lib\Atom.0.113.0\tools', specificFolder: '`, packageName: 'Atom'
Extracting C:\Users\mpatel\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip to C:\Chocolatey\lib\Atom.0.113.0\tools...
DEBUG: wrapping 7za invocation with Write-FileUpdateLog
DEBUG: Running 'Write-FileUpdateLog' with logFilePath:'C:\Chocolatey\lib\Atom.0.113.0\AtomInstall.zip.txt'', 
locationToMonitor:C:\Chocolatey\lib\Atom.0.113.0\tools, Operation: '

    param($7zip, $destination, $fileFullPath, [ref]$exitCodeRef)

    $p = Start-Process $7zip -ArgumentList "x -o`"$destination`" -y `"$fileFullPath`"" -Wait -WindowStyle Hidden -PassThru

    $exitCodeRef.Value = $p.ExitCode

  '
DEBUG: Tracking current state of 'C:\Chocolatey\lib\Atom.0.113.0\tools'
DEBUG: 7za exit code: 
Write-Error : Atom did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] 7-Zip signalled an unknown error (code )
-----------------------
At C:\Chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:30 char:3
+   Write-Error $errorMessage
+   ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

DEBUG: Running 'Move-BadInstall' for Atom version: '0.113.0', packageFolder:'C:\Chocolatey\lib\Atom.0.113.0'
DEBUG: Moving bad package 'Atom v0.113.0' to 'C:\Chocolatey\lib-bad'.
Write-Error : Package 'Atom v0.113.0' did not install successfully: 7-Zip signalled an unknown error (code )
At C:\Chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:17
+                 Write-Error "Package `'$installedPackageName v$installedPackageV ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

DEBUG: Evaluating NuGet output for line: 
Finished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.

@kevinsawicki
Copy link
Contributor

Looks like this might be related to chocolatey-archive/chocolatey#516 not sure what is causing it though or how it might be fixed.

@kevinsawicki
Copy link
Contributor

This looks like the same error as #19 so I'm going to close it out here.

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

No branches or pull requests

2 participants