setup-gcloud icon indicating copy to clipboard operation
setup-gcloud copied to clipboard

Request timeout when downloading gcloud sdk

Open tomorr-rexhepi opened this issue 1 year ago • 3 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/[email protected]

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

tomorr-rexhepi avatar Feb 16 '24 13:02 tomorr-rexhepi

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

sethvargo avatar Feb 16 '24 14:02 sethvargo

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

tomorr-rexhepi avatar Feb 16 '24 17:02 tomorr-rexhepi

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

sethvargo avatar Feb 16 '24 20:02 sethvargo

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?

tomorr-rexhepi avatar Feb 19 '24 10:02 tomorr-rexhepi

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

sethvargo avatar Feb 19 '24 20:02 sethvargo

We've noticed this issue on our end a couple of times as well. It just randomly times out.

It's not very consistent. It works most of the time

We are using self hosted runners. EDIT: We've seen it on both self hosted and GitHub managed runners

cctidal avatar Apr 26 '24 16:04 cctidal