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

Newest version fails to open existing dev container #6541

Closed
MBAatEJOT opened this issue Apr 1, 2022 · 16 comments
Closed

Newest version fails to open existing dev container #6541

MBAatEJOT opened this issue Apr 1, 2022 · 16 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers

Comments

@MBAatEJOT
Copy link

MBAatEJOT commented Apr 1, 2022

Issue Type: Bug

The Versions 0.231.x fails to open an existing dev container. It works when I install version 0.224.3.

Please see the attached log.

Extension version: 0.231.1
VS Code version: Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:14.623Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No
Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6440HQ CPU @ 2.60GHz (4 x 2592)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (1.62GB free)
Process Argv --crash-reporter-id 5ce13f2e-761a-433b-b292-fd8a986c0c83
Screen Reader no
VM 0%
Item Value
Remote Dev Container: MyDevContainer
OS Linux x64 5.10.16.3-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i5-6440HQ CPU @ 2.60GHz (4 x 2591)
Memory (System) 7.77GB (0.25GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30451275
pythonvsnew555:30457759
vscscmwlcmt:30438805
pynewfile477:30463512

Logfile

[2022-03-31T13:03:53.937Z] Start: Resolving Remote
[2022-03-31T13:03:53.937Z] Remote-Containers 0.231.1 in VS Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5).
[2022-03-31T13:03:53.952Z] Start: Check Docker is running
[2022-03-31T13:03:53.952Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2022-03-31T13:03:54.294Z] Stop (342 ms): Run: docker version --format {{.Server.APIVersion}}
[2022-03-31T13:03:54.295Z] Server API version: 1.41
[2022-03-31T13:03:54.296Z] Stop (344 ms): Check Docker is running
[2022-03-31T13:03:54.301Z] Start: Run: docker volume ls -q
[2022-03-31T13:03:54.572Z] Stop (271 ms): Run: docker volume ls -q
[2022-03-31T13:03:54.575Z] Start: Run: docker build -f C:\Users\<>\AppData\Local\Temp\vsch\bootstrap-image\0.231.1\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\<>\AppData\Local\Temp\vsch\bootstrap-image\0.231.1
[2022-03-31T13:03:54.819Z] 
[2022-03-31T13:03:58.667Z] 
[+] Building 0.0s (0/1)
[2022-03-31T13:03:58.804Z] 
[+] Building 0.1s (2/3)
 => [internal] load build definition from bootstrap.Dockerfile             0.0s
 => => transferring dockerfile: 42B                                        0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b  0.0s
[2022-03-31T13:03:58.972Z] 
[+] Building 0.3s (2/3)
 => [internal] load build definition from bootstrap.Dockerfile             0.0s
 => => transferring dockerfile: 42B                                        0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b  0.2s
[2022-03-31T13:03:59.128Z] 
[+] Building 0.5s (2/3)
 => [internal] load build definition from bootstrap.Dockerfile             0.0s
 => => transferring dockerfile: 42B                                        0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b  0.3s
[2022-03-31T13:03:59.263Z] 
[+] Building 0.6s (4/8)
 => [internal] load build definition from bootstrap.Dockerfile             0.0s
 => => transferring dockerfile: 42B                                        0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b  0.4s
 => [1/4] FROM mcr.microsoft.com/vscode/devcontainers/base:0-alpine-3.14@  0.0s
 => [internal] load build context                                          0.1s
 => => transferring context: 5.90kB                                        0.1s
[2022-03-31T13:03:59.294Z] 
[+] Building 0.6s (9/9) FINISHED
 => [internal] load build definition from bootstrap.Dockerfile             0.0s
 => => transferring dockerfile: 42B                                        0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b  0.4s
 => [1/4] FROM mcr.microsoft.com/vscode/devcontainers/base:0-alpine-3.14@  0.0s
 => [internal] load build context                                          0.1s
 => => transferring context: 5.90kB                                        0.1s
 => CACHED [2/4] RUN apk add --no-cache  nodejs  npm  make  g++  docker-c  0.0s
 => CACHED [3/4] RUN cd && npm i node-pty                                  0.0s
 => CACHED [4/4] COPY .vscode-remote-containers /root/.vscode-remote-cont  0.0s
 => exporting to image                                                     0.0s
 => => exporting layers                                                    0.0s
 => => writing image sha256:0fed93222beff224eb2a8d3ba226f5d282084fa71dd38  0.0s
 => => naming to docker.io/library/vsc-volume-bootstrap                    0.0s
[2022-03-31T13:03:59.571Z] 
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and l
earn how to fix them
[2022-03-31T13:03:59.663Z] Stop (5088 ms): Run: docker build -f C:\Users\<>\AppData\Local\Temp\vsch\bootstrap-image\0.231.1\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\<>\AppData\Local\Temp\vsch\bootstrap-image\0.231.1
[2022-03-31T13:03:59.664Z] Cloning Github repository: MyDevContainerProject/MyDevContainerProject into /workspaces/MyDevContainerProject

[2022-03-31T13:03:59.665Z] Start: Run: docker run -d --mount type=volume,src=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[2022-03-31T13:04:00.656Z] Stop (991 ms): Run: docker run -d --mount type=volume,src=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[2022-03-31T13:04:00.656Z] Start: Run in container: /bin/sh
[2022-03-31T13:04:00.683Z] Start: Launching Remote-Containers helper.
[2022-03-31T13:04:00.684Z] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.sock) forwarded to local host (\.\pipe\openssh-ssh-agent).
[2022-03-31T13:04:00.684Z] Start: Run: gpgconf --list-dir agent-extra-socket
[2022-03-31T13:04:00.708Z] findLocalWindowsExecutable: Exectuable 'gpgconf' not found on PATH 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X64;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X86;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Azure Data Studio\bin;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X86;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files (x86)\Common Files\Pulse Secure\TNC Client Plugin;C:\Program Files\Git\cmd;C:\Users<>\appdata\local\microsoft\windowsapps;C:\Program Files (x86)\d.velop\d3client;C:\Users<>\AppData\Local\Programs\Microsoft VS Code\bin'.
[2022-03-31T13:04:00.711Z] Stop (27 ms): Run: gpgconf --list-dir agent-extra-socket
[2022-03-31T13:04:00.712Z] Start: Run in container: /bin/sh
[2022-03-31T13:04:00.713Z] Stop (30 ms): Launching Remote-Containers helper.
[2022-03-31T13:04:00.713Z] Stop (29 ms): Run: gpgconf --list-dir agent-extra-socket
[2022-03-31T13:04:00.741Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js' >/tmp/vscode-remote-containers-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js
[2022-03-31T13:04:01.209Z]
[2022-03-31T13:04:01.209Z]
[2022-03-31T13:04:01.209Z] Stop (468 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js' >/tmp/vscode-remote-containers-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js
[2022-03-31T13:04:01.209Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js' >/tmp/vscode-remote-containers-server-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js_1648731841209
[2022-03-31T13:04:01.215Z]
[2022-03-31T13:04:01.215Z]
[2022-03-31T13:04:01.216Z] Stop (7 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js' >/tmp/vscode-remote-containers-server-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js_1648731841209
[2022-03-31T13:04:01.218Z] Start: Run in container: # Test for /root/.gitconfig and git
[2022-03-31T13:04:01.221Z]
[2022-03-31T13:04:01.221Z]
[2022-03-31T13:04:01.221Z] Stop (3 ms): Run in container: # Test for /root/.gitconfig and git
[2022-03-31T13:04:01.222Z] Start: Run in container: # Copy C:\Users<>.gitconfig to /root/.gitconfig
[2022-03-31T13:04:01.225Z]
[2022-03-31T13:04:01.225Z]
[2022-03-31T13:04:01.225Z] Stop (3 ms): Run in container: # Copy C:\Users<>.gitconfig to /root/.gitconfig
[2022-03-31T13:04:01.226Z] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js $; }; f' || true
[2022-03-31T13:04:01.230Z]
[2022-03-31T13:04:01.230Z]
[2022-03-31T13:04:01.230Z] Stop (4 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-c34dc5bff6cf9d8c6959305e36b06c124d56a85d.js $
; }; f' || true
[2022-03-31T13:04:01.341Z] Start: Run in container: cat /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json 2>/dev/null
[2022-03-31T13:04:01.344Z] Stop (3 ms): Run in container: cat /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json 2>/dev/null
[2022-03-31T13:04:01.346Z] Start: Run in container: cat /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json 2>/dev/null
[2022-03-31T13:04:01.348Z] Stop (2 ms): Run in container: cat /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json 2>/dev/null
[2022-03-31T13:04:01.350Z] The options 'workspaceMount' or 'workspaceFolder' are ignored when cloning a repository into a volume.
[2022-03-31T13:04:01.350Z] Start: Run in container: docker volume ls -q
[2022-03-31T13:04:01.848Z] Stop (498 ms): Run in container: docker volume ls -q
[2022-03-31T13:04:02.957Z] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://[email protected]/My-DevOps-Org/MyDevContainerProject/_git/MyDevContainerProject --filter label=vsch.local.repository.volume=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792 --filter label=vsch.local.repository.folder=MyDevContainerProject --filter label=vsch.quality=stable
[2022-03-31T13:04:03.632Z] Stop (675 ms): Run in container: docker ps -q -a --filter label=vsch.local.repository=https://[email protected]/My-DevOps-Org/MyDevContainerProject/_git/MyDevContainerProject --filter label=vsch.local.repository.volume=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792 --filter label=vsch.local.repository.folder=MyDevContainerProject --filter label=vsch.quality=stable
[2022-03-31T13:04:05.019Z] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.231.1/dist/spec-node/devContainersSpecCLI.js up --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /workspaces/MyDevContainerProject --workspace-mount-consistency cached --id-label vsch.local.repository=https://[email protected]/My-DevOps-Org/MyDevContainerProject/_git/MyDevContainerProject --id-label vsch.local.repository.volume=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792 --id-label vsch.local.repository.folder=MyDevContainerProject --id-label vsch.quality=stable --log-level debug --config /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json --mount type=volume,source=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792,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 --terminal-columns 160 --terminal-rows 11
[2022-03-31T13:04:05.818Z] remote-containers 0.231.1.
[2022-03-31T13:04:05.817Z] Start: Resolving Remote
[2022-03-31T13:04:05.828Z] Start: Run: docker-compose version --short
[2022-03-31T13:04:06.548Z] Stop (720 ms): Run: docker-compose version --short
[2022-03-31T13:04:06.551Z] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=MyDevContainerProject_devcontainer --filter label=com.docker.compose.service=app
[2022-03-31T13:04:06.583Z] Stop (32 ms): Run: docker ps -q -a --filter label=com.docker.compose.project=MyDevContainerProject_devcontainer --filter label=com.docker.compose.service=app
[2022-03-31T13:04:06.632Z] Error: Command failed: docker ps -q -a --filter label=com.docker.compose.project=MyDevContainerProject_devcontainer --filter label=com.docker.compose.service=app
[2022-03-31T13:04:06.633Z] at hR (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.1/dist/spec-node/devContainersSpecCLI.js:178:2391)
[2022-03-31T13:04:06.633Z] at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2022-03-31T13:04:06.633Z] at async RR (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.1/dist/spec-node/devContainersSpecCLI.js:223:2195)
[2022-03-31T13:04:06.633Z] at async Jw (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.1/dist/spec-node/devContainersSpecCLI.js:223:3221)
[2022-03-31T13:04:06.633Z] at async TR (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.1/dist/spec-node/devContainersSpecCLI.js:223:13880)
[2022-03-31T13:04:06.634Z] at async FR (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.1/dist/spec-node/devContainersSpecCLI.js:223:13605)
[2022-03-31T13:04:06.707Z] Stop (1688 ms): Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.231.1/dist/spec-node/devContainersSpecCLI.js up --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /workspaces/MyDevContainerProject --workspace-mount-consistency cached --id-label vsch.local.repository=https://[email protected]/My-DevOps-Org/MyDevContainerProject/_git/MyDevContainerProject --id-label vsch.local.repository.volume=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792 --id-label vsch.local.repository.folder=MyDevContainerProject --id-label vsch.quality=stable --log-level debug --config /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json --mount type=volume,source=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792,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 --terminal-columns 160 --terminal-rows 11
[2022-03-31T13:04:06.707Z] Exit code 1
[2022-03-31T13:04:06.707Z] Start: Run: docker rm -f 862d495837a2515db4b6dc62b31e2aa6456275ff5672d7360276e3ee09d6727d
[2022-03-31T13:04:06.709Z] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.231.1/dist/spec-node/devContainersSpecCLI.js up --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /workspaces/MyDevContainerProject --workspace-mount-consistency cached --id-label vsch.local.repository=https://[email protected]/My-DevOps-Org/MyDevContainerProject/_git/MyDevContainerProject --id-label vsch.local.repository.volume=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792 --id-label vsch.local.repository.folder=MyDevContainerProject --id-label vsch.quality=stable --log-level debug --config /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json --mount type=volume,source=MyDevContainerProject-53ca674b6e7d0af88009e0087523f792,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 --terminal-columns 160 --terminal-rows 11
[2022-03-31T13:04:06.709Z] Exit code 1
[2022-03-31T13:04:07.096Z] Stop (6440 ms): Run in container: /bin/sh
[2022-03-31T13:04:07.110Z] Stop (6398 ms): Run in container: /bin/sh
[2022-03-31T13:04:07.110Z] Container server terminated (code: 137, signal: null).
[2022-03-31T13:04:07.540Z] Stop (833 ms): Run: docker rm -f 862d495837a2515db4b6dc62b31e2aa6456275ff5672d7360276e3ee09d6727d
[2022-03-31T13:04:22.106Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2022-03-31T13:04:22.508Z] Stop (402 ms): Run: docker version --format {{.Server.APIVersion}}
[2022-03-31T13:04:22.508Z] 1.41

@svicervlad
Copy link

svicervlad commented Apr 1, 2022

I have this issue too, from 0.231.0 version of Remote - Containers. Reproduced on linux and macos systems

@github-actions github-actions bot added the containers Issue in vscode-remote containers label Apr 1, 2022
@dhartaifb
Copy link

We are a research group and this issue is reproducible on macos and windows with a ubuntu host. We can't open new containers either.

@chrmarti
Copy link
Contributor

chrmarti commented Apr 1, 2022

If you are using 'Clone Repository in Volume' with a Docker Compose config: Could be #6538. Could you try setting "workspaceFolder": "/workspaces/<repository name>" with <repository name> being the last segment of the repository path?

If that doesn't work, please also append your devcontainer.json, Dockerfile and docker-compose.yml (if any).

@chrmarti chrmarti self-assigned this Apr 1, 2022
@chrmarti chrmarti added the info-needed Issue requires more information from poster label Apr 1, 2022
@chrmarti
Copy link
Contributor

chrmarti commented Apr 1, 2022

Also check if it is fixed in Remote-Containers v0.231.2 or v0.232.2-pre-release.

@chriscasola
Copy link

I may have just filed a duplicate of this in #6545 -- I am seeing this issue in vscode and vscode insiders, with both the release version of remote-containers and the 0.232.2-pre-release.

@fnkr
Copy link

fnkr commented Apr 1, 2022

Same problem. v0.232.2 is not working for me either. Downgraded to v0.224.3.

@chriscasola
Copy link

@fnkr downgrading resolved the issue for you? It is not for me.

@fnkr
Copy link

fnkr commented Apr 1, 2022

@chriscasola Yes, downgrading works for me.

@yilmazff
Copy link

yilmazff commented Apr 1, 2022

This works for me when connecting to a remote container on an Ubuntu server.

Solution: Kill existing vscode-server processes on the remote machine with the command

    kill -9 `ps aux | \grep vscode-server | \grep USER | \grep -v grep | awk '{print $2}'`

Replace USER with the user associated to these commands (you can manually check this without the kill -9 and awk parts first).
Now, when you connect again, VS Code should setup the server correctly and be able to fetch the environment.

I think this problem is related to the window is taking too long to close issue I've also been getting for remote container workspaces. Maybe the vscode-server cache on the remote gets corrupted at some point?

@chrmarti
Copy link
Contributor

chrmarti commented Apr 2, 2022

We might be looking at two problems here. Could everyone append their log from when the problem occurs? (F1 > Remote-Containers: Show Container Log)

@fnkr
Copy link

fnkr commented Apr 2, 2022

@Mizunanari
Copy link

This is a machine translation, so it may be difficult to understand.
I am experiencing the same problem.
A project that was open until the other day has recently stopped opening.

System

MacBook Pro (13-inch, M1, 2020)
CPU Apple M1
OS 12.3.1(21E258)

Project

If only one of them is used, the problem will not occur.

pj
├── backend  <- open in Container
├── frontend  <- open in Container
├── docker-compose.dev.yml

Problem

The following error occurs

[5061 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[5151 ms] Dev container not found.
[5152 ms] Error: Dev container not found.
[5152 ms]     at Ca (/Users/{user}/.vscode/extensions/ms-vscode-remote.remote-containers-0.231.2/dist/spec-node/devContainersSpecCLI.js:13198:25)
[5152 ms]     at UR (/Users/{user}/.vscode/extensions/ms-vscode-remote.remote-containers-0.231.2/dist/spec-node/devContainersSpecCLI.js:14008:10)
[5153 ms]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[5154 ms] Exit code 1
[5157 ms] Command failed: /Applications/Visual Studio Code.app/Contents/MacOS/Electron /Users/{user}/.vscode/extensions/ms-vscode-remote.remote-containers-0.231.2/dist/spec-node/devContainersSpecCLI.js run-user-commands --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /Users/{user}/Project/

~~

mount-workspace-git-root true
[5157 ms] Exit code 1

I have formatted the devContainersSpecCLI.js to make the issue easier to understand

/Users/{user}/.vscode/extensions/ms-vscode-remote.remote-containers-0.231.2/dist/spec-node/devContainersSpecCLI.js

function Ca(t, e) {
  throw t.write(Se(e)), new Error(e) // line 13198
}
var Hw = Z(require("path"));
    let {
      config: $,
      workspaceConfig: re
    } = W, P = await ms(L, A);
    P || Ca(B.output, "Dev container not found.");  // Line 14008
    let x = await vi(L, P.Id, re.workspaceFolder, $.remoteUser),
      R = cc(B, x, $),
      I = await lc(B, x, $, R, p);
    console.log(JSON.stringify({
      outcome: "success",
      result: I
    }))
  } catch (C) {
    console.error(C), await E(), process.exit(1)
  }
  await E(), process.exit(0)
}

I solved the problem by lowering the version as well.

スクリーンショット 2022-04-04 10 32 20

@MBAatEJOT
Copy link
Author

MBAatEJOT commented Apr 4, 2022

If you are using 'Clone Repository in Volume' with a Docker Compose config: Could be #6538. Could you try setting "workspaceFolder": "/workspaces/<repository name>" with <repository name> being the last segment of the repository path?

I've installed v0.231.2 of Remote - Containers and tried the following:

  1. Tried to open the project normally --> ❌
  2. Opened the project in a recovery container and changed the value of workspaceFolder from "/workspaces" to "/workspaces/MyDevContainerProject"
  3. F1 -> Remote-Containers: Reopen in container --> ✔
  4. Close window, opened a new (empty) VSCode and switch back to v0.231.1
  5. Open Project --> ❌
  6. Close VSCode, open an empty window and upgrade to v0.231.2 again
  7. Open Project --> ❌
  8. Opened the project in a recovery container and changed the value of workspaceFolder from "/workspaces/MyDevContainerProject" to "/workspaces"
  9. F1 -> Remote-Containers: Reopen in container --> ✔
  10. Close VSCode
  11. Open Project --> ❌
  12. Opened the project in a recovery container and changed the value of workspaceFolder from "/workspaces" to "/workspaces/MyDevContainerProject"
  13. F1 -> Remote-Containers: Reopen in container --> ✔
  14. Close VSCode
  15. Open Project --> ❌

So it seems that it only works when I use Remote-Containers: Reopen in container in a recovery container. But if I open the project normally - e.g. by right click the VSCode icon and select the project from the jump list - it doesn't work.

Correction:
It appears that it only fails when I open the project by using the already pinned jump list entry. If I let VSCode open the last project or using the newly created jump list entry step 11 works. Did not test 15 again because I don't want to use this value for the workspace folde.

I attached the new log file but it seems to me, that it's pretty much the same as the one before.

Logfile

[2022-04-04T05:23:43.704Z] Start: Resolving Remote
[2022-04-04T05:23:43.704Z] Remote-Containers 0.231.2 in VS Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5).
[2022-04-04T05:23:43.729Z] Start: Check Docker is running
[2022-04-04T05:23:43.730Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2022-04-04T05:23:44.781Z] Stop (1051 ms): Run: docker version --format {{.Server.APIVersion}}
[2022-04-04T05:23:44.781Z] Server API version: 1.41
[2022-04-04T05:23:44.782Z] Stop (1053 ms): Check Docker is running
[2022-04-04T05:23:44.784Z] Start: Run: docker volume ls -q
[2022-04-04T05:23:45.312Z] Stop (528 ms): Run: docker volume ls -q
[2022-04-04T05:23:45.314Z] Start: Run: docker build -f C:\Users\<>\AppData\Local\Temp\vsch\bootstrap-image\0.231.2\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\<>\AppData\Local\Temp\vsch\bootstrap-image\0.231.2
[2022-04-04T05:23:45.736Z] 
[2022-04-04T05:23:48.474Z] 
[+] Building 0.0s (0/1)
[2022-04-04T05:23:48.601Z] 
[+] Building 0.1s (2/2)
 => [internal] load build definition from bootstrap.Dockerfile             0.1s
 => => transferring dockerfile: 42B                                        0.0s

[2022-04-04T05:23:48.632Z]

=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
[2022-04-04T05:23:48.754Z]
[+] Building 0.3s (2/3)
=> [internal] load build definition from bootstrap.Dockerfile 0.1s
=> => transferring dockerfile: 42B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
[2022-04-04T05:23:48.786Z] => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b 0.1s
[2022-04-04T05:23:48.911Z]
[+] Building 0.5s (2/3)
=> [internal] load build definition from bootstrap.Dockerfile 0.1s
=> => transferring dockerfile: 42B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b 0.1s
[2022-04-04T05:23:48.940Z]
=> [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b 0.2s
[2022-04-04T05:23:49.032Z]
[+] Building 0.6s (3/3)
=> [internal] load build definition from bootstrap.Dockerfile 0.1s
=> => transferring dockerfile: 42B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b 0.3s
[2022-04-04T05:23:49.184Z]
[+] Building 0.7s (8/9)
=> [internal] load build definition from bootstrap.Dockerfile 0.1s
=> => transferring dockerfile: 42B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b 0.3s
=> [internal] load build context 0.1s
=> => transferring context: 5.90kB 0.0s
=> [1/4] FROM mcr.microsoft.com/vscode/devcontainers/base:0-alpine-3.14@ 0.0s
=> CACHED [2/4] RUN apk add --no-cache nodejs npm make g++ docker-c 0.0s
=> CACHED [3/4] RUN cd && npm i node-pty 0.0s
=> CACHED [4/4] COPY .vscode-remote-containers /root/.vscode-remote-cont 0.0s
=> exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:69dc0f389e500719b60ddda9323ed56434072730d5da1 0.0s
[2022-04-04T05:23:49.219Z]
[+] Building 0.8s (9/9) FINISHED
=> [internal] load build definition from bootstrap.Dockerfile 0.1s
=> => transferring dockerfile: 42B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/b 0.3s
=> [internal] load build context 0.1s
=> => transferring context: 5.90kB 0.0s
=> [1/4] FROM mcr.microsoft.com/vscode/devcontainers/base:0-alpine-3.14@ 0.0s
=> CACHED [2/4] RUN apk add --no-cache nodejs npm make g++ docker-c 0.0s
=> CACHED [3/4] RUN cd && npm i node-pty 0.0s
=> CACHED [4/4] COPY .vscode-remote-containers /root/.vscode-remote-cont 0.0s
=> exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:69dc0f389e500719b60ddda9323ed56434072730d5da1 0.0s
=> => naming to docker.io/library/vsc-volume-bootstrap 0.0s
[2022-04-04T05:23:49.734Z]
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and l
earn how to fix them
[2022-04-04T05:23:49.858Z] Stop (4544 ms): Run: docker build -f C:\Users<>\AppData\Local\Temp\vsch\bootstrap-image\0.231.2\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users<>\AppData\Local\Temp\vsch\bootstrap-image\0.231.2
[2022-04-04T05:23:49.860Z] Cloning Github repository: MyDevContainerProject/MyDevContainerProject into /workspaces/MyDevContainerProject

[2022-04-04T05:23:49.860Z] Start: Run: docker run -d --mount type=volume,src=MyDevContainerProject-55eee57e081af91cfb5440049c246793,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[2022-04-04T05:23:51.488Z] Stop (1628 ms): Run: docker run -d --mount type=volume,src=MyDevContainerProject-55eee57e081af91cfb5440049c246793,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[2022-04-04T05:23:51.490Z] Start: Run in container: /bin/sh
[2022-04-04T05:23:51.571Z] Start: Launching Remote-Containers helper.
[2022-04-04T05:23:51.572Z] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-2431de7bc98cc710404197a8660781fc387dc5ab.sock) forwarded to local host (\.\pipe\openssh-ssh-agent).
[2022-04-04T05:23:51.573Z] Start: Run: gpgconf --list-dir agent-extra-socket
[2022-04-04T05:23:51.735Z] findLocalWindowsExecutable: Exectuable 'gpgconf' not found on PATH 'C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\app\AdminMBA\product\11.2.0\client_1;C:\app\AdminMBA\product\11.2.0\client_1\bin;C:\Program Files (x86)\Python37-32\Scripts;C:\Program Files (x86)\Python37-32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Lotus\Notes;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files (x86)\Enterprise Vault\EVClient;C:\Program Files (x86)\VDesk;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Yarn\bin;C:\Program Files\nodejs;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X64;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X86;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X86;C:\Program Files (x86)\Plantronics\Spokes3G;C:\Program Files (x86)\Common Files\Pulse Secure\TNC Client Plugin;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users<>\appdata\local\microsoft\windowsapps;C:\Program Files (x86)\d.velop\d3client;C:\Users<>.dotnet\tools;C:\Users<>\Tools\docfx\docfx.console.2.37.2\tools;C:\Windows\System32;C:\Windows;C:\Users<>\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users<>\VSCode\DocIt\bin\Release\netcoreapp2.1\win10-x64\publish;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\150;C:\Users<>\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Yarn\bin;C:\Users<>\AppData\Roaming\npm'.
[2022-04-04T05:23:51.740Z] Stop (167 ms): Run: gpgconf --list-dir agent-extra-socket
[2022-04-04T05:23:51.741Z] Start: Run in container: /bin/sh
[2022-04-04T05:23:51.742Z] Stop (171 ms): Launching Remote-Containers helper.
[2022-04-04T05:23:51.744Z] Stop (171 ms): Run: gpgconf --list-dir agent-extra-socket
[2022-04-04T05:23:51.840Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-2431de7bc98cc710404197a8660781fc387dc5ab.js' >/tmp/vscode-remote-containers-2431de7bc98cc710404197a8660781fc387dc5ab.js
[2022-04-04T05:23:52.708Z]
[2022-04-04T05:23:52.709Z]
[2022-04-04T05:23:52.709Z] Stop (869 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-2431de7bc98cc710404197a8660781fc387dc5ab.js' >/tmp/vscode-remote-containers-2431de7bc98cc710404197a8660781fc387dc5ab.js
[2022-04-04T05:23:52.710Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-2431de7bc98cc710404197a8660781fc387dc5ab.js' >/tmp/vscode-remote-containers-server-2431de7bc98cc710404197a8660781fc387dc5ab.js_1649049832709
[2022-04-04T05:23:52.718Z]
[2022-04-04T05:23:52.718Z]
[2022-04-04T05:23:52.718Z] Stop (8 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-2431de7bc98cc710404197a8660781fc387dc5ab.js' >/tmp/vscode-remote-containers-server-2431de7bc98cc710404197a8660781fc387dc5ab.js_1649049832709
[2022-04-04T05:23:52.724Z] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-2431de7bc98cc710404197a8660781fc387dc5ab.js $; }; f' || true
[2022-04-04T05:23:52.731Z]
[2022-04-04T05:23:52.734Z]
[2022-04-04T05:23:52.734Z] Stop (10 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-2431de7bc98cc710404197a8660781fc387dc5ab.js $
; }; f' || true
[2022-04-04T05:23:52.735Z] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[2022-04-04T05:23:52.746Z]
[2022-04-04T05:23:52.747Z]
[2022-04-04T05:23:52.747Z] Stop (12 ms): Run in container: # Test for /root/.ssh/known_hosts and ssh
[2022-04-04T05:23:52.747Z] Start: Run in container: # Copy C:\Users<>.ssh\known_hosts to /root/.ssh/known_hosts
[2022-04-04T05:23:52.754Z]
[2022-04-04T05:23:52.754Z]
[2022-04-04T05:23:52.754Z] Stop (7 ms): Run in container: # Copy C:\Users<>.ssh\known_hosts to /root/.ssh/known_hosts
[2022-04-04T05:23:52.884Z] Start: Run in container: cat /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json 2>/dev/null
[2022-04-04T05:23:52.888Z] Stop (4 ms): Run in container: cat /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json 2>/dev/null
[2022-04-04T05:23:52.892Z] Start: Run in container: cat /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json 2>/dev/null
[2022-04-04T05:23:52.896Z] Stop (4 ms): Run in container: cat /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json 2>/dev/null
[2022-04-04T05:23:52.899Z] The options 'workspaceMount' or 'workspaceFolder' are ignored when cloning a repository into a volume.
[2022-04-04T05:23:53.746Z] Start: Run in container: docker volume ls -q
[2022-04-04T05:23:54.605Z] Stop (859 ms): Run in container: docker volume ls -q
[2022-04-04T05:23:56.326Z] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://[email protected]/My-Org-Dev/MyDevContainerProject/_git/MyDevContainerProject --filter label=vsch.local.repository.volume=MyDevContainerProject-55eee57e081af91cfb5440049c246793 --filter label=vsch.local.repository.folder=MyDevContainerProject --filter label=vsch.quality=stable
[2022-04-04T05:23:57.293Z] Stop (967 ms): Run in container: docker ps -q -a --filter label=vsch.local.repository=https://[email protected]/My-Org-Dev/MyDevContainerProject/_git/MyDevContainerProject --filter label=vsch.local.repository.volume=MyDevContainerProject-55eee57e081af91cfb5440049c246793 --filter label=vsch.local.repository.folder=MyDevContainerProject --filter label=vsch.quality=stable
[2022-04-04T05:23:57.295Z] Start: Run in container: docker inspect --type container 29dc03b1d4ce
[2022-04-04T05:23:58.352Z] Stop (1057 ms): Run in container: docker inspect --type container 29dc03b1d4ce
[2022-04-04T05:24:00.100Z] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.231.2/dist/spec-node/devContainersSpecCLI.js up --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /workspaces/MyDevContainerProject --workspace-mount-consistency cached --id-label vsch.local.repository=https://[email protected]/My-Org-Dev/MyDevContainerProject/_git/MyDevContainerProject --id-label vsch.local.repository.volume=MyDevContainerProject-55eee57e081af91cfb5440049c246793 --id-label vsch.local.repository.folder=MyDevContainerProject --id-label vsch.quality=stable --log-level trace --config /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-1edd7abf-640e-49e7-88a1-c00e4a416451.json --mount type=volume,source=MyDevContainerProject-55eee57e081af91cfb5440049c246793,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
[2022-04-04T05:24:00.853Z] remote-containers 0.231.2.
[2022-04-04T05:24:00.853Z] Start: Resolving Remote
[2022-04-04T05:24:00.864Z] Start: Run: docker-compose version --short
[2022-04-04T05:24:01.669Z] Stop (805 ms): Run: docker-compose version --short
[2022-04-04T05:24:01.671Z] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=MyDevContainerProject_devcontainer --filter label=com.docker.compose.service=app
[2022-04-04T05:24:01.710Z] Stop (39 ms): Run: docker ps -q -a --filter label=com.docker.compose.project=MyDevContainerProject_devcontainer --filter label=com.docker.compose.service=app
[2022-04-04T05:24:01.900Z] Error: Command failed: docker ps -q -a --filter label=com.docker.compose.project=MyDevContainerProject_devcontainer --filter label=com.docker.compose.service=app
[2022-04-04T05:24:01.901Z] at hR (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.2/dist/spec-node/devContainersSpecCLI.js:178:2391)
[2022-04-04T05:24:01.901Z] at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2022-04-04T05:24:01.901Z] at async RR (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.2/dist/spec-node/devContainersSpecCLI.js:223:2195)
[2022-04-04T05:24:01.901Z] at async Jw (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.2/dist/spec-node/devContainersSpecCLI.js:223:3221)
[2022-04-04T05:24:01.902Z] at async TR (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.2/dist/spec-node/devContainersSpecCLI.js:223:13880)
[2022-04-04T05:24:01.902Z] at async FR (/root/.vscode-remote-containers/dist/dev-containers-cli-0.231.2/dist/spec-node/devContainersSpecCLI.js:223:13605)
[2022-04-04T05:24:02.000Z] Stop (1900 ms): Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.231.2/dist/spec-node/devContainersSpecCLI.js up --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /workspaces/MyDevContainerProject --workspace-mount-consistency cached --id-label vsch.local.repository=https://[email protected]/My-Org-Dev/MyDevContainerProject/_git/MyDevContainerProject --id-label vsch.local.repository.volume=MyDevContainerProject-55eee57e081af91cfb5440049c246793 --id-label vsch.local.repository.folder=MyDevContainerProject --id-label vsch.quality=stable --log-level trace --config /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-1edd7abf-640e-49e7-88a1-c00e4a416451.json --mount type=volume,source=MyDevContainerProject-55eee57e081af91cfb5440049c246793,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
[2022-04-04T05:24:02.000Z] Exit code 1
[2022-04-04T05:24:02.001Z] Start: Run: docker rm -f 2c833b49969212e3cb8893cac12195ba441066d74ec06cb6f01fc8c80b0e4864
[2022-04-04T05:24:02.011Z] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.231.2/dist/spec-node/devContainersSpecCLI.js up --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /workspaces/MyDevContainerProject --workspace-mount-consistency cached --id-label vsch.local.repository=https://[email protected]/My-Org-Dev/MyDevContainerProject/_git/MyDevContainerProject --id-label vsch.local.repository.volume=MyDevContainerProject-55eee57e081af91cfb5440049c246793 --id-label vsch.local.repository.folder=MyDevContainerProject --id-label vsch.quality=stable --log-level trace --config /workspaces/MyDevContainerProject/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-1edd7abf-640e-49e7-88a1-c00e4a416451.json --mount type=volume,source=MyDevContainerProject-55eee57e081af91cfb5440049c246793,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
[2022-04-04T05:24:02.011Z] Exit code 1
[2022-04-04T05:24:02.870Z] Stop (11380 ms): Run in container: /bin/sh
[2022-04-04T05:24:02.898Z] Stop (11157 ms): Run in container: /bin/sh
[2022-04-04T05:24:02.899Z] Container server terminated (code: 137, signal: null).
[2022-04-04T05:24:03.312Z] Stop (1311 ms): Run: docker rm -f 2c833b49969212e3cb8893cac12195ba441066d74ec06cb6f01fc8c80b0e4864
[2022-04-04T05:24:08.989Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2022-04-04T05:24:09.911Z] Stop (922 ms): Run: docker version --format {{.Server.APIVersion}}
[2022-04-04T05:24:09.912Z] 1.41

@chrmarti
Copy link
Contributor

chrmarti commented Apr 4, 2022

@Mizunanari Are you using two devcontainer.json files? Using two VS Code windows? Or how do you connect to two containers if the Docker Compose setup?

I think I have fixes ready for the issues shown in the logs from @MBAatEJOT and @fnkr.

@chrmarti
Copy link
Contributor

chrmarti commented Apr 4, 2022

Fixed in v0.231.3 and v0.232.3-pre-release. (Fixes based on investigations into @MBAatEJOT's and @fnkr's logs.)

@MBAatEJOT Also make sure to rebuild the container, #6538 might have left you with a container that has the workspace mounted incorrectly.

@Mizunanari I will open a new issue to follow up.

Thanks.

@chrmarti chrmarti closed this as completed Apr 4, 2022
@chrmarti chrmarti added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Apr 4, 2022
@chrmarti chrmarti added this to the March 2022 Recovery milestone Apr 4, 2022
@fnkr
Copy link

fnkr commented Apr 4, 2022

v0.232.3-pre-release works for me.

@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers
Projects
None yet
Development

No branches or pull requests

8 participants