Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Bits Transfer failed when using WinRM to execute Install-ContainerImage, Find-Package #9

Description

@selvik

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

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


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions