I am trying to create vhd image for windows2019 where the pipeline fails at Install-KubernetesTools.ps1 script execution with below error.
==> vhd: Provisioning with powershell script: /home/vsts/work/1/s/virtual-environments/images/win/scripts/Installers/Install-KubernetesTools.ps1
vhd: Install Kind
vhd: Downloading package from: https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-windows-amd64 https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-windows-amd64.sha256sum to path C:\ProgramData\kind\kind.exe .
vhd: There is an error encounterd after 0.33 seconds during package downloading:
vhd: Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: The connection was closed unexpectedly."
vhd: Waiting 30 seconds before retrying. Retries left: 19
vhd: Downloading package from: https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-windows-amd64 https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-windows-amd64.sha256sum to path C:\ProgramData\kind\kind.exe .
vhd: There is an error encounterd after 0.05 seconds during package downloading:
vhd: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
Once all the retries are exhausted, the pipeline simply fails. I have tried to run on Self Hosted and Microsoft Hosted Agents (both Linux) to eliminate possibility of any issue with my Self Hosted agents.
Update: Failing on Windows Microsoft Hosted Agents too
==> vhd: Provisioning with powershell script: D:\a\1\s\virtual-environments\images\win/scripts/Installers/Install-KubernetesTools.ps1
vhd: Install Kind
vhd: Downloading package from: https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-windows-amd64 https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-windows-amd64.sha256sum to path C:\ProgramData\kind\kind.exe .
vhd: There is an error encounterd after 0.31 seconds during package downloading:
vhd: Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: The connection was closed unexpectedly."
vhd: Waiting 30 seconds before retrying. Retries left: 19
vhd: Downloading package from: https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-windows-amd64 https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-windows-amd64.sha256sum to path C:\ProgramData\kind\kind.exe .
vhd: There is an error encounterd after 0.05 seconds during package downloading:
vhd: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
vhd: Waiting 30 seconds before retrying. Retries left: 18
Any idea what is causing this? Thanks in advance for the guidance.
@YannickRe
I am trying to create vhd image for
windows2019
where the pipeline fails atInstall-KubernetesTools.ps1
script execution with below error.Once all the retries are exhausted, the pipeline simply fails. I have tried to run on Self Hosted and Microsoft Hosted Agents (both Linux) to eliminate possibility of any issue with my Self Hosted agents.
Update: Failing on Windows Microsoft Hosted Agents too
Any idea what is causing this? Thanks in advance for the guidance. @YannickRe