Comments (1)
##Environment Details
Reproduced using VERSION=v1.27.12+k3s1
Validated using COMMIT=9176d7f68aa2de7c2d83d921d6e09a7ee7b2d9f0
Infrastructure
- Cloud
Node(s) CPU architecture, OS, and version:
Linux 5.14.21-150500.53-default x86_64 GNU/Linux
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
Config.yaml:
node-external-ip: 18.16.115.15
token: YOUR_TOKEN_HERE
write-kubeconfig-mode: 644
debug: true
selinux: true
protect-kernel-defaults: true
Reproduction
$ curl https://get.k3s.io --output install-"k3s".sh
$ sudo chmod +x install-"k3s".sh
$ sudo groupadd --system etcd && sudo useradd -s /sbin/nologin --system -g etcd etcd
$ sudo modprobe ip_vs_rr
$ sudo modprobe ip_vs_wrr
$ sudo modprobe ip_vs_sh
$ sudo printf "on_oovm.panic_on_oom=0 \nvm.overcommit_memory=1 \nkernel.panic=10 \nkernel.panic_ps=1 \nkernel.panic_on_oops=1 \n" > ~/90-kubelet.conf
$ sudo cp 90-kubelet.conf /etc/sysctl.d/
$ sudo systemctl restart systemd-sysctl
$ COMMIT=9176d7f68aa2de7c2d83d921d6e09a7ee7b2d9f0
$ sudo INSTALL_K3S_COMMIT=$COMMIT INSTALL_K3S_SKIP_ENABLE=true ./install-k3s.sh
$ sudo /usr/local/bin/k3s server --datastore-endpoint "test" --disable-etcd -s "https://192.168.1.0:6443"
Results:
// before the code fix panic
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x213afe2]
goroutine 1 [running]:
github.com/k3s-io/k3s/pkg/clientaccess.(*Info).Get(0x0, {0x5e5872f, 0x8}, {0x0, 0x0, 0x0})
/go/src/github.com/k3s-io/k3s/pkg/clientaccess/token.go:279 +0x42
github.com/k3s-io/k3s/pkg/etcd.ClientURLs({0xc0012442d0?, 0x0?}, 0xc0005b2f50?, {0x0, 0x0})
/go/src/github.com/k3s-io/k3s/pkg/etcd/etcd.go:1367 +0x6d
github.com/k3s-io/k3s/pkg/cluster.(*Cluster).Start(0xc0012442d0, {0x6d21f50?, 0xc0005b2f50})
/go/src/github.com/k3s-io/k3s/pkg/cluster/cluster.go:47 +0x105
github.com/k3s-io/k3s/pkg/daemons/control.prepare({0x6d21f50, 0xc0005b2f50}, 0xc00064aa08)
/go/src/github.com/k3s-io/k3s/pkg/daemons/control/server.go:259 +0x2ff
github.com/k3s-io/k3s/pkg/daemons/control.Server({0x6d21f50?, 0xc0005b2f50}, 0xc00064aa08)
/go/src/github.com/k3s-io/k3s/pkg/daemons/control/server.go:33 +0xec
github.com/k3s-io/k3s/pkg/server.StartServer({0x6d21f50?, 0xc0005b2f50}, 0xc00064aa00, 0x1?)
/go/src/github.com/k3s-io/k3s/pkg/server/server.go:56 +0x85
github.com/k3s-io/k3s/pkg/cli/server.run(0xc00031bce0, 0xa50b0c0, {0xc00114a9b8, 0x0, 0x0?}, {0xc00114a9b8, 0x0, 0xa0abd20?})
/go/src/github.com/k3s-io/k3s/pkg/cli/server/server.go:490 +0x33ba
github.com/k3s-io/k3s/pkg/cli/server.Run(0xc00031bce0?)
/go/src/github.com/k3s-io/k3s/pkg/cli/server/server.go:44 +0x2f
github.com/urfave/cli.HandleAction({0x5267860?, 0x64e5c30?}, 0x6?)
/go/pkg/mod/github.com/urfave/[email protected]/app.go:524 +0x50
github.com/urfave/cli.Command.Run({{0x5e35f48, 0x6}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x5fddddd, 0x15}, {0xc000cb37b8, ...}, ...}, ...)
/go/pkg/mod/github.com/urfave/[email protected]/command.go:175 +0x63e
github.com/urfave/cli.(*App).Run(0xc000d93340, {0xc00098b420, 0xd, 0xe})
/go/pkg/mod/github.com/urfave/[email protected]/app.go:277 +0xb27
main.main()
/go/src/github.com/k3s-io/k3s/cmd/server/main.go:80 +0xbfb
// after code fix
$ sudo /usr/local/bin/k3s server --datastore-endpoint "test" --disable-etcd -s "https://192.168.1.0:6443"
INFO[0000] Acquiring lock file /var/lib/rancher/k3s/data/.lock
INFO[0000] Preparing data dir /var/lib/rancher/k3s/data/3e10c5d6b990410c727e5656a2e48ba769e5f294038ccba0767efcb2214ca4a0
FATA[0000] invalid flag use; cannot use --disable-etcd with --datastore-endpoint
from k3s.
Related Issues (20)
- Issue Number 10000
- Unable to provision K3S downstream cluster in Rancher HOT 1
- k3s failed to get CA certs HOT 1
- [Release-1.28] - Unable to provision K3S downstream cluster in Rancher HOT 1
- [Release-1.27] - Unable to provision K3S downstream cluster in Rancher HOT 1
- Pods unable to reach 10.43.0.1:443 even with firewall disabled HOT 1
- Server nodes behind NAT, pod networking is broken HOT 6
- Empty string as a parameter in etcd extra args HOT 8
- Installing k3s cluster on azure vm
- Add SLSA provenance to releases
- containerd-shim creates many inotify instances HOT 1
- Understand k3s certificate rotation
- Internet blocked due to k3s HOT 1
- MySQL + Kine Conformance Checks Fail HOT 7
- apiserver received an error that is not an metav1.Status: &errors.errorString{s:"error dialing backend: tls: failed to verify certificate: x509: certificate is valid for 127.0.0.1, not xxx"} HOT 4
- Add Ubuntu 24.04 Support to k3s HOT 1
- k3 leaving remnants of hanging unkillable containers HOT 1
- Network policies blocking probes HOT 4
- Use private ip with external cloud manager that doesn't know about that ip
- [Release-1.27] - etcd-snapshot save times out in 10 seconds the first try HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3s.