microsoft / Docker-PowerShell

PowerShell Module for Docker
MIT License
287 stars 88 forks source link

PowerShellGet install instructions for this module do not work #62

Closed rkeithhill closed 8 years ago

rkeithhill commented 8 years ago

I get this error:

> Install-Module Docker -Repository DockerPS-Dev

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'DockerPS-Dev'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A
WARNING: Could not get response from query
'https://ci.appveyor.com/nuget/docker-powershell-dev/package/Docker/0.0.0.35'.
WARNING: MSG:SourceLocationNotValid «https://ci.appveyor.com/nuget/docker-powershell-dev/»
PackageManagement\Install-Package : Package 'Docker' failed to install.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1431 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (C:\Users\hillr\...er\Docker.nupkg:String) [Install-Package], Excep
   tion
    + FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPac
   kage
jstarks commented 8 years ago

Hmm. It's working for me. I wonder if the CI server was down briefly. Is the error persistent?

hdansou commented 8 years ago

The instruction worked for me and I tried 15 minutes ago.

rkeithhill commented 8 years ago

Could be an issue with PowerShell (or the package management module). I'm running version 5.1.14332.1001 from the 14332 insiders build of Windows 10. It is still failing for me so I don't think it's an intermittent server issue.

hdansou commented 8 years ago

My powershell version is 5.1.14300.1000 but I don't suspect an issue with powershell. It sounds more like a connectivity issue to https://ci.appveyor.com/nuget/docker-powershell-dev. You can try Invoke-WebRequest -Uri 'https://ci.appveyor.com/nuget/docker-powershell-dev' to see if you can access it.

rkeithhill commented 8 years ago

That works. I get back:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<service xml:base="https://ci.appveyor.com/nuget/docker-powershell-dev/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
  <workspace>
    <atom:title>Default</atom:title>
    <collection href="Packages">
      <atom:title>Packages</atom:title>
    </collection>
  </workspace>
</service>
hdansou commented 8 years ago

Good, can you confirm the SourceLocation that was registered? The command below assumes the name DockerPs-Dev Get-PSRepository -Name DockerPs-Dev | Format-List

rkeithhill commented 8 years ago

That command returns:

25# Get-PSRepository -Name DockerPs-Dev | Format-List

Name                      : DockerPS-Dev
SourceLocation            : https://ci.appveyor.com/nuget/docker-powershell-dev
Trusted                   : False
Registered                : True
InstallationPolicy        : Untrusted
PackageManagementProvider : NuGet
PublishLocation           :
ScriptSourceLocation      :
ScriptPublishLocation     :
ProviderOptions           : {}
rkeithhill commented 8 years ago

BTW I'm running the Docker Beta for Windows 10 client. Would that matter?

hdansou commented 8 years ago

It should not matter. if you retried Install-Module Docker -Repository DockerPS-Dev and it did not work, I suggest you try to follow the compilation instruction on https://github.com/Microsoft/Docker-PowerShell/blob/master/README.md, for now.

hdansou commented 8 years ago

@rkeithhill Have you made any progress? Are you still experiencing the same issue?

rkeithhill commented 8 years ago

Yeah, just tried again and I get the same error. Haven't had time to try to compile it.

jstarks commented 8 years ago

That is very strange. I wish I knew how to debug this further. @jianyunt, have you seen this error from Install-Module before? It seems that for some reason rkeithhill can't install our module from our NuGet feed, but others can. There is no authentication on the feed.

rkeithhill commented 8 years ago

Well it works from home. I was about to suspect our corporate content filter but when I run Fiddler on the machine at work, it doesn't appear the request even makes it off the machine. I see two HTTPS CONNECT requests to the appveyor.com URL but that's it. Hmm, I'll try from another machine at work and see how that goes.

jianyunt commented 8 years ago

@rkeithhill, can you please try the following to see we can get more info:

Also, can you install modules from other repo such as powershellgallery.com? BTW, which version of NuGet provider are you using?

rkeithhill commented 8 years ago

Here ya go. BTW I tried on another machine at work - this one running Windows 10 build 1511. It fails as well. Here's the info you requested:

272> Get-PackageProvider

Name                     Version          DynamicOptions
----                     -------          --------------
msi                      3.0.0.0          AdditionalArguments
msu                      3.0.0.0
NuGet                    2.8.5.201        Destination, ExcludeVersion, Headers, FilterOnTag, Contains, AllowPrerelea...
PowerShellGet            1.0.0.1          PackageManagementProvider, Type, Scope, InstallUpdate, PackageManagementPr...
Programs                 3.0.0.0          IncludeWindowsInstaller, IncludeSystemComponent

[master ≡]
273> Get-PackageSource

Name                             ProviderName     IsTrusted  IsRegistered IsValidated  Location
----                             ------------     ---------  ------------ -----------  --------
nuget.org                        NuGet            False      True         False        https://www.nuget.org/api/v2/
HPSDownloads                     NuGet            False      True         False        http://hpsdownloads.lov.is.ke...
Local Source                     NuGet            False      True         False        C:\Temp\NuGet
Local Nuget Test Server          NuGet            False      True         False        http://localhost:19789/nuget/...
SmbPSRepo                        PowerShellGet    True       True         False        \\HILLR1\SmbPSRepo
PSGallery                        PowerShellGet    True       True         False        https://www.powershellgallery...
DockerPS-Dev                     PowerShellGet    False      True         False        https://ci.appveyor.com/nuget...

274> Get-PackageSource Dock* | fl

Name         : DockerPS-Dev
Location     : https://ci.appveyor.com/nuget/docker-powershell-dev
Source       : DockerPS-Dev
ProviderName : PowerShellGet
Provider     : Microsoft.PackageManagement.Implementation.PackageProvider
IsTrusted    : False
IsRegistered : True
IsValidated  : False
Details      : {[InstallationPolicy, Untrusted], [PackageManagementProvider, NuGet]}

and the verbose/debug output:

2# Install-Module Docker -Repository DockerPS-Dev -verbose -debug
DEBUG: 00:00:00.0000002 Trying provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MetaProvider.PowerShell.dll

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): A
DEBUG: 00:00:00.0002260 Trying provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0007304 Trying provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsiProvider.dll
DEBUG: 00:00:00.0000082 Trying provider assembly: C:\Program
Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.201\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0000231 Trying provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0000583 Trying provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsuProvider.dll
DEBUG: 00:00:00.0051095 Attempting loading of assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsuProvider.dll
DEBUG: 00:00:00.0052432 Attempting loading of assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0054186 Attempting loading of assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0057010 Attempting loading of assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsiProvider.dll
DEBUG: 00:00:00.0059444 Attempting loading of assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0084294 Attempting loading of assembly: C:\Program
Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.201\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0102250 Acquiring providers for assemblyC:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsuProvider.dll
DEBUG: 00:00:00.0102250 Acquiring providers for assemblyC:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsiProvider.dll
DEBUG: 00:00:00.0103361 Acquiring providers for assemblyC:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0103751 Acquiring providers for assemblyC:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0104384 Acquiring providers for assemblyC:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0106613 Acquiring providers for assemblyC:\Program
Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.201\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0670355 Registering providers via metaproviders for assembly
Microsoft.PackageManagement.MetaProvider.PowerShell.Internal.PowerShellMetaProvider
DEBUG: 00:00:00.1173096 Initializing provider 'WebDownloader'
DEBUG: 00:00:00.1181058 Initializing provider 'NuGet'
DEBUG: 00:00:00.1222972 Initializing provider 'zipfile'
DEBUG: 00:00:00.1382722 Initializing provider 'msi'
DEBUG: 00:00:00.1385036 Initializing provider 'msu'
DEBUG: 00:00:00.1480512 Provider 'WebDownloader' Initialized
DEBUG: 00:00:00.1480553 Provider 'zipfile' Initialized
DEBUG: 00:00:00.1480970 Using Archiver Provider zipfile
DEBUG: 00:00:00.1480981 Using Downloader Provider WebDownloader
DEBUG: 00:00:00.1492013 Initializing provider 'Bootstrap'
DEBUG: 00:00:00.1529215 Initializing provider 'Programs'
DEBUG: 00:00:00.1547335 Calling 'msi::InitializeProvider'
DEBUG: 00:00:00.1547766 Provider 'msi' Initialized
DEBUG: 00:00:00.1548215 Using Package Provider msi
DEBUG: 00:00:00.1556317 Calling 'NuGet'::'InitializeProvider'.
DEBUG: 00:00:00.1548267 Calling 'msu::InitializeProvider'
DEBUG: 00:00:00.1560378 Provider 'msu' Initialized
DEBUG: 00:00:00.1560584 Using Package Provider msu
DEBUG: 00:00:00.1565425 Provider 'NuGet' Initialized
DEBUG: 00:00:00.1565692 Using Package Provider NuGet
DEBUG: 00:00:00.1674810 Calling 'Programs::InitializeProvider'
DEBUG: 00:00:00.1675265 Provider 'Programs' Initialized
DEBUG: 00:00:00.1675496 Using Package Provider Programs
DEBUG: 00:00:00.1681555 Calling 'WebDownloader::GetFeatures'
DEBUG: 00:00:00.1682552 Calling 'zipfile::GetFeatures'
DEBUG: 00:00:00.1682772 Calling 'msi::GetFeatures'
DEBUG: 00:00:00.1684438 Initialize Bootstrapper
DEBUG: 00:00:00.1690440 Calling 'msu::GetFeatures'
DEBUG: 00:00:00.1700886 Provider 'Bootstrap' Initialized
DEBUG: 00:00:00.1701182 Using Package Provider Bootstrap
DEBUG: 00:00:00.1710677 The provider 'msi' is imported
DEBUG: 00:00:00.1711305 SUCCESS provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsiProvider.dll
DEBUG: 00:00:00.1712302 The provider 'msu' is imported
DEBUG: 00:00:00.1712815 SUCCESS provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsuProvider.dll
DEBUG: 00:00:00.1713070 SUCCESS provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.1738718 Calling 'NuGet'::'GetFeatures'.
DEBUG: 00:00:00.1750647 Calling 'Programs::GetFeatures'
DEBUG: 00:00:00.1751313 The provider 'Programs' is imported
DEBUG: 00:00:00.1756454 The provider 'NuGet' is imported
DEBUG: 00:00:00.1765075 SUCCESS provider assembly: C:\Program
Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.201\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.1797148 Calling 'Bootstrap::GetFeatures'
DEBUG: 00:00:00.1799385 The provider 'Bootstrap' is imported
DEBUG: 00:00:00.1799981 SUCCESS provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.1990971 Calling 'WebDownloader::DownloadFile'
'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409','C:\Users\hillr\AppData\Local\Temp\Microsoft.PackageManage
ment\26\tmpFile.ac240001.swidtag.xml','8000','False'
DEBUG: 00:00:00.2253740 Trying to register metaprovider
DEBUG: 00:00:00.2306228 Initializing PowerShell MetaProvider
DEBUG: 00:00:00.3055149 Attempting to load PowerShell Provider Module [C:\Program
Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1]
DEBUG: 00:00:00.4423350 Loaded PowerShell package provider: '[C:\Program
Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1]'.
DEBUG: 00:00:00.4477824 Loaded PowerShell Provider: PowerShellGet
DEBUG: 00:00:00.4509122 Initializing provider 'PowerShellGet'
DEBUG: 00:00:00.4610243 Calling New() : MethodName = 'InitializeProvider'
DEBUG: 00:00:00.4610601 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.4610692 WarningAction: SilentlyContinue
DEBUG: 00:00:00.4659043 INVOKING PowerShell Fn Initialize-Provider with args  that has length 0
DEBUG: 00:00:00.4790653 In PowerShellGet Provider - 'Initialize-Provider'.
DEBUG: 00:00:00.4793797 PowerShell Script 'PSModule' Function 'Initialize-Provider' returns null.
DEBUG: 00:00:00.4805143 Done calling powershell «Initialize-Provider» «PSModule»
DEBUG: 00:00:00.4805539 Provider 'PowerShellGet' Initialized
DEBUG: 00:00:00.4805738 Using Package Provider PowerShellGet
DEBUG: 00:00:00.4879895 Calling New() : MethodName = 'GetFeatures'
DEBUG: 00:00:00.4880223 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.4880411 WarningAction: SilentlyContinue
DEBUG: 00:00:00.4890030 INVOKING PowerShell Fn Get-Feature with args  that has length 0
DEBUG: 00:00:00.4952624 In PowerShellGet Provider - 'Get-Feature'.
DEBUG: 00:00:00.5016417 Done calling powershell «Get-Feature» «PSModule»
DEBUG: 00:00:00.5017373 The provider 'PowerShellGet' is imported
DEBUG: 00:00:00.5028625 SUCCESS provider assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00 Calling New() : MethodName = 'ResolvePackageSources'

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): A
DEBUG: 00:00:00.0002753 Verbose: False
DEBUG: 00:00:00.0003005 Name: DockerPS-Dev
DEBUG: 00:00:00.0003143 ErrorVariable: ev
DEBUG: 00:00:00.0012583 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0087658 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0813602 Yielding packge source for DockerPS-Dev at location
https://ci.appveyor.com/nuget/docker-powershell-dev
DEBUG: 00:00:00.0853381 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.1070415 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.1070717 Verbose: False
DEBUG: 00:00:00.1070846 Name: DockerPS-Dev
DEBUG: 00:00:00.1070966 ErrorVariable: ev
DEBUG: 00:00:00.1079312 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.1169820 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.1380379 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.1411179 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.1411534 Verbose: False
DEBUG: 00:00:00.1411772 Name: DockerPS-Dev
DEBUG: 00:00:00.1412006 ErrorVariable: ev
DEBUG: 00:00:00.1419361 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.1424915 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.1444944 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:44.9711812 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:44.9720512 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:44.9727524 ProviderName: PowerShellGet
DEBUG: 00:00:44.9732779 Verbose: False
DEBUG: 00:00:44.9737914 Name: DockerPS-Dev
DEBUG: 00:00:44.9743591 ErrorVariable: ev
DEBUG: 00:00:44.9755180 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:44.9767028 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:45.0240795 Yielding packge source for DockerPS-Dev at location
https://ci.appveyor.com/nuget/docker-powershell-dev
DEBUG: 00:00:45.0250739 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:45.0289246 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:45.0296647 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:45.0306316 ProviderName: PowerShellGet
DEBUG: 00:00:45.0312756 Verbose: False
DEBUG: 00:00:45.0318829 Name: DockerPS-Dev
DEBUG: 00:00:45.0324729 ErrorVariable: ev
DEBUG: 00:00:45.0334685 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:45.0343717 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:45.0365960 Yielding packge source for DockerPS-Dev at location
https://ci.appveyor.com/nuget/docker-powershell-dev
DEBUG: 00:00:45.0381625 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0000002 Calling New() : MethodName = 'ResolvePackageSources'

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): A
DEBUG: 00:00:00.0000243 Verbose: True
DEBUG: 00:00:00.0000375 Debug: True
DEBUG: 00:00:00.0000489 Name: Docker
DEBUG: 00:00:00.0000604 Source: DockerPS-Dev
DEBUG: 00:00:00.0006618 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0011304 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0028653 Yielding packge source for DockerPS-Dev at location
https://ci.appveyor.com/nuget/docker-powershell-dev
DEBUG: 00:00:00.0034052 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0054717 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0054899 Verbose: True
DEBUG: 00:00:00.0055022 Debug: True
DEBUG: 00:00:00.0055136 Name: Docker
DEBUG: 00:00:00.0055251 Source: DockerPS-Dev
DEBUG: 00:00:00.0059814 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0063676 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0076353 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0096531 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0096728 Verbose: True
DEBUG: 00:00:00.0096851 Debug: True
DEBUG: 00:00:00.0096965 Name: Docker
DEBUG: 00:00:00.0097077 Source: DockerPS-Dev
DEBUG: 00:00:00.0102053 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0106346 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0125783 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0145832 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0146058 Verbose: True
DEBUG: 00:00:00.0146190 Debug: True
DEBUG: 00:00:00.0146325 Name: Docker
DEBUG: 00:00:00.0146439 Source: DockerPS-Dev
DEBUG: 00:00:00.0151263 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0156615 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0186826 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0207165 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0207356 Verbose: True
DEBUG: 00:00:00.0207482 Debug: True
DEBUG: 00:00:00.0207596 Name: Docker
DEBUG: 00:00:00.0207708 Source: DockerPS-Dev
DEBUG: 00:00:00.0212233 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0216409 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0233171 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:21.9227273 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:21.9236311 ProviderName: PowerShellGet
DEBUG: 00:00:21.9248364 Type: Module
DEBUG: 00:00:21.9260534 Source: DockerPS-Dev
DEBUG: 00:00:21.9273005 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:21.9282870 Debug: True
DEBUG: 00:00:21.9292087 Scope: AllUsers
DEBUG: 00:00:21.9301204 Verbose: True
DEBUG: 00:00:21.9316139 Name: Docker
DEBUG: 00:00:21.9327564 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:21.9337960 In PowerShellGet Provider - 'Resolve-PackageSource'.
VERBOSE: Repository details, Name = 'DockerPS-Dev', Location = 'https://ci.appveyor.com/nuget/docker-powershell-dev';
IsTrusted = 'False'; IsRegistered = 'True'.
DEBUG: 00:00:21.9502136 Yielding packge source for DockerPS-Dev at location
https://ci.appveyor.com/nuget/docker-powershell-dev
DEBUG: 00:00:21.9528675 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:21.9570560 Calling SearchForPackages. Name='Docker'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:21.9663124 PackageProvider::FindPackage with name Docker
DEBUG: 00:00:21.9668508 Calling SearchForPackages After Select 1
DEBUG: 00:00:21.9746538 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:21.9754409 ProviderName: PowerShellGet
DEBUG: 00:00:21.9765400 Type: Module
DEBUG: 00:00:21.9774517 Source: DockerPS-Dev
DEBUG: 00:00:21.9783675 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:21.9793781 Debug: True
DEBUG: 00:00:21.9802634 Scope: AllUsers
DEBUG: 00:00:21.9811285 Verbose: True
DEBUG: 00:00:21.9820458 Name: Docker
DEBUG: 00:00:21.9834715 INVOKING PowerShell Fn Find-Package with args System.String[], , ,  that has length 4
DEBUG: 00:00:22.0288592 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:22.0322706 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:22.0329453 OPTION: Type => Module
DEBUG: 00:00:22.0339746 OPTION: Source => DockerPS-Dev
DEBUG: 00:00:22.0353904 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:22.0362919 OPTION: Debug => True
DEBUG: 00:00:22.0391522 OPTION: Scope => AllUsers
DEBUG: 00:00:22.0400182 OPTION: Verbose => True
DEBUG: 00:00:22.0410100 OPTION: Name => Docker
VERBOSE: Using the specified source names : 'DockerPS-Dev'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://ci.appveyor.com/nuget/docker-powershell-dev' and PackageManagementProvider
is 'NuGet'.
DEBUG: 00:00:22.1023929 PackageProvider::FindPackage with name Docker
DEBUG: 00:00:22.1092719 Calling 'NuGet'::'FindPackage' - name='Docker', requiredVersion='',minimumVersion='',
maximumVersion='''.
DEBUG: 00:00:22.1117731 Iterating 'Docker'.
DEBUG: 00:00:22.1275921 Calling 'NuGetRequest'::'RegisteredPackageSources',
'C:\Users\hillr\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:22.1292384 Loading a configuration from file 'C:\Users\hillr\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:22.1304627 Loaded a configuration from file 'C:\Users\hillr\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:22.1342556 There are '4' registered sources in 'NuGet' provider.
DEBUG: 00:00:22.1358300 Source 'https://ci.appveyor.com/nuget/docker-powershell-dev' is not one of the registered
sources in 'NuGet' provider.
DEBUG: 00:00:23.1926271 Source 'https://ci.appveyor.com/nuget/docker-powershell-dev' is validated.
DEBUG: 00:00:23.1957195 Calling 'NuGetRequest'::'GetPackageById', 'Docker'.
DEBUG: 00:00:23.4172628 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Docker'.
DEBUG: 00:00:23.4185208 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://ci.appveyor.com/nuget/docker-powershell-dev/FindPackagesById()?id='Docker'' for
''.
DEBUG: 00:00:23.4296001 Downloading
'https://ci.appveyor.com/nuget/docker-powershell-dev/FindPackagesById()?id='Docker'&$skip=0&$top=40'.
DEBUG: 00:00:23.7431984 Completed downloading
'https://ci.appveyor.com/nuget/docker-powershell-dev/FindPackagesById()?id='Docker'&$skip=0&$top=40'.
DEBUG: 00:00:23.8178620 '27' packages recevied in the last request.
VERBOSE: Total package yield:'1' for the specified package 'Docker'.
DEBUG: 00:00:23.8546756 Completed iterating for 'Docker'.
DEBUG: 00:00:23.9992885 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:24.0196415 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:24.0203682 ProviderName: PowerShellGet
DEBUG: 00:00:24.0213517 Type: Module
DEBUG: 00:00:24.0221936 Source: DockerPS-Dev
DEBUG: 00:00:24.0232655 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:24.0242508 Debug: True
DEBUG: 00:00:24.0251390 Scope: AllUsers
DEBUG: 00:00:24.0260194 Verbose: True
DEBUG: 00:00:24.0269478 Name: Docker
DEBUG: 00:00:24.0280794 INVOKING PowerShell Fn Get-InstalledPackage with args Docker, 0.0.0.45, ,  that has length 4
DEBUG: 00:00:24.0309946 In PowerShellGet Provider - 'Get-InstalledPackage'.
DEBUG: 00:00:24.0316398 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:24.0325832 OPTION: Type => Module
DEBUG: 00:00:24.0334852 OPTION: Source => DockerPS-Dev
DEBUG: 00:00:24.0344350 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:24.0358787 OPTION: Debug => True
DEBUG: 00:00:24.0367520 OPTION: Scope => AllUsers
DEBUG: 00:00:24.0395575 OPTION: Verbose => True
DEBUG: 00:00:24.0407358 OPTION: Name => Docker
DEBUG: 00:00:24.1705557 PowerShell Script 'PSModule' Function 'Get-InstalledPackage' returns null.
DEBUG: 00:00:24.1715891 Done calling powershell «Get-InstalledPackage» «PSModule»

Confirm
Are you sure you want to perform this action?
Performing the operation "Install-Module" on target "Version '0.0.0.45' of module 'Docker'".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): A

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'DockerPS-Dev'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y
DEBUG: 00:00:47.1264640 Calling New() : MethodName = 'InstallPackage'
DEBUG: 00:00:47.1273009 ProviderName: PowerShellGet
DEBUG: 00:00:47.1283888 Type: Module
DEBUG: 00:00:47.1289824 Source: DockerPS-Dev
DEBUG: 00:00:47.1295478 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:47.1301835 Debug: True
DEBUG: 00:00:47.1307301 Scope: AllUsers
DEBUG: 00:00:47.1312480 Verbose: True
DEBUG: 00:00:47.1317680 Name: Docker
DEBUG: 00:00:47.1325459 INVOKING PowerShell Fn Install-Package with args
NuGet|Docker|0.0.0.45|https://ci.appveyor.com/nuget/docker-powershell-dev|Module that has length 1
DEBUG: 00:00:47.1335764 In PowerShellGet Provider - 'Install-Package'.
DEBUG: 00:00:47.1577756 In PowerShellGet Provider - 'Install-PackageUtility'.
DEBUG: 00:00:47.1843739 The FastPackageReference is
'NuGet|Docker|0.0.0.45|https://ci.appveyor.com/nuget/docker-powershell-dev|Module'.
DEBUG: 00:00:47.1919055 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:47.1928538 OPTION: Type => Module
DEBUG: 00:00:47.1937259 OPTION: Source => DockerPS-Dev
DEBUG: 00:00:47.1944846 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:47.1951576 OPTION: Debug => True
DEBUG: 00:00:47.1958136 OPTION: Scope => AllUsers
DEBUG: 00:00:47.1964628 OPTION: Verbose => True
DEBUG: 00:00:47.1970989 OPTION: Name => Docker
VERBOSE: The installation scope is specified to be 'AllUsers'.
VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'.
DEBUG: 00:00:47.2058515 ArtfactType is Module
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'Docker' with version '0.0.0.45' from the repository
'https://ci.appveyor.com/nuget/docker-powershell-dev'.
DEBUG: 00:00:47.2994707 Calling 'NuGet'::'InstallPackage',
'$aHR0cHM6Ly9jaS5hcHB2ZXlvci5jb20vbnVnZXQvZG9ja2VyLXBvd2Vyc2hlbGwtZGV2\RG9ja2Vy\MC4wLjAuNDU=\aHR0cHM6Ly9jaS5hcHB2ZXlvci
5jb20vbnVnZXQvZG9ja2VyLXBvd2Vyc2hlbGwtZGV2'.
DEBUG: 00:00:47.3010977 Calling 'NuGetRequest'::'GetPackageByFastpath',
'$aHR0cHM6Ly9jaS5hcHB2ZXlvci5jb20vbnVnZXQvZG9ja2VyLXBvd2Vyc2hlbGwtZGV2\RG9ja2Vy\MC4wLjAuNDU=\aHR0cHM6Ly9jaS5hcHB2ZXlvci
5jb20vbnVnZXQvZG9ja2VyLXBvd2Vyc2hlbGwtZGV2'.
DEBUG: 00:00:47.3040337 Calling 'NuGetRequest'::'ResolvePackageSource',
'https://ci.appveyor.com/nuget/docker-powershell-dev'.
DEBUG: 00:00:47.3056389 Calling 'NuGetRequest'::'FindRegisteredSource',
'https://ci.appveyor.com/nuget/docker-powershell-dev'.
DEBUG: 00:00:47.3091037 Source 'https://ci.appveyor.com/nuget/docker-powershell-dev' is not one of the registered
sources in 'NuGet' provider.
DEBUG: 00:00:48.0589832 Calling 'HttpClientPackageRepository'::'FindPackage', 'Docker'.
DEBUG: 00:00:48.0599342 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://ci.appveyor.com/nuget/docker-powershell-dev/FindPackagesById()?id='Docker'' for
''.
DEBUG: 00:00:48.0636690 Downloading
'https://ci.appveyor.com/nuget/docker-powershell-dev/FindPackagesById()?id='Docker'&$skip=0&$top=40'.
DEBUG: 00:00:48.3212031 Completed downloading
'https://ci.appveyor.com/nuget/docker-powershell-dev/FindPackagesById()?id='Docker'&$skip=0&$top=40'.
DEBUG: 00:00:48.3237585 '27' packages recevied in the last request.
DEBUG: 00:00:48.3257837 'Package version' is '0.0.0.45'.
DEBUG: 00:00:48.3269068 'Request's Destination' is 'C:\Users\hillr\AppData\Local\Temp\1199586893'.
DEBUG: 00:00:48.3298607 Calling 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:48.3349855 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:48.3434995 Calling 'NuGetClient'::'InstallPackage'.
VERBOSE: InstallPackage' - name='Docker', version='0.0.0.45',destination='C:\Users\hillr\AppData\Local\Temp\1199586893'
VERBOSE: DownloadPackage' - name='Docker',
version='0.0.0.45',destination='C:\Users\hillr\AppData\Local\Temp\1199586893\Docker\Docker.nupkg',
uri='https://ci.appveyor.com/nuget/docker-powershell-dev/'
VERBOSE: Downloading 'https://ci.appveyor.com/nuget/docker-powershell-dev/package/Docker/0.0.0.45'.
WARNING: Could not get response from query
'https://ci.appveyor.com/nuget/docker-powershell-dev/package/Docker/0.0.0.45'.

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"):
jianyunt commented 8 years ago

The NuGet 2.8.5.201 has some issues for some repo. Please upgrade the version of NuGet provider. You can try the following for the fix: install-packageprovider nuget -force import-packageprovider nuget -force -RequiredVersion 2.8.5.205 or re-launch powershell console

or manually delete the older version of nuget from C:\Program Files\PackageManagement\ProviderAssemblies and %localappdata%\PackageManagement\ProviderAssemblies

rkeithhill commented 8 years ago

@jianyunt Spot on! The module installs now with no errors. Thanks.

swernli commented 8 years ago

@rkeithhill Glad that resolved your issue! I'll add a note to the install instructions that will help others who run into this.