google-github-actions / setup-gcloud

A GitHub Action for installing and configuring the gcloud CLI.

Home Page:https://cloud.google.com/sdk/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request timeout when downloading gcloud sdk

tomorr-rexhepi opened this issue · comments

TL;DR

There is a request timeout when attempting to download gcloud sdk.

Expected behavior

gcloud sdk to download

Observed behavior

The request timed out while downloading: /dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-463.0.0-linux-x86_64.tar.gz

Action YAML

name: 'REDACTED'
description: 'REDACTED'
runs:
  using: "composite"
  steps:
    - id: setup-gcloud
      uses: google-github-actions/setup-gcloud@v2.1.0

Log output

##[debug]resolving latest version
##[debug]resolved latest version to 463.0.0
##[debug]isExplicit: 463.0.0
##[debug]explicit? true
##[debug]checking cache: /opt/hostedtoolcache/gcloud/463.0.0/x64
##[debug]not found
##[debug]no version of gcloud matching "463.0.0" is installed
##[debug]isExplicit: 463.0.0
##[debug]explicit? true
##[debug]Downloading https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-463.0.0-linux-x86_64.tar.gz
##[debug]Destination /runner/_work/_temp/e79beb02-7b67-[42](REDACTED)8c-b3d6-a0f42cf88013
Request timeout: /dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-[46](REDACTED)3.0.0-linux-x86_64.tar.gz
Waiting 14 seconds before trying again
Request timeout: /dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-463.0.0-linux-x86_64.tar.gz
Waiting 17 seconds before trying again
Error: google-github-actions/setup-gcloud failed with: request timeout: /dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-463.0.0-linux-x86_64.tar.gz

Additional information

No response

Hi @tomorr-rexhepi - is this happening consistently? Are you using GitHub-managed runners or self-hosted runners?

Hi @sethvargo - it's happening consistently and we are using self-hosted runners.

Given there are no other reports, this is most likely a proxy or egress firewall configuration on your self-hosted runners.

Perhaps, but the older versions were working fine - the ones using node16. This error only occurs with the v2 versions. Have there been any changes in v2 that might affect proxy or firewall configurations?

Not unless there were core Node.js changes to proxy configurations between those versions.