megusta Posted April 8, 2022 Posted April 8, 2022 Hello, I've some trouble to install K3s on my OrangePi Zero2, somewhere I read it could be a kernel problem (not activated). I get following message. Can someone help me? Apr 08 20:39:15 oPi2 k3s[4055]: time="2022-04-08T20:39:15+02:00" level=info msg="Run: k3s kubectl" Apr 08 20:39:15 oPi2 k3s[4055]: time="2022-04-08T20:39:15+02:00" level=fatal msg="failed to find cpu cgroup (v2)" Apr 08 20:39:15 oPi2 systemd[1]: k3s.service: Main process exited, code=exited, status=1/FAILURE Apr 08 20:39:15 oPi2 systemd[1]: k3s.service: Failed with result 'exit-code'. Apr 08 20:39:15 oPi2 systemd[1]: Failed to start Lightweight Kubernetes. k3s.service - Lightweight Kubernetes Loaded: loaded (/etc/systemd/system/k3s.service; disabled; vendor preset: enabled) Drop-In: /etc/systemd/system/k3s.service.d └─dietpi.conf Active: failed (Result: exit-code) since Fri 2022-04-08 20:39:15 CEST; 2s ago Docs: https://k3s.io Process: 4051 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service (code=exited, status=0/SUCCESS) Process: 4053 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=1/FAILURE) Process: 4054 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS) Process: 4055 ExecStart=/usr/local/bin/k3s server (code=exited, status=1/FAILURE) Main PID: 4055 (code=exited, status=1/FAILURE) # uname -a Linux oPi2 4.9.255-sun50iw9 #1 SMP PREEMPT Tue Mar 1 23:28:34 UTC 2022 aarch64 GNU/Linux # cat os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" 0 Quote
gounthar Posted December 29, 2023 Posted December 29, 2023 I also have a cgroup problem, on a more recent version: lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Armbian 23.11.2 bookworm Release: 12 Codename: bookworm uname -a Linux k3s-control-plane 6.1.68-current-bcm2711 #1 SMP PREEMPT Sun Dec 17 11:40:38 UTC 2023 aarch64 GNU/Linux déc. 29 21:30:12 k3s-control-plane k3s[3689]: I1229 21:30:12.173705 3689 server.go:156] Version: v1.28.4+k3s2 déc. 29 21:30:12 k3s-control-plane k3s[3689]: I1229 21:30:12.174299 3689 server.go:158] "Golang settings" GOGC="" GOMAXPROCS="" GOTRACEBACK="" déc. 29 21:30:12 k3s-control-plane k3s[3689]: time="2023-12-29T21:30:12+01:00" level=info msg="To join server node to cluster: k3s server -s https://192.168.1.138:6443 -t ${SERVER_NO> déc. 29 21:30:12 k3s-control-plane k3s[3689]: time="2023-12-29T21:30:12+01:00" level=info msg="Agent node token is available at /var/lib/rancher/k3s/server/agent-token" déc. 29 21:30:12 k3s-control-plane k3s[3689]: time="2023-12-29T21:30:12+01:00" level=info msg="To join agent node to cluster: k3s agent -s https://192.168.1.138:6443 -t ${AGENT_NODE_> déc. 29 21:30:12 k3s-control-plane k3s[3689]: time="2023-12-29T21:30:12+01:00" level=info msg="Wrote kubeconfig /etc/rancher/k3s/k3s.yaml" déc. 29 21:30:12 k3s-control-plane k3s[3689]: time="2023-12-29T21:30:12+01:00" level=info msg="Run: k3s kubectl" déc. 29 21:30:12 k3s-control-plane k3s[3689]: time="2023-12-29T21:30:12+01:00" level=fatal msg="failed to find memory cgroup (v2)" déc. 29 21:30:12 k3s-control-plane systemd[1]: k3s.service: Main process exited, code=exited, status=1/FAILURE I have modified the /boot/firmware/config.txt and rebooted, but it was not enough... cat /boot/firmware/config.txt # For more options and information see # http://rptl.io/configtxt # Some settings may impact device functionality. See link above for details # For k3s (see https://github.com/k3s-io/k3s/issues/970#issuecomment-548409262) cgroup_memory=1 cgroup_enable=memory 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.