As you might already recognized a lot of our blogposts look trivial. If not we are very happy you learn! My motivation to write blogposts is to
- Find an answer when I google it in three months, because I have the problem again
- Tell the people out there of the problem – and if they have it, maybe they remember I read this solution on Winkelwagen – and can look it up again!
So here is another simple solution, which is already well documented on the colima github issue, but I want to sum it up (As you can read here – i’m very bad at summing up…)
I don’t know why, but my colima didn’t start:
-> % colima start
INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0001] starting ... context=vm
> Using the existing instance "colima"
> errors inspecting instance: [failed to get Info from "/Users/fabian/.colima/_lima/colima/ha.sock": Get "http://lima-hostagent/v1/info": dial unix /Users/fabian/.colima/_lima/colima/ha.sock: connect: connection refused]
FATA[0001] error starting vm: error at 'starting': exit status 1
Colima? What is colima
Colima is a docker alternative. As far as I know it is a drop in replacement, like MariaDB was in the beginning for MySQL – it is not anymore! But still a great database <3 I learned about it due to ddev – shoutout to Randy Fay – awesome guy, helpful, nice – you are the best!
What was the problem?
I have no clue. But colima start/stop
didn’t help.
And although the comments on the issue say, that limactl stop -f colima
is the same as colima stop -f
it didn’t do the same for me.
Solution
colima stop -f
?did the trick for me.
Here are the last steps of my journey:
-> % limactl stop -f colima
INFO[0000] The qemu driver process seems already stopped
INFO[0000] The host agent process seems already stopped
INFO[0000] Removing /Users/fabian/.lima/colima under "*.pid *.sock *.tmp"
INFO[0000] Removing "/Users/fabian/.lima/colima/ha.sock"
INFO[0000] Removing "/Users/fabian/.lima/colima/qmp.sock"
INFO[0000] Removing "/Users/fabian/.lima/colima/serial.sock"
INFO[0000] Removing "/Users/fabian/.lima/colima/serialp.sock"
INFO[0000] Removing "/Users/fabian/.lima/colima/serialv.sock"
-> % colima list
PROFILE STATUS ARCH CPUS MEMORY DISK RUNTIME ADDRESS
default Broken aarch64 8 16GiB 600GiB
-> % colima start
INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0000] starting ... context=vm
> Using the existing instance "colima"
> errors inspecting instance: [failed to get Info from "/Users/fabian/.colima/_lima/colima/ha.sock": Get "http://lima-hostagent/v1/info": dial unix /Users/fabian/.colima/_lima/colima/ha.sock: connect: connection refused]
FATA[0000] error starting vm: error at 'starting': exit status 1
-> % colima stop -f
INFO[0000] stopping colima
INFO[0000] stopping ... context=vm
INFO[0000] done
-> % colima list
PROFILE STATUS ARCH CPUS MEMORY DISK RUNTIME ADDRESS
default Stopped aarch64 8 16GiB 600GiB
-> % colima start
INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0000] starting ... context=vm
INFO[0029] provisioning ... context=docker
INFO[0029] starting ... context=docker
INFO[0031] done