New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rancher single node wont start on m1 mac with latest docker desktop #35930
Comments
@presidenten Are you able to Alternatively, you can upload that log (or the crash from it) here. |
@Oats87, sure, Ill do so tomorrow, since Im stuck in meetings all day today. |
@Oats87 I found some space in the schedule today after all I start rancher with docker run -d --privileged --restart=unless-stopped --name rancher -p 4080:80 -p 4443:443 rancher/rancher:v2.6.2 Then copy the log after a while. Then I deleted the docker container and updated docker to 4.3.1, so I continue with the same docker image. For the 4.3.1 case I also set rancher loglevel to debug after starting the container. docker exec rancher loglevel --set debug k3s-docker-desktop-4.2.0.log I noticed this line today that I seemed to have missed when I opened the issue 2021/12/21 14:48:56 [INFO] Running etcd --data-dir=management-state/etcd --heartbeat-interval=500 --election-timeout=5000
running etcd on unsupported architecture "arm64" since ETCD_UNSUPPORTED_ARCH is set
2021-12-21 14:48:56.147450 W | pkg/flags: unrecognized environment variable ETCD_URL=https://github.com/etcd-io/etcd/releases/download/v3.4.15/etcd-v3.4.15-linux-arm64.tar.gz Seems pretty sus to me. I couldnt find it in the k3s.log, but I saw it in terminal while looking at the logs, so I added them as well. I set Its strange because I run the exact same command to start rancher. For completeness I also deleted the docker image and pulled a new one with |
So I also did docker image pull rancher/rancher:v2.6.2 --platform linux/x86_64 Then redid the test with loglevel debug. But still the same issue. Here are the logs: |
Same problem here in macbook pro 2016 with docker desktop 4.3.2 |
This appears to be occurring with Docker desktop > The options to fix/work around this are:
Seems that the best mitigation to this is going to be to use a mitigation to attempt to evacuate the root cgroup if run in a containerized environment... and this will likely need to land in norman and get bumped into Rancher. It's relatively easy to create a custom Creating an
then creating a
and doing a I have an example container at |
Any updates? 2022/03/31 08:00:53 [INFO] Listening on /tmp/log.sock |
Any update for this issue which stops me from trying it? |
The wokraround also works on EL9
|
I ended up using k3s testing with helm chart rancher 2.6.7-rc3 on centos 9 |
Rancher Server Setup
2.6.2
Docker single node install
none
Environment
Describe the bug
Rancher crashes periodically, usually after 10-15s, and thus never starts.
Getting lots of
[FATAL] k3s exited with: exit status 1
andUnexpected watch close - watch lasted less than a second and no items received
. The error depends on how many times it has restarted. Sometimes it installs crds and such before crashing.To Reproduce
Result
And
Edit:
I have now verified that rancher 2.6.2 works on Docker desktop for mac 4.2.0, but if I update to 4.3.1, it stops working.
Moving back to 4.2.0, makes it work again.
Expected Result
I expect rancher single node to not crash before starting
I have tried to prune containers, prune volumes, and even factory reset docker desktop.
Full logs until first crash
The text was updated successfully, but these errors were encountered: