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

When I do compile k3s-arm64 binary it doesn't work #10915

Closed
xrwang8 opened this issue Sep 19, 2024 · 5 comments
Closed

When I do compile k3s-arm64 binary it doesn't work #10915

xrwang8 opened this issue Sep 19, 2024 · 5 comments

Comments

@xrwang8
Copy link

xrwang8 commented Sep 19, 2024

When I compile the k3s binary by myself,

build k3s

./scripts/download
./scripts/package

I get the binaries for k3s-arm64 from dist/artifacts/k3s-arm64,

deploy k3s

chmod +x k3s
cp k3s /usr/local/bin/
curl -o install.sh https://get.k3s.io
export INSTALL_K3S_SKIP_DOWNLOAD=true
./install.sh

go version go1.22.2 linux/arm64
k3s tag :v1.30.1+k3s1

Environmental Info:
K3s Version: v1.30.1+k3s1

image

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

Cluster Configuration:

Describe the bug:

Steps To Reproduce:

  • Installed K3s:

Expected behavior:

Actual behavior:

Additional context / logs:

@dereknola
Copy link
Contributor

dereknola commented Sep 19, 2024

Move your k3s binary to /usr/local/bin and rename it k3s.

Your failures are unrelated to the K3s install script. You need to post the K3s logs, not just the output from kubectl.

@dereknola
Copy link
Contributor

Also, any reason why you are compiling K3s yourself? We publish arm64 releases.

@brandond
Copy link
Contributor

It looks like it's starting, but runc is failing to start containers for some reason... what exactly did you change in k3s that caused you to need to rebuild it? I don't see that there's anything wrong with how you're installing or running it, so I suspect you've broken something else.

@xrwang8
Copy link
Author

xrwang8 commented Sep 20, 2024

It looks like it's starting, but runc is failing to start containers for some reason... what exactly did you change in k3s that caused you to need to rebuild it? I don't see that there's anything wrong with how you're installing or running it, so I suspect you've broken something else.

I didn't modify anything,only compile

@brandond
Copy link
Contributor

... why? Does k3s work properly if you download one of the binaries from our release page? If it does, then the problem is your build. If it does not, then the problem is your node.

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

No branches or pull requests

3 participants