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

VSCode doesn't work with stable and pre-release Dev Containers extension #9592

Closed
krysgor opened this issue Feb 22, 2024 · 2 comments
Closed
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@krysgor
Copy link

krysgor commented Feb 22, 2024

  • Does this issue occur when all extensions are disabled?: No
  • VS Code Version: 1.86.2 and 1.87.0-insider
  • OS Version: Linux Mint 21.3 (Virginia)
  • Extension: Dev containers 0.338.1 and 0.346.0
Log [2024-02-19T10:00:24.832Z] Stop (969 ms): Run: ./scripts/gitlab_registry_login.sh [2024-02-19T10:00:24.832Z] [2024-02-19T10:00:24.832Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/bthomas/projekte/hc-a --filter label=devcontainer.config_file=/home/bthomas/projekte/hc-a/.devcontainer/devcontainer.json [2024-02-19T10:00:25.398Z] Stop (566 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/bthomas/projekte/hc-a --filter label=devcontainer.config_file=/home/bthomas/projekte/hc-a/.devcontainer/devcontainer.json [2024-02-19T10:00:25.410Z] Start: Run: docker inspect --type container 3f53a6368334 [2024-02-19T10:00:25.506Z] Stop (96 ms): Run: docker inspect --type container 3f53a6368334 [2024-02-19T10:00:25.508Z] Start: Starting container [2024-02-19T10:00:25.508Z] Start: Run: docker start 3f53a6368334dea5bc34f4f4ca65a54cbc9d771d541b2467a1ddeb0203722844 [2024-02-19T10:00:27.339Z] 3f53a6368334dea5bc34f4f4ca65a54cbc9d771d541b2467a1ddeb0203722844 [2024-02-19T10:00:27.348Z] Stop (1840 ms): Run: docker start 3f53a6368334dea5bc34f4f4ca65a54cbc9d771d541b2467a1ddeb0203722844 [2024-02-19T10:00:27.348Z] Stop (1840 ms): Starting container [2024-02-19T10:00:27.348Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/bthomas/projekte/hc-a --filter label=devcontainer.config_file=/home/bthomas/projekte/hc-a/.devcontainer/devcontainer.json [2024-02-19T10:00:27.524Z] Stop (176 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/bthomas/projekte/hc-a --filter label=devcontainer.config_file=/home/bthomas/projekte/hc-a/.devcontainer/devcontainer.json [2024-02-19T10:00:27.524Z] Start: Run: docker inspect --type container 3f53a6368334 [2024-02-19T10:00:27.666Z] Stop (142 ms): Run: docker inspect --type container 3f53a6368334 [2024-02-19T10:00:27.667Z] Start: Inspecting container [2024-02-19T10:00:27.667Z] Start: Run: docker inspect --type container 3f53a6368334dea5bc34f4f4ca65a54cbc9d771d541b2467a1ddeb0203722844 [2024-02-19T10:00:28.087Z] Stop (420 ms): Run: docker inspect --type container 3f53a6368334dea5bc34f4f4ca65a54cbc9d771d541b2467a1ddeb0203722844 [2024-02-19T10:00:28.087Z] Stop (420 ms): Inspecting container [2024-02-19T10:00:28.090Z] Start: Run in container: /bin/sh [2024-02-19T10:00:28.139Z] Start: Run in container: uname -m [2024-02-19T10:00:29.150Z] Stop (1060 ms): Run in container: /bin/sh [2024-02-19T10:00:29.151Z] Shell server terminated (code: 1, signal: null) [2024-02-19T10:00:29.151Z] Error response from daemon: container 3f53a6368334dea5bc34f4f4ca65a54cbc9d771d541b2467a1ddeb0203722844 is not running [2024-02-19T10:00:29.151Z] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'builder' || grep -E '^builder|^[^:]*:[^:]*:builder:' /etc/passwd || true) [2024-02-19T10:00:29.151Z] Stdin closed! [2024-02-19T10:00:29.152Z] Error: An error occurred setting up the container. [2024-02-19T10:00:29.152Z] at J$ (/home/bthomas/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js:464:1253) [2024-02-19T10:00:29.152Z] at $J (/home/bthomas/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js:464:997) [2024-02-19T10:00:29.152Z] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [2024-02-19T10:00:29.152Z] at async tAA (/home/bthomas/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js:481:3660) [2024-02-19T10:00:29.152Z] at async CC (/home/bthomas/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js:481:4775) [2024-02-19T10:00:29.152Z] at async NeA (/home/bthomas/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js:614:11107) [2024-02-19T10:00:29.152Z] at async MeA (/home/bthomas/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js:614:10848) [2024-02-19T10:00:29.159Z] Stop (7425 ms): Run: /usr/share/code/code /home/bthomas/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/bthomas/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-3f4e5973-2738-4722-ae43-1bbe23f528801708336814288 --workspace-folder /home/bthomas/projekte/hc-a --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/bthomas/projekte/hc-a --id-label devcontainer.config_file=/home/bthomas/projekte/hc-a/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/bthomas/projekte/hc-a/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --terminal-columns 80 --terminal-rows 30 [2024-02-19T10:00:29.160Z] Exit code 1 [2024-02-19T10:00:29.176Z] Command failed: /usr/share/code/code /home/bthomas/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/bthomas/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-3f4e5973-2738-4722-ae43-1bbe23f528801708336814288 --workspace-folder /home/bthomas/projekte/hc-a --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/bthomas/projekte/hc-a --id-label devcontainer.config_file=/home/bthomas/projekte/hc-a/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/bthomas/projekte/hc-a/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --terminal-columns 80 --terminal-rows 30 [2024-02-19T10:00:29.176Z] Exit code 1

The recent VSCode 1.86.x stable release broke our devcontainer. It seems to be a similar issue as microsoft/vscode#203964 or vscode-remote-release microsoft/vscode#9523. All purposed workaornds (VSCode/Dec container version switches) don't help.
I'm opening this issue here but feel free to move it to https://github.com/microsoft/vscode-remote-release/issues if appropriate.

@chrmarti chrmarti transferred this issue from microsoft/vscode Feb 26, 2024
@chrmarti
Copy link
Contributor

The container stopped for some reason:

Error response from daemon: container 3f53a6368334dea5bc34f4f4ca65a54cbc9d771d541b2467a1ddeb0203722844 is not running

Could you try running docker start 3f53a6368334dea5bc34f4f4ca65a54cbc9d771d541b2467a1ddeb0203722844 from the command line and see what the output is? (Update the container id if that has changed since.)

@chrmarti chrmarti added info-needed Issue requires more information from poster containers Issue in vscode-remote containers labels Feb 26, 2024
@krysgor
Copy link
Author

krysgor commented Feb 26, 2024

The commands output:

docker start b41ae6bcc6031c4dea0c40359d31b8828266ce25c34ab9d9e7fb57c71eeeb980 b41ae6bcc6031c4dea0c40359d31b8828266ce25c34ab9d9e7fb57c71eeeb980

The issue can be closed, found the root cause of the issue.

We are working in a virtual machine and the VBox had a turtle icon and was very slow. After switching the off Hyper-V in the Windows OS, the VM runs quickly again. Also the docker can be started again via VSCode.

Was not a VSCode issue, sorry for that.

@krysgor krysgor closed this as completed Feb 26, 2024
@microsoft microsoft locked and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants