Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homeassistant devcontainer crashes #1233

Open
1 of 5 tasks
mkohns opened this issue Dec 30, 2024 · 0 comments
Open
1 of 5 tasks

Homeassistant devcontainer crashes #1233

mkohns opened this issue Dec 30, 2024 · 0 comments

Comments

@mkohns
Copy link

mkohns commented Dec 30, 2024

Description

I want to PoC getting away from docker desktop on mac.
I tested docker desktop, orbstack and colima with default homeassistant developer guide using vscode and devcontainers. More in the reproduction section

Version

colima version 0.8.1
git commit: 96598cc

runtime: docker
arch: x86_64
client: v20.10.7
server: v27.4.0
limactl version 1.0.3
zsh: command not found: qemu-img

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: x86_64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users//.colima/default/docker.sock

Reproduction Steps

  1. fork https://github.com/home-assistant/core
  2. go to https://developers.home-assistant.io/docs/development_environment
  3. paste the fork URL under paragraph 2. and press open
  4. Wait and see the following error happen:
[242861 ms] Extensions cache, link in container: None
[242862 ms] Optimizing extensions for quality: stable
[242862 ms] Start: Run in container: /home/vscode/.vscode-server/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server/data/Machine/.connection-token-fabdb6a30b49f79a7aba0f2ad9df9b399473380f --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension dbaeumer.vscode-eslint --install-extension ms-python.python --install-extension ms-python.autopep8 --install-extension charliermarsh.ruff --install-extension ms-python.pylint --install-extension ms-python.vscode-pylance --install-extension visualstudioexptteam.vscodeintellicode --install-extension redhat.vscode-yaml --install-extension esbenp.prettier-vscode --install-extension GitHub.vscode-pull-request-github --install-extension GitHub.copilot --install-extension GitHub.copilot-chat --start-server  --skip-requirements-check
[242887 ms] /home/vscode
[242887 ms] 
[242888 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-aefc84d1-ce6a-4cf8-ae70-5f22682459a0.js' >/tmp/vscode-remote-containers-aefc84d1-ce6a-4cf8-ae70-5f22682459a0.js
[242893 ms] 
[242893 ms] 
[242893 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-aefc84d1-ce6a-4cf8-ae70-5f22682459a0.js' >/tmp/vscode-remote-containers-server-aefc84d1-ce6a-4cf8-ae70-5f22682459a0.js_1735597474659
[242914 ms] 
[242914 ms] 
[243058 ms] userEnvProbe PATHs:
Probe:     '/usr/local/python/current/bin:/usr/local/py-utils/bin:/usr/local/share/nvm/current/bin:/usr/local/bin:/home/vscode/.local/ha-venv/bin:/usr/local/python/current/bin:/usr/local/py-utils/bin:/usr/local/share/nvm/current/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin'
Container: '/home/vscode/.local/ha-venv/bin:/usr/local/python/current/bin:/usr/local/py-utils/bin:/usr/local/share/nvm/current/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[243058 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-c32fbc7d-2518-4dd4-a62c-18449dffe1df1735597230393' && cat > '/tmp/devcontainers-c32fbc7d-2518-4dd4-a62c-18449dffe1df1735597230393/env-loginInteractiveShell.json' << 'envJSON'
[243064 ms] 
[243065 ms] 
[243121 ms] Segmentation fault
[243130 ms] Start: Run: docker rm -f 64c8c0b9a402d53e0c2147cfbe9ca355fa65e32fda8221c0ad56f377be361806
[243134 ms] Command failed: /home/vscode/.vscode-server/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server/data/Machine/.connection-token-fabdb6a30b49f79a7aba0f2ad9df9b399473380f --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension dbaeumer.vscode-eslint --install-extension ms-python.python --install-extension ms-python.autopep8 --install-extension charliermarsh.ruff --install-extension ms-python.pylint --install-extension ms-python.vscode-pylance --install-extension visualstudioexptteam.vscodeintellicode --install-extension redhat.vscode-yaml --install-extension esbenp.prettier-vscode --install-extension GitHub.vscode-pull-request-github --install-extension GitHub.copilot --install-extension GitHub.copilot-chat --start-server  --skip-requirements-check
[243134 ms] Segmentation fault
[243134 ms] Exit code 139
[243257 ms] Container server terminated (code: 137, signal: null).
[243257 ms] Container server terminated. Reconnecting in 5 seconds...
[248257 ms] Start: Container: Reconnecting Dev Container server
[248258 ms] Start: Run in container: /bin/sh
[248351 ms] Container server: Error: No such container: 64c8c0b9a402d53e0c2147cfbe9ca355fa65e32fda8221c0ad56f377be361806
[248356 ms] Container server terminated (code: 1, signal: null).
[248357 ms] Container server terminated early. Not reconnecting.
[248357 ms] Reconnecting Dev Container server failed: Container server terminated (code: 1, signal: null).t

Expected behaviour

the dev container starts completely without error.
Successful test if you can Tasks: Run Task -> Run Home Assistant Core

Additional context

The above scenario works fine with docker desktop and orbstack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant