Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

[BUG] Powershell v2 fails to download SSLv3 files #531

Closed
Redsandro opened this issue Jul 28, 2014 · 32 comments
Closed

[BUG] Powershell v2 fails to download SSLv3 files #531

Redsandro opened this issue Jul 28, 2014 · 32 comments

Comments

@Redsandro
Copy link
Contributor

I am trying to run a VirtualBox vm to test what is going on with my package.

I had one user contacting me mentioning my package Tomboy is broken. I tried to install it on a friend's machine, and it worked fine. So I wanted to investigate. But I don't have Windows myself. Hence the VirtualBox solution.

However, Virtualbox, I tried Windows 7 x86 and x64, on two different versions of Chocolatey, but they all give this error, that we don't see on non-vm (AKA 'real') Windows. Summarized:

DEBUG: Setting the UserAgent to 'chocolatey command line'
[ERROR] Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"

I think this happens when the package is trying to install it's dependency. In the case of tomboy the dependency is gtksharp. The gtksharp installs fine on some version of windows and throws error 1603 on another.


Inline edit

gtksharp throws error on the evaluation version of Windows as a virtual machine:
http://pastebin.com/wPVwi51T

but installs fine on a virtual machine of a pirated version of Windows I downloaded from the pirate bay. I am going to remove that one so I can do no more testing. But you can call me 100% confused. Both versions were 'vanilla' out of the box.

Edit 2

I finally figured out that 1603 meant the GTK# installer required .NET 4.0. The evaluation version does not have that. Apparently, the pirated version did. So that's figured out, but I consider the below error message still an issue. Nothing should time out. I expect a message like "dependency installation failed."


C:\Windows\system32>cinst tomboy -debug
DEBUG: Running 'Chocolatey-Install' for tomboy with source: '', version: '', installerArguments:''
DEBUG: Running 'Chocolatey-NuGet' for tomboy with source:''. Force? False
Chocolatey (v0.9.8.20) is installing tomboy and dependencies. By installing you accept the license for tomboy and each dependency
you are installing.
DEBUG: Installing packages to "C:\Chocolatey\lib".
DEBUG: Running 'Run-NuGet' for tomboy 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 "http://chocolatey.org/api/v2/" -Source "https://go.microsoft.com/fwlink/?LinkID=230477" ' as the
 source arguments
DEBUG: Calling 'C:\Chocolatey\chocolateyinstall\nuget.exe' install tomboy -Outputdirectory "C:\Chocolatey\lib" -Source
"http://chocolatey.org/api/v2/" -Source "https://go.microsoft.com/fwlink/?LinkID=230477"  -NonInteractive
DEBUG: Attempting to resolve dependency 'gtksharp (≥ 2.12.10)'.
Successfully installed 'tomboy 1.14.0'.
DEBUG: Evaluating NuGet output for line: Attempting to resolve dependency 'gtksharp (≥ 2.12.10)'.
DEBUG: Evaluating NuGet output for line: Successfully installed 'tomboy 1.14.0'.
______ tomboy v1.14.0 ______
DEBUG: Running 'Delete-ExistingErrorLog' for tomboy
DEBUG: Looking for failure log at 'C:\Users\TestVM\AppData\Local\Temp\chocolatey\tomboy\failure.log'
DEBUG: Running 'Run-ChocolateyPS1' for tomboy with packageFolder:'C:\Chocolatey\lib\tomboy.1.14.0', action: 'install'
DEBUG:   __ PowerShell install (chocolateyinstall.ps1) __
DEBUG:   Looking for chocolateyinstall.ps1 in folder 'C:\Chocolatey\lib\tomboy.1.14.0'. If chocolateyinstall.ps1 is found, it
will be run.
DEBUG: Action file is 'chocolateyInstall.ps1'
DEBUG: Running 'C:\Chocolatey\lib\tomboy.1.14.0\tools\chocolateyInstall.ps1'
DEBUG: Running 'Install-ChocolateyPackage' for tomboy with
url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', args: '/quiet'
DEBUG: Running 'Get-ChocolateyWebFile' for tomboy with
url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi',
fileFullPath:'C:\Users\TestVM\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi',and
url64bit:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi'
DEBUG: Processor width is 32.
Downloading tomboy (http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi) to C:\Users\TestVM\AppData\Local\Temp\
chocolatey\tomboy\tomboyInstall.msi
DEBUG: Running 'Get-WebFile' for C:\Users\TestVM\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi with
url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', userAgent: 'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
Write-Error : tomboy did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
-----------------------
At C:\Chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:29 char:13
+     Write-Error <<<<  $errorMessage
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
At C:\Chocolatey\chocolateyinstall\helpers\functions\Get-WebFile.ps1:51 char:26
+   $res = $req.GetResponse <<<< ();
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : DotNetMethodException

-edit- I cannot copy-paste the other log because forgot to install guest additions. Stupid VMs. But v0.9.8.27 stops on the same error.

@ferventcoder
Copy link
Contributor

@Redsandro yeah, it gets fun. You are trying too hard to get to these VMs - you should really use vagrant - see https://github.com/ferventcoder/vagrant-windows-puppet

@ferventcoder
Copy link
Contributor

Operation timing out is weird, it shouldn't do that. You might try upgrading chocolatey to the latest version first.

@Redsandro
Copy link
Contributor Author

Sorry, I was a bit TLDR, but I did. Vanilla Windows 7. Vanilla chocolatey. Same error.


Offtopic:

Vagrant is just VirtualBox with a command line wrapper around it, so there's no real difference between vagrant up or modern.ie, unless you got a special base box with all configuration done in advance. If you do not have a base box, creating a Vagrant instance is a lot more work than just clicking import on VirtualBox. In the end, the result is the same. A running vanilla-ish installation.

With that said, I didn't know there were Windows base boxes? I couldn't find them anywhere. I thought that was illegal. It does make life easier though. What's in them? How do you communicate with them? They have no ssh, right? How do you preconfigure them on the disk image without starting the license grace period?

Also, people don't just have a license lying around, that's why I use the modern.ie boxes.


PS - I already use Vagrant with a Modern.ie drive. I just didn't mention it because I find it irrelevant.

@ferventcoder
Copy link
Contributor

@ferventcoder
Copy link
Contributor

There is also a vagrant box offered by MSOpenTech. It is like 8GB packed though.

@mwrock
Copy link
Contributor

mwrock commented Jul 28, 2014

I managed to get one packed down to just under 4GB (still huge) using lzma compression:

https://vagrantcloud.com/mwrock/Windows2012R2

Won't work for you since it is a hyper-V box and requires a couple recent vagrant PRs I submitted that allow for .vhd format files and a working implementation of SMB on windows guests. I should make a vbox version.

You can try grabbing the evaluation ISO at http://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2

@ferventcoder
Copy link
Contributor

4GB for Windows 2012R2 isn't bad. Mine is 4GB on both vrtualbox and vmware_fusion

@Redsandro
Copy link
Contributor Author

Interesting, I didn't know about these boxes!

What do these include? The Modern.ie ones also include guest additions so you can use them without configuration, and after 30 days just remove and re-import them. Ssh would be nice but I can't seem to install stuff without starting the OS (and starting the license timeout)

You can try grabbing the evaluation ISO at http://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2

Isn't it better for chocolatey testing purposes (AKA figuring out why certain users have problems) to use the product most realistically used by the audience? I use these 'boxes', as in, I just import them and repack them to a box without any kind of vagranty additives.

https://modern.ie/en-us/virtualization-tools#downloads

@ferventcoder
Copy link
Contributor

Back to the issue at hand, what is the output of chocolatey v.27?

@Redsandro
Copy link
Contributor Author

Well like I said the error message is the same, but if you think the new version has more clues in it's output, I will gladly fire up a clean Win7 VM.

But note that the gtksharp package was updated (as per my request) to include dotnet4.0 as a dependency and now gtksharp will install fine. Not sure what the impact is for this error, but at least the error in a life Windows installation (not VM) is gone.

Installing Chocolatey

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----         7/28/2014   2:21 PM            chocInstall
Downloading http://chocolatey.org/api/v2/package/chocolatey/ to C:\Users\IEUser\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
Download 7Zip commandline tool
Downloading http://chocolatey.org/7za.exe to C:\Users\IEUser\AppData\Local\Temp\chocolatey\chocInstall\7za.exe
Extracting C:\Users\IEUser\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\IEUser\AppData\Local\Temp\chocolatey\chocInstall...
Installing chocolatey on this machine
Creating ChocolateyInstall as an Environment variable (targeting 'Machine') and setting it to 'C:\ProgramData\chocolatey'
We are setting up the Chocolatey repository for NuGet packages that should be at the machine level. Think executables/application packages, not library packages.
That is what Chocolatey NuGet goodness is for. The repository is set up at 'C:\ProgramData\chocolatey'.
The packages themselves go to 'C:\ProgramData\chocolatey\lib' (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.

Creating Chocolatey NuGet folders if they do not already exist.

Copying the contents of 'C:\Users\IEUser\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolateyInstall' to 'C:\ProgramData\chocolatey'.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
Chocolatey is now ready.
You can call chocolatey from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles first prior to using chocolatey.
Ensuring chocolatey commands are on the path

C:\Windows\system32>

Installing tomboy package

C:\Windows\system32>cinst tomboy
Chocolatey (v0.9.8.27) is installing 'tomboy' and dependencies. By installing you accept the license for 'tomboy' and each dependency you are installing.

gtksharp v2.12.10
Downloading gtksharp 32 bit
  from 'http://download.mono-project.com/gtk-sharp/gtk-sharp-2.12.10.win32.msi'
Installing gtksharp...
gtksharp has been installed.
gtksharp has finished successfully! The chocolatey gods have answered your request!

tomboy v1.14.0
Write-Error : tomboy did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
-----------------------
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:30 char:14
+   Write-Error <<<<  $errorMessage
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Write-Error : Package 'tomboy v1.14.0' did not install successfully: Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:28
+                 Write-Error <<<<  "Package `'$installedPackageName v$installedPackageVersion`' did not install successfully: $($_.Exception.Message)"
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Finished installing 'tomboy' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.

C:\Windows\system32>

Shit I forgot -debug

C:\Windows\system32>cinst tomboy -debug
DEBUG: Running 'Append-InstallLog' with chocoInstallLog:''
DEBUG: Arguments: $command = 'install'|$force=False
|$prerelease=False|$packageNames='tomboy'
|$source=''
|$version=''|$allVersions=False
|$overrideArguments=False|$InstallArguments=''
|$localonly=False|$verbosity=False|$debug=True|$quiet=False
|$name=''|$ignoreDependencies=False|$forceX86=False
|$packageParameters=''
|PowerShellVersion=2.0|OSVersion=6.1.7601.65536
DEBUG: Running 'Chocolatey-Install' for 'tomboy' with source: '', version: '', installerArguments:''
DEBUG: Running 'Chocolatey-NuGet' for tomboy with source:''. Force? False
Chocolatey (v0.9.8.27) is installing 'tomboy' and dependencies. By installing you accept the license for 'tomboy' and each dependency you are installing.
DEBUG: Installing packages to "C:\ProgramData\chocolatey\lib".
DEBUG: Running 'Run-NuGet' for tomboy 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:\ProgramData\chocolatey\chocolateyinstall\nuget.exe' install tomboy -OutputDirectory "C:\ProgramData\chocolatey\lib" -Source "https://chocolatey.org/api/v2/;" -NonInteractive
-NoCache
DEBUG: Attempting to resolve dependency 'gtksharp (≥ 2.12.10)'.
Installing 'tomboy 1.14.0'.
Successfully installed 'tomboy 1.14.0'.
DEBUG: Evaluating NuGet output for line: Attempting to resolve dependency 'gtksharp (≥ 2.12.10)'.
DEBUG: Evaluating NuGet output for line: Installing 'tomboy 1.14.0'.
DEBUG: Evaluating NuGet output for line: Successfully installed 'tomboy 1.14.0'.
DEBUG: NuGet installed tomboy. If we are ignoring dependencies (False) then we will clean this up.

tomboy v1.14.0
DEBUG: Running 'Delete-ExistingErrorLog' for tomboy
DEBUG: Looking for failure log at 'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\failure.log'
DEBUG: Found the failure log. Deleting it...
DEBUG: Running 'Run-ChocolateyPS1' for tomboy with packageFolder:'C:\ProgramData\chocolatey\lib\tomboy.1.14.0', action: 'install'
DEBUG:   __ PowerShell install (chocolateyinstall.ps1) __
DEBUG:   Looking for chocolateyinstall.ps1 in folder 'C:\ProgramData\chocolatey\lib\tomboy.1.14.0'. If chocolateyinstall.ps1 is found, it will be run.
DEBUG: Action file is 'chocolateyInstall.ps1'
DEBUG: Running 'C:\ProgramData\chocolatey\lib\tomboy.1.14.0\tools\chocolateyInstall.ps1'
DEBUG: Running 'Install-ChocolateyPackage' for tomboy with url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', args: '/quiet', fileType: 'msi', url64bit:
'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', checksum: '', checksumType: '', checksum64: '', checksumType64: '', validExitCodes: '0 3010'
DEBUG: Running 'Get-ChocolateyWebFile' for tomboy with url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi',
fileFullPath:'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi', url64bit:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', checksum: '',
checksumType: '', checksum64: '', checksumType64: ''
DEBUG: Running 'Get-ProcessorBits'
DEBUG: CPU is 32 bit
DEBUG: Running 'Get-WebHeaders' with url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', userAgent: 'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
Write-Error : tomboy did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
-----------------------
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:30 char:14
+   Write-Error <<<<  $errorMessage
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

DEBUG: Running 'Move-BadInstall' for tomboy version: '1.14.0', packageFolder:'C:\ProgramData\chocolatey\lib\tomboy.1.14.0'
DEBUG: Moving bad package 'tomboy v1.14.0' to 'C:\ProgramData\chocolatey\lib-bad'.
Write-Error : Package 'tomboy v1.14.0' did not install successfully: Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:28
+                 Write-Error <<<<  "Package `'$installedPackageName v$installedPackageVersion`' did not install successfully: $($_.Exception.Message)"
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

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

C:\Windows\system32>

Running manually

image

What? I thought the thing installed fine as a dependency of tomboy

gtksharp has finished successfully! The chocolatey gods have answered your request!

Installing gtksharp package separately

Note how it installs fine now that DotNet4.0 is a dependency

C:\Windows\system32>cinst gtksharp
Chocolatey (v0.9.8.27) is installing 'gtksharp' and dependencies. By installing you accept the license for 'gtksharp' and each dependency you are installing.

DotNet4.0 v4.0.30319.20130222
Downloading webcmd 32 bit
  from 'http://www.iis.net/community/files/webpi/webpicmdline_anycpu.zip'
Extracting C:\Users\IEUser\AppData\Local\Temp\chocolatey\webcmd\webcmdInstall.zip to C:\Users\IEUser\AppData\Local\Temp...
C:\Users\IEUser\AppData\Local\Temp
webcmd has finished successfully! The chocolatey gods have answered your request!

The software that you obtain using the Web Platform Installer Command Line Tool is licensed to you by its owner.  Microsoft grants you no rights for third party software.

Successfully loaded metadata from feed https://www.microsoft.com/web/webpi/3.0/webproductlist.xml
Successfully loaded metadata from feed https://www.microsoft.com/web/webpi/3.0/webapplicationlist.xml
Successfully loaded metadata from feed https://www.microsoft.com/web/webpi/3.0/mediaproductlist.xml
Successfully loaded metadata from feed https://www.microsoft.com/web/webpi/3.0/toolsproductlist.xml
Successfully loaded metadata from feed https://www.microsoft.com/web/webpi/3.0/enterpriseproductlist.xml

Added product NETFramework4 to the install list
Trying to add related product IIS51 for product NETFramework4
Product IIS51 has no installers available for this platform
Trying to add related product IIS60 for product NETFramework4
Product IIS60 has no installers available for this platform
Trying to add related product StaticContent for product NETFramework4
Added product StaticContent to the install list
Trying to add missing dependency WASProcessModel for product StaticContent
Added product WASProcessModel to the install list
Trying to add related product DefaultDocument for product NETFramework4
Added product DefaultDocument to the install list
Trying to add related product DirectoryBrowse for product NETFramework4
Added product DirectoryBrowse to the install list
Trying to add related product HTTPErrors for product NETFramework4
Added product HTTPErrors to the install list
Trying to add related product HTTPLogging for product NETFramework4
Added product HTTPLogging to the install list
Trying to add related product LoggingTools for product NETFramework4
Added product LoggingTools to the install list
Trying to add related product RequestMonitor for product NETFramework4
Added product RequestMonitor to the install list
Trying to add related product RequestFiltering for product NETFramework4
Added product RequestFiltering to the install list
Trying to add related product StaticContentCompression for product NETFramework4
Added product StaticContentCompression to the install list
Trying to add related product IISManagementConsole for product NETFramework4
Added product IISManagementConsole to the install list
Trying to add missing dependency WASConfigurationAPI for product IISManagementConsole
Added product WASConfigurationAPI to the install list
Trying to add related product ASPNET for product NETFramework4
Added product ASPNET to the install list
Trying to add missing dependency NETExtensibility for product ASPNET
Added product NETExtensibility to the install list
Trying to add missing dependency WASNetFxEnvironment for product NETExtensibility
Added product WASNetFxEnvironment to the install list
Trying to add missing dependency ISAPIExtensions for product ASPNET
Added product ISAPIExtensions to the install list
Trying to add missing dependency ISAPIFilters for product ASPNET
Added product ISAPIFilters to the install list
Trying to add missing dependency WASNetFxEnvironment for product ASPNET
Product WASNetFxEnvironment is either already added to the cart or already installed
Trying to add related product NETExtensibility for product NETFramework4
Product NETExtensibility is either already added to the cart or already installed
Trying to add related product ISAPIFilters for product NETFramework4
Product ISAPIFilters is either already added to the cart or already installed
Trying to add related product ISAPIExtensions for product NETFramework4
Product ISAPIExtensions is either already added to the cart or already installed

The following software is going to be installed:
EULA : 'IIS: WAS Process Model', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: WAS Configuration API', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: WAS .NET Environment', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: Static Content', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: Default Document', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: Directory Browsing', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: HTTP Errors', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: HTTP Logging', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: Logging Tools', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: Request Monitor', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: Request Filtering', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: Static Content Compression', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: ISAPI Extensions', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: ISAPI Filters', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: Management Console', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: .NET Extensibility', which is owned by 'Microsoft' will be turned on
EULA : 'IIS: ASP.NET', which is owned by 'Microsoft' will be turned on
EULA : 'Microsoft .NET Framework 4', which is owned by 'Microsoft Corporation', will be downloaded from 'http://go.microsoft.com/fwlink/?LinkId=164154'.
The license agreement to 'Microsoft .NET Framework 4' is available at 'http://go.microsoft.com/fwlink/?LinkId=188993&clcid=0x409'.
Accepted Eulas.
Starting : Starting Installation
Started installing Products...
Started installing: WASProcessModel
Started installing: WASConfigurationAPI
Started installing: WASNetFxEnvironment
Started installing: StaticContent
Started installing: DefaultDocument
Started installing: DirectoryBrowse
Started installing: HTTPErrors
Started installing: HTTPLogging
Started installing: LoggingTools
Started installing: RequestMonitor
Started installing: RequestFiltering
Started installing: StaticContentCompression
Started installing: ISAPIExtensions
Started installing: ISAPIFilters
Started installing: IISManagementConsole
Started installing: NETExtensibility
Started installing: ASPNET
Started downloading products...
Started downloading: NETFramework4
DownloadedNETFramework4
Install completed (Success): IIS: WAS Process Model
WASProcessModel : Installed
Install completed (Success): IIS: WAS Configuration API
WASConfigurationAPI : Installed
Install completed (Success): IIS: WAS .NET Environment
WASNetFxEnvironment : Installed
Install completed (Success): IIS: Static Content
StaticContent : Installed
Install completed (Success): IIS: Default Document
DefaultDocument : Installed
Install completed (Success): IIS: Directory Browsing
DirectoryBrowse : Installed
Install completed (Success): IIS: HTTP Errors
HTTPErrors : Installed
Install completed (Success): IIS: HTTP Logging
HTTPLogging : Installed
Install completed (Success): IIS: Logging Tools
LoggingTools : Installed
Install completed (Success): IIS: Request Monitor
RequestMonitor : Installed
Install completed (Success): IIS: Request Filtering
RequestFiltering : Installed
Install completed (Success): IIS: Static Content Compression
StaticContentCompression : Installed
Install completed (Success): IIS: ISAPI Extensions
ISAPIExtensions : Installed
Install completed (Success): IIS: ISAPI Filters
ISAPIFilters : Installed
Install completed (Success): IIS: Management Console
IISManagementConsole : Installed
Install completed (Success): IIS: .NET Extensibility
NETExtensibility : Installed
Install completed (Success): IIS: ASP.NET
ASPNET : Installed
Started installing: NETFramework4
Install completed (Success): Microsoft .NET Framework 4
NETFramework4 : Installed
Verifying successful installation...
Microsoft .NET Framework 4                         True
IIS: Static Content                                True
IIS: WAS Process Model                             True
IIS: Default Document                              True
IIS: Directory Browsing                            True
IIS: HTTP Errors                                   True
IIS: HTTP Logging                                  True
IIS: Logging Tools                                 True
IIS: Request Monitor                               True
IIS: Request Filtering                             True
IIS: Static Content Compression                    True
IIS: Management Console                            True
IIS: WAS Configuration API                         True
IIS: ASP.NET                                       True
IIS: .NET Extensibility                            True
IIS: WAS .NET Environment                          True
IIS: ISAPI Extensions                              True
IIS: ISAPI Filters                                 True
Install of Products: SUCCESS
Creation of Product Logs: FAILURE
Download count: 232.18 Mb, 67 sec
Installation count: 236.24 Mb, 68 sec
Products            , Down. Size, Inst. Time, Down. Time, Inst. Size, Log Size
WASProcessModel     , 0         , 30        , 0         , 51.54     , 0
WASConfigurationAPI , 0         , 30        , 0         , 51.54     , 0
WASNetFxEnvironment , 0         , 30        , 0         , 51.54     , 0
StaticContent       , 0         , 30        , 0         , 51.54     , 0
DefaultDocument     , 0         , 30        , 0         , 51.54     , 0
DirectoryBrowse     , 0         , 30        , 0         , 51.54     , 0
HTTPErrors          , 0         , 30        , 0         , 51.54     , 0
HTTPLogging         , 0         , 30        , 0         , 51.54     , 0
LoggingTools        , 0         , 30        , 0         , 51.54     , 0
RequestMonitor      , 0         , 30        , 0         , 51.54     , 0
RequestFiltering    , 0         , 30        , 0         , 51.54     , 0
StaticContentCompression, 0         , 30        , 0         , 51.54     , 0
ISAPIExtensions     , 0         , 30        , 0         , 51.54     , 0
ISAPIFilters        , 0         , 30        , 0         , 51.54     , 0
IISManagementConsole, 0         , 30        , 0         , 51.54     , 0
NETExtensibility    , 0         , 30        , 0         , 51.54     , 0
ASPNET              , 0         , 30        , 0         , 51.54     , 0
NETFramework4       , 0.85      , 38        , 1         , 184.71    , 0
Total (download size/install time): 0.85 Mb, 68 sec
End Starting Installation.
        Passed Scenarios : 18.
        Failed Scenarios : 0
Run Passed

gtksharp v2.12.25.1
Downloading gtksharp 32 bit
  from 'http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.25.msi'
Installing gtksharp...
gtksharp has been installed.
gtksharp has finished successfully! The chocolatey gods have answered your request!
Finished installing 'gtksharp' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.

C:\Windows\system32>

Trying tomboy again

C:\Windows\system32>cinst tomboy -debug
DEBUG: Running 'Append-InstallLog' with chocoInstallLog:''
DEBUG: Arguments: $command = 'install'|$force=False
|$prerelease=False|$packageNames='tomboy'
|$source=''
|$version=''|$allVersions=False
|$overrideArguments=False|$InstallArguments=''
|$localonly=False|$verbosity=False|$debug=True|$quiet=False
|$name=''|$ignoreDependencies=False|$forceX86=False
|$packageParameters=''
|PowerShellVersion=2.0|OSVersion=6.1.7601.65536
DEBUG: Running 'Chocolatey-Install' for 'tomboy' with source: '', version: '', installerArguments:''
DEBUG: Running 'Chocolatey-NuGet' for tomboy with source:''. Force? False
Chocolatey (v0.9.8.27) is installing 'tomboy' and dependencies. By installing you accept the license for 'tomboy' and each dependency you are installing.
DEBUG: Installing packages to "C:\ProgramData\chocolatey\lib".
DEBUG: Running 'Run-NuGet' for tomboy 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:\ProgramData\chocolatey\chocolateyinstall\nuget.exe' install tomboy -OutputDirectory "C:\ProgramData\chocolatey\lib" -Source "https://chocolatey.org/api/v2/;" -NonInteractive
-NoCache
DEBUG: Attempting to resolve dependency 'gtksharp (≥ 2.12.10)'.
Installing 'tomboy 1.14.0'.
Successfully installed 'tomboy 1.14.0'.
DEBUG: Evaluating NuGet output for line: Attempting to resolve dependency 'gtksharp (≥ 2.12.10)'.
DEBUG: Evaluating NuGet output for line: Installing 'tomboy 1.14.0'.
DEBUG: Evaluating NuGet output for line: Successfully installed 'tomboy 1.14.0'.
DEBUG: NuGet installed tomboy. If we are ignoring dependencies (False) then we will clean this up.

tomboy v1.14.0
DEBUG: Running 'Delete-ExistingErrorLog' for tomboy
DEBUG: Looking for failure log at 'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\failure.log'
DEBUG: Found the failure log. Deleting it...
DEBUG: Running 'Run-ChocolateyPS1' for tomboy with packageFolder:'C:\ProgramData\chocolatey\lib\tomboy.1.14.0', action: 'install'
DEBUG:   __ PowerShell install (chocolateyinstall.ps1) __
DEBUG:   Looking for chocolateyinstall.ps1 in folder 'C:\ProgramData\chocolatey\lib\tomboy.1.14.0'. If chocolateyinstall.ps1 is found, it will be run.
DEBUG: Action file is 'chocolateyInstall.ps1'
DEBUG: Running 'C:\ProgramData\chocolatey\lib\tomboy.1.14.0\tools\chocolateyInstall.ps1'
DEBUG: Running 'Install-ChocolateyPackage' for tomboy with url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', args: '/quiet', fileType: 'msi', url64bit:
'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', checksum: '', checksumType: '', checksum64: '', checksumType64: '', validExitCodes: '0 3010'
DEBUG: Running 'Get-ChocolateyWebFile' for tomboy with url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi',
fileFullPath:'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi', url64bit:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', checksum: '',
checksumType: '', checksum64: '', checksumType64: ''
DEBUG: Running 'Get-ProcessorBits'
DEBUG: CPU is 32 bit
DEBUG: Running 'Get-WebHeaders' with url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', userAgent: 'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
Write-Error : tomboy did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
-----------------------
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:30 char:14
+   Write-Error <<<<  $errorMessage
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

DEBUG: Running 'Move-BadInstall' for tomboy version: '1.14.0', packageFolder:'C:\ProgramData\chocolatey\lib\tomboy.1.14.0'
DEBUG: Moving bad package 'tomboy v1.14.0' to 'C:\ProgramData\chocolatey\lib-bad'.
Write-Error : Package 'tomboy v1.14.0' did not install successfully: Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:28
+                 Write-Error <<<<  "Package `'$installedPackageName v$installedPackageVersion`' did not install successfully: $($_.Exception.Message)"
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

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

C:\Windows\system32>

Meh, still no ball. Secretly I hoped the gtksharp installation fixed this.

I understand now it looks like it hangs at the download, but I can download within the (same) virtual machine just fine:

image

Also, wget in Linux using that user agent poses no problem:

$ wget --user-agent="chocolatey command line" http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi
--2014-07-28 23:47:15--  http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi
Resolving download.gnome.org (download.gnome.org)... 209.132.180.180, 209.132.180.168
Connecting to download.gnome.org (download.gnome.org)|209.132.180.180|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi [following]
--2014-07-28 23:47:16--  https://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi
Connecting to download.gnome.org (download.gnome.org)|209.132.180.180|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ftp1.nluug.nl/windowing/gnome/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi [following]
--2014-07-28 23:47:17--  http://ftp1.nluug.nl/windowing/gnome/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi
Resolving ftp1.nluug.nl (ftp1.nluug.nl)... 192.87.102.42, 2001:610:1:80aa:192:87:102:42
Connecting to ftp1.nluug.nl (ftp1.nluug.nl)|192.87.102.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2707456 (2.6M) [text/plain]
Saving to: ‘Tomboy-1.14.0.msi’

100%[==================================================================================>] 2,707,456   2.59MB/s   in 1.0s   

2014-07-28 23:47:18 (2.59 MB/s) - ‘Tomboy-1.14.0.msi’ saved [2707456/2707456]

@Redsandro Redsandro changed the title Setting the UserAgent to 'chocolatey command line' times out on VM VM times out on Setting the UserAgent to 'chocolatey command line' Jul 28, 2014
@ferventcoder
Copy link
Contributor

DEBUG: Running 'Get-WebHeaders' with url:'http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi', userAgent: 'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
Write-Error : tomboy did not finish successfully. Boo to the chocolatey gods!

@ferventcoder
Copy link
Contributor

Does it time out on HEAD?

@Redsandro
Copy link
Contributor Author

I believe not, at least not using curl:

$ curl -I --user-agent "chocolatey command line" http://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi
HTTP/1.1 302 Found
Date: Mon, 28 Jul 2014 22:11:05 GMT
Server: Apache/2.2.15 (Red Hat)
Location: https://download.gnome.org/binaries/win32/tomboy/1.14/Tomboy-1.14.0.msi
Connection: close
Content-Type: text/html; charset=iso-8859-1

@ferventcoder ferventcoder changed the title VM times out on Setting the UserAgent to 'chocolatey command line' [BUG] Getting Headers causes some packages to time out Jul 29, 2014
@ferventcoder ferventcoder changed the title [BUG] Getting Headers causes some packages to time out [BUG] Cannot download some files using Get-WebFile Jul 29, 2014
@ferventcoder
Copy link
Contributor

Upon further investigation, the .net framework is unable to download the file for some reason. It's not just a HEAD request that times out, it's any request.

@ferventcoder
Copy link
Contributor

The 302 redirect to HTTPS...

@Redsandro
Copy link
Contributor Author

Good find! It won't download a redirect at all, or HTTPS redirect in particular, or just this specific case?

Since I got this in Windows 7, but the person who contacted me had a different error - related to DotNet4 needing a reboot, which is the error that would appear after the download was succesful and the script would proceed - he probably had a newer build (probably service pack); I am thinking that this error might be there in Windows <= 7.0 and not in Windows >= 7.1.

@ferventcoder
Copy link
Contributor

Just of note, this doesn't affect PowerShell 3/4 as they use .NET Framework 4.0

@ferventcoder
Copy link
Contributor

It's Powershell v2.0 related as it uses .NET framework 2.0/3.5. Whatever issue it was seems to be fixed in newer versions of powershell, but to be sure I'm going to update to posh 3 in my vm and see if it fails.

@Redsandro
Copy link
Contributor Author

I thought chocolatey automatically installs .NET 4.0, or is that irrelevant concerning powershell?

Sorry if stupid question.

@ferventcoder
Copy link
Contributor

Inspection with fiddler determines that the SSLv3 has a handshake failure - http://social.msdn.microsoft.com/Forums/en-US/5be893c2-b16c-4e2c-ad9a-ab4deb0c8962/ssl-handshake-failure?forum=netfxcompact

@Redsandro
Copy link
Contributor Author

So ideally, in stead of timing out, it would either:

  • Stop with an error; or
  • Issue a [WARNING] could not verify certificate of [xyz] and continue ignoring SSL:
    • In Unix that would be curl -k or curl --insecure
      • -k/--insecure (SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers. Starting with curl 7.10, all SSL connections will be attempted to be made secure by using the CA certificate bundle installed by default.

@ferventcoder
Copy link
Contributor

@Redsandro Posh v2 uses .net framework 2.

@ferventcoder ferventcoder changed the title [BUG] Cannot download some files using Get-WebFile [BUG] Powershell v2 fails to download SSLv3 files Jul 29, 2014
@ferventcoder
Copy link
Contributor

You are going to love the answer to this...

ferventcoder added a commit that referenced this issue Jul 29, 2014
Powershell, which uses the .NET Framework v2, has a bug that prevents it from
falling back to SSL3 when TLS doesn't properly download files. So it causes the
response to timeout because it never receives a response.

This forces the security protocol to SSL3 when using Poshv2.
@ferventcoder
Copy link
Contributor

This is a bit naive implementation. What we might want to do is create a short timeout and then move to the fallback when it fails for the remainder of the run.

@Redsandro
Copy link
Contributor Author

I don't fully understand what is happening, but if it works, it works.
I will test this out in a vm that I know has this problem when new chocolatey is released.

@ferventcoder
Copy link
Contributor

It's b/c the fallback doesn't work on .net framework v2, but it works on v4. If you look at current protocol you will see: Ssl3, Tls

ferventcoder added a commit that referenced this issue Jul 30, 2014
Limit the fallback to only when there is a failure in the webrequest. This way
TLS downloads could still work.
ferventcoder added a commit that referenced this issue Jul 30, 2014
* stable:
  v0.9.8.28-alpha1
  (GH-531) PowerShell v2 Fallback to SSL v3 if request failure
  (GH-531) Fix - Powershell v2 fails to download SSL v3 files
@ferventcoder
Copy link
Contributor

@Redsandro
Copy link
Contributor Author

Is there a way to install pre-release version directly? Instead of:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

choco install chocolatey -Pre

@Redsandro
Copy link
Contributor Author

Seems to work*. 👍

tomboy v1.15.1-beta
DEBUG: Running 'Delete-ExistingErrorLog' for tomboy
DEBUG: Looking for failure log at 'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\failure.log'
DEBUG: Running 'Run-ChocolateyPS1' for tomboy with packageFolder:'C:\ProgramData\chocolatey\lib\tomboy.1.15.1-beta', action: 'install'
DEBUG:   __ PowerShell install (chocolateyinstall.ps1) __
DEBUG:   Looking for chocolateyinstall.ps1 in folder 'C:\ProgramData\chocolatey\lib\tomboy.1.15.1-beta'. If chocolateyinstall.ps1 is found, it will be run.
DEBUG: Action file is 'chocolateyInstall.ps1'
DEBUG: Running 'C:\ProgramData\chocolatey\lib\tomboy.1.15.1-beta\tools\chocolateyInstall.ps1'
DEBUG: Running 'Install-ChocolateyPackage' for tomboy with url:'http://ftp.gnome.org/pub/GNOME/binaries/win32/tomboy/1.15/Tomboy-1.15.1.msi', args: '/quiet', fileType: 'msi', url64bit:
'http://ftp.gnome.org/pub/GNOME/binaries/win32/tomboy/1.15/Tomboy-1.15.1.msi', checksum: '', checksumType: '', checksum64: '', checksumType64: '', validExitCodes: '0 3010'
DEBUG: Running 'Get-ChocolateyWebFile' for tomboy with url:'http://ftp.gnome.org/pub/GNOME/binaries/win32/tomboy/1.15/Tomboy-1.15.1.msi',
fileFullPath:'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi', url64bit:'http://ftp.gnome.org/pub/GNOME/binaries/win32/tomboy/1.15/Tomboy-1.15.1.msi', checksum: '',
checksumType: '', checksum64: '', checksumType64: ''
DEBUG: Running 'Get-ProcessorBits'
DEBUG: CPU is 32 bit
DEBUG: Running 'Get-WebHeaders' with url:'http://ftp.gnome.org/pub/GNOME/binaries/win32/tomboy/1.15/Tomboy-1.15.1.msi', 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:   'Age':'81'
DEBUG:   'Keep-Alive':'timeout=10, max=100'
DEBUG:   'Connection':'Keep-Alive'
DEBUG:   'Accept-Ranges':'bytes'
DEBUG:   'Content-Length':'2707456'
DEBUG:   'Content-Type':'application/octet-stream'
DEBUG:   'Date':'Wed, 30 Jul 2014 14:35:33 GMT'
DEBUG:   'ETag':'"295000-4dc0fe639a400"'
DEBUG:   'Last-Modified':'Mon, 06 May 2013 17:19:12 GMT'
DEBUG:   'Server':'Apache/2.4.9 (Unix)'
Downloading tomboy 32 bit
  from 'http://ftp.gnome.org/pub/GNOME/binaries/win32/tomboy/1.15/Tomboy-1.15.1.msi'
DEBUG: Running 'Get-WebFile' for C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi with url:'http://ftp.gnome.org/pub/GNOME/binaries/win32/tomboy/1.15/Tomboy-1.15.1.msi',
userAgent: 'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
DEBUG: Checking that 'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi' is the size we expect it to be.
DEBUG: Verifying package provided checksum of '' for 'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi'.
DEBUG: Running 'Get-CheckSumValid' with file:'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi', checksum: '', checksumType: ''
DEBUG: Running 'Install-ChocolateyInstallPackage' for tomboy with file:'C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi', args: '/quiet', fileType: 'msi', validExitCodes: '0
3010'
Installing tomboy...
DEBUG: Running 'Start-ChocolateyProcessAsAdmin' with exeToRun:'msiexec', statements: '/i "C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi" /quiet '
DEBUG: Elevating Permissions and running msiexec /i "C:\Users\IEUser\AppData\Local\Temp\chocolatey\tomboy\tomboyInstall.msi" /quiet . This may take awhile, depending on the statements.
DEBUG: Finishing 'Start-ChocolateyProcessAsAdmin'
tomboy has been installed.
tomboy has finished successfully! The chocolatey gods have answered your request!
DEBUG: Running 'Get-ChocolateyBins' for C:\ProgramData\chocolatey\lib\tomboy.1.15.1-beta
DEBUG:   __ Executable Links (*.exe) __
DEBUG: Looking for executables in folder: C:\ProgramData\chocolatey\lib\tomboy.1.15.1-beta
Adding batch files for any executables found to a location on PATH. In other words the executable will be available from ANY command line/powershell prompt.
DEBUG: Found '' for batch redirect
DEBUG: There are no executables (that are not ignored) in the package.
DEBUG: Evaluating NuGet output for line:
Finished installing 'tomboy' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.

*) Disclaimer: I forgot to make a snapshot so this vm already has tomboy installed. I removed the downloaded file and used cup tomboy -pre -force -debug. I did verify that the vm indeed uses Posh 2.0.

@ferventcoder
Copy link
Contributor

@Redsandro the undocumented way to get absolute latest:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/installabsolutelatest.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Note https://chocolatey.org/installabsolutelatest.ps1

@miaulightouch
Copy link

It seems cause the same problem with v0.9.10?

I install chocolatey in a vanilla win7 sp1 that didn't apply any update.

C:\Users\VM>@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-o
bject net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && S
ET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Downloading https://packages.chocolatey.org/chocolatey.0.9.10.nupkg to C:\Users
\VM\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip

Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: Could not establish trust relationship for the SSL/TLS secure ch
annel."
At line:125 char:27
+   $downloader.DownloadFile <<<< ($url, $file)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Download 7Zip commandline tool
Downloading https://chocolatey.org/7za.exe to C:\Users\VM\AppData\Local\Temp\ch
ocolatey\chocInstall\7za.exe
Extracting C:\Users\VM\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
 to C:\Users\VM\AppData\Local\Temp\chocolatey\chocInstall...

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


Error:
cannot find archive
Installing chocolatey on this machine
The term 'C:\Users\VM\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolate
yInstall.ps1' is not recognized as the name of a cmdlet, function, script file,
 or operable program. Check the spelling of the name, or if a path was included
, verify that the path is correct and try again.
At line:161 char:2
+ & <<<<  $chocInstallPS1
    + CategoryInfo          : ObjectNotFound: (C:\Users\VM\App...ateyInstall.p
   s1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Ensuring chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder

@ferventcoder
Copy link
Contributor

Similar but not the same - you are missing a certificate that is required to allow the installation. https://chocolatey.org/docs/proxy-settings-for-chocolatey#still-having-trust-issues - we'll be moving this to a troubleshooting page.

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

No branches or pull requests

4 participants