-
Notifications
You must be signed in to change notification settings - Fork 306
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
Shell server failed: Error: unexpected end of parent stream #7505
Comments
Could you append the full log from when this happens? |
Thanks for your reply, here it is (as much as the terminal gives me): [134 ms] Dev Containers 0.262.3 in VS Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b).
[133 ms] Start: Run: wsl -d Ubuntu-20.04 -e wslpath -u \\wsl$\Ubuntu-20.04\home\wh\docker-from-docker-compose
[277 ms] Start: Resolving Remote
[305 ms] Start: Run: wsl -d Ubuntu-20.04 -e wslpath -u \\wsl$\Ubuntu-20.04\home\wh\docker-from-docker-compose
[450 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/wh/docker-from-docker-compose' && /bin/sh
[457 ms] Start: Run in host: id -un
[522 ms] wh
[522 ms]
[523 ms] Start: Run in host: cat /etc/passwd
[526 ms] Start: Run in host: echo ~
[527 ms] /home/wh
[527 ms]
[528 ms] Start: Run in host: test -x '/home/wh/.vscode-remote-containers/bin/6261075646f055b99068d3688932416f2346dd3b/node'
[530 ms]
[530 ms]
[531 ms] Exit code 1
[533 ms] Start: Run in host: test -x '/home/wh/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node'
[535 ms]
[536 ms]
[536 ms] Start: Run in host: test -f '/home/wh/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node_modules/node-pty/package.json'
[538 ms]
[538 ms]
[539 ms] Start: Run in host: test -f '/home/wh/.vscode-remote-containers/dist/vscode-remote-containers-server-0.262.3.js'
[541 ms]
[542 ms]
[548 ms] userEnvProbe: loginInteractiveShell (default)
[549 ms] userEnvProbe shell: /bin/bash
[1084 ms] userEnvProbe PATHs:
Probe: '/home/wh/.yarn/bin:/home/wh/.config/yarn/global/node_modules/.bin:/home/wh/.nvm/versions/node/v16.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files (x86)/HashiCorp/Vagrant/bin:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/WireGuard/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/wh/AppData/Local/Microsoft/WindowsApps:/snap/bin:/home/wh/.local/share/JetBrains/Toolbox/scripts'
Container: None
[1086 ms] Setting up container for folder or workspace: /home/wh/docker-from-docker-compose
[1118 ms] Start: Check Docker is running
[1119 ms] Start: Run in Host: docker version --format {{.Server.APIVersion}}
[1244 ms] Server API version: 1.41
[1245 ms] Start: Run in Host: docker volume ls -q
[1372 ms] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=\\wsl$\Ubuntu-20.04\home\wh\docker-from-docker-compose --filter label=vsch.quality=stable
[1530 ms] Start: Run in Host: /home/wh/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/wh/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js up --workspace-folder /home/wh/docker-from-docker-compose --workspace-mount-consistency cached --id-label devcontainer.local_folder=\\wsl$\Ubuntu-20.04\home\wh\docker-from-docker-compose --log-level debug --log-format json --config /home/wh/docker-from-docker-compose/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[1896 ms] (node:25046) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1897 ms] (Use `node --trace-deprecation ...` to show where the warning was created)
[1906 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 5.10.102.1-microsoft-standard-WSL2 x64.
[1906 ms] Start: Run: docker buildx version
[2086 ms] github.com/docker/buildx v0.9.1 ed00243a0ce2a0aee75311b06e32d33b44729689
[2086 ms]
[2087 ms] Start: Resolving Remote
[2095 ms] Start: Run: docker-compose version --short
[3063 ms] Docker Compose version: 1.29.2
[3064 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=docker-from-docker-compose_devcontainer --filter label=com.docker.compose.service=app
[3248 ms] Start: Run: docker inspect --type container c6499dd24a24
[3425 ms] Start: Removing existing container.
[3426 ms] Start: Run: docker rm -f c6499dd24a24481ba403c325b531cdca26369fe99b2e53e604047cab1966ae3c
[3638 ms] Start: Run: docker-compose -f /home/wh/docker-from-docker-compose/.devcontainer/docker-compose.yml config
[4385 ms] services:
app:
build:
context: /home/wh/docker-from-docker-compose/.devcontainer
dockerfile: Dockerfile
command: sleep infinity
entrypoint: /usr/local/share/docker-init.sh
volumes:
- /var/run/docker.sock:/var/run/docker-host.sock:rw
- /home/wh:/workspaces:cached
version: '3'
[4392 ms] Start: Run: docker -v
[4485 ms] Start: Run: docker events --format {{json .}} --filter event=start
[4492 ms] PersistedPath=/tmp/devcontainercli-wh, ContainerHasLabels=false
[4493 ms] Start: Run: docker-compose -f /home/wh/docker-from-docker-compose/.devcontainer/docker-compose.yml config
[5223 ms] services:
app:
build:
context: /home/wh/docker-from-docker-compose/.devcontainer
dockerfile: Dockerfile
command: sleep infinity
entrypoint: /usr/local/share/docker-init.sh
volumes:
- /var/run/docker.sock:/var/run/docker-host.sock:rw
- /home/wh:/workspaces:cached
version: '3'
[5226 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/base:bullseye
[6245 ms] local container features stored at: /home/wh/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/node_modules/vscode-dev-containers/container-features
[6249 ms] Start: Run: tar --no-same-owner -x -f -
[6297 ms] Docker Compose override file for building image:
version: '3'
services:
app:
build:
dockerfile: /tmp/devcontainercli-wh/container-features/0.23.2-1668423439259/Dockerfile-with-features
args:
- BUILDKIT_INLINE_CACHE=1
- _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label
[6298 ms] Start: Run: docker-compose --project-name docker-from-docker-compose_devcontainer -f /home/wh/docker-from-docker-compose/.devcontainer/docker-compose.yml -f /tmp/devcontainercli-wh/docker-compose/docker-compose.devcontainer.build-1668423439313.yml build
Building app
[+] Building 0.5s (9/9) FINISHED
=> [internal] load build definition from Dockerfile-with-features 0.0s
=> => transferring dockerfile: 2.22kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/devcontainers/base:bul 0.2s
=> [internal] load build context 0.0s
=> => transferring context: 142B 0.0s
=> [dev_container_auto_added_stage_label 1/3] FROM mcr.microsoft.com/dev 0.0s
=> CACHED [dev_container_auto_added_stage_label 2/3] COPY library-script 0.0s
=> CACHED [dev_container_auto_added_stage_label 3/3] RUN apt-get update 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:d1de3d5327224ad381faa25b92bf1dbeb8da8e1ce8a20 0.0s
=> => naming to docker.io/library/docker-from-docker-compose_devcontaine 0.0s
=> exporting cache 0.0s
=> => preparing build cache for export 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[7934 ms] Start: Run: docker inspect --type image docker-from-docker-compose_devcontainer_app
[8062 ms] Start: Run: docker build -f /tmp/devcontainercli-wh/updateUID.Dockerfile-0.23.2 -t vsc-docker-from-docker-compose-5da5da49fcbe544a377cef200b7ba7ad-uid --build-arg BASE_IMAGE=docker-from-docker-compose_devcontainer_app --build-arg REMOTE_USER=vscode --build-arg NEW_UID=1000 --build-arg NEW_GID=1000 --build-arg IMAGE_USER=root /tmp/devcontainercli-wh/empty-folder
[+] Building 0.2s (6/6) FINISHED
=> [internal] load build definition from updateUID.Dockerfile-0.23.2 0.0s
=> => transferring dockerfile: 1.33kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/docker-from-docker-com 0.0s
=> [1/2] FROM docker.io/library/docker-from-docker-compose_devcontainer_ 0.0s
=> CACHED [2/2] RUN eval $(sed -n "s/vscode:[^:]*:\([^:]*\):\([^:]*\):[^ 0.0s
=> exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:9d6e36005d6e9caf94c2a036e5762766fcccde33897ad 0.0s
=> => naming to docker.io/library/vsc-docker-from-docker-compose-5da5da4 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[8876 ms] Docker Compose override file for creating container:
version: '3'
services:
'app':
image: vsc-docker-from-docker-compose-5da5da49fcbe544a377cef200b7ba7ad-uid
entrypoint: ["/bin/sh", "-c", "echo Container started\n
trap \"exit 0\" 15\n
\n
exec \"$$@\"\n
while sleep 1 & wait $$!; do :; done", "-", "/usr/local/share/docker-init.sh"]
labels:
- devcontainer.local_folder=\\wsl$$\Ubuntu-20.04\home\wh\docker-from-docker-compose
volumes:
- vscode:/vscode
volumes:
vscode:
external: true
[8877 ms] Writing docker-compose.devcontainer.containerFeatures-1668423441893.yml to /tmp/devcontainercli-wh/docker-compose
[8879 ms] Start: Run: docker-compose --project-name docker-from-docker-compose_devcontainer -f /home/wh/docker-from-docker-compose/.devcontainer/docker-compose.yml -f /tmp/devcontainercli-wh/docker-compose/docker-compose.devcontainer.build-1668423439313.yml -f /tmp/devcontainercli-wh/docker-compose/docker-compose.devcontainer.containerFeatures-1668423441893.yml up -d
Creating docker-from-docker-compose_devcontainer_app_1 ... done
[10439 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=docker-from-docker-compose_devcontainer --filter label=com.docker.compose.service=app
[10555 ms] Start: Run: docker inspect --type container 799b38345c3e
[10688 ms] Start: Inspecting container
[10688 ms] Start: Run: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[10934 ms] Start: Run in container: /bin/sh
[10944 ms] Start: Run in container: uname -m
[11340 ms] x86_64
[11340 ms]
[11340 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[11345 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[11345 ms]
[11346 ms] Start: Run in container: cat /etc/passwd
[11351 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[11352 ms]
[11353 ms]
[11353 ms] Exit code 1
[11353 ms] Start: Run in container: /bin/sh
[11358 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[11683 ms]
[11683 ms]
[11684 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[11691 ms]
[11691 ms]
[11693 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[11699 ms]
[11699 ms]
[11699 ms] Exit code 1
[11700 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[11706 ms]
[11706 ms]
[11706 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[11713 ms]
[11713 ms]
[11724 ms] Start: Run in Host: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[11875 ms] Start: Run in Host: /home/wh/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/wh/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/wh/docker-from-docker-compose --id-label devcontainer.local_folder=\\wsl$\Ubuntu-20.04\home\wh\docker-from-docker-compose --container-id 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f --log-level debug --log-format json --config /home/wh/docker-from-docker-compose/.devcontainer/devcontainer.json --mount-workspace-git-root true
[12206 ms] (node:25619) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[12207 ms] (Use `node --trace-deprecation ...` to show where the warning was created)
[12214 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 5.10.102.1-microsoft-standard-WSL2 x64.
[12214 ms] Start: Run: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[12389 ms] Start: Run in Host: docker-compose version --short
[13120 ms] Start: Run in Host: /home/wh/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/wh/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/wh/docker-from-docker-compose --id-label devcontainer.local_folder=\\wsl$\Ubuntu-20.04\home\wh\docker-from-docker-compose --container-id 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f --log-level debug --log-format json --config /home/wh/docker-from-docker-compose/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[13406 ms] (node:25667) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[13406 ms] (Use `node --trace-deprecation ...` to show where the warning was created)
[13414 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 5.10.102.1-microsoft-standard-WSL2 x64.
[13414 ms] Start: Run: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[13555 ms] Start: Inspecting container
[13555 ms] Start: Run in Host: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[13704 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=cb5c95ac-6863-4d5a-ae9d-2cae0db57b791668423431531 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f /bin/sh
[13709 ms] Start: Run in container: uname -m
[13992 ms] x86_64
[13992 ms]
[13993 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[13999 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[13999 ms]
[14000 ms] Start: Run in container: cat /etc/passwd
[14004 ms] Start: Updating configuration state
[14056 ms] Start: Setup shutdown monitor
[14063 ms] Forking shutdown monitor: c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-b56e4c99ac156c9270c7e2b03ce2b1b9701b838f-sock dockerCompose Debug c:\Users\wh\AppData\Roaming\Code\logs\20221114T091524\window3\exthost\ms-vscode-remote.remote-containers 1668423433016
[14083 ms] Start: Run in container: test -d /home/vscode/.vscode-server
[14087 ms]
[14087 ms]
[14088 ms] Exit code 1
[14088 ms] Start: Run in container: test -d /home/vscode/.vscode-remote
[14092 ms]
[14092 ms]
[14095 ms] Exit code 1
[14097 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[14103 ms]
[14103 ms]
[14103 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json
[14108 ms]
[14109 ms] cat: /home/vscode/.vscode-server/data/Machine/settings.json: No such file or directory
[14109 ms] Exit code 1
[14112 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b
[14117 ms]
[14118 ms]
[14118 ms] Exit code 1
[14118 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/6261075646f055b99068d3688932416f2346dd3b
[14121 ms]
[14122 ms]
[14122 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/6261075646f055b99068d3688932416f2346dd3b' '/home/vscode/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b'
[14132 ms]
[14133 ms]
[14133 ms] Start: Run in Host: docker exec -i -u root 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f /bin/sh
[14134 ms] Start: Launching Dev Containers helper.
[14134 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-0b4d7eeba84767ccf563fd321f0c4aebefe961f6.sock) forwarded to remote host (/home/wh/.ssh/ssh-agent.sock).
[14135 ms] Start: Run in Host: gpgconf --list-dir agent-extra-socket
[14138 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/6261075646f055b99068d3688932416f2346dd3b'
[14145 ms] /home/wh/.gnupg/S.gpg-agent.extra
[14145 ms]
[14146 ms] Start: Run in container: gpgconf --list-dir agent-socket
[14152 ms] /home/vscode/.gnupg/S.gpg-agent
[14153 ms]
[14153 ms] Start: Run in container: gpgconf --list-dir homedir
[14158 ms] /home/vscode/.gnupg
[14158 ms]
[14158 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null
[14167 ms]
[14167 ms]
[14167 ms] Exit code 2
[14168 ms] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg'
[14169 ms] Start: Run in Host: docker exec -i -u vscode 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f /bin/sh
[14169 ms] userEnvProbe: loginInteractiveShell (default)
[14170 ms] userEnvProbe shell: /bin/bash
[14182 ms] Start: Run in container: echo ~
[14185 ms]
[14186 ms]
[14186 ms] Start: Run in Host: gpgconf --list-dir homedir
[14192 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh
[14198 ms] /home/wh/.gnupg
[14199 ms]
[14202 ms]
[14202 ms]
[14203 ms] Start: Run in container: gpgconf --list-dir homedir
[14213 ms] /home/vscode/.gnupg
[14215 ms]
[14215 ms] Start: Run in container: # Copy /home/wh/.ssh/known_hosts to /home/vscode/.ssh/known_hosts
[14232 ms]
[14233 ms]
[14234 ms] Start: Run in container: # Test for /home/vscode/.gnupg/pubring.kbx and gpg
[14248 ms]
[14248 ms]
[14250 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 "
[14304 ms] Start: Run in container: # Copy /home/wh/.gnupg/pubring.kbx to /home/vscode/.gnupg/pubring.kbx
[14322 ms]
[14323 ms]
[14323 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b' 2>/dev/null || (umask 377 && echo '690fec9a-66ee-44f1-89e9-4e7be5ef6b60' >'/home/vscode/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-beeec6c8-e26a-41be-bb3b-8f26a1af01c4' && mv -n '/home/vscode/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-beeec6c8-e26a-41be-bb3b-8f26a1af01c4' '/home/vscode/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b' && rm -f '/home/vscode/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-beeec6c8-e26a-41be-bb3b-8f26a1af01c4' && cat '/home/vscode/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b')
[14337 ms] 690fec9a-66ee-44f1-89e9-4e7be5ef6b60
[14338 ms]
[14339 ms] Start: Starting VS Code Server
[14340 ms] Start: Preparing Extensions
[14340 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[14352 ms]
[14353 ms]
[14353 ms] Start: Run in container: # Test for /home/vscode/.gnupg/trustdb.gpg and gpg
[14357 ms] Extensions cache, install extensions: ms-azuretools.vscode-docker
[14370 ms]
[14371 ms]
[14371 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true
[14378 ms]
[14382 ms]
[14383 ms] Start: Run in container: # Copy /home/wh/.gnupg/trustdb.gpg to /home/vscode/.gnupg/trustdb.gpg
[14392 ms]
[14393 ms]
[14394 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[14395 ms] Start: Run in Host: gpg-connect-agent updatestartuptty /bye
[14402 ms]
[14403 ms]
[14403 ms] Extensions cache, link in container: None
[14404 ms] Start: Run in Host: docker exec -i -u vscode -e SHELL=/bin/bash -e VSCODE_AGENT_FOLDER=/home/vscode/.vscode-server -w /home/vscode/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f /home/vscode/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension ms-azuretools.vscode-docker --start-server --disable-websocket-compression
[14635 ms]
[14636 ms]
[14726 ms] /home/vscode
[14726 ms]
[14727 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-0b4d7eeba84767ccf563fd321f0c4aebefe961f6.js' >/tmp/vscode-remote-containers-0b4d7eeba84767ccf563fd321f0c4aebefe961f6.js
[14734 ms]
[14735 ms]
[14736 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-0b4d7eeba84767ccf563fd321f0c4aebefe961f6.js' >/tmp/vscode-remote-containers-server-0b4d7eeba84767ccf563fd321f0c4aebefe961f6.js_1668423447752
[14749 ms]
[14750 ms]
[14970 ms] userEnvProbe PATHs:
Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[14996 ms] *
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[15004 ms] Server bound to 127.0.0.1:34677 (IPv4)
Extension host agent listening on 34677
[15005 ms] Start: Run in container: echo 34677 >'/home/vscode/.vscode-server/data/Machine/.devport-6261075646f055b99068d3688932416f2346dd3b'
[15008 ms]
[15008 ms]
[15009 ms] Port forwarding for container port 34677 starts listening on local port.
[15012 ms] Port forwarding local port 34677 to container port 34677
[15035 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git
[15045 ms] Port forwarding connection from 61455 > 34677 > 34677 in the container.
[15048 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=cb5c95ac-6863-4d5a-ae9d-2cae0db57b791668423431531 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f /home/vscode/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node -e
[15055 ms]
[15056 ms]
[15056 ms] Start: Run in container: # Copy /home/wh/.gitconfig to /home/vscode/.gitconfig
[15074 ms] Container server did not launch or terminated: unexpected end of parent stream
[15075 ms] Port forwarding 61455 > 34677 > 34677 terminated with error: unexpected end of parent stream
[15081 ms] Port forwarding 61455 > 34677 > 34677: Local close
[15083 ms] Shell server failed: Error: unexpected end of parent stream
at li.destroy (c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:71077)
at li.write (c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:71956)
at c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:74977
at c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:60713
at c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:79265
at c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:69503
at n (c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:79213)
at c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:79258
at Object.cb (c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:69614)
at l (c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:67617)
at u (c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:67879)
at c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:11:67962
at s (c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:16:5302)
at Socket.<anonymous> (c:\Users\wh\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\extension\extension.js:16:5403)
at Socket.emit (node:events:526:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
[15092 ms] Port forwarding connection from 61456 > 34677 > 34677 in the container.
[15095 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=cb5c95ac-6863-4d5a-ae9d-2cae0db57b791668423431531 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f /home/vscode/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node -e
[15107 ms] Host server: packet-stream asked to read after closed { value: { code: 255, signal: null }, end: false, req: -86 }
[15138 ms] Host server: packet-stream asked to read after closed { value: { code: 255, signal: null }, end: false, req: -112 }
[15154 ms] Start: Reconnection attempt 1
[15155 ms] Start: Run in Host: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[15191 ms] Host server: packet-stream asked to read after closed { value: { code: 0, signal: null }, end: false, req: -102 }
[15197 ms] Start: Reconnection attempt 2
[15198 ms] Start: Run in Host: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[15236 ms] Start: Reconnection attempt 3
[15237 ms] Start: Run in Host: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[15242 ms] Start: Reconnection attempt 4
[15243 ms] Start: Run in Host: docker inspect --type container 799b38345c3e705a5b48b5cadeec0ca817f12301bd6ab4b04fd4db8a8aee748f
[15606 ms] Host server: packet-stream asked to read after closed { value: { code: 255, signal: null }, end: false, req: -161 }
[15652 ms] Host server: packet-stream asked to read after closed { value: { code: 255, signal: null }, end: false, req: -146 }
[16301 ms] Host server: packet-stream asked to read after closed { value: { code: 255, signal: null }, end: false, req: -156 }
[16315 ms] Host server terminated (code: 0, signal: null). |
There appears to be an issue with the connection between the extension and the container which is based on |
Than you for your help. I've reinstalled VSCode and Docker Desktop multiple times and wiped all settings multiple times. I've uninstalled any software that interferes with the network (VPN clients etc.) and disabled the Windows firewall, just in case this is a network issue. At this point all that's left is reinstalling Windows and hoping whatever is broken gets fixed. What's weird is that it works sometimes, very sporadically. Then it fails again. It seems to work once just after booting or something. |
Update: ended up reinstalling Windows completely. It is now working again. Possibly a weird network error due to some adapter that would have been complex to debug. Somewhat unsatisfactory as solution. I'd guess that the actual error was somewhere in the WSL network stack. |
Docker Desktop: 4.14.0
Steps to Reproduce:
Visited issues and tested fixes, without success, from:
Worked fine until a few months ago when I started working on another project. Picked this up a few weeks ago and found this error. Debugged for a few days without any success.
Downgraded VSC to 1.68, 1.69 and 1.70 without any success (I suspect that I'd need to downgrade the extension even further?), but it becomes a bit of a joke if I'm forced to use a year-old VSC version.
Downgraded Docker Desktop without any success.
Tried with a brand new VSC installation with no other extensions, same error.
I simply can't find ANY indication as to what the underlying cause here is.
This also happens with a brand new devcontainers setup, such as https://github.com/devcontainers/templates/tree/main/src/docker-from-docker-compose.
I'm increasingly deperate because it's been over a year since I could reliably run this extension for more than a week or two before something breaks. I'm aware this is free software and I'm grateful for all the time and effort being put in, but I'd gladly pay $$ for this if it helped make it more reliable (just as I'd have payed money for it when it was still working fine).
Hoping for any tips that might help.
The text was updated successfully, but these errors were encountered: