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

installer fails due to hash file for stable release missing #10608

Closed
banthalabs opened this issue Jul 30, 2024 · 1 comment
Closed

installer fails due to hash file for stable release missing #10608

banthalabs opened this issue Jul 30, 2024 · 1 comment

Comments

@banthalabs
Copy link

banthalabs commented Jul 30, 2024

Environmental Info:
K3s Version:

N/A unable to install

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

root@k3s:~# uname -a
Linux k3s 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Cluster Configuration:

N/A unable to install

Describe the bug:

On an lxd ubuntu 24.04 vm instance, running the command curl -sfL https://get.k3s.io | sh - fails due to the hash file https://github.com/k3s-io/k3s/releases/download/stable/sha256sum-amd64.txt not being found

Steps To Reproduce:

sudo snap install lxd
sudo lxd init
lxc launch ubuntu:24.04 k3s --vm -c limits.cpu=4 -c limits.memory=4GiB
lxc shell k3s
curl -sfL https://get.k3s.io | sh -

Expected behavior:

Install script should be able to download hash files and complete install
curl -sfL https://get.k3s.io | sh -
[INFO] Finding release for channel stable
[INFO] Using v1.29.6+k3s2 as release
[INFO] Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.29.6+k3s2/sha256sum-amd64.txt
[INFO] Skipping binary downloaded, installed k3s matches hash
[INFO] Skipping installation of SELinux RPM
[INFO] Skipping /usr/local/bin/kubectl symlink to k3s, command exists in PATH at /snap/bin/kubectl
[INFO] Skipping /usr/local/bin/crictl symlink to k3s, already exists
[INFO] Skipping /usr/local/bin/ctr symlink to k3s, already exists
[INFO] Creating killall script /usr/local/bin/k3s-killall.sh
[INFO] Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO] env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO] systemd: Creating service file /etc/systemd/system/k3s.service
[INFO] systemd: Enabling k3s unit
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service.
[INFO] No change detected so skipping service start

Actual behavior:

install script tries to download from stable but the file cannot be found
root@k3s:~# 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

Additional context / logs:

Doing a curl on the url returns not found
root@k3s:~# curl https://github.com/k3s-io/k3s/releases/download/stable/sha256sum-amd64.txt
Not Found

When running the installer on a ubuntu 24.04 desktop, the installer selects v1.29.6+k3s2 as the release and is able to download the hash files. However, when running on a ubuntu 24.04 lxd vm, the install selects stable as the release instead.

@brandond
Copy link
Member

Duplicate of #10578

@brandond brandond marked this as a duplicate of #10578 Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants