-
Notifications
You must be signed in to change notification settings - Fork 261
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
Error "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes" #8967
Comments
I suggest you create a new Profile in which you disable all non-essential extensions, then see if the problem remains. |
You can switch to the pre-release version and continue with your work. There is an issue with the new release. It keeps asking for a password despite having already connected to the host. |
@ChitturiSaiSuman I just tried, and I get the same error... I reinstalled everything last night and it worked, for hours, so, imo, it's not the extensions or the dev containers version. Then today, I restart VS Code and the problem appears again. |
@gjsjohnmurray I have the same issue. I use bisect to disable all extensions but it still occurs. I try to reinstall code and remove .vscode-server on my server, and it doesn't work. |
@gjsjohnmurray Does it work when you install everything and run it for the first time like me? Then next time around, the error appears. I don't think it's Docker, but more probably a VS Code issue. |
Please append the Dev Containers log from when this happens. ( |
@chrmarti Here's the log. Dev Containers log[12 ms] Dev Containers 0.309.0 in VS Code 1.82.1 (6509174151d557a81c9d0b5f8a5a1e9274db5585). [12 ms] Start: Resolving Remote [17 ms] Start: Check Docker is running [17 ms] Start: Run: docker version --format {{.Server.APIVersion}} [58 ms] Server API version: 1.43 [63 ms] Start: Run: tar --no-same-owner -x -f - [68 ms] Start: Run: docker build -f /var/folders/3m/13nq658x1mq0ss5658vysz2r0000gn/T/vsch/bootstrap-image/0.309.0/bootstrap.Dockerfile -t vsc-volume-bootstrap /var/folders/3m/13nq658x1mq0ss5658vysz2r0000gn/T/vsch/bootstrap-image/0.309.0 [+] Building 0.4s (10/10) FINISHED docker:desktop-linux => [internal] load build definition from bootstrap.Dockerfile 0.0s => => transferring dockerfile: 570B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for mcr.microsoft.com/devcontainers/base:0-a 0.4s => [1/5] FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.16@sha256: 0.0s => [internal] load build context 0.0s => => transferring context: 1.78MB 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:0d9f543684098e8a85f12fcdc1c7e71c71afd8c248a77 0.0s => => naming to docker.io/library/vsc-volume-bootstrap 0.0sWhat's Next?
[11741 ms] Server bound to 127.0.0.1:36175 (IPv4) [11741 ms] Start: Run in container: echo 36175 >'/home/vscode/.vscode-server/data/Machine/.devport-6509174151d557a81c9d0b5f8a5a1e9274db5585' [11857 ms] Port forwarding 50086 > 36175 > 36175 stderr: Connection established [17269 ms] [11:01:33] [127.0.0.1][4969f142][ExtensionHostConnection] <537> Extension Host Process exited with code: null, signal: SIGSEGV. [23801080 ms] [17:37:57] [127.0.0.1][92d090cc][ExtensionHostConnection] <25202> Extension Host Process exited with code: null, signal: SIGSEGV. [23802568 ms] [17:37:58] [127.0.0.1][62702a74][ExtensionHostConnection] <25305> Extension Host Process exited with code: null, signal: SIGSEGV. [23804101 ms] [17:38:00] [127.0.0.1][5dd62be2][ExtensionHostConnection] <25408> Extension Host Process exited with code: null, signal: SIGSEGV. [23966014 ms] [17:40:42] [127.0.0.1][1df7e827][ExtensionHostConnection] <25743> Extension Host Process exited with code: null, signal: SIGSEGV. |
In my case, it happened if meets following all conditions:
It didn't happen even if either of condition is not met. Dev Containers log[34 ms] Dev Containers 0.309.0 in VS Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d).
[34 ms] Start: Resolving Remote
[54 ms] Setting up container for folder or workspace: /Users/c16e-shinoda/workspace/docker-compose-terraform
[54 ms] Context: desktop-linux
[56 ms] Start: Check Docker is running
[56 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[157 ms] Server API version: 1.43
[157 ms] Start: Run: docker volume ls -q
[241 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/c16e-shinoda/workspace/docker-compose-terraform --filter label=vsch.quality=stable
[348 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/c16e-shinoda/workspace/docker-compose-terraform --filter label=devcontainer.config_file=/Users/c16e-shinoda/workspace/docker-compose-terraform/.devcontainer/devcontainer.json
[437 ms] Start: Run: docker inspect --type container 5fc67241eb2c
[502 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/c16e-shinoda/workspace/docker-compose-terraform
[567 ms] Start: Run: docker inspect --type container 5fc67241eb2c
[633 ms] Start: Run: docker exec -i -u root 5fc67241eb2c9783861f083b980f91dd7dcbd590eb4018e63972cb24982d070d /bin/sh -c echo "Container already running. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=26cd5e98-d97a-4a12-b11c-49c843a951d21694783822481 ; /bin/sh
[634 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/c16e-shinoda/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/c16e-shinoda/workspace/docker-compose-terraform --id-label devcontainer.local_folder=/Users/c16e-shinoda/workspace/docker-compose-terraform --id-label devcontainer.config_file=/Users/c16e-shinoda/workspace/docker-compose-terraform/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/c16e-shinoda/workspace/docker-compose-terraform/.devcontainer/devcontainer.json --mount-workspace-git-root true
[788 ms] Container already running. Keep-alive process started.
[961 ms] @devcontainers/cli 0.51.1. Node.js v18.15.0. darwin 21.6.0 x64.
[961 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/c16e-shinoda/workspace/docker-compose-terraform --filter label=devcontainer.config_file=/Users/c16e-shinoda/workspace/docker-compose-terraform/.devcontainer/devcontainer.json
[1330 ms] Start: Run: docker inspect --type container 5fc67241eb2c
[1843 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/c16e-shinoda/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/c16e-shinoda/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-26cd5e98-d97a-4a12-b11c-49c843a951d21694783822481 --workspace-folder /Users/c16e-shinoda/workspace/docker-compose-terraform --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/c16e-shinoda/workspace/docker-compose-terraform --id-label devcontainer.config_file=/Users/c16e-shinoda/workspace/docker-compose-terraform/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/c16e-shinoda/workspace/docker-compose-terraform/.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 true
[2275 ms] @devcontainers/cli 0.51.1. Node.js v18.15.0. darwin 21.6.0 x64.
[2275 ms] Start: Run: docker buildx version
[2812 ms] github.com/docker/buildx v0.11.2-desktop.4 b9955a86a20bf0112ebb4f14424bf59fc46ee179
[2812 ms]
[2812 ms] Start: Resolving Remote
[2898 ms] Start: Run: docker-compose version --short
[3510 ms] Docker Compose version: 2.21.0-desktop.1
[3510 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=docker-compose-terraform --filter label=com.docker.compose.service=tfenv
[3584 ms] Start: Run: docker inspect --type container 5fc67241eb2c
[3660 ms] Start: Inspecting container
[3660 ms] Start: Run: docker inspect --type container 5fc67241eb2c9783861f083b980f91dd7dcbd590eb4018e63972cb24982d070d
[3734 ms] Start: Run in container: /bin/sh
[3735 ms] Start: Run in container: uname -m
[3863 ms] x86_64
[3863 ms]
[3863 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[3868 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/"
[3868 ms]
[3869 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true)
[3873 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[3876 ms]
[3876 ms]
[3877 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[3880 ms]
[3880 ms]
[3893 ms] Start: Run: docker inspect --type container 5fc67241eb2c9783861f083b980f91dd7dcbd590eb4018e63972cb24982d070d
[4001 ms] Start: Run: docker-compose version --short
[4264 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/c16e-shinoda/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/c16e-shinoda/workspace/docker-compose-terraform --id-label devcontainer.local_folder=/Users/c16e-shinoda/workspace/docker-compose-terraform --id-label devcontainer.config_file=/Users/c16e-shinoda/workspace/docker-compose-terraform/.devcontainer/devcontainer.json --container-id 5fc67241eb2c9783861f083b980f91dd7dcbd590eb4018e63972cb24982d070d --log-level debug --log-format json --config /Users/c16e-shinoda/workspace/docker-compose-terraform/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[4605 ms] @devcontainers/cli 0.51.1. Node.js v18.15.0. darwin 21.6.0 x64.
[4605 ms] Start: Run: docker inspect --type container 5fc67241eb2c9783861f083b980f91dd7dcbd590eb4018e63972cb24982d070d
[4694 ms] Start: Inspecting container
[4695 ms] Start: Run: docker inspect --type container 5fc67241eb2c9783861f083b980f91dd7dcbd590eb4018e63972cb24982d070d
[4769 ms] Start: Run in container: /bin/sh
[4770 ms] Start: Run in container: uname -m
[4903 ms] x86_64
[4903 ms]
[4903 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[4908 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/"
[4908 ms]
[4909 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true)
[4914 ms] Start: Setup shutdown monitor
[4915 ms] Forking shutdown monitor: /Users/c16e-shinoda/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/shutdown/shutdownMonitorProcess /var/folders/66/lydlbpk57yj8g2xcywxzvqj00000gn/T/vscode-remote-containers-311ec254-6f47-4bd7-8a26-26b390a8c486.sock dockerCompose Debug /Users/c16e-shinoda/Library/Application Support/Code/logs/20230915T174250/window14/exthost/ms-vscode-remote.remote-containers 1694783823306
[4918 ms] Start: Run in container: test -d /root/.vscode-server
[4923 ms]
[4923 ms]
[4924 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[4927 ms]
[4927 ms]
[4927 ms] Exit code 1
[4927 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[4933 ms] {
"editor.formatOnSave": true,
"terraform.experimentalFeatures.validateOnSave": true,
"[terraform]": {
"editor.defaultFormatter": "hashicorp.terraform",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.formatAll.terraform": true
}
},
"[terraform-vars]": {
"editor.defaultFormatter": "hashicorp.terraform",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.formatAll.terraform": true
}
}
}
[4933 ms]
[4934 ms] Start: Run in container: test -d /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
[4938 ms]
[4938 ms]
[4939 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
[4942 ms]
[4942 ms]
[4942 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d'
[4943 ms] Start: Launching Dev Containers helper.
[4943 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-143ab551-c473-49bd-9fac-0429960ac1af.sock) forwarded to local host (/private/tmp/com.apple.launchd.HOehnWW4Xx/Listeners).
[4943 ms] X11 forwarding: DISPLAY not set on local host.
[4947 ms]
[4948 ms]
[4949 ms] Start: Run in container: gpgconf --list-dir agent-socket
[4959 ms] /root/.gnupg/S.gpg-agent
[4959 ms]
[4960 ms] Start: Run in container: gpgconf --list-dir homedir
[4967 ms] /root/.gnupg
[4967 ms]
[4967 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null
[4974 ms]
[4974 ms]
[4974 ms] Exit code 2
[4975 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[4976 ms] gpg-agent: No agent-extra-socket found on local host.
[4977 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[4981 ms]
[4981 ms]
[4981 ms] Exit code 127
[4982 ms] Start: Run in container: /bin/sh
[4984 ms] userEnvProbe: loginInteractiveShell (default)
[4985 ms] Start: Run in container: test -f '/tmp/devcontainers-26cd5e98-d97a-4a12-b11c-49c843a951d21694783822481/env-loginInteractiveShell.json'
[4986 ms] Start: Run in container: echo ~
[5000 ms]
[5000 ms]
[5000 ms] Exit code 1
[5000 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[5001 ms] userEnvProbe: not found in cache
[5001 ms] userEnvProbe shell: /bin/bash
[5008 ms] /root/.ssh/known_hosts exists
[5008 ms]
[5008 ms] Exit code 1
[5009 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node /tmp/vscode-remote-containers-143ab551-c473-49bd-9fac-0429960ac1af.js git-credential-helper $*; }; f' || true
[5034 ms]
[5034 ms]
[5035 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd || echo ; readlink /proc/$pid/ns/mnt || echo ; cat /proc/$pid/stat | tr "
[5178 ms] /root
[5178 ms]
[5178 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-143ab551-c473-49bd-9fac-0429960ac1af.js' >/tmp/vscode-remote-containers-143ab551-c473-49bd-9fac-0429960ac1af.js
[5187 ms]
[5187 ms]
[5187 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-143ab551-c473-49bd-9fac-0429960ac1af.js' >/tmp/vscode-remote-containers-server-143ab551-c473-49bd-9fac-0429960ac1af.js_1694783828493
[5197 ms]
[5197 ms]
[5288 ms] Start: Run in container: cat '/root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/product.json'
[5296 ms] Extension host agent is already running.
[5296 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.devport-abd2f3db4bdb28f9e95536dfa84d8479f1eb312d' 2>/dev/null
[5305 ms] 41327
[5306 ms]
[5307 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-abd2f3db4bdb28f9e95536dfa84d8479f1eb312d'
[5320 ms] 8d4d980d-70d8-49e5-aace-79da9b46362a
[5320 ms]
[5321 ms] Port forwarding for container port 41327 starts listening on local port.
[5323 ms] Port forwarding local port 41327 to container port 41327
[5326 ms] Start: Run in container: # Test for /root/.gitconfig and git
[5329 ms] /root/.gitconfig exists
[5329 ms]
[5329 ms] Exit code 1
[5330 ms] Start: Run in container: # Cleaning up git config
[5369 ms]
[5369 ms]
[5369 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node /tmp/vscode-remote-containers-143ab551-c473-49bd-9fac-0429960ac1af.js git-credential-helper $*; }; f' || true
[5375 ms] userEnvProbe PATHs:
Probe: '/root/.tfenv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/.guard/bin/'
Container: '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/.guard/bin/'
[5384 ms]
[5385 ms]
[5385 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-26cd5e98-d97a-4a12-b11c-49c843a951d21694783822481' && cat > '/tmp/devcontainers-26cd5e98-d97a-4a12-b11c-49c843a951d21694783822481/env-loginInteractiveShell.json' << 'envJSON'
[5396 ms]
[5397 ms]
[5426 ms] Port forwarding connection from 50791 > 41327 > 41327 in the container.
[5427 ms] Start: Run in container: /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node -e
[5650 ms] Port forwarding 50791 > 41327 > 41327 stderr: Connection established
[5665 ms] Port forwarding connection from 50795 > 41327 > 41327 in the container.
[5666 ms] Start: Run in container: /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node -e
[5906 ms] Port forwarding 50795 > 41327 > 41327 stderr: Connection established
[9807 ms] Start: Run in container: cat /proc/1078/environ
[9822 ms] Start: Run in container: rm '/tmp/vscode-remote-containers-ipc-792456c8-d78a-462b-b060-3bb5ea32cec1.sock' && ln -s '/tmp/vscode-remote-containers-ipc-143ab551-c473-49bd-9fac-0429960ac1af.sock' '/tmp/vscode-remote-containers-ipc-792456c8-d78a-462b-b060-3bb5ea32cec1.sock'
[9847 ms]
[9847 ms]
[9848 ms] Start: Run in container: rm '/tmp/vscode-ssh-auth-792456c8-d78a-462b-b060-3bb5ea32cec1.sock' && ln -s '/tmp/vscode-ssh-auth-143ab551-c473-49bd-9fac-0429960ac1af.sock' '/tmp/vscode-ssh-auth-792456c8-d78a-462b-b060-3bb5ea32cec1.sock'
[9881 ms]
[9882 ms]
[10433 ms] Port forwarding 50795 > 41327 > 41327 stderr: Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
[10433 ms] Port forwarding 50795 > 41327 > 41327 stderr: Remote close with error
[10458 ms] Port forwarding 50795 > 41327 > 41327 terminated with code 1 and signal null.
[10459 ms] Port forwarding 50795 > 41327 > 41327: Local close
[10462 ms] Port forwarding connection from 50812 > 41327 > 41327 in the container.
[10462 ms] Start: Run in container: /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node -e
[10620 ms] Port forwarding 50812 > 41327 > 41327 stderr: Connection established
[10640 ms] Port forwarding 50812 > 41327 > 41327 stderr: Remote close
[10668 ms] Port forwarding 50812 > 41327 > 41327 terminated with code 0 and signal null.
[10668 ms] Port forwarding 50812 > 41327 > 41327: Local close
[10669 ms] Port forwarding connection from 50813 > 41327 > 41327 in the container.
[10670 ms] Start: Run in container: /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node -e
[10837 ms] Port forwarding 50813 > 41327 > 41327 stderr: Connection established
[13083 ms] Port forwarding 50813 > 41327 > 41327 stderr: Remote close
[13103 ms] Port forwarding 50813 > 41327 > 41327 terminated with code 0 and signal null.
[13104 ms] Port forwarding 50813 > 41327 > 41327: Local close
[13140 ms] Port forwarding connection from 50820 > 41327 > 41327 in the container.
[13141 ms] Start: Run in container: /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node -e
[13332 ms] Port forwarding 50820 > 41327 > 41327 stderr: Connection established
[13353 ms] Port forwarding 50820 > 41327 > 41327 stderr: Remote close
[13374 ms] Port forwarding 50820 > 41327 > 41327 terminated with code 0 and signal null.
[13375 ms] Port forwarding 50820 > 41327 > 41327: Local close
[13382 ms] Port forwarding connection from 50821 > 41327 > 41327 in the container.
[13382 ms] Start: Run in container: /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node -e
[13551 ms] Port forwarding 50821 > 41327 > 41327 stderr: Connection established
[15777 ms] Port forwarding 50821 > 41327 > 41327 stderr: Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
[15778 ms] Port forwarding 50821 > 41327 > 41327 stderr: Remote close with error
[15800 ms] Port forwarding 50821 > 41327 > 41327 terminated with code 1 and signal null.
[15801 ms] Port forwarding 50821 > 41327 > 41327: Local close
[15824 ms] Port forwarding connection from 50829 > 41327 > 41327 in the container.
[15824 ms] Start: Run in container: /root/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node -e
[16006 ms] Port forwarding 50829 > 41327 > 41327 stderr: Connection established
[16031 ms] Port forwarding 50829 > 41327 > 41327 stderr: Remote close
[16066 ms] Port forwarding 50829 > 41327 > 41327 terminated with code 0 and signal null.
[16067 ms] Port forwarding 50829 > 41327 > 41327: Local close |
@yukihiko-shinoda Wow, it worked! I removed the .git folder in some repo that I had cloned, and I restarted the Remote Extension Host, and the error message didn't come back, and now the notebook automatically finds the Mojo kernel as it should. |
I am also working in a devcontainer and I faced the same issue. I followed @yukihiko-shinoda instructions here and avoid mounting the .git in the devcontainer and now it works great. Here are the values of the
I changed to the following to solve the issue :
Even though it solves the issue, I still hope that we will find another solution because it is really important in my project to be able to see git diffs from within the devcontainer and the only way to achieve that is to mount the .git folder into the devcontainer. Thanks @yukihiko-shinoda for the quick fix ! 🙏🏽 |
I have a same problem, I must downgrade to version 1.81 from https://code.visualstudio.com/updates/v1_81. I'm on MacOS and can confirm that if the git is not available it's working. I try to reinstall new version, and until I confirm that the parent git folder is safe (in devcontainer it is owned by root) everything works. But after confirm remote extension crashed. Downgrade VS Code fixed the problem, but that is not a good solution. |
Also experiencing this issue, even after 1.83.0 upgrade. |
Similar issue here. Is there any workaround so we can use |
We faced the same problem in our dev container.
|
@MartinPELCAT So, now, it works even with a .git folder in your container? |
@jpbianchi Yes, my container was created with "Clone Repository in Container Volume" so I have the .git |
I'm seeing the same error, but it's not linked to DevContainers. It's a C++ project in WSL2 Ubuntu 22.04. Should I create another issue I guess? |
@borjamunozf this probably needs raising on the C++ extension. |
Those seeing this when there is a Note that there will be a notification in the lower right of the window asking if you want to also disable dependent extensions, please confirm that. You can reenable all after this testing. |
@chrmarti The problem still occurs with those extensions disabled in v1.84.2. The last version where the problem did not occur is v1.81.1. |
Similar: microsoft/vscode#194458 (comment) |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
I have same issue, I hope to solve this problem. |
Start VSCode with extensions disabled Close all running instances of VSCode (to be sure, check via Task Manager for any leaky processes). |
I could not have solved this problem. |
Does is occur with Dev Containers 0.309.0 and the latest version of VS Code? (0.309.0 was the last stable release of Dev Containers compatible with VS Code 1.81.1.) |
Yes, it still occurs after downgrading Dev Containers to v0.309.0 with latest version of VS Code, even with built-in git extensions disabled. |
I worked in VS Code version 1.81.1 with Dev Container v0.309.0. |
Has anyone had this issue when working behind an enterprise network (above error message) vs non-enterprise internet connection (no issues) for the same repo? |
@chrmarti Please let me know if there is any additional information I can gather for you. This problem affects the dev container I use for my daily work. I am desperate for a resolution. |
I believe the issue may not originate from the vscode/devcontainer side. In my situation, it turned out to be a Docker virtualization issue on Mac OS. I switched from VirtioFS to gRPC FUSE and disabled 'Use Virtualization Framework' in my Docker Desktop settings, as suggested in this thread. These changes resolved the problem. It seems to be a good temporary workaround. @gloomylumi @jpbianchi If you're also using macOS, could you try replicating these steps to see if it resolves your issue as well? |
Disabling the built-in Git and Git-Base extensions were sufficient to get rid of this issue for me. I was opening a dev container with docker, vscode v 1.85.1. The issue occurred when no extensions were installed (well, except built-ins) so the Extension Bisect wasn't helpful as it doesn't account for built-in extensions. @chrmarti thank you for the workaround! Setup SpecsVSCode
Docker
|
That worked!!! You are my hero @asdfML 💫 |
Same here! This seems to have solved issues when I was onboarding someone on our VScode devcontainer. She was using an Intel Mac. Seems to work fine on M1s. |
This solution worked for me on Macbook Pro Sonoma |
I also can confirm this on MacOS Sonoma (intel). The key was to disable Use Virtualization, just changing VirtioFS to gRPC fuse didn't help. |
@asdfML It worked!!!! Thank you so much!! It helped me a lot...!!! |
A fix for this issue is planned for the upcoming Docker Desktop v4.30. |
MacOS Sonoma Users this is the working solution for you guys. A big shoutout and thanks to @asdfML |
FYI, i have the same issue, some how i solved this by:
|
Docker Desktop v4.30 has been released. You can now try to enable virtualization: VirtuoFS and 'Use Virtualization Framework' option. P.S. Personally, I've switched to OrbStack and it solves all my problems (performance, stability) with Docker Desktop, so you might want to give it a try. |
Type: Performance Issue
I'm using Dev containers to try the new language Mojo.
Everything seems to be fine, installation is great, the container is created and running on Docker, VSCode connects to it BUT I'm getting the error message 'Remote Extension host terminated unexpectedly 3 times within the last 5 minutes'.
I can press 'Restart Remote Extension Host', but then it happens again and again.
The container is running at all times, and seems fine since I can see the files in the linked volume from inside VSCode.
I've created a new dev container, rebooted, reset, etc, but I end up always with the same issue.
VS Code version: Code 1.82.0 (Universal) (8b617bd08fd9e3fc94d14adb8d358b56e3f72314, 2023-09-06T22:09:41.364Z)
OS version: Darwin x64 22.6.0
Modes:
Remote OS version: Linux x64 5.15.49-linuxkit-pr
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Process Info
Workspace Info
Extensions (23)
(2 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: