Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode Dev Container (Podman): Segmentation fault - Error reading shell environment, Error: unexpected end of parent stream #9859

Open
sitedev007 opened this issue May 6, 2024 · 2 comments
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@sitedev007
Copy link

  • 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] *

[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. (/Users/ajays/.vscode/extensions/ms-vscode-remote.remote-containers-0.362.0/dist/extension/extension.js:30:5541)
at Socket.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[7646 ms] Container server terminated (code: 139, signal: null).
[8163 ms] Ignoring option 'skip-requirements-check': not supported for server.
[8290 ms] [11:15:58]

[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:

  1. 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)
  2. Run the Rocky Linux 8.8 container on the Podman
  3. Configured Dev Container extension for Podman. Please set path of podman. Ex. /opt/podman/bin/podman
  4. Open "Remote Explorer" and select "Dev Containers" from the dropdown and choose the Rocky Linux container.
  5. 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

@VSCodeTriageBot VSCodeTriageBot added the containers Issue in vscode-remote containers label May 6, 2024
@chrmarti
Copy link
Contributor

chrmarti commented May 7, 2024

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.

@chrmarti chrmarti added the info-needed Issue requires more information from poster label May 7, 2024
@sitedev007
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants