Skip to content
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

k3s installation script failing #10578

Open
daemon1024 opened this issue Jul 26, 2024 · 16 comments
Open

k3s installation script failing #10578

daemon1024 opened this issue Jul 26, 2024 · 16 comments

Comments

@daemon1024
Copy link

daemon1024 commented Jul 26, 2024

Environmental Info:
K3s Version: latest/stable

Node(s) CPU architecture, OS, and Version:
*

Cluster Configuration:
*

Describe the bug:
We cannot use the convenience script to install k3s

Steps To Reproduce:

❯ curl -sfL https://get.k3s.io | sh -
[INFO]  Finding release for channel stable
[INFO]  Using stable as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/stable/sha256sum-amd64.txt
[ERROR]  Download failed

Expected behavior:
Installation Success

Actual behavior:
Installation Failure due to failure to download

Additional context / logs:
Tried removing sha verification still fails to download binary. Seems like Github has deprecated certain URLs.

https://update.k3s.io/v1-release/channels

The host is down for this website,
image

@Miaoxiang-philips
Copy link

Hi !
There seems to be something wrong with your DNS server setup. In my case, it is normal
image

@brandond
Copy link
Contributor

brandond commented Jul 26, 2024

Our backend channel servers appear to be experiencing intermittent issues. I've reached out to our infrastructure team.

@daemon1024
Copy link
Author

Hey Folks, It seems to be working as expected now.

@brandond thanks for forwarding the issue.

@Miaoxiang-philips the issue was happening across machine and even in our Github CI runners 😅 Our runners are now running as expected tho.

@brandond
Copy link
Contributor

Reopening to pin

@brandond brandond pinned this issue Jul 30, 2024
@brandond brandond reopened this Jul 30, 2024
@dihmeetree
Copy link

Yeah also seeing issues downloading the SHA256 release file as well with Kube-Hetzner :(

module.kube-hetzner.null_resource.first_control_plane (remote-exec): [INFO]  Using latest as release
module.kube-hetzner.null_resource.first_control_plane (remote-exec): [INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/latest/sha256sum-amd64.txt
module.kube-hetzner.null_resource.first_control_plane (remote-exec): [ERROR]  Download failed

@brandond
Copy link
Contributor

We could probably enhance the install script to be a little more resilient to channel server outages.

@brandond
Copy link
Contributor

brandond commented Jul 30, 2024

Just to share a little bit about what this looks like on our side - this seems to be triggered by an anomalous use pattern several orders of magnitude above normal:

sudden influx from a usual 50k a min to a spike over 8mil a min and it stayed around 1-1.5 mil for several hours

image

@sailorbob134280
Copy link

sailorbob134280 commented Jul 30, 2024

Currently seeing this as well. It sounds like this is something expected to clear up soon? Or is this something you need help/logs to debug? Happy to provide assistance if I can.

As soon as I post this, I'm able to reach it again.

@sharadregoti
Copy link

I am also facing this issue.

@Aias00
Copy link

Aias00 commented Jul 30, 2024

i have done this by passing the version : curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.29.6+k3s2 K3S_KUBECONFIG_MODE=777 sh -

@mikeschinkel
Copy link

mikeschinkel commented Aug 19, 2024

I am also experiencing this issue.

i have done this by passing the version : curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.30.3+k3s1 K3S_KUBECONFIG_MODE=777 sh -

However, I was able to work around it thanks to @Aias00's suggestion.

@ilya-devops-bandana-casino

Hello @brandond now when I want install cluster - I have download error hashsoum - https://github.com/k3s-io/k3s/releases/download/v1.29/sha256sum-amd64.txt .Could you resolve that?

@alexlianides
Copy link

Hello @brandond now when I want install cluster - I have download error hashsoum - https://github.com/k3s-io/k3s/releases/download/v1.29/sha256sum-amd64.txt .Could you resolve that?

I am experiencing the same issue on v1.29.3+k3s1 install k3s script

sudo bash k3s_install.sh --write-kubeconfig-mode "0644" --docker"

[INFO]  Finding release for channel stable
[INFO]  Using stable as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/stable/sha256sum-amd64.txt
[ERROR]  Download failed

@mikeschinkel
Copy link

@alexlianides — I updated my comment. I previously copied the text from @Aias00's comment but after seeing yours realized that was not exactly what is working for me.

This is working for me right now:

curl -sfL https://get.k3s.io/ | INSTALL_K3S_VERSION=v1.30.3+k3s1 K3S_KUBECONFIG_MODE=777 sh -

@alexlianides
Copy link

@alexlianides — I updated my comment. I previously copied the text from @Aias00's comment but after seeing yours realized that was not exactly what is working for me.

This is working for me right now:

curl -sfL https://get.k3s.io/ | INSTALL_K3S_VERSION=v1.30.3+k3s1 K3S_KUBECONFIG_MODE=777 sh -

@mikeschinkel while this fix does work, this fix introduces security issues due to the open permissions it sets to the k3s cluster. Thank you for the tip though.

@brandond is the current issue still due to a server availability issue? or is this a new error?

@brandond
Copy link
Contributor

brandond commented Aug 19, 2024

It's the same thing. When it's resolved we'll close and unpin the issue. I don't have any additional information to provide.

Note that only the INSTALL_K3S_VERSION argument is necessary to work around the channel server outage. You can reference the docs for more information on passing args to the install script: https://docs.k3s.io/reference/env-variables

I'm going to lock this issue to prevent additional off-topic discussion but leave it open; if there are updates I will provide them here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

10 participants