DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
214 stars 43 forks source link

[BUG] Unexpected 404 using CLI install script #371

Closed GuiSim closed 1 year ago

GuiSim commented 1 year ago

Describe the bug Doppler CLI failed in GitHub Actions

To Reproduce We've encountered this issue twice today. Retrying the GHA fixes it. It seems random.

Run dopplerhq/cli-action@v1
DEBUG: Detected OS 'linux'
Error: Command failed: /home/runner/work/_temp/b7f2[4](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:5)b0d-12a2-4142-9df9-2af7cfe41004 --debug --no-package-manager --install-path /home/runner/work/app/app/bin
DEBUG: Detected OS 'linux'
DEBUG: Detected architecture 'amd64'
DEBUG: Detected format 'tar'
DEBUG: Using /usr/bin/gpg for signature verification
DEBUG: Using temp directory /home/runner/.tmp.LXu390YX
Downloading Doppler CLI
DEBUG: Using /usr/bin/curl for requests
DEBUG: Downloading binary from https://cli.doppler.com/download?os=linux&arch=amd64&format=tar
DEBUG: Request failed with http status 404
DEBUG: Response headers:
DEBUG: HTTP/2 302 
date: Mon, 27 Feb 2023 20:12:48 GMT
content-type: text/plain;charset=UTF-8
content-length: 0
location: https://github.com/DopplerHQ/cli/releases/download/3.[5](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:6)[6](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:7).0/doppler_3.56.0_linux_amd64.tar.gz
cache-control: no-cache, no-store, max-age=0, must-revalidate
x-cli-version: v3.56.0
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
server: cloudflare
cf-ray: [7](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:8)a0393cf2ede2430-IAD
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

HTTP/2 302 
server: GitHub.com
date: Mon, 27 Feb 2023 20:11:32 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With
location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/212754358/7c1a3434-7715-4bb6-9db3-c9f958e234c7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230227%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230227T201132Z&X-Amz-Expires=300&X-Amz-Signature=078492b74ee387f6caa4d76d1909112659577e1f1504d2948be159eab6545a3d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=212754358&response-content-disposition=attachment%3B%20filename%3Ddoppler_3.56.0_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream
cache-control: no-cache
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events *.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com objects-origin.githubusercontent.com secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/
content-length: 0
x-github-request-id: 8018:1074:6747CCE:98144AF:63FD0EC0

HTTP/2 404 
x-powered-by: Next.js
etag: "vhz11azbu12qy"
content-type: text/html; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: BFD2:58C3:290D9D:1D4C740:63FD0E7B
accept-ranges: bytes
date: Mon, 27 Feb 2023 20:12:48 GMT
via: 1.1 varnish
age: 67
x-served-by: cache-iad-kiad7000113-IAD
x-cache: HIT
x-cache-hits: 1
x-timer: S1677528768.153504,VS0,VE1
vary: Accept-Encoding
content-length: 3562

404

ERROR: Binary download failed with status code 404.

Please report this issue:
https://github.com/DopplerHQ/cli/issues/new?template=bug_report.md&title=[BUG]%20Unexpected%20404%20using%20CLI%20install%20script
DEBUG: Removing temp directory

DEBUG: Detected architecture 'amd64'
DEBUG: Detected format 'tar'
DEBUG: Using /usr/bin/gpg for signature verification
DEBUG: Using temp directory /home/runner/.tmp.LXu390YX
Downloading Doppler CLI
DEBUG: Using /usr/bin/curl for requests
DEBUG: Downloading binary from https://cli.doppler.com/download?os=linux&arch=amd64&format=tar
DEBUG: Request failed with http status 404
DEBUG: Response headers:
DEBUG: HTTP/2 302 
date: Mon, 27 Feb 2023 20:12:4[8](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:9) GMT
content-type: text/plain;charset=UTF-8
content-length: 0
location: https://github.com/DopplerHQ/cli/releases/download/3.56.0/doppler_3.56.0_linux_amd64.tar.gz
cache-control: no-cache, no-store, max-age=0, must-revalidate
x-cli-version: v3.56.0
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
server: cloudflare
cf-ray: 7a03[9](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:10)3cf2ede2430-IAD
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

HTTP/2 302 
server: GitHub.com
date: Mon, 27 Feb 2023 20:11:32 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With
location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/212754358/7c1a3434-7715-4bb6-9db3-c9f958e234c7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230227%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230227T201132Z&X-Amz-Expires=300&X-Amz-Signature=078492b74ee387f6caa4d76d1909112659577e1f1504d2948be159eab6545a3d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=212754358&response-content-disposition=attachment%3B%20filename%3Ddoppler_3.56.0_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream
cache-control: no-cache
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-62[10](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:11)df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events *.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com objects-origin.githubusercontent.com secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/
content-length: 0
x-github-request-id: 8018:1074:6747CCE:98144AF:63FD0EC0

HTTP/2 404 
x-powered-by: Next.js
etag: "vhz[11](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:12)azbu[12](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:13)qy"
content-type: text/html; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: BFD2:58C3:290D9D:1D4C740:63FD0E7B
accept-ranges: bytes
date: Mon, 27 Feb 2023 20:12:48 GMT
via: 1.1 varnish
age: 67
x-served-by: cache-iad-kiad70001[13](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:14)-IAD
x-cache: HIT
x-cache-hits: 1
x-timer: S1677528768.[15](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:16)3504,VS0,VE1
vary: Accept-Encoding
content-length: 3562

404

ERROR: Binary download failed with status code 404.

Please report this issue:
https://github.com/DopplerHQ/cli/issues/new?template=bug_report.md&title=[BUG]%[20](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:21)Unexpected%20[40](https://github.com/tolahq/app/actions/runs/4286420974/jobs/7465970770#step:4:41)4%20using%20CLI%20install%20script
DEBUG: Removing temp directory

Expected behavior Doppler CLI is successfully installed

Piccirello commented 1 year ago

This appears to have been caused by an intermittent GitHub caching issue and should now be resolved.