abiosoft / abiosoft/colima

Daemon fail in when launching colima start from launchd user agent

Ouverte
#490 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Go
Étoiles
30.8k
Forks
613
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### 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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.