google-github-actions / setup-gcloud

A GitHub Action for installing and configuring the gcloud CLI.
https://cloud.google.com/sdk/docs
Apache License 2.0
1.71k stars 510 forks source link

Request timeout when downloading gcloud sdk #680

Closed tomorr-rexhepi closed 6 months ago

tomorr-rexhepi commented 7 months ago

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

sethvargo commented 7 months ago

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

tomorr-rexhepi commented 6 months ago

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

sethvargo commented 6 months ago

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

tomorr-rexhepi commented 6 months ago

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?

sethvargo commented 6 months ago

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

cctidal commented 4 months ago

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