Hii i am trying to setup latest rancher server...
# general
a
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-04T135842Z" 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-04T135842Z" level=info msg="Starting k3s v1.28.6+k3s2 (c9f49a3b)" time="2024-07-04T135842Z" level=info msg="Managed etcd cluster bootstrap already complete and initialized" time="2024-07-04T135842Z" level=info msg="certificate CN=kube-apiserver signed by CN=k3s-server-ca@1720079197: notBefore=2024-07-04 074637 +0000 UTC notAfter=2025-07-04 135842 +0000 UTC" time="2024-07-04T135842Z" level=info msg="certificate CN=etcd-peer signed by CN=etcd-peer-ca@1720079197: notBefore=2024-07-04 074637 +0000 UTC notAfter=2025-07-04 135842 +0000 UTC" time="2024-07-04T135842Z" level=info msg="certificate CN=etcd-server signed by CN=etcd-server-ca@1720079197: notBefore=2024-07-04 074637 +0000 UTC notAfter=2025-07-04 135842 +0000 UTC" time="2024-07-04T135842Z" 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-04T135842Z" 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-04T135842Z" level=info msg="Starting k3s v1.28.6+k3s2 (c9f49a3b)" time="2024-07-04T135842Z" level=info msg="Managed etcd cluster bootstrap already complete and initialized" time="2024-07-04T135842Z" level=info msg="certificate CN=kube-apiserver signed by CN=k3s-server-ca@1720079197: notBefore=2024-07-04 074637 +0000 UTC notAfter=2025-07-04 135842 +0000 UTC" time="2024-07-04T135842Z" level=info msg="certificate CN=etcd-peer signed by CN=etcd-peer-ca@1720079197: notBefore=2024-07-04 074637 +0000 UTC notAfter=2025-07-04 135842 +0000 UTC" time="2024-07-04T135842Z" level=info msg="certificate CN=etcd-server signed by CN=etcd-server-ca@1720079197: notBefore=2024-07-04 074637 +0000 UTC notAfter=2025-07-04 135842 +0000 UTC" time="2024-07-04T135842Z" 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 135857 [INFO] Rancher version v2.8.5 (7af1354e9) is starting 2024/07/04 135857 [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 135857 [INFO] Listening on /tmp/log.sock 2024/07/04 135857 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135859 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135901 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135903 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135905 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135907 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135909 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135911 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135913 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135915 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.16444 connect: connection refused 2024/07/04 135917 [INFO] Running in single server mode, will not peer connections 2024/07/04 135918 [INFO] Applying CRD features.management.cattle.io 2024/07/04 135918 [INFO] Creating embedded CRD clusterroletemplatebindings.management.cattle.io 2024/07/04 135918 [INFO] Updating embedded CRD clusterroletemplatebindings.management.cattle.io 2024/07/04 135918 [INFO] Creating embedded CRD globalroles.management.cattle.io 2024/07/04 135918 [INFO] Updating embedded CRD globalroles.management.cattle.io 2024/07/04 135918 [INFO] Creating embedded CRD globalrolebindings.management.cattle.io 2024/07/04 135918 [INFO] Updating embedded CRD globalrolebindings.management.cattle.io 2024/07/04 135918 [INFO] Creating embedded CRD projects.management.cattle.io 2024/07/04 135918 [INFO] Updating embedded CRD projects.management.cattle.io 2024/07/04 135918 [INFO] Creating embedded CRD projectroletemplatebindings.management.cattle.io 2024/07/04 135918 [INFO] Updating embedded CRD projectroletemplatebindings.management.cattle.io 2024/07/04 135918 [INFO] Creating embedded CRD roletemplates.management.cattle.io 2024/07/04 135918 [INFO] Updating embedded CRD roletemplates.management.cattle.io 2024/07/04 135918 [INFO] Applying CRD navlinks.ui.cattle.io 2024/07/04 135918 [INFO] Applying CRD podsecurityadmissionconfigurationtemplates.management.cattle.io 2024/07/04 135918 [INFO] Applying CRD clusters.management.cattle.io 2024/07/04 135918 [INFO] Applying CRD apiservices.management.cattle.io 2024/07/04 135918 [INFO] Applying CRD clusterregistrationtokens.management.cattle.io 2024/07/04 135918 [INFO] Applying CRD settings.management.cattle.io 2024/07/04 135918 [INFO] Applying CRD preferences.management.cattle.io 2024/07/04 135918 [INFO] Applying CRD features.management.cattle.io 2024/07/04 135919 [INFO] Applying CRD clusterrepos.catalog.cattle.io 2024/07/04 135919 [INFO] Applying CRD operations.catalog.cattle.io 2024/07/04 135919 [INFO] Applying CRD apps.catalog.cattle.io 2024/07/04 135919 [INFO] Applying CRD fleetworkspaces.management.cattle.io 2024/07/04 135919 [INFO] Applying CRD clustergroups.fleet.cattle.io 2024/07/04 135919 [INFO] Applying CRD managedcharts.management.cattle.io 2024/07/04 135919 [INFO] Applying CRD clusters.provisioning.cattle.io 2024/07/04 135919 [INFO] Applying CRD clusters.provisioning.cattle.io 2024/07/04 135919 [INFO] Applying CRD rkeclusters.rke.cattle.io 2024/07/04 135919 [INFO] Applying CRD rkecontrolplanes.rke.cattle.io 2024/07/04 135919 [INFO] Applying CRD rkebootstraps.rke.cattle.io 2024/07/04 135919 [INFO] Applying CRD rkebootstraptemplates.rke.cattle.io 2024/07/04 135919 [INFO] Applying CRD rkecontrolplanes.rke.cattle.io 2024/07/04 135919 [INFO] Applying CRD custommachines.rke.cattle.io 2024/07/04 135919 [INFO] Applying CRD etcdsnapshots.rke.cattle.io 2024/07/04 135919 [INFO] Applying CRD clusters.cluster.x-k8s.io 2024/07/04 135919 [INFO] Applying CRD machinedeployments.cluster.x-k8s.io 2024/07/04 135920 [INFO] Applying CRD machinehealthchecks.cluster.x-k8s.io 2024/07/04 135920 [INFO] Applying CRD machines.cluster.x-k8s.io 2024/07/04 135920 [INFO] Applying CRD machinesets.cluster.x-k8s.io 2024/07/04 135921 [FATAL] k3s exited with: exit status 1 please help me on this issue
112 Views