-
Notifications
You must be signed in to change notification settings - Fork 9
Bits Transfer failed when using WinRM to execute Install-ContainerImage, Find-Package #9
Description
Hi All,
Would you know why these commands (Find-Package, Install-ContanerImage) fail when executed via WinRM on a remote TP5 VM on Azure?
@jayshah-msft, @KrishnaV-MSFT : Any hints would greatly help us troubleshoot this. Thank you very much.
-Selvi
This is the error I see for Install-ContainerImage:
powershell -command "& {&'Install-ContainerImage' -Name WindowsServerCore -Version 10.0.14300.1010}"
WARNING: Cannot bind argument to parameter 'fastPackageReference' because it is an empty string.
WARNING: The property 'version' cannot be found on this object. Verify that the property exists.
WARNING: The property 'Name' cannot be found on this object. Verify that the property exists.
WARNING: Cannot find path
'C:\Users\ubuntu\AppData\Local\ContainerImage\ContainerImageGallery_ContainerImageSearchIndex.txt' because it does not
exist.
WARNING: Cannot find drive. A drive with the name 'CleanUp' does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: ExitCode = -2147023651
WARNING: Based on customer feedback, we are updating the Containers PowerShell module to better align with Docker. As
part of that some cmdlet and parameter names may change in future releases. To learn more about these changes as well
as to join in the design process or provide usage feedback please refer to http://aka.ms/windowscontainers/powershell
, stderr: PackageManagement\Save-Package : No match was found for the specified search criteria and package name
'WindowsServerCore'. Try Get-PackageSource to see all available registered package sources.
At C:\Program Files\WindowsPowerShell\Modules\ContainerImage\0.6.4.0\ContainerImage.psm1:492 char:23
- ... $downloadOutput = PackageManagement\Save-Package @PSBoundParameters
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : ObjectNotFound: (Microsoft.Power...ets.SavePackage:SavePackage) [Save-Package], Exceptio
n - FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.SavePackage
- CategoryInfo : ObjectNotFound: (Microsoft.Power...ets.SavePackage:SavePackage) [Save-Package], Exceptio
The property 'Name' cannot be found on this object. Verify that the property exists.
At C:\Program Files\WindowsPowerShell\Modules\ContainerImage\0.6.4.0\ContainerImage.psm1:494 char:5
-
$Destination = GenerateFullPath -Location $Location ` -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
- FullyQualifiedErrorId : PropertyNotFoundStrict
Install-ContainerOSImage : Cannot bind argument to parameter 'WimPath' because it is an empty string.
At C:\Program Files\WindowsPowerShell\Modules\ContainerImage\0.6.4.0\ContainerImage.psm1:502 char:39
-
Install-ContainerOSImage -WimPath $Destination ` -
~~~~~~~~~~~~- CategoryInfo : InvalidData: (:) [Install-ContainerOSImage], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Install-ContainerOSImage
Remove-Item : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\WindowsPowerShell\Modules\ContainerImage\0.6.4.0\ContainerImage.psm1:512 char:8
-
rm $Destination -
~~~~~~~~~~~~- CategoryInfo : InvalidData: (:) [Remove-Item], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RemoveItemCommand
Error for Find-Package
powershell -command "& {&'Find-Package' –provider ContainerImage}"
WARNING: Cannot bind argument to parameter 'fastPackageReference' because it is an empty string.
WARNING: The property 'version' cannot be found on this object. Verify that the property exists.
WARNING: The property 'Name' cannot be found on this object. Verify that the property exists.
WARNING: Cannot find path
'C:\Users\ubuntu\AppData\Local\ContainerImage\ContainerImageGallery_ContainerImageSearchIndex.txt' because it does not
exist.
WARNING: Cannot find drive. A drive with the name 'CleanUp' does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: ExitCode = -2147023651