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

Built-in 7zip doesn't behave properly #775

Closed
bc3tech opened this issue Jun 4, 2016 · 21 comments
Closed

Built-in 7zip doesn't behave properly #775

bc3tech opened this issue Jun 4, 2016 · 21 comments
Assignees
Milestone

Comments

@bc3tech
Copy link
Contributor

bc3tech commented Jun 4, 2016

I'm trying to create a new choco package. When I use Get-ChocolateyUnzip, I don't get the contents of the downloaded file that I expect.

When I unzip the downloaded file using 7zip in Explorer (ie: 7z proper) I end up with one file, but when I use 7za that is used by choco, I get another file (that I don't even see in 7z proper)

behold:

PS C:\ProgramData\chocolatey\lib\vivaldi.portable\tools> ..\..\..\tools\7za.exe x .\vivaldi.exe

7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Processing archive: .\vivaldi.exe

Extracting  setup.exe

Everything is Ok

Size:       12939384
Compressed: 38498936
PS C:\ProgramData\chocolatey\lib\vivaldi.portable\tools> & 'C:\Program Files\7-Zip\7z.exe' x .\vivaldi.exe

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 38498936 bytes (37 MiB)

Extracting archive: .\vivaldi.exe
--
Path = .\vivaldi.exe
Type = PE
Physical Size = 38498936
CPU = x86
Characteristics = Executable 32-bit
Created = 2016-06-02 06:16:13
Headers Size = 1024
Checksum = 38508482
Image Size = 38506496
Section Alignment = 4096
File Alignment = 512
Code Size = 10240
Initialized Data Size = 38480384
Uninitialized Data Size = 0
Linker Version = 14.0
OS Version = 5.1
Image Version = 0.0
Subsystem Version = 5.1
Subsystem = Windows GUI
DLL Characteristics = NX-Compatible NoSEH TerminalServerAware
Stack Reserve = 1048576
Stack Commit = 4096
Heap Reserve = 1048576
Heap Commit = 4096
Image Base = 4194304
Comment = FileVersion: 1.2.490.39
ProductVersion: 1.2.490.39
CompanyName: Vivaldi Technologies AS
FileDescription: Vivaldi Installer
InternalName: mini_installer
LegalCopyright: Copyright 2016 Vivaldi Technologies AS. All rights reserved.
ProductName: Vivaldi Installer
SourceVersion: 51.0.2704.79
CompanyShortName: Vivaldi
ProductShortName: Vivaldi Installer
LastChange: 913448ac42b4b8bda5aa5fb7e76cbff365453b40
Official Build: 0
----
Path = .rsrc\B7\VIVALDI.PACKED.7Z
Size = 37835861
Packed Size = 37835861
--
Path = .rsrc\B7\VIVALDI.PACKED.7Z
Type = 7z
Physical Size = 37835861
Headers Size = 194
Method = LZMA:27 BCJ2
Solid = -
Blocks = 1

Everything is Ok

Size:       151682266
Compressed: 38498936
PS C:\ProgramData\chocolatey\lib\vivaldi.portable\tools>
@ferventcoder
Copy link
Member

Now that is interesting - could be a versions difference - maybe it is time to upgrade 7za (or look at just using 7z.exe proper instead).

@ferventcoder ferventcoder added this to the 0.9.10.1 milestone Jun 6, 2016
@ferventcoder ferventcoder self-assigned this Jun 6, 2016
@bc3tech
Copy link
Contributor Author

bc3tech commented Jun 6, 2016

i did notice the built-in version is quite a few vers behind 7z proper (actually just noticed this is shown in the log cap: 9.20 vs 16.02)

@bc3tech
Copy link
Contributor Author

bc3tech commented Jun 9, 2016

in case anybody's wondering, the Vivaldi.portable pkg depends on this fix.

@bc3tech
Copy link
Contributor Author

bc3tech commented Jun 16, 2016

Also seeing issues w/ 7zip and automated testing of Telerik Control Panel

@bc3tech
Copy link
Contributor Author

bc3tech commented Jun 16, 2016

just tried $env:chocolateyUseWindowsCompression = 'true' as part of chocolateyinstall.ps1 but looks like that's ignored and only used when chocolatey is installed, not when packages are.

@eric-swann-q2
Copy link

eric-swann-q2 commented Jun 22, 2016

Hey Rob, is there any resolution or workaround for this? This is also hosing me installing both NSSM and my own EventStore package (downloadable zip). These were previously working. Chocolatey is unable to locate unzipped files after bumping to latest if I use the Install-ChocolateyZipPackage. It basically says it can't find one or more files it's expecting and dies. Suppose I could just unzip via PS/.net...is that the best option right now?

@ferventcoder
Copy link
Member

@eric-swann-q2 this is probably related to #812.

@ferventcoder
Copy link
Member

@eric-swann-q2 We are looking to turn around a 0.9.10.3 somewhat quickly to address this.

@ferventcoder
Copy link
Member

The workaround you can try is to put the old 7za.exe back into the tools directory. We don't recommend this because of the vulnerabilities in that version.

@ferventcoder
Copy link
Member

The other option is to put 7z.exe and 7zip.dll into the tools directory, update all of the references to 7za.exe to 7z.exe in the scripts (and remove the authenticode signing from any you edit). This is what I've done for this issue so far but have not fully tested it yet.

@ferventcoder
Copy link
Member

@eric-swann-q2 can you provide full log output (on #818)? I'm thinking this is an issue with what I've listed in #818, where the 7zip has signaled exit, but has not actually exited yet. I'm looking to see what version of PowerShell/Windows you are seeing this on.

@ferventcoder
Copy link
Member

And the log output to attempt to see what may be going on there.

@ferventcoder
Copy link
Member

Changed over to full 7z.exe so closing this. This will be released in 0.9.10.3.

@bc3tech
Copy link
Contributor Author

bc3tech commented Jun 22, 2016

@eric-swann-q2
just an idea to get you past this while we wait for .3 that I used in Vivaldi and telerikcontrolpanel: add a dependency on 7zip.commandline and just make 7z x calls w/in your chocolateyInstall.ps1 to do the unzipping.

hope that helps

@eric-swann-q2
Copy link

eric-swann-q2 commented Jun 22, 2016

Thanks for the help, not sure if this is the same issue. In my case it's saying that it can't find the archive to unzip (but it's in the place it's looking). In the following run I dialed back to Choco 0.9.10.0. I'm running this via a custom script in an Azure ARM template. This seems to be similar to the issue I was having installing DotNet4.6.1, for which I ended up just writing my own script.

The truncated log output:
2016-06-22 15:34:34,817 [INFO ] - VERBOSE: Error:
2016-06-22 15:34:34,817 [INFO ] - VERBOSE: cannot find archive
2016-06-22 15:34:34,849 [DEBUG] - Command ['C:\ProgramData\chocolatey\tools\7za.exe' x -aoa -o"C:\ProgramData\chocolatey\lib\NSSM\Tools" -y "C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip"] exited with '2'.
2016-06-22 15:34:34,864 [DEBUG] - 7za exit code: 2
2016-06-22 15:34:34,880 [ERROR] - ERROR: 7-Zip encountered a fatal error while extracting the files

Here's more complete log output from trying to install NSSM:

2016-06-22 15:34:30,789 [DEBUG] - Calling built-in PowerShell host with ['[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\NSSM\Tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2016-06-22 15:34:31,101 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.34209'.
2016-06-22 15:34:31,242 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2016-06-22 15:34:31,257 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2016-06-22 15:34:31,257 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2016-06-22 15:34:31,257 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2016-06-22 15:34:31,257 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2016-06-22 15:34:31,257 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2016-06-22 15:34:31,257 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2016-06-22 15:34:31,273 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2016-06-22 15:34:31,289 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2016-06-22 15:34:31,304 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2016-06-22 15:34:31,320 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2016-06-22 15:34:31,336 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2016-06-22 15:34:31,336 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2016-06-22 15:34:31,336 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2016-06-22 15:34:31,336 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2016-06-22 15:34:31,382 [DEBUG] - Running 'ChocolateyScriptRunner' for NSSM v2.24.0 with packageScript 'C:\ProgramData\chocolatey\lib\NSSM\Tools\ChocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\NSSM', installArguments: '', packageParameters: '',
2016-06-22 15:34:31,398 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\NSSM\Tools\ChocolateyInstall.ps1'
2016-06-22 15:34:31,461 [DEBUG] - Running 'Install-ChocolateyZipPackage' for nssm with url:'http://nssm.cc/download/nssm-2.24.zip', unzipLocation: 'C:\ProgramData\chocolatey\lib\NSSM\Tools', url64bit: '', specificFolder: '', checksum: '', checksumType: '', checksum64: '', checksumType64: '' 
2016-06-22 15:34:31,507 [DEBUG] - Running 'Get-ChocolateyWebFile' for nssm with url:'http://nssm.cc/download/nssm-2.24.zip', fileFullPath:'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssmInstall.zip', url64bit:'', checksum: '', checksumType: '', checksum64: '', checksumType64: ''
2016-06-22 15:34:31,507 [DEBUG] - Running 'Get-OSArchitectureWidth'
2016-06-22 15:34:31,523 [DEBUG] - CPU is 64 bit
2016-06-22 15:34:31,653 [DEBUG] - Running 'Get-WebFileName' to determine name with url:'http://nssm.cc/download/nssm-2.24.zip', defaultName:'nssmInstall.zip'
2016-06-22 15:34:32,012 [DEBUG] - Using response url to determine file name. 'http://nssm.cc/release/nssm-2.24.zip'
2016-06-22 15:34:32,012 [DEBUG] - File name determined from url is 'nssm-2.24.zip'
2016-06-22 15:34:32,059 [DEBUG] - Running 'Get-WebHeaders' with url:'http://nssm.cc/download/nssm-2.24.zip', userAgent: 'chocolatey command line'
2016-06-22 15:34:32,059 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2016-06-22 15:34:32,059 [DEBUG] - Request Headers:
2016-06-22 15:34:32,075 [DEBUG] -   'Accept':'*/*'
2016-06-22 15:34:32,075 [DEBUG] -   'User-Agent':'chocolatey command line'
2016-06-22 15:34:32,200 [DEBUG] - Response Headers:
2016-06-22 15:34:32,200 [DEBUG] -   'Accept-Ranges':'bytes'
2016-06-22 15:34:32,200 [DEBUG] -   'Content-Length':'351793'
2016-06-22 15:34:32,200 [DEBUG] -   'Content-Type':'application/zip'
2016-06-22 15:34:32,200 [DEBUG] -   'Date':'Wed, 22 Jun 2016 15:34:32 GMT'
2016-06-22 15:34:32,200 [DEBUG] -   'ETag':'"55e31-501eea636b280"'
2016-06-22 15:34:32,200 [DEBUG] -   'Last-Modified':'Sun, 31 Aug 2014 15:36:26 GMT'
2016-06-22 15:34:32,200 [DEBUG] -   'Server':'Apache/2.4.12 (Fedora) OpenSSL/1.0.1k-fips mod_auth_kerb/5.4 PHP/5.6.10'
2016-06-22 15:34:32,231 [INFO ] - Downloading nssm 
  from 'http://nssm.cc/download/nssm-2.24.zip'
2016-06-22 15:34:32,231 [INFO ] - 
2016-06-22 15:34:32,247 [DEBUG] - Running 'Get-WebFile' for C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip with url:'http://nssm.cc/download/nssm-2.24.zip', userAgent: 'chocolatey command line' 
2016-06-22 15:34:32,247 [DEBUG] - Setting request timeout to  30000
2016-06-22 15:34:32,247 [DEBUG] - Setting read/write timeout to  2700000
2016-06-22 15:34:32,247 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2016-06-22 15:34:32,559 [DEBUG] - Downloading http://nssm.cc/download/nssm-2.24.zip to C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip
2016-06-22 15:34:32,559 [INFO ] - 
2016-06-22 15:34:32,559 [INFO ] - Download of nssm-2.24.zip (343.55 KB) completed.
2016-06-22 15:34:32,559 [INFO ] - 
2016-06-22 15:34:34,583 [DEBUG] - No virus checking built into FOSS Chocolatey. Check out Pro or Business if you need this. https://chocolatey.org/compare
2016-06-22 15:34:34,583 [DEBUG] - Checking that 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip' is the size we expect it to be.
2016-06-22 15:34:34,583 [DEBUG] - Verifying package provided checksum of '' for 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip'.
2016-06-22 15:34:34,599 [DEBUG] - Running 'Get-ChecksumValid' with file:'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip', checksum: '', checksumType: ''
2016-06-22 15:34:34,646 [DEBUG] - Running 'Get-ChocolateyUnzip' with fileFullPath:'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip'', destination: 'C:\ProgramData\chocolatey\lib\NSSM\Tools', specificFolder: '`, packageName: 'nssm'
2016-06-22 15:34:34,646 [INFO ] - Extracting C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip to C:\ProgramData\chocolatey\lib\NSSM\Tools...
2016-06-22 15:34:34,646 [INFO ] - 
2016-06-22 15:34:34,661 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7za.exe'
2016-06-22 15:34:34,677 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\tools\7za.exe' x -aoa -o"C:\ProgramData\chocolatey\lib\NSSM\Tools" -y "C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip"]
**2016-06-22 15:34:34,802 [INFO ] - VERBOSE: 
2016-06-22 15:34:34,802 [INFO ] - VERBOSE: 7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
2016-06-22 15:34:34,802 [INFO ] - VERBOSE: 
2016-06-22 15:34:34,802 [INFO ] - VERBOSE: 
2016-06-22 15:34:34,817 [INFO ] - VERBOSE: Error:
2016-06-22 15:34:34,817 [INFO ] - VERBOSE: cannot find archive
2016-06-22 15:34:34,849 [DEBUG] - Command ['C:\ProgramData\chocolatey\tools\7za.exe' x -aoa -o"C:\ProgramData\chocolatey\lib\NSSM\Tools" -y "C:\Windows\system32\config\systemprofile\AppData\Local\Temp\chocolatey\NSSM\2.24.0\nssm-2.24.zip"] exited with '2'.
2016-06-22 15:34:34,864 [DEBUG] - 7za exit code: 2
2016-06-22 15:34:34,880 [ERROR] - ERROR: 7-Zip encountered a fatal error while extracting the files
2016-06-22 15:34:34,896 [DEBUG] - Built-in PowerShell host called with ['[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\NSSM\Tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '2'.
2016-06-22 15:34:34,911 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2016-06-22 15:34:34,927 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2016-06-22 15:34:34,942 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\NSSM'
2016-06-22 15:34:34,958 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\NSSM\.chocolateyPending'
  with checksum '5AA6061A68F16B59EA7DBB3353C629F9'
2016-06-22 15:34:34,958 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\NSSM\nssm-2.24.zip.txt'
  with checksum '3BAB25A3E651A9E4A00473D2257B99F9'
2016-06-22 15:34:34,958 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\NSSM\NSSM.nupkg'
  with checksum 'E74C4B88319AE37541918B1F20FF74CA'
2016-06-22 15:34:34,958 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\NSSM\NSSM.nuspec'
  with checksum '02A3786EE8FC25BB40FAF832DC9123A5'
2016-06-22 15:34:34,958 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\NSSM\README.md'
  with checksum '7D5F8222AEA4DB40C10CACA206147C7B'
2016-06-22 15:34:34,958 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\NSSM\Tools\ChocolateyInstall.ps1'
  with checksum 'A97254EA8117522FC9D987CB135ACFF4'
2016-06-22 15:34:34,958 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\NSSM.2.24.0".
2016-06-22 15:34:34,974 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\NSSM.2.24.0\.files.update"
 to "C:\ProgramData\chocolatey\.chocolatey\NSSM.2.24.0\.files".
2016-06-22 15:34:34,974 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\NSSM.2.24.0\.files.update".
2016-06-22 15:34:34,974 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\NSSM.2.24.0\.sxs".
2016-06-22 15:34:34,974 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\NSSM.2.24.0\.pin".
2016-06-22 15:34:34,974 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2016-06-22 15:34:34,974 [ERROR] - The install of nssm was NOT successful.
2016-06-22 15:34:34,974 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\NSSM\Tools\ChocolateyInstall.ps1'.
 See log for details.
2016-06-22 15:34:34,974 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
2016-06-22 15:34:34,989 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\NSSM'
 to 'C:\ProgramData\chocolatey\lib-bad\NSSM'

@ferventcoder
Copy link
Member

@eric-swann-q2 please comment on #818 with a FULL log. I need the config variables and environment settings and what they are evaluated to. Or you can just tell me, what version of Windows and what version of PowerShell. Again, please continue the conversation over at #818.

@eric-swann-q2
Copy link

K....apologies

@ferventcoder
Copy link
Member

No worries, I have not been able to recreate this thus far.

@eric-swann-q2
Copy link

eric-swann-q2 commented Jun 22, 2016

Rob, I'm reluctant to post the entire log file out here just in case I missed something sensitive in there. Can I send it to you somewhere more restricted? ie mail it to you etc...

@ferventcoder
Copy link
Member

sure thing - ferventcoder at gmail

ferventcoder added a commit that referenced this issue Jun 23, 2016
Use the full blown 7z.exe to unzip, so there are no
limitations with unzipping archives.
ferventcoder added a commit that referenced this issue Jun 23, 2016
* use-7z-exe:
  (GH-775) Use 7z instead of 7za
ferventcoder added a commit that referenced this issue Jun 23, 2016
ferventcoder added a commit that referenced this issue Jun 23, 2016
* stable:
  (GH-826) SYSTEM user always uses machine TEMP
  (GH-808) Allow silent args as array
  (GH-821) ValidExitCodes not recognized return 0
  (GH-818) Allow disk to catch up - sleep
  (GH-822) Provide pending override and file wait
  (GH-818) Wait for processes to exit + 2 seconds
  (maint) formatting
  (GH-819) Fix - NotSilent install failure binding
  (GH-775) remove 7za
  (GH-775) Use 7z instead of 7za
@ferventcoder
Copy link
Member

ferventcoder commented Jun 23, 2016

Works perfectly now with 7z in 0.9.10.3

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

4 participants