vscode-remote-release
vscode-remote-release copied to clipboard
VSCode Dev Container (Podman): Segmentation fault - Error reading shell environment, Error: unexpected end of parent stream
- VSCode Version: 1.87.2
- Local OS Version: MacOs Ventura 13.4. M2 mac
- Remote OS Version: Rocky Linux 8.8
- Remote Extension/Connection Type: Containers
- Logs: 10 ms] Dev Containers 0.362.0 in VS Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6). [10 ms] Start: Resolving Remote [11 ms] Setting up container: RockyTest [16 ms] Start: Run: /opt/podman/bin/podman inspect --type container RockyTest [119 ms] Start: Check Docker is running [119 ms] Start: Run: /opt/podman/bin/podman version [267 ms] Client: Podman Engine Version: 4.8.2 API Version: 4.8.2 Go Version: go1.21.5 Git Commit: aa546902fa1a927b3d770528565627d1395b19f3 Built: Mon Dec 11 18:14:02 2023 OS/Arch: darwin/arm64
Server: Podman Engine
Version: 4.7.2
API Version: 4.7.2
Go Version:
[267 ms] go1.21.1
Built: Tue Oct 31 20:00:33 2023
OS/Arch: linux/arm64
[268 ms] Running Dev Containers CLI: set-up --container-id 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1 --user-data-folder /Users/ajays/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path /opt/podman/bin/podman --container-session-data-folder /tmp/devcontainers-0e4873d8-4150-49ba-9786-5bf94f1728a11714994149287 --log-level debug --log-format json --default-user-env-probe loginInteractiveShell --skip-post-create
[294 ms] ProxyResolver#loadSystemCertificates count
[295 ms] ProxyResolver#loadSystemCertificates count filtered
[295 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/spec-node/devContainersSpecCLI.js set-up --container-id 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1 --user-data-folder /Users/ajays/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path /opt/podman/bin/podman --container-session-data-folder /tmp/devcontainers-0e4873d8-4150-49ba-9786-5bf94f1728a11714994149287 --log-level debug --log-format json --default-user-env-probe loginInteractiveShell --skip-post-create
[450 ms] @devcontainers/cli 0.59.1. Node.js v18.17.1. darwin 22.5.0 arm64.
[450 ms] Start: Run: /opt/podman/bin/podman buildx version
[553 ms] buildah 1.33.2
[553 ms]
[553 ms] Start: Run: /opt/podman/bin/podman -v
[568 ms] Start: Run: /opt/podman/bin/podman inspect --type container 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1
[681 ms] Start: Inspecting container
[681 ms] Start: Run: /opt/podman/bin/podman inspect --type container 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1
[792 ms] Start: Run in container: /bin/sh
[792 ms] Start: Run in container: uname -m
[978 ms] x86_64
[978 ms]
[978 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[1006 ms] NAME="Rocky Linux"
VERSION="8.8 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.8 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
[1006 ms]
[1007 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]:[^:]:root:' /etc/passwd || true)
[1041 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[1049 ms]
[1049 ms]
[1049 ms] Exit code 1
[1049 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[1080 ms]
[1080 ms]
[1080 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[1107 ms]
[1107 ms]
[1107 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[1113 ms]
[1113 ms]
[1113 ms] Exit code 1
[1113 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[1145 ms]
[1145 ms]
[1145 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^$])$/\1${PATH:-\3}/g' /etc/profile || true
[1185 ms]
[1185 ms]
[1188 ms] Running Dev Containers CLI: read-configuration --docker-path /opt/podman/bin/podman --container-id 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1 --log-level debug --log-format json --include-merged-configuration --mount-workspace-git-root
[1189 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/spec-node/devContainersSpecCLI.js read-configuration --docker-path /opt/podman/bin/podman --container-id 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1 --log-level debug --log-format json --include-merged-configuration --mount-workspace-git-root
[1371 ms] @devcontainers/cli 0.59.1. Node.js v18.17.1. darwin 22.5.0 arm64.
[1371 ms] Start: Run: /opt/podman/bin/podman inspect --type container 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1
[1487 ms] Start: Inspecting container
[1488 ms] Start: Run: /opt/podman/bin/podman inspect --type container 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1
[1597 ms] Start: Run in container: /bin/sh
[1597 ms] Start: Run in container: uname -m
[1794 ms] x86_64
[1794 ms]
[1794 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[1822 ms] NAME="Rocky Linux"
VERSION="8.8 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.8 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
[1822 ms]
[1823 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]:[^:]:root:' /etc/passwd || true)
[1850 ms] Start: Run in container: test -d '/root/.vscode-server'
[1856 ms]
[1856 ms]
[1856 ms] Exit code 1
[1856 ms] Start: Run in container: test -d '/root/.vscode-remote'
[1861 ms]
[1861 ms]
[1861 ms] Exit code 1
[1861 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
[1887 ms]
[1887 ms]
[1888 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[1912 ms]
[1912 ms] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory
[1912 ms] Exit code 1
[1912 ms] Start: Run in container: test -d '/root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6'
[1917 ms]
[1917 ms]
[1917 ms] Exit code 1
[1918 ms] Installing VS Code Server for commit 863d2581ecda6849923a2118d93a088b0745d9d6
[1919 ms] Start: Installing VS Code Server
[1919 ms] Start: Run in container: mkdir -p /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6_1714994151566
[1940 ms]
[1941 ms]
[1958 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=7014; dd iflag=fullblock bs=6039 count=1) | tar --no-same-owner -xz -C /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6_1714994151566
[4471 ms] 7014+0 records in
7014+0 records out
[4474 ms] 57458688 bytes (57 MB, 55 MiB) copied, 2.47452 s, 23.2 MB/s
[4496 ms] 1+0 records in
1+0 records out
[4498 ms] 6039 bytes (6.0 kB, 5.9 KiB) copied, 0.00121917 s, 5.0 MB/s
[4511 ms]
[4511 ms]
[4511 ms] Start: Run in container: mv -n /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6_1714994151566/ /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6 && rmdir /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6_1714994151566
[4561 ms]
[4562 ms]
[4562 ms] Start: Run in container: test -x '/root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/helpers/check-requirements.sh'
[4567 ms]
[4567 ms]
[4567 ms] Start: Run in container: '/root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/helpers/check-requirements.sh'
[5224 ms]
[5225 ms]
[5225 ms] Start: Launching Dev Containers helper.
[5225 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-da77af80-7776-48b3-9363-022331d0963f.sock) forwarded to local host (/private/tmp/com.apple.launchd.6adzggSH6O/Listeners).
[5225 ms] X11 forwarding: DISPLAY not set on local host.
[5225 ms] Start: Run in container: gpgconf --list-dir agent-socket
[5255 ms] /root/.gnupg/S.gpg-agent
[5255 ms]
[5255 ms] Start: Run in container: gpgconf --list-dir homedir
[5281 ms] /root/.gnupg
[5281 ms]
[5281 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null
[5309 ms]
[5309 ms]
[5309 ms] Exit code 2
[5309 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[5311 ms] gpg-agent: No agent-extra-socket found on local host.
[5311 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[5317 ms]
[5318 ms]
[5318 ms] Exit code 1
[5318 ms] Start: Run in container: /bin/sh
[5318 ms] userEnvProbe: loginInteractiveShell (default)
[5318 ms] Start: Run in container: test -f '/tmp/devcontainers-0e4873d8-4150-49ba-9786-5bf94f1728a11714994149287/env-loginInteractiveShell.json'
[5318 ms] Start: Run in container: echo ~
[5325 ms]
[5325 ms]
[5325 ms] Exit code 1
[5325 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[5325 ms] userEnvProbe: not found in cache
[5325 ms] userEnvProbe shell: /bin/bash
[5337 ms] ssh not found
[5338 ms]
[5338 ms] Exit code 1
[5338 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node /tmp/vscode-remote-containers-da77af80-7776-48b3-9363-022331d0963f.js git-credential-helper $*; }; f' || true
[5345 ms]
[5345 ms]
[5345 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 "
[5508 ms] /root
[5508 ms]
[5508 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-da77af80-7776-48b3-9363-022331d0963f.js' >/tmp/vscode-remote-containers-da77af80-7776-48b3-9363-022331d0963f.js
[5538 ms]
[5538 ms]
[5539 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-da77af80-7776-48b3-9363-022331d0963f.js' >/tmp/vscode-remote-containers-server-da77af80-7776-48b3-9363-022331d0963f.js_1714994155185
[5618 ms]
[5619 ms]
[5995 ms] Start: Run in container: cat '/root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/product.json'
[6019 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-863d2581ecda6849923a2118d93a088b0745d9d6' 2>/dev/null || (umask 377 && echo 'ceb3f1fb-0709-4e46-bed5-c6bc46cc71b7' >'/root/.vscode-server/data/Machine/.connection-token-863d2581ecda6849923a2118d93a088b0745d9d6-1eb6f17c-bc7c-49f9-820c-753b947a8271' && mv -n '/root/.vscode-server/data/Machine/.connection-token-863d2581ecda6849923a2118d93a088b0745d9d6-1eb6f17c-bc7c-49f9-820c-753b947a8271' '/root/.vscode-server/data/Machine/.connection-token-863d2581ecda6849923a2118d93a088b0745d9d6' && rm -f '/root/.vscode-server/data/Machine/.connection-token-863d2581ecda6849923a2118d93a088b0745d9d6-1eb6f17c-bc7c-49f9-820c-753b947a8271' && cat '/root/.vscode-server/data/Machine/.connection-token-863d2581ecda6849923a2118d93a088b0745d9d6')
[6126 ms] ceb3f1fb-0709-4e46-bed5-c6bc46cc71b7
[6127 ms]
[6127 ms] Start: Starting VS Code Server
[6127 ms] Start: Preparing Extensions
[6127 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[6159 ms]
[6159 ms]
[6160 ms] Extensions cache, install extensions: None
[6160 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true
[6166 ms]
[6166 ms]
[6166 ms] Extensions cache, copy to remote: None
[6167 ms] Optimizing extensions for quality: stable
[6167 ms] Start: Run in container: /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/code-server --log debug --force-disable-user-env --server-data-dir /root/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server/data/Machine/.connection-token-863d2581ecda6849923a2118d93a088b0745d9d6 --extensions-download-dir /root/.vscode-server/extensionsCache --start-server --disable-websocket-compression --skip-requirements-check
[7040 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).
[7082 ms] Server bound to 127.0.0.1:46393 (IPv4) Extension host agent listening on 46393
[7083 ms] Start: Run in container: echo 46393 >'/root/.vscode-server/data/Machine/.devport-863d2581ecda6849923a2118d93a088b0745d9d6'
[7090 ms]
[7090 ms]
[7090 ms] Port forwarding for container port 46393 starts listening on local port.
[7091 ms] Port forwarding local port 46393 to container port 46393
[7091 ms] Start: Run in container: # Test for /root/.gitconfig and git
[7106 ms] git not found
[7106 ms]
[7106 ms] Exit code 1
[7106 ms] Start: Run in container: # Cleaning up git config
[7153 ms]
[7153 ms] /bin/sh: line 42: git: command not found
/bin/sh: line 42: git: command not found
/bin/sh: line 42: git: command not found
/bin/sh: line 47: git: command not found
[7153 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node /tmp/vscode-remote-containers-da77af80-7776-48b3-9363-022331d0963f.js git-credential-helper $*; }; f' || true
[7162 ms]
[7163 ms]
[7628 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 "
[7633 ms] Container server: /bin/sh: line 32: 368 Segmentation fault (core dumped) REMOTE_CONTAINERS_SOCKETS='["/tmp/vscode-ssh-auth-da77af80-7776-48b3-9363-022331d0963f.sock"]' REMOTE_CONTAINERS_IPC='/tmp/vscode-remote-containers-ipc-da77af80-7776-48b3-9363-022331d0963f.sock' '/root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node' '/tmp/vscode-remote-containers-server-da77af80-7776-48b3-9363-022331d0963f.js'
[7646 ms] Error reading shell environment.
[7646 ms] Error: unexpected end of parent stream
at Ii.destroy (/Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:26638)
at Ii.write (/Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:27379)
at /Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:29482
at /Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:14866
at /Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:17539
at Object.cb (/Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:23957)
at l (/Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:22183)
at /Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:22330
at s (/Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:30:5371)
at Socket.
[8489 ms] [11:15:58] Extension host agent started. [8516 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-0e4873d8-4150-49ba-9786-5bf94f1728a11714994149287' && cat > '/tmp/devcontainers-0e4873d8-4150-49ba-9786-5bf94f1728a11714994149287/env-loginInteractiveShell.json' << 'envJSON' [8517 ms] userEnvProbe is taking longer than 2 seconds. Process not found. [8570 ms] [8571 ms] [8571 ms] Start: Run in container: /bin/sh -c # Watch installed extensions [8571 ms] Start: Run in container: /bin/sh -c # Watch machine settings [8579 ms] Initializing configuration support... [8579 ms] Internal initialization of dev container support package... [8582 ms] Port forwarding connection from 55790 > 46393 > 46393 in the container. [8582 ms] Start: Run in container: /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node -e [8818 ms] [11:15:58] No uninstalled extensions found. [8823 ms] [11:15:58] Started initializing default profile extensions in extensions installation folder. file:///root/.vscode-server/extensions [8881 ms] [11:15:58] ComputeTargetPlatform: linux-x64 [8896 ms] [11:15:58] Completed initializing default profile extensions in extensions installation folder. file:///root/.vscode-server/extensions [9306 ms] Port forwarding 55790 > 46393 > 46393 stderr: Connection established [9346 ms] Port forwarding connection from 55795 > 46393 > 46393 in the container. [9347 ms] Start: Run in container: /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node -e [9376 ms] [11:15:59] [127.0.0.1][35d1f544][ManagementConnection] New connection established. [9437 ms] [11:15:59] Log level changed to info [9962 ms] Start: Run in container: cat '/root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/product.json' [9994 ms] Start: Run in container: /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/code-server --server-data-dir /root/.vscode-server --telemetry-level all --list-extensions [10003 ms] Port forwarding 55795 > 46393 > 46393 stderr: Connection established [10452 ms] [11:16:00] [127.0.0.1][3054e502][ExtensionHostConnection] New connection established. [10567 ms] [11:16:00] [127.0.0.1][3054e502][ExtensionHostConnection] <936> Launched Extension Host Process. [12051 ms] /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/code-server: line 32: 507 Segmentation fault (core dumped) "$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" "$@" [12061 ms] Port forwarding 55795 > 46393 > 46393 stderr: Remote close [12066 ms] Port forwarding 55790 > 46393 > 46393 stderr: Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) [12070 ms] Port forwarding 55790 > 46393 > 46393 stderr: Remote close with error [12088 ms] Port forwarding 55795 > 46393 > 46393 terminated with code 0 and signal null. [12089 ms] Port forwarding 55795 > 46393 > 46393: Local close [12090 ms] Port forwarding connection from 55804 > 46393 > 46393 in the container. [12090 ms] Start: Run in container: /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node -e [12122 ms] Port forwarding 55790 > 46393 > 46393 terminated with code 1 and signal null. [12122 ms] Port forwarding 55790 > 46393 > 46393: Local close [12123 ms] Start: Reconnection attempt 1 [12123 ms] Start: Run: /opt/podman/bin/podman inspect --type container 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1 [12761 ms] Port forwarding 55804 > 46393 > 46393 stderr: Error: connect ECONNREFUSED 127.0.0.1:46393 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) [12768 ms] Port forwarding 55804 > 46393 > 46393 stderr: Remote close with error [12799 ms] Port forwarding 55804 > 46393 > 46393 terminated with code 1 and signal null. [12799 ms] Port forwarding 55804 > 46393 > 46393: Local close [12811 ms] Port forwarding connection from 55807 > 46393 > 46393 in the container. [12811 ms] Start: Run in container: /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node -e [13158 ms] [13158 ms] [13160 ms] Start: Run in container: /bin/sh -c # Watch installed extensions [13478 ms] Port forwarding 55807 > 46393 > 46393 stderr: Error: connect ECONNREFUSED 127.0.0.1:46393 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) [13485 ms] Port forwarding 55807 > 46393 > 46393 stderr: Remote close with error [13534 ms] Port forwarding 55807 > 46393 > 46393 terminated with code 1 and signal null. [13534 ms] Port forwarding 55807 > 46393 > 46393: Local close [16199 ms] Extensions cache, remote removals: None [17803 ms] Port forwarding connection from 55812 > 46393 > 46393 in the container. [17803 ms] Start: Run in container: /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node -e [18437 ms] Port forwarding 55812 > 46393 > 46393 stderr: Error: connect ECONNREFUSED 127.0.0.1:46393 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) [18443 ms] Port forwarding 55812 > 46393 > 46393 stderr: Remote close with error [18494 ms] Port forwarding 55812 > 46393 > 46393 terminated with code 1 and signal null. [18494 ms] Port forwarding 55812 > 46393 > 46393: Local close [18536 ms] Start: Reconnection attempt 2 [18537 ms] Start: Run: /opt/podman/bin/podman inspect --type container 9ef26f6e4f139a47bd45c445867f1dd2611dd568af09084e8b87c1694ab77bc1 [18655 ms] Port forwarding connection from 55815 > 46393 > 46393 in the container. [18656 ms] Start: Run in container: /root/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node -e [19316 ms] Port forwarding 55815 > 46393 > 46393 stderr: Error: connect ECONNREFUSED 127.0.0.1:46393 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) [19322 ms] Port forwarding 55815 > 46393 > 46393 stderr: Remote close with error [19375 ms] Port forwarding 55815 > 46393 > 46393 terminated with code 1 and signal null. [19375 ms] Port forwarding 55815 > 46393 > 46393: Local close
Steps to Reproduce:
- Pull Rocky Linux 8.8 Image. I am using m2 chip and I need x86 image for my purpose. (podman pull --platform linux/amd64 rockylinux:8.8)
- Run the Rocky Linux 8.8 container on the Podman
- Configured Dev Container extension for Podman. Please set path of podman. Ex. /opt/podman/bin/podman
- Open "Remote Explorer" and select "Dev Containers" from the dropdown and choose the Rocky Linux container.
- Select "Open in Container in New Window" option and you would notice error in the log.
Does this issue occur when you try this locally?: Yes Does this issue occur when you try this locally and all extensions are disabled?: Not tried
Not seeing this with Docker. It fails at a point that might not be specific to Podman. Could you try with Docker? Also try with the latest VS Code version 1.89.0, there were some server related fix since 1.87.2 which you are using.
Not seeing this with Docker. It fails at a point that might not be specific to Podman. Could you try with Docker? Also try with the latest VS Code version 1.89.0, there were some server related fix since 1.87.2 which you are using.
I already did try it with Docker. The issue is only with Podman containers. I've updated VSCode to 1.89.1 but still the issue persist.
Not seeing this with Docker. It fails at a point that might not be specific to Podman. Could you try with Docker? Also try with the latest VS Code version 1.89.0, there were some server related fix since 1.87.2 which you are using.在 Docker 中没有看到这一点。它在某个点失败,这可能不是 Podman 特有的。你能尝试使用 Docker 吗?另请尝试使用最新的 VS Code 版本 1.89.0,自您正在使用的 1.87.2 以来,存在一些与服务器相关的修复。
[12 ms] Dev Containers 0.362.0 in VS Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685). [12 ms] Start: 正在解析远程 [13 ms] Setting up container: ssh [17 ms] Start: Run: podman inspect --type container ssh [137 ms] Start: Check Docker is running [137 ms] Start: Run: podman version [285 ms] Client: Podman Engine Version: 5.0.3 API Version: 5.0.3 Go Version: go1.22.3 Git Commit: d08315df35cb6e95f65bf3935f529295c6e54742 Built: Fri May 10 23:37:14 2024 OS/Arch: darwin/arm64
Server: Podman Engine
Version: 4.9.4
API Version: 4.9.4
Go Version: go1.21.8
Built: Tue Mar 26 17:40:45 2024
OS/Arch: linux/arm64
[286 ms] Running Dev Containers CLI: set-up --container-id f761942ccafdd60d095da95313e2a77a324c68eafe3099521c4914ed21cfd06b --user-data-folder /Users/chenqi/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path podman --container-session-data-folder /tmp/devcontainers-6c287de3-c20e-4902-b203-a67cd7fbb8141717039561513 --log-level debug --log-format json --default-user-env-probe loginInteractiveShell --skip-post-create
[306 ms] ProxyResolver#loadSystemCertificates count
[307 ms] ProxyResolver#loadSystemCertificates count filtered
[307 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/spec-node/devContainersSpecCLI.js set-up --container-id f761942ccafdd60d095da95313e2a77a324c68eafe3099521c4914ed21cfd06b --user-data-folder /Users/chenqi/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path podman --container-session-data-folder /tmp/devcontainers-6c287de3-c20e-4902-b203-a67cd7fbb8141717039561513 --log-level debug --log-format json --default-user-env-probe loginInteractiveShell --skip-post-create
[461 ms] @devcontainers/cli 0.59.1. Node.js v18.18.2. darwin 22.6.0 arm64.
[461 ms] Start: Run: podman buildx version
[555 ms] buildah 1.35.4
[555 ms]
[555 ms] Start: Run: podman -v
[571 ms] Start: Run: podman inspect --type container f761942ccafdd60d095da95313e2a77a324c68eafe3099521c4914ed21cfd06b
[680 ms] Start: Inspecting container
[680 ms] Start: Run: podman inspect --type container f761942ccafdd60d095da95313e2a77a324c68eafe3099521c4914ed21cfd06b
[785 ms] Start: Run in container: /bin/sh
[787 ms] Start: Run in container: uname -m
[942 ms] x86_64
[942 ms]
[942 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[964 ms] PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[964 ms]
[964 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]:[^:]:root:' /etc/passwd || true)
[999 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[1001 ms]
[1001 ms]
[1001 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[1003 ms]
[1003 ms]
[1006 ms] Running Dev Containers CLI: read-configuration --docker-path podman --container-id f761942ccafdd60d095da95313e2a77a324c68eafe3099521c4914ed21cfd06b --log-level debug --log-format json --include-merged-configuration --mount-workspace-git-root
[1007 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/spec-node/devContainersSpecCLI.js read-configuration --docker-path podman --container-id f761942ccafdd60d095da95313e2a77a324c68eafe3099521c4914ed21cfd06b --log-level debug --log-format json --include-merged-configuration --mount-workspace-git-root
[1153 ms] @devcontainers/cli 0.59.1. Node.js v18.18.2. darwin 22.6.0 arm64.
[1153 ms] Start: Run: podman inspect --type container f761942ccafdd60d095da95313e2a77a324c68eafe3099521c4914ed21cfd06b
[1266 ms] Start: Inspecting container
[1266 ms] Start: Run: podman inspect --type container f761942ccafdd60d095da95313e2a77a324c68eafe3099521c4914ed21cfd06b
[1364 ms] Start: Run in container: /bin/sh
[1365 ms] Start: Run in container: uname -m
[1510 ms] x86_64
[1511 ms]
[1511 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[1531 ms] PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[1531 ms]
[1531 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]:[^:]:root:' /etc/passwd || true)
[1559 ms] Start: Run in container: test -d '/root/.vscode-server'
[1562 ms]
[1562 ms]
[1562 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
[1565 ms]
[1565 ms]
[1565 ms] Exit code 1
[1565 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[1586 ms] {
"python.analysis.autoFormatStrings": true,
"editor.formatOnSave": true,
"python.autoComplete.extraPaths": [],
"[python]": {
"editor.defaultFormatter": "eeyore.yapf",
"editor.formatOnSave": true,
"editor.formatOnType": false,
},
"yapf.args": [
"--style",
"{based_on_style=yapf, arithmetic_precedence_indication=True, column_limit=256, coalesce_brackets=True, dedent_closing_brackets=True,indent_width: 4}"
]
}
[1587 ms]
[1587 ms] Start: Run in container: test -d '/root/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685'
[1592 ms]
[1592 ms]
[1593 ms] Start: Run in container: test -x '/root/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/bin/helpers/check-requirements.sh'
[1596 ms]
[1596 ms]
[1596 ms] Start: Run in container: '/root/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/bin/helpers/check-requirements.sh'
[2152 ms]
[2152 ms]
[2153 ms] Start: Launching Dev Containers helper.
[2153 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-953d282c-828e-48d1-9766-5f181a75db68.sock) forwarded to local host (/private/tmp/com.apple.launchd.RqyOLwbt81/Listeners).
[2153 ms] X11 forwarding: DISPLAY not set on local host.
[2153 ms] Start: Run in container: gpgconf --list-dir agent-socket
[2177 ms] /root/.gnupg/S.gpg-agent
[2178 ms]
[2178 ms] Start: Run in container: gpgconf --list-dir homedir
[2202 ms] /root/.gnupg
[2203 ms]
[2203 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null
[2229 ms]
[2229 ms]
[2230 ms] Exit code 2
[2230 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[2234 ms] gpg-agent: No agent-extra-socket found on local host.
[2234 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[2237 ms]
[2237 ms]
[2237 ms] Exit code 127
[2237 ms] Start: Run in container: /bin/sh
[2238 ms] userEnvProbe: loginInteractiveShell (default)
[2238 ms] Start: Run in container: test -f '/tmp/devcontainers-6c287de3-c20e-4902-b203-a67cd7fbb8141717039561513/env-loginInteractiveShell.json'
[2239 ms] Start: Run in container: echo ~
[2241 ms]
[2241 ms]
[2241 ms] Exit code 1
[2241 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[2241 ms] userEnvProbe: not found in cache
[2241 ms] userEnvProbe shell: /bin/bash
[2244 ms] /root/.ssh/known_hosts exists
[2244 ms]
[2244 ms] Exit code 1
[2244 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/node /tmp/vscode-remote-containers-953d282c-828e-48d1-9766-5f181a75db68.js git-credential-helper $*; }; f' || true
[2280 ms]
[2280 ms]
[2281 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 "
[2369 ms] /root
[2369 ms]
[2369 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-953d282c-828e-48d1-9766-5f181a75db68.js' >/tmp/vscode-remote-containers-953d282c-828e-48d1-9766-5f181a75db68.js
[2392 ms]
[2392 ms]
[2392 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-953d282c-828e-48d1-9766-5f181a75db68.js' >/tmp/vscode-remote-containers-server-953d282c-828e-48d1-9766-5f181a75db68.js_1717039564208
[2440 ms]
[2440 ms]
[2839 ms] Start: Run in container: cat '/root/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/product.json'
[2862 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-dc96b837cf6bb4af9cd736aa3af08cf8279f7685' 2>/dev/null || (umask 377 && echo 'd560eddd-9f2f-450c-afe2-5d6938465801' >'/root/.vscode-server/data/Machine/.connection-token-dc96b837cf6bb4af9cd736aa3af08cf8279f7685-f8817ed1-c781-4d8b-82ca-97c7e0c98611' && mv -n '/root/.vscode-server/data/Machine/.connection-token-dc96b837cf6bb4af9cd736aa3af08cf8279f7685-f8817ed1-c781-4d8b-82ca-97c7e0c98611' '/root/.vscode-server/data/Machine/.connection-token-dc96b837cf6bb4af9cd736aa3af08cf8279f7685' && rm -f '/root/.vscode-server/data/Machine/.connection-token-dc96b837cf6bb4af9cd736aa3af08cf8279f7685-f8817ed1-c781-4d8b-82ca-97c7e0c98611' && cat '/root/.vscode-server/data/Machine/.connection-token-dc96b837cf6bb4af9cd736aa3af08cf8279f7685')
[2888 ms] 692afc09-5714-4f00-aa90-8f485952b84b
[2888 ms]
[2889 ms] Start: Starting VS Code Server
[2889 ms] Start: Preparing Extensions
[2889 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[2892 ms]
[2893 ms]
[2893 ms] Exit code 1
[2893 ms] Extensions cache, install extensions: None
[2893 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true
[2924 ms] aminer.codegeex-2.9.0
donjayamanne.githistory-0.6.20
eamodio.gitlens-14.9.0
eeyore.yapf-2023.12.104100706
mhutchie.git-graph-1.30.0
ms-ceintl.vscode-language-pack-zh-hans-1.89.2024050109
ms-python.debugpy-2024.6.0-linux-x64
ms-python.python-2024.6.0
ms-python.vscode-pylance-2024.5.1
slightc.pip-manager-1.1.3
[2925 ms]
[2926 ms] Extensions cache, copy to remote: None
[2926 ms] Optimizing extensions for quality: stable
[2926 ms] Start: Run in container: /root/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/bin/code-server --log debug --force-disable-user-env --server-data-dir /root/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server/data/Machine/.connection-token-dc96b837cf6bb4af9cd736aa3af08cf8279f7685 --extensions-download-dir /root/.vscode-server/extensionsCache --start-server --disable-websocket-compression --skip-requirements-check
[3709 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).
[3747 ms] Server bound to 127.0.0.1:43733 (IPv4) Extension host agent listening on 43733
[3748 ms] Start: Run in container: echo 43733 >'/root/.vscode-server/data/Machine/.devport-dc96b837cf6bb4af9cd736aa3af08cf8279f7685'
[3752 ms]
[3752 ms]
[3752 ms] Port forwarding for container port 43733 starts listening on local port.
[3753 ms] Port forwarding local port 43733 to container port 43733
[3753 ms] Start: Run in container: # Test for /root/.gitconfig and git
[3794 ms] [user]
[credential]
/root/.gitconfig exists
[3795 ms]
[3796 ms] Exit code 1
[3797 ms] Start: Run in container: # Cleaning up git config
[3913 ms]
[3913 ms]
[3913 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/node /tmp/vscode-remote-containers-953d282c-828e-48d1-9766-5f181a75db68.js git-credential-helper $*; }; f' || true
[3944 ms]
[3944 ms]
[4444 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 "
[4772 ms] Ignoring option 'skip-requirements-check': not supported for server.
[4952 ms] [11:26:06]
[5206 ms] [11:26:07] Extension host agent started.
[5519 ms] userEnvProbe is taking longer than 2 seconds. Process not found.
[5566 ms] [11:26:07] No uninstalled extensions found.
[7237 ms] Container server: Segmentation fault (core dumped)
[7273 ms] Error reading shell environment.
[7273 ms] Error: unexpected end of parent stream
at Ii.destroy (/Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:26638)
at Ii.write (/Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:27379)
at /Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:29482
at /Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:14866
at /Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:17539
at Object.cb (/Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:23957)
at l (/Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:22183)
at /Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:27:22330
at s (/Users/chenqi/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:30:5371)
at Socket.
Any updates on this?
This seems to be a problem with Podman. Maybe check you are using the latest versions of VS Code, Dev Containers and Podman and file an issue with Podman to track. Thanks.
I'm encountering the same issue. While I can successfully attach to a Podman container using Dev Containers locally, I'm unable to do so using a remote Dev Container. In order to switch connections, I have to stop the container and restart it. This allows me to connect with the remote Dev Container, but then I lose the ability to connect locally. It appears that the .vscode-server/data/Machine/.connection-token might differ for each connection, possibly preventing simultaneous connections to a Podman container. Is there a way to manage multiple connections effectively?