Join Slack
Powered by
Hii i am trying to setup latest rancher server...
# general
a
alert-fireman-21958
07/05/2024, 4:25 AM
Hii i am trying to setup latest rancher server in docker becuase this is testing env and i have rke cluster to import in rancher dashboard but when deploying rancher/server in docker i facing lots of issue please help me on this issue i am sharing logs and cmd what i used to deploy in docker cmd i used : sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /rancher:/var/lib/rancher --privileged rancher/rancher:latest docker container logs docker logs e9c147e053ca INFO: Running k3s server --cluster-init --cluster-reset ERROR: time="2024-07-04T13
58
42Z" level=warning msg="remove /var/lib/rancher/k3s/agent/etc/k3s-api-server-agent-load-balancer.json: no such file or directory" time="2024-07-04T13
58
42Z" level=info msg="Starting k3s v1.28.6+k3s2 (c9f49a3b)" time="2024-07-04T13
58
42Z" level=info msg="Managed etcd cluster bootstrap already complete and initialized" time="2024-07-04T13
58
42Z" level=info msg="certificate CN=kube-apiserver signed by CN=k3s-server-ca@1720079197: notBefore=2024-07-04 07
46
37 +0000 UTC notAfter=2025-07-04 13
58
42 +0000 UTC" time="2024-07-04T13
58
42Z" level=info msg="certificate CN=etcd-peer signed by CN=etcd-peer-ca@1720079197: notBefore=2024-07-04 07
46
37 +0000 UTC notAfter=2025-07-04 13
58
42 +0000 UTC" time="2024-07-04T13
58
42Z" level=info msg="certificate CN=etcd-server signed by CN=etcd-server-ca@1720079197: notBefore=2024-07-04 07
46
37 +0000 UTC notAfter=2025-07-04 13
58
42 +0000 UTC" time="2024-07-04T13
58
42Z" level=fatal msg="starting kubernetes: preparing server: start managed database: Managed etcd cluster membership was previously reset, please remove the cluster-reset flag and start k3s normally. If you need to perform another cluster reset, you must first manually delete the file at /var/lib/rancher/k3s/server/db/reset-flag" INFO: Running k3s server --cluster-init --cluster-reset rke@NTI-BSP3-T-CT-2:~$ docker logs e9c147e053ca --follow INFO: Running k3s server --cluster-init --cluster-reset ERROR: time="2024-07-04T13
58
42Z" level=warning msg="remove /var/lib/rancher/k3s/agent/etc/k3s-api-server-agent-load-balancer.json: no such file or directory" time="2024-07-04T13
58
42Z" level=info msg="Starting k3s v1.28.6+k3s2 (c9f49a3b)" time="2024-07-04T13
58
42Z" level=info msg="Managed etcd cluster bootstrap already complete and initialized" time="2024-07-04T13
58
42Z" level=info msg="certificate CN=kube-apiserver signed by CN=k3s-server-ca@1720079197: notBefore=2024-07-04 07
46
37 +0000 UTC notAfter=2025-07-04 13
58
42 +0000 UTC" time="2024-07-04T13
58
42Z" level=info msg="certificate CN=etcd-peer signed by CN=etcd-peer-ca@1720079197: notBefore=2024-07-04 07
46
37 +0000 UTC notAfter=2025-07-04 13
58
42 +0000 UTC" time="2024-07-04T13
58
42Z" level=info msg="certificate CN=etcd-server signed by CN=etcd-server-ca@1720079197: notBefore=2024-07-04 07
46
37 +0000 UTC notAfter=2025-07-04 13
58
42 +0000 UTC" time="2024-07-04T13
58
42Z" level=fatal msg="starting kubernetes: preparing server: start managed database: Managed etcd cluster membership was previously reset, please remove the cluster-reset flag and start k3s normally. If you need to perform another cluster reset, you must first manually delete the file at /var/lib/rancher/k3s/server/db/reset-flag" INFO: Running k3s server --cluster-init --cluster-reset 2024/07/04 13
58
57 [INFO] Rancher version v2.8.5 (7af1354e9) is starting 2024/07/04 13
58
57 [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 Features: ClusterRegistry:} 2024/07/04 13
58
57 [INFO] Listening on /tmp/log.sock 2024/07/04 13
58
57 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
58
59 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
01 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
03 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
05 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
07 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
09 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
11 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
13 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
15 [INFO] Waiting for server to become available: Get "
https://127.0.0.1:6444/version?timeout=15m0s
": dial tcp 127.0.0.1
6444
connect: connection refused 2024/07/04 13
59
17 [INFO] Running in single server mode, will not peer connections 2024/07/04 13
59
18 [INFO] Applying CRD
features.management.cattle.io
2024/07/04 13
59
18 [INFO] Creating embedded CRD
clusterroletemplatebindings.management.cattle.io
2024/07/04 13
59
18 [INFO] Updating embedded CRD
clusterroletemplatebindings.management.cattle.io
2024/07/04 13
59
18 [INFO] Creating embedded CRD
globalroles.management.cattle.io
2024/07/04 13
59
18 [INFO] Updating embedded CRD
globalroles.management.cattle.io
2024/07/04 13
59
18 [INFO] Creating embedded CRD
globalrolebindings.management.cattle.io
2024/07/04 13
59
18 [INFO] Updating embedded CRD
globalrolebindings.management.cattle.io
2024/07/04 13
59
18 [INFO] Creating embedded CRD
projects.management.cattle.io
2024/07/04 13
59
18 [INFO] Updating embedded CRD
projects.management.cattle.io
2024/07/04 13
59
18 [INFO] Creating embedded CRD
projectroletemplatebindings.management.cattle.io
2024/07/04 13
59
18 [INFO] Updating embedded CRD
projectroletemplatebindings.management.cattle.io
2024/07/04 13
59
18 [INFO] Creating embedded CRD
roletemplates.management.cattle.io
2024/07/04 13
59
18 [INFO] Updating embedded CRD
roletemplates.management.cattle.io
2024/07/04 13
59
18 [INFO] Applying CRD
navlinks.ui.cattle.io
2024/07/04 13
59
18 [INFO] Applying CRD
podsecurityadmissionconfigurationtemplates.management.cattle.io
2024/07/04 13
59
18 [INFO] Applying CRD
clusters.management.cattle.io
2024/07/04 13
59
18 [INFO] Applying CRD
apiservices.management.cattle.io
2024/07/04 13
59
18 [INFO] Applying CRD
clusterregistrationtokens.management.cattle.io
2024/07/04 13
59
18 [INFO] Applying CRD
settings.management.cattle.io
2024/07/04 13
59
18 [INFO] Applying CRD
preferences.management.cattle.io
2024/07/04 13
59
18 [INFO] Applying CRD
features.management.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
clusterrepos.catalog.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
operations.catalog.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
apps.catalog.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
fleetworkspaces.management.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
clustergroups.fleet.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
managedcharts.management.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
clusters.provisioning.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
clusters.provisioning.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
rkeclusters.rke.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
rkecontrolplanes.rke.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
rkebootstraps.rke.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
rkebootstraptemplates.rke.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
rkecontrolplanes.rke.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
custommachines.rke.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
etcdsnapshots.rke.cattle.io
2024/07/04 13
59
19 [INFO] Applying CRD
clusters.cluster.x-k8s.io
2024/07/04 13
59
19 [INFO] Applying CRD
machinedeployments.cluster.x-k8s.io
2024/07/04 13
59
20 [INFO] Applying CRD
machinehealthchecks.cluster.x-k8s.io
2024/07/04 13
59
20 [INFO] Applying CRD
machines.cluster.x-k8s.io
2024/07/04 13
59
20 [INFO] Applying CRD
machinesets.cluster.x-k8s.io
2024/07/04 13
59
21 [FATAL] k3s exited with: exit status 1 please help me on this issue
112
Views
Open in Slack
Previous
Next