SSH times out during VM start/provisioning (docker-rootful, user probe 1/1)
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
### Description
I can reproduce this fairly consistently, but not all the time. Symptoms are:
* `Waiting for the essential requirement 2 of 3` and `Waiting for the essential requirement 3 of 3:` takes a long time
* `Waiting for the optional requirement 1 of 1: "user probe 1/1"` takes a long time
See https://asciinema.org/a/cbVrF787KpHFq0Nx for full log.
With `--log-level debug` I'm seeing
```
INFO[0013] [hostagent] The essential requirement 1 of 3 is satisfied
INFO[0013] [hostagent] Waiting for the essential requirement 2 of 3: "user session is ready for ssh"
DEBU[0013] [hostagent] executing script "user session is ready for ssh"
DEBU[0013] [hostagent] executing ssh for script "user session is ready for ssh": /usr/bin/ssh [ssh -o ControlMaster=no -o ControlPath=none -o ControlPersist=no -F /dev/null -o IdentityFile="/Users/torarne/.lima/_config/user" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o GSSAPIAuthentication=no -o Ciphers="^aes128-gcm@openssh.com,aes256-gcm@openssh.com" -o User=torarne -p 52635 127.0.0.1 -- /bin/bash -c "$(printf 'param_env="$(sudo cat /mnt/lima-cidata/param.env)"; while read -r line; do [ -n "$line" ] && export "$line"; done<
INFO[0134] [hostagent] The essential requirement 2 of 3 is satisfied
INFO[0134] [hostagent] Waiting for the essential requirement 3 of 3: "Explicitly start ssh ControlMaster"
DEBU[0134] [hostagent] executing script "Explicitly start ssh ControlMaster"
DEBU[0134] [hostagent] executing ssh for script "Explicitly start ssh ControlMaster": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile="/Users/torarne/.lima/_config/user" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o GSSAPIAuthentication=no -o Ciphers="^aes128-gcm@openssh.com,aes256-gcm@openssh.com" -o User=torarne -o ControlMaster=auto -o ControlPath="/Users/torarne/.lima/test/ssh.sock" -o ControlPersist=yes -p 52635 127.0.0.1 -- /bin/bash -c "$(printf 'param_env="$(sudo cat /mnt/lima-cidata/param.env)"; while read -r line; do [ -n "$line" ] && export "$line"; done<
INFO[0254] [hostagent] The essential requirement 3 of 3 is satisfied
```
and
```
INFO[0415] [hostagent] Waiting for the optional requirement 1 of 1: "user probe 1/1"
DEBU[0415] [hostagent] executing script "user probe 1/1"
DEBU[0415] [hostagent] executing ssh for script "user probe 1/1": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile="/Users/torarne/.lima/_config/user" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o GSSAPIAuthentication=no -o Ciphers="^aes128-gcm@openssh.com,aes256-gcm@openssh.com" -o User=torarne -o ControlMaster=auto -o ControlPath="/Users/torarne/.lima/test/ssh.sock" -o ControlPersist=yes -p 52635 127.0.0.1 -- /bin/bash -c "$(printf 'param_env="$(sudo cat /mnt/lima-cidata/param.env)"; while read -r line; do [ -n "$line" ] && export "$line"; done<
Contributor guide
Assessment
This issue has not been assessed yet.