abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
18.9k stars 382 forks source link

Colima freezes and I have to restart it #966

Open vyskoczilova opened 8 months ago

vyskoczilova commented 8 months ago

Description

Hi, the latest Colima on Mac with Ventura freezes several times per day; I had to run colima stop -f (colima stop doesn't do anything) and start it again. The older version (0.5.something) has yet to have these glitches. Do you have any tips on how I can solve it for a longer run than an hour or two? I still run the same kind of projects (DDEV with WP).

Version

git commit: ba1be00e9aec47f2c1ffdacfb7e428e465f0b58a

runtime: docker arch: aarch64 client: v24.0.7 server: v24.0.7 limactl version 0.19.1 qemu-img version 8.2.0 Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

Operating System

Output of colima status

INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/kv/.colima/default/docker.sock

Reproduction Steps

1. 2. 3.

Expected behaviour

No response

Additional context

No response

rBrda commented 7 months ago

I would like to confirm the issue. Colima/docker freezes without any reason and doesn't respond for minutes.

In my case it's macOS 14 (Sonoma) on which I run it.

colima version output:

colima version 0.6.8
git commit: 9b0809d0ed9ad3ff1e57c405f27324e6298ca04f

runtime: docker
arch: aarch64
client: v24.0.7
server: v24.0.7

colima status output:

INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/robu/.colima/default/docker.sock
bayasdev commented 6 months ago

I have the same problem on a MacBook M3 Pro with 36GB of RAM, Colima VM has 16GB of RAM and 6 CPU assigned

rsau commented 6 months ago

I had similar issue

following fixed it for me from comment https://github.com/abiosoft/colima/issues/710#issuecomment-1958601817

It was running for almost 85 hours before I had to restart Mac for update to 14.4

rBrda commented 6 months ago

I had similar issue

following fixed it for me from comment #710 (comment)

  • colima ssh
  • sudo chmod 666 /var/run/docker.sock

It was running for almost 85 hours before I had to restart Mac for update to 14.4

I want to confirm that this fixed the issue for me. But of course, a real solution would be ideal.

kristjankoppel commented 1 month ago

I also can vouch for that bug.

Using Apple M2 Max with macOS Ventura 13.2.1. Colima version 0.6.8 and DDEV version 1.22.7.

And same problem happens - at non specific time everything container related freezes - is non responsive and only full restart to computer helps. Pretty annoying if in the middle of working and you have to shut down everything to get back up running.

Just tried what @rsau recommended and will see if this is permanent solution. But this should be looked into on Colima side.

DDEV also recommends OrbStack - maybe need to move away from Colima and onto OrbStack.

rowanpi commented 1 month ago

I had similar issue

following fixed it for me from comment #710 (comment)

  • colima ssh
  • sudo chmod 666 /var/run/docker.sock

It was running for almost 85 hours before I had to restart Mac for update to 14.4

When colima/docker froze, did colima still work. If my docker becomes unresponsive, then colima too becomes unresponsive. Running colima ssh then just hangs.