microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.68k stars 296 forks source link

Hang while trying to attach to a remote kubernetes pod #10390

Closed puchupala closed 1 month ago

puchupala commented 1 month ago

I'm trying to attach VSCode to my dev pod in a remote K8S cluster but it hang during the following step and eventually error (see logs below).

[18 ms] Dev Containers 0.388.0 in VS Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427).
[18 ms] Start: Resolving Remote
[23 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=9bc01ad3-ffa4-4ed3-a411-8d3e17dcb0521729052253008 /bin/sh
[26 ms] Start: Run in container: echo $PATH
[424 ms] /app/wrapper/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin
[424 ms] Unable to use a TTY - input is not a terminal or the right kind of file
[424 ms] Start: Run in container: id -un
[456 ms] puchupala
[456 ms] 
[456 ms] Start: Run in container: uname -m
[486 ms] x86_64
[486 ms] 
[486 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[518 ms] PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
[518 ms] 
[518 ms] Start: Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd 'puchupala' || grep -E '^puchupala|^[^:]*:[^:]*:puchupala:' /etc/passwd || true)
[549 ms] Start: Run in container: test -d '/mnt/nfs-mnj-home-43/puchupala/.vscode-server'
[580 ms] 
[581 ms] 
[581 ms] Start: Run in container: test ! -f '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine' && { > '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[612 ms] 
[613 ms] 
[613 ms] Exit code 1
[613 ms] Start: Run in container: cat /mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/settings.json
[644 ms] 
[644 ms] cat: /mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/settings.json: No such file or directory
[644 ms] Exit code 1
[644 ms] Start: Run in container: test -d '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427'
[674 ms] 
[674 ms] 
[674 ms] Exit code 1
[675 ms] Installing VS Code Server for commit 384ff7382de624fb94dbaf6da11977bba1ecd427
[675 ms] Start: Installing VS Code Server
[675 ms] Start: Run in container: mkdir -p /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427_1729052254142
[710 ms] 
[711 ms] 
[721 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=7283; dd iflag=fullblock bs=5187 count=1) | tar --no-same-owner -xz -C /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427_1729052254142
[1441009 ms] E1016 13:41:34.476127   24653 v2.go:104] write tcp 172.27.44.5:62512->10.192.13.192:16443: write: broken pipe
E1016 13:41:34.476222   24653 websocket.go:499] Websocket Ping failed: write tcp 172.27.44.5:62512->10.192.13.192:16443: write: broken pipe
E1016 13:41:34.476129   24653 v2.go:150] next reader: read tcp 172.27.44.5:62512->10.192.13.192:16443: read: can't assign requested address
E1016 13:41:34.476137   24653 v2.go:167] next reader: read tcp 172.27.44.5:62512->10.192.13.192:16443: read: can't assign requested address
E1016 13:41:34.476235   24653 v2.go:129] next reader: read tcp 172.27.44.5:62512->10.192.13.192:16443: read: can't assign requested address
[1441014 ms] error: error reading from error stream: next reader: read tcp 172.27.44.5:62512->10.192.13.192:16443: read: can't assign requested address
[1441018 ms] Start: Run in container: rm -rf /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427_1729052254142
[1441018 ms] Stdin closed!
[1441021 ms] Shell server terminated (code: 1, signal: null)

Does this issue occur when you try this locally?: No (creating a new dev container locally works fine) Does this issue occur when you try this locally and all extensions are disabled?: No

puchupala commented 1 month ago

Manually installing VS Code Server using the following command prior to connecting make it works. Note that I was using the script from https://github.com/b01/dl-vscode-server/tree/main

curl -L https://raw.githubusercontent.com/b01/dl-vscode-server/main/download-vs-code-server.sh | BUILD=stable bash -s -- "linux"
puchupala commented 1 month ago

Random guess: This might be related to the fact that the home dir inside the pod is nfs-mounted shared dir.

chrmarti commented 1 month ago

Does it work when you change the home folder to a local folder in the container/pod?

puchupala commented 1 month ago

Does it work when you change the home folder to a local folder in the container/pod?

Yes, it does. Is this a supported use case? I expect the connection to be slow but it probably should at least connect. 🤔

chrmarti commented 1 month ago

I would expect it to work with all filesystems having regular filesystem behavior. Could you enable trace logging for Dev Containers in the user settings? That will make the log show progress from the dd command that is copying the server bits over. It would be interesting to know if that makes progress at all or just hangs. Image

puchupala commented 1 month ago

Somehow, I could no longer reproduce the issue. I removed ~/.vscode-server, and the installation went fine. However, there is a new issue.

I have 2 pods, both sharing the same home directory via NFS. Attaching to Pod A and installing vscode-server work fine.

``` [19 ms] Dev Containers 0.388.0 in VS Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427). [19 ms] Start: Resolving Remote [24 ms] Start: Run: kubectl exec -it mncore2-mpi-dev-3huli-t-1-w-0-nlrfz --context mnjg2 --namespace user-puchupala --container mpi -- env VSCODE_REMOTE_CONTAINERS_SESSION=3c74507d-53f2-4253-b1cc-9893210b165b1729821699242 /bin/sh [26 ms] Start: Run in container: echo $PATH [974 ms] /app/wrapper/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin [975 ms] Unable to use a TTY - input is not a terminal or the right kind of file [975 ms] Start: Run in container: id -un [1006 ms] puchupala [1006 ms] [1007 ms] Start: Run in container: uname -m [1034 ms] x86_64 [1034 ms] [1035 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [1064 ms] PRETTY_NAME="Ubuntu 22.04.3 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.3 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy [1064 ms] [1065 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'puchupala' || grep -E '^puchupala|^[^:]*:[^:]*:puchupala:' /etc/passwd || true) [1095 ms] Start: Run in container: test -d '/mnt/nfs-mnj-home-43/puchupala/.vscode-server' [1122 ms] [1122 ms] [1122 ms] Exit code 1 [1123 ms] Start: Run in container: test -d '/mnt/nfs-mnj-home-43/puchupala/.vscode-remote' [1150 ms] [1150 ms] [1150 ms] Exit code 1 [1151 ms] Start: Run in container: test ! -f '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine' && { > '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [1182 ms] [1182 ms] [1182 ms] Start: Run in container: cat /mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/settings.json [1209 ms] [1209 ms] cat: /mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/settings.json: No such file or directory [1209 ms] Exit code 1 [1210 ms] Start: Run in container: test -d '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427' [1239 ms] [1239 ms] [1239 ms] Exit code 1 [1240 ms] Installing VS Code Server for commit 384ff7382de624fb94dbaf6da11977bba1ecd427 [1240 ms] Start: Installing VS Code Server [1240 ms] Start: Run in container: mkdir -p /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427_1729821700887 [1271 ms] [1272 ms] [1298 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=7283; dd iflag=fullblock bs=5187 count=1) | tar --no-same-owner -xz -C /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427_1729821700887 [9720 ms] 7283+0 records in 7283+0 records out 59662336 bytes (60 MB, 57 MiB) copied, 8.39414 s, 7.1 MB/s [9723 ms] 1+0 records in 1+0 records out 5187 bytes (5.2 kB, 5.1 KiB) copied, 4.7789e-05 s, 109 MB/s [9873 ms] [9874 ms] [9875 ms] Start: Run in container: mv -n /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427_1729821700887/* /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427 && rmdir /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427_1729821700887 [9907 ms] [9907 ms] [9908 ms] Start: Run in container: test -x '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/bin/helpers/check-requirements.sh' [9936 ms] [9937 ms] [9937 ms] Start: Run in container: '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/bin/helpers/check-requirements.sh' [10011 ms] [10012 ms] [10013 ms] Start: Launching Dev Containers helper. [10013 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-584c7822-856c-47b2-965a-c01208039256.sock) forwarded to local host (/private/tmp/com.apple.launchd.zSgw72JdRG/Listeners). [10013 ms] X11 forwarding: DISPLAY not set on local host. [10014 ms] Start: Run in container: gpgconf --list-dirs [10043 ms] sysconfdir:/etc/gnupg bindir:/usr/bin libexecdir:/usr/lib/gnupg libdir:/usr/lib/x86_64-linux-gnu/gnupg datadir:/usr/share/gnupg localedir:/usr/share/locale socketdir:/mnt/nfs-mnj-home-43/puchupala/.gnupg dirmngr-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.dirmngr agent-ssh-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.gpg-agent.ssh agent-extra-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.gpg-agent.extra agent-browser-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.gpg-agent.browser agent-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.gpg-agent homedir:/mnt/nfs-mnj-home-43/puchupala/.gnupg [10043 ms] [10043 ms] Start: Run in container: ls '/mnt/nfs-mnj-home-43/puchupala/.gnupg/private-keys-v1.d' 2>/dev/null [10071 ms] [10071 ms] [10072 ms] Start: Run: gpgconf --list-dirs [10074 ms] spawn gpgconf ENOENT [10074 ms] gpg-agent: No agent-extra-socket found on local host. [10074 ms] Start: Run: kubectl exec -it mncore2-mpi-dev-3huli-t-1-w-0-nlrfz --context mnjg2 --namespace user-puchupala --container mpi -- /bin/sh [10075 ms] userEnvProbe: loginInteractiveShell (default) [10075 ms] Start: Run in container: test -f '/tmp/devcontainers-3c74507d-53f2-4253-b1cc-9893210b165b1729821699242/env-loginInteractiveShell.json' [10076 ms] Start: Run in container: echo ~ [10111 ms] [10111 ms] [10111 ms] Exit code 1 [10111 ms] Start: Run in container: # Test for /mnt/nfs-mnj-home-43/puchupala/.ssh/known_hosts and ssh [10111 ms] userEnvProbe: not found in cache [10111 ms] userEnvProbe shell: /bin/bash [10137 ms] /mnt/nfs-mnj-home-43/puchupala/.ssh/known_hosts exists [10138 ms] [10138 ms] Exit code 1 [10138 ms] Cannot configure system wide Git credential helper without root access. [10138 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 " [10352 ms] Start: Run in container: cat '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/product.json' [10384 ms] Extension host agent is already running. [10384 ms] Start: Run in container: cat '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.devport-384ff7382de624fb94dbaf6da11977bba1ecd427' 2>/dev/null [10411 ms] [10412 ms] [10412 ms] Exit code 1 [10412 ms] Agent port not found. Terminating old extension host agent. [10412 ms] Start: Run in container: kill -9 -456267 -456267 [10441 ms] [10442 ms] [10442 ms] Start: Run in container: cat '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.connection-token-384ff7382de624fb94dbaf6da11977bba1ecd427' 2>/dev/null || (umask 377 && echo '5a32f890-a845-45fc-b541-ebe110ad659f' >'/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.connection-token-384ff7382de624fb94dbaf6da11977bba1ecd427-c2ae483d-22d7-48e5-a9e6-d45d40283e80' && mv -n '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.connection-token-384ff7382de624fb94dbaf6da11977bba1ecd427-c2ae483d-22d7-48e5-a9e6-d45d40283e80' '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.connection-token-384ff7382de624fb94dbaf6da11977bba1ecd427' && rm -f '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.connection-token-384ff7382de624fb94dbaf6da11977bba1ecd427-c2ae483d-22d7-48e5-a9e6-d45d40283e80' && cat '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.connection-token-384ff7382de624fb94dbaf6da11977bba1ecd427') [10478 ms] 5a32f890-a845-45fc-b541-ebe110ad659f [10478 ms] [10478 ms] Start: Starting VS Code Server [10479 ms] Start: Preparing Extensions [10479 ms] Start: Run in container: test ! -f '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine' && { > '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null [10510 ms] [10510 ms] [10511 ms] Extensions cache, install extensions: GitHub.copilot, GitHub.copilot-chat [10512 ms] Start: Run in container: test -d /mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensionsCache && ls /mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensionsCache || true [10541 ms] [10542 ms] [10543 ms] Extensions cache, copy to remote: github.copilot-1.242.0, github.copilot-chat-0.21.2 [10552 ms] Start: Run in container: # Copy extensions to remote [11004 ms] /mnt/nfs-mnj-home-43/puchupala [11005 ms] Unable to use a TTY - input is not a terminal or the right kind of file [11005 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-584c7822-856c-47b2-965a-c01208039256.js' >/tmp/vscode-remote-containers-584c7822-856c-47b2-965a-c01208039256.js [11034 ms] [11035 ms] [11035 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-584c7822-856c-47b2-965a-c01208039256.js' >/tmp/vscode-remote-containers-server-584c7822-856c-47b2-965a-c01208039256.js_1729821710682 [11097 ms] [11097 ms] [11496 ms] userEnvProbe PATHs: Probe: '/mnt/nfs-mnj-home-43/puchupala/.local/bin:/mnt/nfs-mnj-home-43/puchupala/.pyenv/shims:/mnt/nfs-mnj-home-43/puchupala/.pyenv/bin:/usr/local/bin:/usr/bin:/mnt/nfs-mnj-home-43/puchupala/.local/bin/:/mnt/nfs-mnj-home-43/puchupala/.local/bin:/app/wrapper/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin:/snap/bin:/mnt/nfs-mnj-home-43/puchupala/projects/fzf/bin' Container: '/app/wrapper/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin' Merged: '/mnt/nfs-mnj-home-43/puchupala/.local/bin:/mnt/nfs-mnj-home-43/puchupala/.pyenv/shims:/mnt/nfs-mnj-home-43/puchupala/.pyenv/bin:/usr/local/bin:/usr/bin:/mnt/nfs-mnj-home-43/puchupala/.local/bin/:/mnt/nfs-mnj-home-43/puchupala/.local/bin:/app/wrapper/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin:/snap/bin:/mnt/nfs-mnj-home-43/puchupala/projects/fzf/bin' [13819 ms] [13819 ms] [13820 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-3c74507d-53f2-4253-b1cc-9893210b165b1729821699242' && cat > '/tmp/devcontainers-3c74507d-53f2-4253-b1cc-9893210b165b1729821699242/env-loginInteractiveShell.json' << 'envJSON' [13820 ms] Optimizing extensions for quality: stable [13821 ms] Start: Run: kubectl exec -it mncore2-mpi-dev-3huli-t-1-w-0-nlrfz --context mnjg2 --namespace user-puchupala --container mpi -- /bin/sh -c cd "$1" && shift && "$@" -- /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427 env SHELL=/bin/bash /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/bin/code-server --log debug --force-disable-user-env --server-data-dir /mnt/nfs-mnj-home-43/puchupala/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.connection-token-384ff7382de624fb94dbaf6da11977bba1ecd427 --extensions-download-dir /mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensionsCache --install-extension GitHub.copilot --install-extension GitHub.copilot-chat --start-server --disable-websocket-compression --skip-requirements-check [13849 ms] [13849 ms] [14002 ms] Unable to use a TTY - input is not a terminal or the right kind of file [14798 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). * [14802 ms] Server bound to 127.0.0.1:39187 (IPv4) Extension host agent listening on 39187 [14802 ms] Start: Run in container: echo 39187 >'/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.devport-384ff7382de624fb94dbaf6da11977bba1ecd427' [14830 ms] [14830 ms] [14830 ms] Port forwarding for container port 39187 starts listening on local port. [14831 ms] Port forwarding local port 39187 to container port 39187 [14836 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node /tmp/vscode-remote-containers-584c7822-856c-47b2-965a-c01208039256.js git-credential-helper $*; }; f' || true [14838 ms] Port forwarding connection from 56972 > 39187 > 39187 in the container. [14838 ms] Start: Run: kubectl exec -it mncore2-mpi-dev-3huli-t-1-w-0-nlrfz --context mnjg2 --namespace user-puchupala --container mpi -- env VSCODE_REMOTE_CONTAINERS_SESSION=3c74507d-53f2-4253-b1cc-9893210b165b1729821699242 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [14866 ms] [14866 ms] [14872 ms] Ignoring option 'skip-requirements-check': not supported for server. [14880 ms] [11:01:54] [14950 ms] [11:01:54] Installing extensions... [14954 ms] [11:01:54] Extension host agent started. [14985 ms] Port forwarding 56972 > 39187 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [14998 ms] [11:01:54] Error while reading the extension cache file: /mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/CachedProfilesData/__default__profile__/extensions.builtin.cache Unable to read file '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/CachedProfilesData/__default__profile__/extensions.builtin.cache' (Error: Unable to resolve nonexistent file '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/CachedProfilesData/__default__profile__/extensions.builtin.cache') [11:01:54] Started initializing default profile extensions in extensions installation folder. file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions [15024 ms] [11:01:54] ComputeTargetPlatform: linux-x64 [15048 ms] [11:01:54] Completed initializing default profile extensions in extensions installation folder. file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions [15056 ms] [11:01:54] ComputeTargetPlatform: linux-x64 [15615 ms] [11:01:55] Installing extension 'github.copilot'... [15621 ms] [11:01:55] Installing extension 'github.copilot-chat'... [15629 ms] Port forwarding 56972 > 39187 > 39187 stderr: Connection established [15639 ms] [11:01:55] Getting Manifest... github.copilot [11:01:55] Getting Manifest... github.copilot-chat [15640 ms] Port forwarding connection from 56977 > 39187 > 39187 in the container. [15641 ms] Start: Run: kubectl exec -it mncore2-mpi-dev-3huli-t-1-w-0-nlrfz --context mnjg2 --namespace user-puchupala --container mpi -- env VSCODE_REMOTE_CONTAINERS_SESSION=3c74507d-53f2-4253-b1cc-9893210b165b1729821699242 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [15649 ms] [11:01:55] Installing extension: github.copilot { isMachineScoped: false, installPreReleaseVersion: false, isApplicationScoped: true, isBuiltin: false, installGivenVersion: false, installOnlyNewlyAddedFromExtensionPack: true, profileLocation: hn { scheme: 'file', authority: '', path: '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/extensions.json', query: '', fragment: '', _formatted: 'file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/extensions.json', _fsPath: '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/extensions.json' }, productVersion: { version: '1.94.2', date: '2024-10-09T16:08:44.566Z' } } [11:01:55] Installing extension: github.copilot-chat { isMachineScoped: false, installPreReleaseVersion: false, isApplicationScoped: true, isBuiltin: false, installGivenVersion: false, installOnlyNewlyAddedFromExtensionPack: true, profileLocation: hn { scheme: 'file', authority: '', path: '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/extensions.json', query: '', fragment: '', _formatted: 'file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/extensions.json', _fsPath: '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/extensions.json' }, productVersion: { version: '1.94.2', date: '2024-10-09T16:08:44.566Z' } } [15655 ms] [11:01:55] Using cached extensions scan result system file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/extensions [15687 ms] [11:01:55] [127.0.0.1][5db92740][ManagementConnection] New connection established. [15753 ms] [11:01:55] Log level changed to info [15800 ms] Port forwarding 56977 > 39187 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [16051 ms] [11:01:55] Getting Manifest... github.copilot-chat [16111 ms] [11:01:55] Getting Manifest... github.copilot [16392 ms] Port forwarding 56977 > 39187 > 39187 stderr: Connection established [16462 ms] [11:01:56] [127.0.0.1][2a45d583][ExtensionHostConnection] New connection established. [16465 ms] [11:01:56] [127.0.0.1][2a45d583][ExtensionHostConnection] <459016> Launched Extension Host Process. [17082 ms] [11:01:56] Extension signature verification result for github.copilot: Success. Executed: true. Duration: 905ms. [17084 ms] [11:01:56] Extension signature verification result for github.copilot-chat: Success. Executed: true. Duration: 918ms. [17388 ms] [11:01:57] Extracted extension to file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/github.copilot-chat-0.21.2: github.copilot-chat [17392 ms] [11:01:57] Renamed to /mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/github.copilot-chat-0.21.2 [17525 ms] [11:01:57] Extracted extension to file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/github.copilot-1.242.0: github.copilot [17526 ms] [11:01:57] Renamed to /mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/github.copilot-1.242.0 [17532 ms] [11:01:57] Extension installed successfully: github.copilot-chat file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/extensions.json [11:01:57] Extension installed successfully: github.copilot file:///mnt/nfs-mnj-home-43/puchupala/.vscode-server/extensions/extensions.json [11:01:57] Extension 'github.copilot-chat' v0.21.2 was successfully installed. [17533 ms] [11:01:57] Extension 'github.copilot' v1.242.0 was successfully installed. [19154 ms] Port forwarding connection from 56985 > 39187 > 39187 in the container. [19154 ms] Start: Run: kubectl exec -it mncore2-mpi-dev-3huli-t-1-w-0-nlrfz --context mnjg2 --namespace user-puchupala --container mpi -- env VSCODE_REMOTE_CONTAINERS_SESSION=3c74507d-53f2-4253-b1cc-9893210b165b1729821699242 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [19309 ms] Port forwarding 56985 > 39187 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [20067 ms] Port forwarding 56985 > 39187 > 39187 stderr: Connection established [23855 ms] Extensions cache, remote removals: None [25076 ms] Port forwarding 56985 > 39187 > 39187 stderr: Remote close [25083 ms] Port forwarding 56985 > 39187 > 39187 terminated with code 0 and signal null. ```

However, when I try to attach to Pod B, I get 2 error dialogs.

Could not fetch remote environment

and

Failed to connect to the remote extension host server (Error: WebSocket close with status code 1006)

``` [17 ms] Dev Containers 0.388.0 in VS Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427). [17 ms] Start: Resolving Remote [23 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /bin/sh [24 ms] Start: Run in container: echo $PATH [383 ms] /usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin [383 ms] Unable to use a TTY - input is not a terminal or the right kind of file [383 ms] Start: Run in container: id -un [414 ms] puchupala [414 ms] [415 ms] Start: Run in container: uname -m [440 ms] x86_64 [441 ms] [441 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [467 ms] PRETTY_NAME="Ubuntu 22.04.5 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.5 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy [467 ms] [468 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'puchupala' || grep -E '^puchupala|^[^:]*:[^:]*:puchupala:' /etc/passwd || true) [494 ms] Start: Run in container: test -d '/mnt/nfs-mnj-home-43/puchupala/.vscode-server' [519 ms] [519 ms] [519 ms] Start: Run in container: test ! -f '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine' && { > '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [545 ms] [545 ms] [545 ms] Exit code 1 [545 ms] Start: Run in container: cat /mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/settings.json [572 ms] [572 ms] cat: /mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/settings.json: No such file or directory [573 ms] Exit code 1 [573 ms] Start: Run in container: test -d '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427' [599 ms] [599 ms] [599 ms] Start: Run in container: test -x '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/bin/helpers/check-requirements.sh' [625 ms] [625 ms] [625 ms] Start: Run in container: '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/bin/helpers/check-requirements.sh' [697 ms] [697 ms] [698 ms] Start: Launching Dev Containers helper. [698 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-c868015b-d2d0-4763-962f-9b6001a6cbf7.sock) forwarded to local host (/private/tmp/com.apple.launchd.zSgw72JdRG/Listeners). [698 ms] X11 forwarding: DISPLAY not set on local host. [698 ms] Start: Run in container: gpgconf --list-dirs [723 ms] sysconfdir:/etc/gnupg bindir:/usr/bin libexecdir:/usr/lib/gnupg libdir:/usr/lib/x86_64-linux-gnu/gnupg datadir:/usr/share/gnupg localedir:/usr/share/locale socketdir:/mnt/nfs-mnj-home-43/puchupala/.gnupg dirmngr-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.dirmngr agent-ssh-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.gpg-agent.ssh agent-extra-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.gpg-agent.extra agent-browser-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.gpg-agent.browser agent-socket:/mnt/nfs-mnj-home-43/puchupala/.gnupg/S.gpg-agent homedir:/mnt/nfs-mnj-home-43/puchupala/.gnupg [723 ms] [724 ms] Start: Run in container: ls '/mnt/nfs-mnj-home-43/puchupala/.gnupg/private-keys-v1.d' 2>/dev/null [755 ms] [755 ms] [756 ms] Start: Run: gpgconf --list-dirs [758 ms] spawn gpgconf ENOENT [758 ms] gpg-agent: No agent-extra-socket found on local host. [758 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- /bin/sh [759 ms] userEnvProbe: loginInteractiveShell (default) [759 ms] Start: Run in container: test -f '/tmp/devcontainers-425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783/env-loginInteractiveShell.json' [759 ms] Start: Run in container: echo ~ [783 ms] [783 ms] [783 ms] Exit code 1 [784 ms] Start: Run in container: # Test for /mnt/nfs-mnj-home-43/puchupala/.ssh/known_hosts and ssh [784 ms] userEnvProbe: not found in cache [784 ms] userEnvProbe shell: /bin/bash [809 ms] /mnt/nfs-mnj-home-43/puchupala/.ssh/known_hosts exists [809 ms] [809 ms] Exit code 1 [809 ms] Cannot configure system wide Git credential helper without root access. [810 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 " [993 ms] Start: Run in container: cat '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/product.json' [1023 ms] Extension host agent is already running. [1023 ms] Start: Run in container: cat '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.devport-384ff7382de624fb94dbaf6da11977bba1ecd427' 2>/dev/null [1050 ms] 39187 [1050 ms] [1050 ms] Start: Run in container: cat '/mnt/nfs-mnj-home-43/puchupala/.vscode-server/data/Machine/.connection-token-384ff7382de624fb94dbaf6da11977bba1ecd427' [1078 ms] 5a32f890-a845-45fc-b541-ebe110ad659f [1078 ms] [1078 ms] Port forwarding for container port 39187 starts listening on local port. [1080 ms] Port forwarding local port 57050 to container port 39187 [1080 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node /tmp/vscode-remote-containers-c868015b-d2d0-4763-962f-9b6001a6cbf7.js git-credential-helper $*; }; f' || true [1090 ms] /mnt/nfs-mnj-home-43/puchupala [1090 ms] Unable to use a TTY - input is not a terminal or the right kind of file [1090 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-c868015b-d2d0-4763-962f-9b6001a6cbf7.js' >/tmp/vscode-remote-containers-c868015b-d2d0-4763-962f-9b6001a6cbf7.js [1109 ms] [1110 ms] [1115 ms] [1116 ms] [1116 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-c868015b-d2d0-4763-962f-9b6001a6cbf7.js' >/tmp/vscode-remote-containers-server-c868015b-d2d0-4763-962f-9b6001a6cbf7.js_1729821843321 [1171 ms] [1172 ms] [1573 ms] userEnvProbe PATHs: Probe: '/mnt/nfs-mnj-home-43/puchupala/.local/bin:/mnt/nfs-mnj-home-43/puchupala/.pyenv/shims:/mnt/nfs-mnj-home-43/puchupala/.pyenv/bin:/usr/local/bin:/usr/bin:/mnt/nfs-mnj-home-43/puchupala/.local/bin/:/mnt/nfs-mnj-home-43/puchupala/.local/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin:/snap/bin:/mnt/nfs-mnj-home-43/puchupala/projects/fzf/bin' Container: '/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin' Merged: '/mnt/nfs-mnj-home-43/puchupala/.local/bin:/mnt/nfs-mnj-home-43/puchupala/.pyenv/shims:/mnt/nfs-mnj-home-43/puchupala/.pyenv/bin:/usr/local/bin:/usr/bin:/mnt/nfs-mnj-home-43/puchupala/.local/bin/:/mnt/nfs-mnj-home-43/puchupala/.local/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/in1/bin:/opt/gpfn2-smi/bin:/snap/bin:/mnt/nfs-mnj-home-43/puchupala/projects/fzf/bin' [1573 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783' && cat > '/tmp/devcontainers-425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783/env-loginInteractiveShell.json' << 'envJSON' [1602 ms] [1602 ms] [1612 ms] Port forwarding connection from 57051 > 57050 > 39187 in the container. [1612 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [1778 ms] Port forwarding 57051 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [1973 ms] Port forwarding 57051 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16) [1974 ms] Port forwarding 57051 > 57050 > 39187 stderr: Remote close with error [1983 ms] Port forwarding 57051 > 57050 > 39187 stderr: command terminated with exit code 1 [1985 ms] Port forwarding 57051 > 57050 > 39187 terminated with code 1 and signal null. [1985 ms] Port forwarding 57051 > 57050 > 39187: Local close [1986 ms] Start: Reconnection attempt 1 [1986 ms] CLIHost does not need reconnection. [1996 ms] Port forwarding connection from 57057 > 57050 > 39187 in the container. [1996 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [2186 ms] Port forwarding 57057 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [2381 ms] Port forwarding 57057 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)Remote close with error [2391 ms] Port forwarding 57057 > 57050 > 39187 stderr: command terminated with exit code 1 [2393 ms] Port forwarding 57057 > 57050 > 39187 terminated with code 1 and signal null. [2393 ms] Port forwarding 57057 > 57050 > 39187: Local close [2405 ms] Port forwarding connection from 57060 > 57050 > 39187 in the container. [2405 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [2578 ms] Port forwarding 57060 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [2778 ms] Port forwarding 57060 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)Remote close with error [2781 ms] Port forwarding 57060 > 57050 > 39187 stderr: command terminated with exit code 1 [2783 ms] Port forwarding 57060 > 57050 > 39187 terminated with code 1 and signal null. [2783 ms] Port forwarding 57060 > 57050 > 39187: Local close [2796 ms] Port forwarding connection from 57063 > 57050 > 39187 in the container. [2796 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [2797 ms] Start: Reconnection attempt 2 [2797 ms] CLIHost does not need reconnection. [2797 ms] Destroying 1 leftover connections to forwarded port 57050. [2798 ms] Port forwarding 57063 > 57050 > 39187: Local close [2815 ms] Port forwarding connection from 57064 > 57050 > 39187 in the container. [2815 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [2963 ms] Port forwarding 57063 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [2982 ms] Port forwarding 57064 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [3157 ms] Port forwarding 57063 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)Remote close with error [3158 ms] Port forwarding 57064 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)Remote close with error [3162 ms] Port forwarding 57064 > 57050 > 39187 stderr: command terminated with exit code 1 [3163 ms] Port forwarding 57063 > 57050 > 39187 stderr: command terminated with exit code 1 [3171 ms] Port forwarding 57064 > 57050 > 39187 terminated with code 1 and signal null. [3172 ms] Port forwarding 57063 > 57050 > 39187 terminated by extension (closed) with code 1 and signal null. [3172 ms] Port forwarding 57064 > 57050 > 39187: Local close [3173 ms] Start: Reconnection attempt 3 [3174 ms] CLIHost does not need reconnection. [3178 ms] Port forwarding connection from 57069 > 57050 > 39187 in the container. [3178 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [3353 ms] Port forwarding 57069 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [3538 ms] Port forwarding 57069 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16) [3540 ms] Port forwarding 57069 > 57050 > 39187 stderr: Remote close with error [3548 ms] Port forwarding 57069 > 57050 > 39187 stderr: command terminated with exit code 1 [3558 ms] Port forwarding 57069 > 57050 > 39187 terminated with code 1 and signal null. [3558 ms] Port forwarding 57069 > 57050 > 39187: Local close [3570 ms] Port forwarding connection from 57072 > 57050 > 39187 in the container. [3570 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [3748 ms] Port forwarding 57072 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [3943 ms] Port forwarding 57072 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)Remote close with error [3948 ms] Port forwarding 57072 > 57050 > 39187 stderr: command terminated with exit code 1 [3952 ms] Port forwarding 57072 > 57050 > 39187 terminated with code 1 and signal null. [3952 ms] Port forwarding 57072 > 57050 > 39187: Local close [3956 ms] Start: Reconnection attempt 4 [3956 ms] CLIHost does not need reconnection. [3963 ms] Port forwarding connection from 57076 > 57050 > 39187 in the container. [3963 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [4141 ms] Port forwarding 57076 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [4329 ms] Port forwarding 57076 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)Remote close with error [4333 ms] Port forwarding 57076 > 57050 > 39187 stderr: command terminated with exit code 1 [4335 ms] Port forwarding 57076 > 57050 > 39187 terminated with code 1 and signal null. [4335 ms] Port forwarding 57076 > 57050 > 39187: Local close [4347 ms] Port forwarding connection from 57079 > 57050 > 39187 in the container. [4347 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [4519 ms] Port forwarding 57079 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [4711 ms] Port forwarding 57079 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)Remote close with error [4716 ms] Port forwarding 57079 > 57050 > 39187 stderr: command terminated with exit code 1 [4717 ms] Port forwarding 57079 > 57050 > 39187 terminated with code 1 and signal null. [4717 ms] Port forwarding 57079 > 57050 > 39187: Local close [4727 ms] Port forwarding connection from 57082 > 57050 > 39187 in the container. [4728 ms] Start: Run: kubectl exec -it mncore-dev --context mnjg2 --namespace user-puchupala --container main -- env VSCODE_REMOTE_CONTAINERS_SESSION=425e05bc-e41d-4cd6-b918-927b5e343fbc1729821841783 /mnt/nfs-mnj-home-43/puchupala/.vscode-server/bin/384ff7382de624fb94dbaf6da11977bba1ecd427/node -e [4898 ms] Port forwarding 57082 > 57050 > 39187 stderr: Unable to use a TTY - input is not a terminal or the right kind of file [5084 ms] Port forwarding 57082 > 57050 > 39187 stderr: Error: connect ECONNREFUSED 127.0.0.1:39187 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)Remote close with error [5088 ms] Port forwarding 57082 > 57050 > 39187 stderr: command terminated with exit code 1 [5089 ms] Port forwarding 57082 > 57050 > 39187 terminated with code 1 and signal null. [5089 ms] Port forwarding 57082 > 57050 > 39187: Local close ```

Since this is not related to the problem described in this issue, please allow me to close this issue and perhaps start a new one.

chrmarti commented 1 month ago

The problem with sharing the entire home folder between pods is that Dev Containers remembers the port the server listens on in a file in the home folder. The second pod's log shows ECONNREFUSED 127.0.0.1:39187 because it got the port of the server running on the first pod.

puchupala commented 1 month ago

I see... Thank you very much for the clarification. Should I open a new ticket or is this an unsupported use case? (shared home dir)

chrmarti commented 1 month ago

It is unsupported, you could open an issue to ask for support though. (Or try some workaround like making ~/.vscode-server a symlink to a folder in the container.)