OneGet / MicrosoftDockerProvider

Provider to search, save and install Docker
Other
133 stars 55 forks source link

[ISSUE] Windows 2016 with docker will not install due to failed BITS transfer #33

Closed billykwooten closed 4 years ago

billykwooten commented 6 years ago

Replicate Issue

Install-Module -Name DockerMsftProvider -Force
Unregister-PackageSource -ProviderName DockerMsftProvider -Name DockerDefault -Erroraction Ignore
Register-PackageSource -ProviderName DockerMsftProvider -Name Docker -Location https://download.docker.com/components/engine/windows-server/index.json
Install-Package -Name docker -ProviderName DockerMsftProvider -Source Docker -Force

Environment

Windows Server 2016 VMWare ESXi 6.5

Issue Code Block

PS C:\Program Files\docker> Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose
-Update
VERBOSE: Importing package provider 'DockerMsftProvider'.
VERBOSE: Using the provider 'DockerMsftProvider' for searching packages.
VERBOSE: Download size: 0.01MB
VERBOSE: Free space on the drive: 24860.9MB
VERBOSE: Downloading https://download.docker.com/components/engine/windows-server/index.json to
C:\Users\ADMINI~1\AppData\Local\Temp\1\DockerMsftProvider\Docker_DockerSearchIndex.json
VERBOSE: About to download
WARNING: Cannot find path
'C:\Users\ADMINI~1\AppData\Local\Temp\1\DockerMsftProvider\Docker_DockerSearchIndex.json' because
it does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: BG_JOB_STATE_TRANSIENT_ERROR ExitCode = 0
jclagache commented 6 years ago

Should be fixed whith #29 A temporary solution is to add Enter-PSSession -ComputerName $env:COMPUTERNAME at the beginning of the script (see this comment).

enderjbr commented 6 years ago

BITS Transfer has now been removed from the provider. If you install DockerMsftProvider from the PowerShell Gallery, you should get version 1.0.0.3 which has this fix. You can also use Update-Module -Name "DockerMsftProvider" to update your provider.

tomasquith commented 6 years ago

@enderb-ms Sorry to jump in here, it seems I'm getting an issue related to this:

screen shot 2018-02-22 at 10 33 47

Am I doing anything wrong given this provider fix?

Skimo0412 commented 6 years ago

I'm seeing the same. I installed version 1.0.0.3 yesterday. nstall-Package : The specified module 'C:\Program Files\WindowsPowerShell\Modules\DockerMsftProvider\1.0.0.3\SaveHTTPItemUsingBITS.psm1' was not loaded because no valid module file was found in any module directory.

enderjbr commented 6 years ago

@tomasquith and @Skimo0412 thank you for reporting those. That error has been fixed with PR #38 and the fix has been pushed to the PS Gallery

tomasquith commented 6 years ago

Thanks @enderb-ms, I managed to prove this on Friday - cheers for the quick fix! :)