https://rancher.com/ logo
n

narrow-salesmen-30703

01/20/2023, 2:19 PM
On my M1 Mac I've started getting this error and it wont go away. Any ideas? Rancher used to work. Kubernetes Error Rancher Desktop 1.7.0 - darwin (x64) Error Starting Kubernetes
Copy code
Error: /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> exited with code 1
Last command run: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl copy /var/folders/3l/yl1f5r9146s6mgc1kz_070dc0000gn/T/rd-nginx.conf-28nwan/nginx.conf 0:/tmp/rd-nginx.conf-28nwan.nginx.conf Context: Configuring image proxy Some recent <app://./index.html#|logfile> lines:
Copy code
stderr: 'scp: /tmp/rd-nerdctl-S008k6.nerdctl: No space left on device\n',
  code: 1,
  command: [
    '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>',
    'copy',
    '/var/folders/3l/yl1f5r9146s6mgc1kz_070dc0000gn/T/rd-nerdctl-S008k6/nerdctl',
    '0:/tmp/rd-nerdctl-S
w

wide-mechanic-33041

01/20/2023, 2:31 PM
looks like your VM is out of space. May need to increase the VM size
n

narrow-salesmen-30703

01/20/2023, 2:35 PM
Thanks for the response. The VM size was 24G and I increased it to 32G. Same problem. Can't believe 24 or 32G not sufficient.
w

wide-mechanic-33041

01/20/2023, 2:36 PM
did you resize the file system to match the new device size?
n

narrow-salesmen-30703

01/20/2023, 2:37 PM
No. Just memory settings. Where do I resize the file system?
assuming you are talking disk and not memory
n

narrow-salesmen-30703

01/20/2023, 2:49 PM
I looked at the link. Where might I find the current VM disk file size?
w

wide-mechanic-33041

01/20/2023, 2:49 PM
you could use rdctl to look at the device
its just a lima thing
n

narrow-salesmen-30703

01/20/2023, 3:34 PM
Ok. Seems to work now. Thanks
👍 1
f

fast-garage-66093

01/20/2023, 5:01 PM
You may also have accumulated a lot of dangling images. Did you run
docker image prune
(or
nerdctl image prune
) to reclaim some unused space?
👍 1
r

ripe-ocean-31923

03/18/2023, 6:51 PM
I run into the same problem and wondering how to resolve it. Got this error "cannot access containerd socket "/run/k3s/containerd/containerd.sock": no such file or directory" when run "nerdctl image prune --all". Got this error "error during connect: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/prune?filters=%7B%22dangling%22%3A%7B%22true%22%3Atrue%7D%7D": EOF" when run "docker image prune".
@narrow-salesmen-30703 I have exactly the same problem as you had, could you share how did you make that works? Thanks.
f

fast-garage-66093

03/20/2023, 9:08 PM
Maybe the docker or containerd daemons can no longer run because you are completely out of space. You can try to increase the disk size, but I'm not sure if this will work (and it requires that you have additional space on the host).
Make very sure that Rancher Desktop is not currently running!
Then run this command:
Copy code
$ /Applications/Rancher\ <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/qemu-img|Desktop.app/Contents/Resources/resources/darwin/lima/bin/qemu-img> resize "$HOME/Library/Application Support/rancher-desktop/lima/0/diffdisk" +10G
Image resized.
It goes from
/Applications/...
all the way to
... +10G
and must be on one line, with the quotes around the path and everything.
If it succeeds, start Rancher Desktop. It should automatically grow the partition to use the additional space.
Then run the prune command before you do anything else that might eat up the additional space.
Let us all know how it works out!
r

ripe-ocean-31923

03/21/2023, 11:51 AM
It works like a charm, thanks a lot @fast-garage-66093
d

dry-cpu-10001

04/19/2023, 11:52 AM
I just found this thread while googling https://slack-archive.rancher.com/t/8508077/on-my-m1-mac-i-ve-started-getting-this-error-and-it-wont-go-#3e8d178c-aee8-46e6-b4cc-094c2339cbaa and came to say that that command from the thread didn’t exactly work for me. But I now see that the command that is here on Slack is the one that I was going to say works 😄
2272 Views