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

Can't install container dev environment #91311

Closed
rlippmann opened this issue Apr 12, 2023 · 8 comments
Closed

Can't install container dev environment #91311

rlippmann opened this issue Apr 12, 2023 · 8 comments

Comments

@rlippmann
Copy link
Contributor

rlippmann commented Apr 12, 2023

The problem

I've followed the instructions in the docs. It tries to start up the container, and fails with:

[8720 ms] at async oae (/root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js:2059:17117)
[8740 ms] Exit code 1
[8741 ms] Start: Run: docker rm -f 92e6ebfca54c5f33f800f26399f4aec7fb8d183065eac15585eb0027d48a43cc
[8758 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-dfbb3c66-0111-406c-a537-3fe78bbd54621681336147040 --workspace-folder /workspaces/core --workspace-mount-consistency cached --id-label vsch.local.repository=https://github.com/rlippmann/core --id-label vsch.local.repository.volume=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2 --id-label vsch.local.repository.folder=core --id-label devcontainer.config_file=/workspaces/core/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/core/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-330ba4b7-1098-474f-b770-05fc99d3931c.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2,target=/workspaces,external=true --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root true
[8759 ms] Exit code 1
[8937 ms] Container server terminated (code: 137, signal: null).

What version of Home Assistant Core has the issue?

dev

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I've tried this with different users on my system, so it's a clean slate when I try to install.

I've even tried totally purging VSCode and reinstalling

@frenck
Copy link
Member

frenck commented Apr 12, 2023

What does the container build log show?
As in, you've shared the error from VSCode that reports it is failing to set it up, but the interesting part is in the build process of the container.

@rlippmann
Copy link
Contributor Author

rlippmann commented Apr 12, 2023

That is in the build log.

[31 ms] Dev Containers 0.288.0 in VS Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21).
[31 ms] Start: Resolving Remote
[42 ms] Start: Check Docker is running
[43 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[109 ms] Server API version: 1.42
[111 ms] Start: Run: docker volume ls -q
[167 ms] Start: Run: docker build -f /tmp/vsch-rlippmann/bootstrap-image/0.288.0/bootstrap.Dockerfile -t vsc-volume-bootstrap /tmp/vsch-rlippmann/bootstrap-image/0.288.0
[+] Building 0.2s (10/10) FINISHED                                              
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load build definition from bootstrap.Dockerfile             0.0s
 => => transferring dockerfile: 570B                                       0.0s
 => [internal] load metadata for mcr.microsoft.com/devcontainers/base:0-a  0.2s
 => [internal] load build context                                          0.0s
 => => transferring context: 1.88kB                                        0.0s
 => [1/5] FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.16@sha256:  0.0s
 => CACHED [2/5] RUN echo "@old https://dl-cdn.alpinelinux.org/alpine/v3.  0.0s
 => CACHED [3/5] RUN apk add --no-cache  git-lfs  nodejs  python3  npm  m  0.0s
 => CACHED [4/5] RUN cd && npm i node-pty                                  0.0s
 => CACHED [5/5] COPY .vscode-remote-containers /root/.vscode-remote-cont  0.0s
 => exporting to image                                                     0.0s
 => => exporting layers                                                    0.0s
 => => writing image sha256:cc2ec93dcd4ba03ed2c0cf14b54927c8369bf27f0acb7  0.0s
 => => naming to docker.io/library/vsc-volume-bootstrap                    0.0s
[767 ms] Cloning Github repository: rlippmann/core into /workspaces/core

[767 ms] Start: Run: docker run -d --mount type=volume,src=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[1236 ms] Start: Run in container: /bin/sh
[1245 ms] Start: Launching Dev Containers helper.
[1245 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-c3ac96d4-60cd-465a-a2b9-3062546a96a2.sock) forwarded to local host (/run/user/1000/keyring/ssh).
[1246 ms] Start: Run in container: test -e /tmp/.X11-unix/X0
[1424 ms] 
[1425 ms] 
[1425 ms] Exit code 1
[1426 ms] Start: Run in container: mkdir -p '/tmp/.X11-unix'
[1428 ms] 
[1428 ms] 
[1429 ms] X11 forwarding: DISPLAY in container (:0) forwarded to local host (:1).
[1429 ms] Start: Run in container: gpgconf --list-dir agent-socket
[1431 ms] /root/.gnupg/S.gpg-agent
[1432 ms] 
[1432 ms] Start: Run in container: gpgconf --list-dir homedir
[1434 ms] /root/.gnupg
[1434 ms] 
[1434 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null
[1437 ms] 
[1437 ms] 
[1437 ms] Exit code 2
[1438 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[1450 ms] /run/user/1000/gnupg/S.gpg-agent.extra
[1451 ms] 
[1451 ms] Start: Run in container: mkdir -p -m 700 '/root/.gnupg'
[1451 ms] gpg-agent: Socket in container (/root/.gnupg/S.gpg-agent) forwarded to local host (/run/user/1000/gnupg/S.gpg-agent.extra).
[1453 ms] 
[1453 ms] 
[1453 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[1453 ms] Start: Run: gpgconf --list-dir homedir
[1458 ms] 
[1459 ms] 
[1459 ms] Start: Run in container: /bin/sh
[1464 ms] Start: Run in container: echo ~
[1465 ms] /home/rlippmann/.gnupg
[1466 ms] 
[1466 ms] Start: Run in container: gpgconf --list-dir homedir
[1468 ms] /root/.gnupg
[1468 ms] 
[1470 ms] Start: Run in container: # Test for /root/.gnupg/pubring.kbx and gpg
[1473 ms] 
[1473 ms] 
[1473 ms] Start: Run in container: # Copy /home/rlippmann/.gnupg/pubring.kbx to /root/.gnupg/pubring.kbx
[1476 ms] 
[1477 ms] 
[1478 ms] Start: Run in container: # Test for /root/.gnupg/trustdb.gpg and gpg
[1480 ms] 
[1480 ms] 
[1481 ms] Start: Run in container: # Copy /home/rlippmann/.gnupg/trustdb.gpg to /root/.gnupg/trustdb.gpg
[1484 ms] 
[1484 ms] 
[1485 ms] Start: Run: gpg-connect-agent updatestartuptty /bye
[1617 ms] /root
[1617 ms] 
[1618 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-c3ac96d4-60cd-465a-a2b9-3062546a96a2.js' >/tmp/vscode-remote-containers-c3ac96d4-60cd-465a-a2b9-3062546a96a2.js
[1622 ms] 
[1622 ms] 
[1650 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-c3ac96d4-60cd-465a-a2b9-3062546a96a2.js' >/tmp/vscode-remote-containers-server-c3ac96d4-60cd-465a-a2b9-3062546a96a2.js_1681336846787
[1657 ms] 
[1657 ms] 
[1662 ms] Start: Run in container: # Test for /root/.gitconfig and git
[1667 ms] 
[1667 ms] 
[1668 ms] Start: Run in container: # Copy /home/rlippmann/.gitconfig to /root/.gitconfig
[1678 ms] 
[1679 ms] 
[1679 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-c3ac96d4-60cd-465a-a2b9-3062546a96a2.js git-credential-helper $*; }; f' || true
[1682 ms] 
[1682 ms] 
[1797 ms] Start: Run in container: cat /workspaces/core/.devcontainer/devcontainer.json 2>/dev/null
[1801 ms] Start: Run in container: cat /workspaces/core/.devcontainer/devcontainer.json 2>/dev/null
[1805 ms] Start: Run in container: test -e "/home/rlippmann" || (mkdir -p "$(dirname "/home/rlippmann")" && ln -s ~ "/home/rlippmann")
[1810 ms] 
[1811 ms] 
[1811 ms] Start: Run in container: cat <<'EOF-/tmp/devcontainer-11da099f-048f-4df2-a108-e3be08ba8f00.json' >/tmp/devcontainer-11da099f-048f-4df2-a108-e3be08ba8f00.json_1681336846948
[1815 ms] 
[1816 ms] 
[1817 ms] Start: Run in container: docker volume ls -q
[2303 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/rlippmann/core --filter label=vsch.local.repository.volume=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2 --filter label=vsch.local.repository.folder=core --filter label=vsch.quality=stable
[2476 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/rlippmann/core --filter label=vsch.local.repository.volume=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2 --filter label=vsch.local.repository.folder=core --filter label=devcontainer.config_file=/workspaces/core/.devcontainer/devcontainer.json
[2610 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/rlippmann/core --filter label=vsch.local.repository.volume=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2 --filter label=vsch.local.repository.folder=core
[2795 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/rlippmann/core --filter label=vsch.local.repository.volume=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2 --filter label=vsch.local.repository.folder=core
[3270 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-ee0d9e0c-fbba-4360-81a2-074e87abf89a1681336844319 --workspace-folder /workspaces/core --workspace-mount-consistency cached --id-label vsch.local.repository=https://github.com/rlippmann/core --id-label vsch.local.repository.volume=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2 --id-label vsch.local.repository.folder=core --id-label devcontainer.config_file=/workspaces/core/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/core/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-11da099f-048f-4df2-a108-e3be08ba8f00.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2,target=/workspaces,external=true --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root true
[3658 ms] @devcontainers/cli 0.35.0. Node.js v16.20.0. linux 5.19.0-38-generic x64.
[3658 ms] Start: Run: docker buildx version
[3727 ms] github.com/docker/buildx v0.8.2 6224def4dd2c3d347eee19db595348c50d7cb491
[3727 ms] 
[3727 ms] Start: Resolving Remote
[3732 ms] Start: Run: git rev-parse --show-cdup
[3737 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/rlippmann/core --filter label=vsch.local.repository.volume=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2 --filter label=vsch.local.repository.folder=core --filter label=devcontainer.config_file=/workspaces/core/.devcontainer/devcontainer.json
[3761 ms] Start: Run: docker inspect --type image mcr.microsoft.com/vscode/devcontainers/python:0-3.10
[5415 ms] local container features stored at: /root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/node_modules/vscode-dev-containers/container-features
[5421 ms] Start: Run: tar --no-same-owner -x -f -
[5477 ms] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.35.0-1681336850549/Dockerfile-with-features -t vsc-core-19e32c148eda9be582235c93e2081af0d9e991c18c4d9ad3a1c2b54b8a8c79b6 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /workspaces/core
[+] Building 0.3s (18/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
[+] Building 0.4s (18/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
[+] Building 0.6s (18/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
[+] Building 0.7s (18/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
[+] Building 0.9s (18/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
[+] Building 1.0s (18/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
[+] Building 1.2s (18/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
[+] Building 1.3s (18/20)                                                       
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
[+] Building 1.5s (18/20)                                                       
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
[+] Building 1.6s (18/20)                                                       
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
[+] Building 1.8s (18/20)                                                       
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
[+] Building 1.9s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 2.0s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 2.2s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 2.3s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 2.5s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 2.6s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 2.8s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 2.9s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 3.1s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 3.2s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 3.3s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 3.4s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 3.6s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 3.7s (18/20)                                                       
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
[+] Building 3.8s (19/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
[+] Building 3.8s (19/20)                                                       
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 227B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.1s
 => => transferring dockerfile: 4.33kB                                     0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p  0.1s
 => [dev_container_auto_added_stage_label  1/16] FROM mcr.microsoft.com/v  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 7.10kB                                        0.0s
 => CACHED [dev_container_auto_added_stage_label  2/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  3/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  4/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  5/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  6/16] RUN pipx uninstal  0.0s
 => CACHED [dev_container_auto_added_stage_label  7/16] RUN     curl -sS   0.0s
 => CACHED [dev_container_auto_added_stage_label  8/16] WORKDIR /usr/src   0.0s
 => CACHED [dev_container_auto_added_stage_label  9/16] RUN git clone --d  0.0s
 => CACHED [dev_container_auto_added_stage_label 10/16] WORKDIR /workspac  0.0s
 => CACHED [dev_container_auto_added_stage_label 11/16] COPY requirements  0.0s
 => CACHED [dev_container_auto_added_stage_label 12/16] COPY homeassistan  0.0s
 => CACHED [dev_container_auto_added_stage_label 13/16] RUN pip3 install   0.0s
 => CACHED [dev_container_auto_added_stage_label 14/16] COPY requirements  0.0s
 => ERROR [dev_container_auto_added_stage_label 15/16] RUN pip3 install -  3.6s
------
 > [dev_container_auto_added_stage_label 15/16] RUN pip3 install -r requirements_test.txt --use-deprecated=legacy-resolver:
#0 1.071 Collecting pydantic!=1.9.1
#0 1.401   Downloading pydantic-1.10.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
#0 1.577      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 18.4 MB/s eta 0:00:00
#0 1.712 Collecting bandit==1.7.4
#0 1.734   Downloading bandit-1.7.4-py3-none-any.whl (118 kB)
#0 1.744      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.3/118.3 kB 17.5 MB/s eta 0:00:00
#0 1.937 Collecting black==23.3.0
#0 1.956   Downloading black-23.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB)
#0 1.996      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 47.0 MB/s eta 0:00:00
#0 2.158 Collecting codespell==2.2.2
#0 2.183   Downloading codespell-2.2.2-py3-none-any.whl (214 kB)
#0 2.209      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 214.8/214.8 kB 13.1 MB/s eta 0:00:00
#0 2.356 Collecting isort==5.12.0
#0 2.376   Downloading isort-5.12.0-py3-none-any.whl (91 kB)
#0 2.383      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.2/91.2 kB 16.8 MB/s eta 0:00:00
#0 3.049 Collecting ruff==0.0.260
#0 3.070   Downloading ruff-0.0.260-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB)
#0 3.151      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.2/5.2 MB 71.3 MB/s eta 0:00:00
#0 3.230 Collecting yamllint==1.28.0
#0 3.248   Downloading yamllint-1.28.0-py2.py3-none-any.whl (62 kB)
#0 3.255      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.4/62.4 kB 12.6 MB/s eta 0:00:00
#0 3.353 Collecting astroid==2.15.0
#0 3.376   Downloading astroid-2.15.0-py3-none-any.whl (277 kB)
#0 3.389      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 277.7/277.7 kB 33.2 MB/s eta 0:00:00
#0 3.445 ERROR: Could not find a version that satisfies the requirement codecov==2.1.12 (from -r requirements_test.txt (line 11)) (from versions: none)
#0 3.446 ERROR: No matching distribution found for codecov==2.1.12 (from -r requirements_test.txt (line 11))
#0 3.450 
#0 3.450 [notice] A new release of pip available: 22.3.1 -> 23.0.1
#0 3.450 [notice] To update, run: pip install --upgrade pip
------
Dockerfile-with-features:51
--------------------
  49 |     RUN pip3 install -r requirements.txt --use-deprecated=legacy-resolver
  50 |     COPY requirements_test.txt requirements_test_pre_commit.txt ./
  51 | >>> RUN pip3 install -r requirements_test.txt --use-deprecated=legacy-resolver
  52 |     RUN rm -rf requirements.txt requirements_test.txt requirements_test_pre_commit.txt homeassistant/
  53 |     
--------------------
error: failed to solve: process "/bin/bash -o pipefail -c pip3 install -r requirements_test.txt --use-deprecated=legacy-resolver" did not complete successfully: exit code: 1
[9558 ms] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.35.0-1681336850549/Dockerfile-with-features -t vsc-core-19e32c148eda9be582235c93e2081af0d9e991c18c4d9ad3a1c2b54b8a8c79b6 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /workspaces/core
[9559 ms]     at Sse (/root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js:1917:1698)
[9559 ms]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[9559 ms]     at async AD (/root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js:1916:3889)
[9559 ms]     at async J7 (/root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js:1916:2808)
[9560 ms]     at async $se (/root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js:1931:2626)
[9560 ms]     at async Ah (/root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js:1931:3741)
[9560 ms]     at async aae (/root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js:2059:17376)
[9560 ms]     at async oae (/root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js:2059:17117)
[9571 ms] Exit code 1
[9571 ms] Start: Run: docker rm -f eff21d1df5a56fa547146e977fbde3dba1b90b2e26d5ede655f96c256e9f26e4
[9580 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.288.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-ee0d9e0c-fbba-4360-81a2-074e87abf89a1681336844319 --workspace-folder /workspaces/core --workspace-mount-consistency cached --id-label vsch.local.repository=https://github.com/rlippmann/core --id-label vsch.local.repository.volume=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2 --id-label vsch.local.repository.folder=core --id-label devcontainer.config_file=/workspaces/core/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/core/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-11da099f-048f-4df2-a108-e3be08ba8f00.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=core-3d493e4116f02eb452d6753b98784f7b36f1d19437e31ced0763aef1899cb0b2,target=/workspaces,external=true --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root true
[9581 ms] Exit code 1
[9715 ms] Container server terminated (code: 137, signal: null).\

@frenck
Copy link
Member

frenck commented Apr 12, 2023

From your log:

#0 3.446 ERROR: No matching distribution found for codecov==2.1.12 (from -r requirements_test.txt (line 11))

This was fixed on the dev branch 2 hours ago in #91295. Please pull in the latest dev branch and rebuild your container.

../Frenck

@frenck frenck closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2023
@rlippmann
Copy link
Contributor Author

rlippmann commented Apr 12, 2023

From your log:

#0 3.446 ERROR: No matching distribution found for codecov==2.1.12 (from -r requirements_test.txt (line 11))

This was fixed on the dev branch 2 hours ago in #91295. Please pull in the latest dev branch and rebuild your container.

../Frenck

I'm not pulling anything. I've just been following the instructions from here:
https://developers.home-assistant.io/docs/development_environment/

I blew away my old dev environment and was starting from scratch.

@frenck
Copy link
Member

frenck commented Apr 12, 2023

I'm not pulling anything.

? I'm not following, how would you otherwise get the latest updates from the upstream dev branch?

@rlippmann
Copy link
Contributor Author

rlippmann commented Apr 12, 2023 via email

@rlippmann
Copy link
Contributor Author

rlippmann commented Apr 14, 2023

Still failing. I think I see the problem. Dockerfile.dev is cloning from home-assistant/hass-release for some reason, and those requirements haven't been updated. The Dockerfile copies those files in to build.

@rlippmann
Copy link
Contributor Author

rlippmann commented Apr 14, 2023

No, not there. For some reason, requirements_all_test.txt is getting overwritten. You can check my repo at rlippmann/core, it has the right requirements. When I go to the recovery container, codecov is still there.

Actually, maybe it is from home-assistant/hass-release....

@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants