https://rancher.com/ logo
w

white-crayon-50193

08/12/2022, 5:41 AM
I am completely new to Rancher, and trying to setup my first rancher server for evaluation. I elected to use the docker installation as it appeared to be the simplest for my purposes. However, I cannot get it to work. I created a new Ubuntu server, with the latest iso file. I installed Docker using the instructions from the Docker website. All seemed goo to this point. I then used the following command to start the Rancher docker image. docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged -v /opt/rancher:/var/lib/rancher rancher/rancher:latest docker ps indicates the container is running, however on checking the container logs, all is not right. I am getting the error, and cannot seem to find the cause. Can anyone shed any light on what I may be doing wrong.
INFO: Running k3s server --cluster-init --cluster-reset
2022/08/12 05:43:20 [INFO] Rancher version v2.6.6 (9b2f2ae0e) is starting
2022/08/12 05:43:20 [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:}
2022/08/12 05:43:20 [INFO] Listening on /tmp/log.sock
2022/08/12 05:43:20 [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
2022/08/12 05:43:22 [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
2022/08/12 05:43:24 [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
2022/08/12 05:43:26 [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
2022/08/12 05:43:28 [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
2022/08/12 05:43:30 [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
2022/08/12 05:43:32 [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
2022/08/12 05:43:32 [FATAL] k3s exited with: exit status 1
INFO: Running k3s server --cluster-init --cluster-reset
1
Just toilet people know, 30 seconds after I posted this, I finally found the cure. I needed to set the cgroup in grub to 1, then it worked as expected.
d

delightful-address-49392

08/12/2022, 6:51 AM
@white-crayon-50193 Have you solved the problem there. I have the same problem
w

white-crayon-50193

08/12/2022, 6:54 AM
Yes, I did. I need to follow these instructions on the Rancher servers and the downstream servers. https://rancher-users.slack.com/archives/C3ASABBD1/p1659737620642439?thread_ts=1659736345.695009&amp;cid=C3ASABBD1
d

delightful-address-49392

08/12/2022, 7:10 AM
Thank you. I'll do it