actions / runner-images

GitHub Actions runner images
MIT License
10.28k stars 3.09k forks source link

Cloud Foundry CLI download endpoint now returns 404 for Windows 2019 builds #11091

Open angaaruriakhil opened 1 day ago

angaaruriakhil commented 1 day ago

Description

When running the following script as part of a Windows 2019 build, https://github.com/actions/runner-images/blob/main/images/windows/scripts/build/Install-CloudFoundryCli.ps1, the endpoint is no longer accessible and returns a 404 not found error.

I have tried in my web browser on my personal machine as well and the endpoint no longer returns a binary.

This makes windows 2019 builds fail.

==> azure-arm.build_vhd: Provisioning with powershell script: /agent/_work/1/s/runner-images/images/windows/scripts/build/Install-CloudFoundryCli.ps1
    azure-arm.build_vhd: Downloading package from https://packages.cloudfoundry.org/stable?release=windows64-exe&source=github to C:\Users\packer\AppData\Local\Temp\stablerelease=windows64-exe&source=github...
    azure-arm.build_vhd: WARNING: Package download failed in 0.89 seconds
    azure-arm.build_vhd: WARNING: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
==> azure-arm.build_vhd: Package download failed after 0.92 seconds
    azure-arm.build_vhd: WARNING: Request returned 404 Not Found. Aborting download.
==> azure-arm.build_vhd: At C:\Program Files\WindowsPowerShell\Modules\ImageHelpers\InstallHelpers.ps1:204 char:13
==> azure-arm.build_vhd: +             throw "Package download failed after $totalSeconds second ...
==> azure-arm.build_vhd: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm.build_vhd:     + CategoryInfo          : OperationStopped: (Package downloa...er 0.92 seconds:String) [], RuntimeException
==> azure-arm.build_vhd:     + FullyQualifiedErrorId : Package download failed after 0.92 seconds
==> azure-arm.build_vhd:
==> azure-arm.build_vhd: Provisioning step had errors: Running the cleanup provisioner, if present...

Platforms affected

Runner images affected

Image version and build link

We are using self hosted VMSS

Is it regression?

Yes

Expected behavior

Script should download the cloud foundry exe successfully

Actual behavior

404 Not Found

Repro steps

Clone down runner-images repo and use it to run a build of Windows 2019 with Hashicorp Packer

vidyasagarnimmagaddi commented 22 hours ago

Hi @angaaruriakhil There is an open issue in the repo for the same, We will revert after analysis. regards