abiosoft / abiosoft/colima

Daemon fail in when launching colima start from launchd user agent

Abierto
#490 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
30.8k
Forks
613
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Description

I've faced with strange issue: I cannot launch colima daemon using launchd user agents. It seems that issue somewhere between daemon and some client since I see following error in `/Users/tanshihaj/.colima/default/daemon/daemon.log` file:

```
time="2022-11-21T18:30:04+02:00" level=info msg="daemon started by colima"
time="2022-11-21T18:30:04+02:00" level=info msg="Run `pkill -F /Users/tanshihaj/.colima/default/daemon/daemon.pid` to kill the daemon"
time="2022-11-21T18:30:04+02:00" level=info msg="Using search domains: [test.net]"
time="2022-11-21T18:30:04+02:00" level=info msg="waiting for clients..."
time="2022-11-21T18:30:05+02:00" level=info msg="new connection from to /Users/tanshihaj/.colima/default/daemon/gvproxy.sock"
time="2022-11-21T18:30:31+02:00" level=error msg="cannot receive packets from , disconnecting: cannot read size from socket: EOF"
time="2022-11-21T18:30:31+02:00" level=error msg="virtual network err: \"cannot read size from socket: EOF\""
```

My user agent `/Users/tanshihaj/Library/LaunchAgents/org.colima.daemon-starter.plist` looks like this:
```

EnvironmentVariables

PATH
/nix/store/3na28jnhikj3siq1vyjq84ggl711s82x-colima-0.4.6/bin:/nix/store/fg3xj4i9vvica9yzs0zqx1y0kgnnba24-docker-20.10.21/bin:/usr/bin:/bin:/usr/sbin:/sbin

KeepAlive

Label
org.colima.daemon-starter
ProgramArguments

/nix/store/3na28jnhikj3siq1vyjq84ggl711s82x-colima-0.4.6/bin/colima
start

RunAtLoad

StandardErrorPath
/Users/tanshihaj/stderr.log
StandardOutPath
/Users/tanshihaj/stdout.log

```

Does anyone have an idea what goes wrong?

### Version

Colima Version: 0.4.6/10377f3
Lima Version: 0.13.0
Qemu Version: 7.1.0

### Operating System

- [ ] macOS Intel
- [X] macOS M1
- [ ] Linux

### Reproduction Steps

1. Create user agent file`/Users/username/Library/LaunchAgents/org.colima.daemon-starter.plist` with content above (substitute correct path to your home, colima path and docker client path)
2. Load agent: `launchctl load /Users/username/Library/LaunchAgents/org.colima.daemon-starter.plist`
3. Try to start it: `launchctl kickstart -k gui/$(id -u)/org.colima.daemon-starter`
4. Check that colima didn't started: `colima status`

### Expected behaviour

I'm expecting that colima starts on background

### Additional context

It seems if I run `colima start` in user shell daemon runs normally.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.