-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
An error is reported when you run the k3s etcd-snapshot save command. #11411
Comments
Don't use the full sever token when taking the snapshot. You defined the token as |
The issue here is that you didn't start the server with This is a duplicate of |
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | \
|
mkdir /etc/rancher/k3s |
mkdir /etc/rancher/k3s curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | \ INSTALL_K3S_MIRROR=cn |
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | |
[root@ecs-6a0f ~]# journalctl -xeu k3s.service |
How Do I Disable IPv6 Binding? A scenario that doesn't work: Row scenario: |
You've trimmed all your log lines to terminal width so I have no idea what the errors are here. Why can't it bind to the wildcard address? I don't think ipv6 is your problem. Are you trying to run multiple copies of k3s on the same host? It looks like the service is failing to start because you already have k3s running in a terminal somewhere. |
Environmental Info:
K3s Version:
[root@ecs-6a0f ~]# k3s --version
k3s version v1.30.6+k3s1 (1829eaa)
go version go1.22.8
Node(s) CPU architecture, OS, and Version:
[root@ecs-6a0f ~]# uname -m
aarch64
[root@ecs-6a0f ~]# uname -s
Linux
[root@ecs-6a0f ~]# lsb_release -a
LSB Version: n/a
Distributor ID: HuaweiCloudEulerOS
Description: Huawei Cloud EulerOS release 2.0 (West Lake)
Release: 2.0
Codename: WestLake
[root@ecs-6a0f ~]# uname -r
5.10.0-182.0.0.95.r1941_123.hce2.aarch64
[root@ecs-6a0f ~]# lscpu
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: HiSilicon
BIOS Vendor ID: QEMU
BIOS Model name: virt-6.2
Model: 0
Thread(s) per core: 1
Core(s) per socket: 8
Socket(s): 1
Stepping: 0x0
Frequency boost: disabled
CPU max MHz: 2900.0000
CPU min MHz: 2900.0000
BogoMIPS: 200.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp s
ha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp flagm2 frint svei8mm svef32mm svef64mm svebf16 i8mm bf16 dgh rng ec
v
Caches (sum of all):
L1d: 512 KiB (8 instances)
L1i: 512 KiB (8 instances)
L2: 4 MiB (8 instances)
L3: 32 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-7
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Reg file data sampling: Not affected
Retbleed: Not affected
Spec rstack overflow: Not affected
Spec store bypass: Vulnerable
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Not affected
Srbds: Not affected
Tsx async abort: Not affected
Cluster Configuration:
1 servers
Describe the bug:
[root@ecs-6a0f ~]# sudo k3s etcd-snapshot save --etcd-token=K107fc70c4b633ebb32eeb30daad73d8b5a50153405a16945a0da7bf13c7c3991ad::server:12345
FATA[0000] see server log for details: Unauthorized
Steps To Reproduce:
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh |
INSTALL_K3S_MIRROR=cn
INSTALL_K3S_SKIP_SELINUX_RPM=true
INSTALL_K3S_SELINUX_WARN=true
K3S_TOKEN=12345 sh -s -
--system-default-registry=registry.cn-hangzhou.aliyuncs.com
sudo k3s etcd-snapshot save --etcd-token=K107fc70c4b633ebb32eeb30daad73d8b5a50153405a16945a0da7bf13c7c3991ad::server:12345
Expected behavior:
The k3s etcd-snapshot save command should create an etcd snapshot without encountering errors.
Actual behavior:
As described above
Additional context / logs:
[root@ecs-6a0f ~]# sudo k3s etcd-snapshot save --etcd-token=K107fc70c4b633ebb32eeb30daad73d8b5a50153405a16945a0da7bf13c7c3991ad::server:12345
FATA[0000] see server log for details: Unauthorized
[root@ecs-6a0f ~]# sudo k3s etcd-snapshot save
FATA[0000] see server log for details: Unauthorized
The text was updated successfully, but these errors were encountered: