Thanks to visit codestin.com
Credit goes to github.com

Skip to content

install.sh script intermittently fails when trying to fetch releases from GitHub API #15851

Closed
@Parkreiner

Description

@Parkreiner

Opening this issue on behalf of a customer.

Issue

When a GitHub workflow tries to download Coder, the workflow sometimes fails. The workflow is able to download the install.sh script, but line 106 of the script breaks because it tries to download an invalid release.

Error logs

All IP addresses have been scrubbed from the output.

2024-12-11T00:10:01.7299771Z --2024-12-11 00:10:01-- https://coder.com/install.sh
2024-12-11T00:10:01.7465128Z Resolving coder.com (coder.com)... <series of IP addresses>, ...
2024-12-11T00:10:01.7556746Z Connecting to coder.com (coder.com)|<IP address>... connected.
2024-12-11T00:10:01.8635575Z HTTP request sent, awaiting response... 302 Found
2024-12-11T00:10:01.8636503Z Location: https://raw.githubusercontent.com/coder/coder/main/install.sh [following]
2024-12-11T00:10:01.8637504Z --2024-12-11 00:10:01-- https://raw.githubusercontent.com/coder/coder/main/install.sh
2024-12-11T00:10:01.8702735Z Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP addresses>
2024-12-11T00:10:01.8808504Z Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP address>... connected.
2024-12-11T00:10:01.9163343Z HTTP request sent, awaiting response... 200 OK
2024-12-11T00:10:01.9164016Z Length: 20724 (20K) [text/plain]
2024-12-11T00:10:01.9164666Z Saving to: 'STDOUT'
2024-12-11T00:10:01.9164949Z 
2024-12-11T00:10:01.9172588Z 0K .......... .......... 100% 23.7M=0.001s
2024-12-11T00:10:01.9173029Z 
2024-12-11T00:10:01.9173369Z 2024-12-11 00:10:01 (23.7 MB/s) - written to stdout [20724/20724]
2024-12-11T00:10:01.9173795Z 
2024-12-11T00:10:02.5000981Z curl: (22) The requested URL returned error: 403
2024-12-11T00:10:02.5036592Z Ubuntu 22.04.5 LTS
2024-12-11T00:10:02.5053521Z Installing v of the amd64 deb package from GitHub.
2024-12-11T00:10:02.5064357Z 
2024-12-11T00:10:02.5077135Z + mkdir -p ~/.cache/coder
2024-12-11T00:10:02.5104499Z + curl -#fL -o ~/.cache/coder/coder__amd64.deb.incomplete -C - https://github.com/coder/coder/releases/download/v/coder%5F%5Flinux%5Famd64.deb
2024-12-11T00:10:02.7228897Z #=#=# 
2024-12-11T00:10:02.7229418Z curl: (22) The requested URL returned error: 404
2024-12-11T00:10:02.7229715Z 
2024-12-11T00:10:02.7265228Z ##[error]Process completed with exit code 22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    s2Broken use cases or features (with a workaround). Only humans may set this.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions