Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Parkreiner opened this issue Dec 12, 2024 · 0 comments · Fixed by #15956
Closed
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this.

Comments

@Parkreiner
Copy link
Member

Parkreiner commented Dec 12, 2024

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.
@coder-labeler coder-labeler bot added bug risk Prone to bugs needs-triage Issue that require triage labels Dec 12, 2024
@matifali matifali added s2 Broken use cases or features (with a workaround). Only humans may set this. and removed bug risk Prone to bugs needs-triage Issue that require triage labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants