Don’t know exactly what’s going wrong. Already have another server with docker 20.10.12 version running with Rancher v2.5-head en thats working great. (Ubuntu version 20.04)
On this machine I’m running Ubuntu 21.10 and I cant get it working. It keeps crashing and saying that k3s crashed with status 1.
Docker version 20.10.12 & Rancher version v2.5-head
Docker run command:
docker run -d --restart=unless-stopped --privileged --name=rancher_docker_server -p 9090:80 -p 9091:443 -v /opt/rancher:/var/lib/rancher rancher/rancher:v2.5-head
2022/02/11 21:12:24 [INFO] Rancher version c5f7295f6 (c5f7295f6) is starting
2022/02/11 21:12:24 [INFO] Rancher arguments {ACMEDomains:[] AddLocal:true Embedded:false BindHost: HTTPListenPort:80 HTTPSListenPort:443 K8sMode:auto Debug:false Trace:false NoCACerts:false AuditLogPath:/var/log/auditlog/rancher-api-audit.log AuditLogMaxage:10 AuditLogMaxsize:100 AuditLogMaxbackup:10 AuditLevel:0 Agent:false Features: ClusterRegistry:}
2022/02/11 21:12:24 [INFO] Listening on /tmp/log.sock
2022/02/11 21:12:24 [INFO] Running etcd --data-dir=management-state/etcd --heartbeat-interval=500 --election-timeout=5000
2022-02-11 21:12:24.304125 W | pkg/flags: unrecognized environment variable ETCD_URL_arm64=https://github.com/etcd-io/etcd/releases/download/v3.4.3/etcd-v3.4.3-linux-arm64.tar.gz
2022-02-11 21:12:24.305431 W | pkg/flags: unrecognized environment variable ETCD_URL_amd64=https://github.com/etcd-io/etcd/releases/download/v3.4.3/etcd-v3.4.3-linux-amd64.tar.gz
2022-02-11 21:12:24.305590 W | pkg/flags: unrecognized environment variable ETCD_UNSUPPORTED_ARCH=amd64
2022-02-11 21:12:24.306362 W | pkg/flags: unrecognized environment variable ETCD_URL=ETCD_URL_amd64
[WARNING] Deprecated '--logger=capnslog' flag is set; use '--logger=zap' flag instead
2022-02-11 21:12:24.306465 I | etcdmain: etcd Version: 3.4.3
2022-02-11 21:12:24.306473 I | etcdmain: Git SHA: 3cf2f69b5
2022-02-11 21:12:24.306479 I | etcdmain: Go Version: go1.12.12
2022-02-11 21:12:24.306484 I | etcdmain: Go OS/Arch: linux/amd64
2022-02-11 21:12:24.306491 I | etcdmain: setting maximum number of CPUs to 4, total number of available CPUs is 4
[WARNING] Deprecated '--logger=capnslog' flag is set; use '--logger=zap' flag instead
2022-02-11 21:12:24.309769 I | embed: name = default
2022-02-11 21:12:24.311414 I | embed: data dir = management-state/etcd
2022-02-11 21:12:24.311591 I | embed: member dir = management-state/etcd/member
2022-02-11 21:12:24.312329 I | embed: heartbeat = 500ms
2022-02-11 21:12:24.312386 I | embed: election = 5000ms
2022-02-11 21:12:24.312823 I | embed: snapshot count = 100000
2022-02-11 21:12:24.313009 I | embed: advertise client URLs = http://localhost:2379
2022-02-11 21:12:24.337115 I | etcdserver: starting member 8e9e05c52164694d in cluster cdf818194e3a8c32
raft2022/02/11 21:12:24 INFO: 8e9e05c52164694d switched to configuration voters=()
raft2022/02/11 21:12:24 INFO: 8e9e05c52164694d became follower at term 0
raft2022/02/11 21:12:24 INFO: newRaft 8e9e05c52164694d [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
raft2022/02/11 21:12:24 INFO: 8e9e05c52164694d became follower at term 1
raft2022/02/11 21:12:24 INFO: 8e9e05c52164694d switched to configuration voters=(10276657743932975437)
2022-02-11 21:12:24.363288 W | auth: simple token is not cryptographically signed
2022-02-11 21:12:24.368335 I | etcdserver: starting server... [version: 3.4.3, cluster version: to_be_decided]
2022-02-11 21:12:24.370715 I | etcdserver: 8e9e05c52164694d as single-node; fast-forwarding 9 ticks (election ticks 10)
raft2022/02/11 21:12:24 INFO: 8e9e05c52164694d switched to configuration voters=(10276657743932975437)
2022-02-11 21:12:24.371796 I | etcdserver/membership: added member 8e9e05c52164694d [http://localhost:2380] to cluster cdf818194e3a8c32
2022-02-11 21:12:24.381714 I | embed: listening for peers on 127.0.0.1:2380
raft2022/02/11 21:12:27 INFO: 8e9e05c52164694d is starting a new election at term 1
raft2022/02/11 21:12:27 INFO: 8e9e05c52164694d became candidate at term 2
raft2022/02/11 21:12:27 INFO: 8e9e05c52164694d received MsgVoteResp from 8e9e05c52164694d at term 2
raft2022/02/11 21:12:27 INFO: 8e9e05c52164694d became leader at term 2
raft2022/02/11 21:12:27 INFO: raft.node: 8e9e05c52164694d elected leader 8e9e05c52164694d at term 2
2022-02-11 21:12:27.840633 I | etcdserver: setting up the initial cluster version to 3.4
2022-02-11 21:12:27.842216 N | etcdserver/membership: set the initial cluster version to 3.4
2022-02-11 21:12:27.842977 I | etcdserver/api: enabled capabilities for version 3.4
2022-02-11 21:12:27.843014 I | etcdserver: published {Name:default ClientURLs:[http://localhost:2379]} to cluster cdf818194e3a8c32
2022-02-11 21:12:27.843790 I | embed: ready to serve client requests
2022-02-11 21:12:27.846081 N | embed: serving insecure client requests on 127.0.0.1:2379, this is strongly discouraged!
2022/02/11 21:12:27 [INFO] Waiting for k3s to start
time="2022-02-11T21:12:27Z" level=info msg="Acquiring lock file /var/lib/rancher/k3s/data/.lock"
time="2022-02-11T21:12:27Z" level=info msg="Preparing data dir /var/lib/rancher/k3s/data/2d753699589478b1821bd86b3efed6baafd0388c616e89c9d32f1842d4f31eb6"
2022/02/11 21:12:28 [INFO] Waiting for k3s to start
2022/02/11 21:12:29 [INFO] Waiting for k3s to start
2022/02/11 21:12:30 [INFO] Waiting for k3s to start
2022/02/11 21:12:31 [INFO] Waiting for k3s to start
2022/02/11 21:12:32 [INFO] Waiting for k3s to start
2022/02/11 21:12:33 [INFO] Waiting for k3s to start
2022/02/11 21:12:34 [INFO] Waiting for k3s to start
exit status 1
2022/02/11 21:12:35 [FATAL] k3s exited with: exit status 1