vscode-remote-release
vscode-remote-release copied to clipboard
Using runArg network=host prevents extensions from installing in devcontainer
I have the following bug: whenever I try to use the --network=host runArg for any container none of the in devcontainer.json specified extensions are installed. I tested this with a minimal example (see steps further below). I tested this on a Fedora 37 and Ubuntu 22.04 host system and in both cases the extensions were not installed after the devcontainer was finished with setup. I am using the most recent versions of VS Code, the devcontainer VS Code extension and docker. This is true for both host systems. The log below was captured on the Fedora 37 host system.
- VSCode Version: 1.84.2
- Local OS Version: Fedora:37/Ubuntu22.04
- Remote OS Version: Ubuntu20.04
- Remote Extension/Connection Type: Containers
- Logs:
[22 ms] Dev Containers 0.304.0 in VS Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e).
[21 ms] Start: Resolving Remote
[29 ms] Setting up container for folder or workspace: /home/user/tmp/test_interaction_ws
[34 ms] Start: Check Docker is running
[34 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[57 ms] Server API version: 1.43
[57 ms] Start: Run: docker volume ls -q
[74 ms] Start: Run: docker inspect --type container 72d61367ea62ffcf0e7b5d01efb1a62e159d97e0174f8c77c6eed20eaa6eb8a2
[91 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/home/user/tmp/test_interaction_ws --filter label=vsch.quality=stable
[109 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/user/tmp/test_interaction_ws --filter label=devcontainer.config_file=/home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json
[125 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/user/tmp/test_interaction_ws
[142 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/user/tmp/test_interaction_ws
[158 ms] Start: Run: /usr/share/code/code --ms-enable-electron-run-as-node /home/user/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/user/tmp/test_interaction_ws --id-label devcontainer.local_folder=/home/user/tmp/test_interaction_ws --id-label devcontainer.config_file=/home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json --mount-workspace-git-root true
[382 ms] @devcontainers/cli 0.50.0. Node.js v18.15.0. linux 6.5.7-100.fc37.x86_64 x64.
[382 ms] Start: Run: git rev-parse --show-cdup
[391 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/user/tmp/test_interaction_ws --filter label=devcontainer.config_file=/home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json
[413 ms] Start: Run: /usr/share/code/code --ms-enable-electron-run-as-node /home/user/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/user/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-8afd631a-2b6c-424e-923c-51e77717ae211700241159588 --workspace-folder /home/user/tmp/test_interaction_ws --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/user/tmp/test_interaction_ws --id-label devcontainer.config_file=/home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=/run/user/1000/wayland-0,target=/tmp/vscode-wayland-8e3e5a18-07e1-4c75-9beb-e0882b420c46.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[635 ms] @devcontainers/cli 0.50.0. Node.js v18.15.0. linux 6.5.7-100.fc37.x86_64 x64.
[635 ms] Start: Run: docker buildx version
[694 ms] github.com/docker/buildx v0.11.2 9872040
[695 ms]
[695 ms] Start: Resolving Remote
[697 ms] Start: Run: git rev-parse --show-cdup
[704 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/user/tmp/test_interaction_ws --filter label=devcontainer.config_file=/home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json
[721 ms] Start: Run: docker inspect --type image ubuntu:20.04
[769 ms] Error fetching image details: connect ENETUNREACH 2600:1f18:2148:bc02:4bf0:3a98:55ae:e3d5:443
[769 ms] Start: Run: docker pull ubuntu:20.04
20.04: Pulling from library/ubuntu
96d54c3075c9: Pull complete
Digest: sha256:ed4a42283d9943135ed87d4ee34e542f7f5ad9ecf2f244870e23122f703f91c2
Status: Downloaded newer image for ubuntu:20.04
docker.io/library/ubuntu:20.04
[6422 ms] Start: Run: docker inspect --type image ubuntu:20.04
[6466 ms] local container features stored at: /home/user/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/node_modules/vscode-dev-containers/container-features
[6467 ms] Start: Run: tar --no-same-owner -x -f -
[6482 ms] Start: Run: docker -v
[6500 ms] Start: Run: docker events --format {{json .}} --filter event=start
[6505 ms] Start: Starting container
[6506 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=/home/user/tmp/test_interaction_ws,target=/workspaces/test_interaction_ws --mount type=volume,src=vscode,dst=/vscode --mount type=bind,src=/run/user/1000/wayland-0,dst=/tmp/vscode-wayland-8e3e5a18-07e1-4c75-9beb-e0882b420c46.sock -l devcontainer.local_folder=/home/user/tmp/test_interaction_ws -l devcontainer.config_file=/home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json --network=host --entrypoint /bin/sh -l devcontainer.metadata=[{"customizations":{"vscode":{"extensions":["redhat.vscode-xml","ms-azuretools.vscode-docker"]}}}] ubuntu:20.04 -c echo Container started
Container started
[7799 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/user/tmp/test_interaction_ws --filter label=devcontainer.config_file=/home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json
[7817 ms] Start: Run: docker inspect --type container 397f19e224c4
[7835 ms] Start: Inspecting container
[7835 ms] Start: Run: docker inspect --type container 397f19e224c4ebabf445a5e576d23d1963f562014de4b8f1aa047edb72f5e840
[7854 ms] Start: Run in container: /bin/sh
[7859 ms] Start: Run in container: uname -m
[7917 ms] x86_64
[7917 ms]
[7917 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[7919 ms] NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
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"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[7919 ms]
[7919 ms] Start: Run in container: getent passwd root
[7922 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[7923 ms]
[7923 ms]
[7923 ms] Exit code 1
[7923 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[7928 ms]
[7928 ms]
[7928 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[7929 ms]
[7929 ms]
[7929 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[7929 ms]
[7929 ms]
[7929 ms] Exit code 1
[7930 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[7932 ms]
[7932 ms]
[7932 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[7935 ms]
[7935 ms]
[7941 ms] Start: Run: docker inspect --type container 397f19e224c4ebabf445a5e576d23d1963f562014de4b8f1aa047edb72f5e840
[7963 ms] Start: Run: docker exec -i -u root 397f19e224c4ebabf445a5e576d23d1963f562014de4b8f1aa047edb72f5e840 /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=8afd631a-2b6c-424e-923c-51e77717ae211700241159588 ; /bin/sh
[7969 ms] Start: Run: /usr/share/code/code --ms-enable-electron-run-as-node /home/user/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/user/tmp/test_interaction_ws --id-label devcontainer.local_folder=/home/user/tmp/test_interaction_ws --id-label devcontainer.config_file=/home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json --container-id 397f19e224c4ebabf445a5e576d23d1963f562014de4b8f1aa047edb72f5e840 --log-level debug --log-format json --config /home/user/tmp/test_interaction_ws/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[8033 ms] New container started. Keep-alive process started.
[8213 ms] @devcontainers/cli 0.50.0. Node.js v18.15.0. linux 6.5.7-100.fc37.x86_64 x64.
[8213 ms] Start: Run: git rev-parse --show-cdup
[8222 ms] Start: Run: docker inspect --type container 397f19e224c4ebabf445a5e576d23d1963f562014de4b8f1aa047edb72f5e840
[8247 ms] Start: Inspecting container
[8248 ms] Start: Run: docker inspect --type container 397f19e224c4ebabf445a5e576d23d1963f562014de4b8f1aa047edb72f5e840
[8267 ms] Start: Run in container: /bin/sh
[8272 ms] Start: Run in container: uname -m
[8324 ms] x86_64
[8324 ms]
[8324 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[8325 ms] NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
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"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[8326 ms]
[8326 ms] Start: Run in container: getent passwd root
[8327 ms] Start: Run in container: command -v git >/dev/null 2>&1 && cd '/workspaces/test_interaction_ws' && test -d .git && test "$(stat -c %u .)" != "$(id -u)"
[8328 ms]
[8328 ms]
[8328 ms] Exit code 127
[8329 ms] Start: Updating configuration state
[8336 ms] Start: Setup shutdown monitor
[8337 ms] Forking shutdown monitor: /home/user/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/shutdown/shutdownMonitorProcess /run/user/1000/vscode-remote-containers-40215b6a-91b1-4a6c-aade-221f101e76fb.sock singleContainer Debug /home/user/.config/Code/logs/20231117T180753/window1/exthost/ms-vscode-remote.remote-containers 1700241160159
[8342 ms] Start: Run in container: test -d /root/.vscode-server
[8343 ms]
[8343 ms]
[8343 ms] Exit code 1
[8343 ms] Start: Run in container: test -d /root/.vscode-remote
[8344 ms]
[8344 ms]
[8344 ms] Exit code 1
[8344 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
[8346 ms]
[8346 ms]
[8347 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[8348 ms]
[8348 ms] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory
[8349 ms] Exit code 1
[8349 ms] Start: Run in container: test -d /root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
[8350 ms]
[8350 ms]
[8350 ms] Exit code 1
[8351 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
[8351 ms]
[8351 ms]
[8352 ms] Start: Run in container: mkdir -p '/root/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e' '/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e'
[8356 ms]
[8356 ms]
[8356 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e'
[8356 ms] Start: Launching Dev Containers helper.
[8357 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-dd96337e-db54-44d6-b0dd-38e0844a299d.sock) forwarded to local host (/run/user/1000/ssh-agent.socket).
[8358 ms]
[8358 ms]
[8358 ms] Start: Run in container: test -e /tmp/.X11-unix/X0
[8359 ms]
[8359 ms]
[8359 ms] Exit code 1
[8359 ms] Start: Run in container: mkdir -p '/tmp/.X11-unix'
[8361 ms]
[8361 ms]
[8361 ms] X11 forwarding: DISPLAY in container (:0) forwarded to local host (:1).
[8362 ms] Start: Run in container: gpgconf --list-dir agent-socket
[8362 ms]
[8363 ms] /bin/sh: 15: gpgconf: not found
[8363 ms] Exit code 127
[8363 ms] gpg-agent: No agent-socket found in container.
[8363 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[8364 ms]
[8364 ms]
[8364 ms] Exit code 127
[8365 ms] Start: Run in container: /bin/sh
[8371 ms] userEnvProbe: loginInteractiveShell (default)
[8372 ms] Start: Run in container: test -f '/tmp/devcontainers-8afd631a-2b6c-424e-923c-51e77717ae211700241159588/env-loginInteractiveShell.json'
[8372 ms] Start: Run in container: echo ~
[8374 ms]
[8374 ms]
[8374 ms] Exit code 1
[8374 ms] userEnvProbe: not found in cache
[8375 ms] userEnvProbe shell: /bin/bash
[8375 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[8377 ms] ssh not found
[8377 ms]
[8377 ms] Exit code 1
[8378 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/node /tmp/vscode-remote-containers-dd96337e-db54-44d6-b0dd-38e0844a299d.js git-credential-helper $*; }; f' || true
[8378 ms]
[8379 ms]
[8379 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 "
[8412 ms] Start: Run in container: cat '/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/product.json'
[8414 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e' 2>/dev/null || (umask 377 && echo '0e75bfaa-a7cb-4282-9bc4-f919ac27c205' >'/root/.vscode-server/data/Machine/.connection-token-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e-f5bf3668-eb40-4bdd-ad2b-c2bcf05b0e7d' && mv -n '/root/.vscode-server/data/Machine/.connection-token-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e-f5bf3668-eb40-4bdd-ad2b-c2bcf05b0e7d' '/root/.vscode-server/data/Machine/.connection-token-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e' && rm -f '/root/.vscode-server/data/Machine/.connection-token-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e-f5bf3668-eb40-4bdd-ad2b-c2bcf05b0e7d' && cat '/root/.vscode-server/data/Machine/.connection-token-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e')
[8420 ms] 0e75bfaa-a7cb-4282-9bc4-f919ac27c205
[8420 ms]
[8421 ms] Start: Starting VS Code Server
[8421 ms] Start: Preparing Extensions
[8421 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
[8423 ms]
[8423 ms]
[8425 ms] Extensions cache, install extensions: redhat.vscode-xml, ms-azuretools.vscode-docker
[8425 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true
[8426 ms]
[8426 ms]
[8426 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[8428 ms] 7bfde8d6-4e59-4057-a407-932be23cd758
althack.ament-task-provider-0.2.3
althack.ament-task-provider-0.2.5
althack.ament-task-provider-0.2.6
bbff68a3-7b79-43e7-a2e1-2a30e13050a2
betwo.b2-catkin-tools-4.8.3
dotjoshjohnson.xml-2.5.1
eamodio.gitlens-14.4.0
eamodio.gitlens-14.4.1
eamodio.gitlens-14.5.0
firefox-devtools.vscode-firefox-debug-2.9.10
github.copilot-1.133.0
github.copilot-1.135.0
github.copilot-chat-0.10.0
github.copilot-chat-0.10.1
ms-azuretools.vscode-docker-1.27.0
ms-azuretools.vscode-docker-1.28.0
ms-iot.vscode-ros-0.9.2
ms-python.python-2023.18.0
ms-python.python-2023.20.0
ms-python.vscode-pylance-2023.10.20
ms-python.vscode-pylance-2023.10.30
ms-python.vscode-pylance-2023.10.40
ms-python.vscode-pylance-2023.10.50
ms-python.vscode-pylance-2023.11.10
ms-vscode.cpptools-1.17.5-linux-x64
ms-vscode.cpptools-1.18.5-linux-x64
ms-vscode.vscode-typescript-next-5.3.20231102
ms-vscode.vscode-typescript-next-5.4.20231109
redhat.vscode-yaml-1.14.0
smilerobotics.urdf-0.3.0
streetsidesoftware.code-spell-checker-3.0.1
twxs.cmake-0.0.17
yzhang.markdown-all-in-one-3.5.1
zachflower.uncrustify-3.2.0
[8429 ms]
[8429 ms] Extensions cache, link in container: ms-azuretools.vscode-docker-1.27.0, ms-azuretools.vscode-docker-1.28.0
[8429 ms] Start: Run in container: mkdir -p '/root/.vscode-server/extensionsCache' && ln -s '/vscode/vscode-server/extensionsCache'/* '/root/.vscode-server/extensionsCache' || true
[8432 ms]
[8433 ms]
[8433 ms] Optimizing extensions for quality: stable
[8434 ms] Start: Run in container: cd /vscode/vscode-server/extensionsCache && touch 'ms-azuretools.vscode-docker-1.27.0' 'ms-azuretools.vscode-docker-1.28.0'
[8434 ms] Start: Run in container: /root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/code-server --log debug --force-disable-user-env --server-data-dir /root/.vscode-server --use-host-proxy --telemetry-level off --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server/data/Machine/.connection-token-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e --extensions-download-dir /root/.vscode-server/extensionsCache --install-extension redhat.vscode-xml --install-extension ms-azuretools.vscode-docker --start-server --disable-websocket-compression
[8440 ms]
[8441 ms]
[8443 ms] /root
[8443 ms]
[8443 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-dd96337e-db54-44d6-b0dd-38e0844a299d.js' >/tmp/vscode-remote-containers-dd96337e-db54-44d6-b0dd-38e0844a299d.js
[8445 ms]
[8445 ms]
[8445 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-dd96337e-db54-44d6-b0dd-38e0844a299d.js' >/tmp/vscode-remote-containers-server-dd96337e-db54-44d6-b0dd-38e0844a299d.js_1700241168604
[8449 ms]
[8449 ms]
[8541 ms] userEnvProbe PATHs:
Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[8541 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-8afd631a-2b6c-424e-923c-51e77717ae211700241159588' && cat > '/tmp/devcontainers-8afd631a-2b6c-424e-923c-51e77717ae211700241159588/env-loginInteractiveShell.json' << 'envJSON'
[8544 ms]
[8544 ms]
[8544 ms] Start: Run in container: umask 077 && XRD="/tmp/user/$(id -u)" && mkdir -p $XRD && echo $XRD
[8548 ms] /tmp/user/0
[8548 ms]
[8548 ms] Start: Run in container: test -e /tmp/user/0/vscode-wayland-8e3e5a18-07e1-4c75-9beb-e0882b420c46.sock || ln -sf /tmp/vscode-wayland-8e3e5a18-07e1-4c75-9beb-e0882b420c46.sock /tmp/user/0/vscode-wayland-8e3e5a18-07e1-4c75-9beb-e0882b420c46.sock
[8550 ms]
[8550 ms]
[8553 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).
*
[8557 ms] Server bound to 127.0.0.1:37705 (IPv4)
Extension host agent listening on 37705
[8558 ms] Start: Run in container: echo 37705 >'/root/.vscode-server/data/Machine/.devport-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e'
[8559 ms]
[8559 ms]
[8559 ms] Port forwarding for container port 37705 starts listening on local port.
[8560 ms] Port forwarding local port 35829 to container port 37705
[8564 ms] Start: Run in container: # Test for /root/.gitconfig and git
[8572 ms] git not found
[8572 ms]
[8572 ms] Exit code 1
[8573 ms] Start: Run in container: # Cleaning up git config
[8575 ms]
[8575 ms] /bin/sh: 57: git: not found
/bin/sh: 57: git: not found
/bin/sh: 57: git: not found
[8576 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/node /tmp/vscode-remote-containers-dd96337e-db54-44d6-b0dd-38e0844a299d.js git-credential-helper $*; }; f' || true
[8576 ms]
[8577 ms]
[8579 ms] Port forwarding connection from 41512 > 35829 > 37705 in the container.
[8580 ms] Start: Run in container: /root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/node -e
[8693 ms] [17:12:48]
[8705 ms] Port forwarding 41512 > 35829 > 37705 stderr: Connection established
[8711 ms] [17:12:48] Installing extensions...
[8713 ms] [17:12:48] Extension host agent started.
[8737 ms] Port forwarding connection from 41518 > 35829 > 37705 in the container.
[8737 ms] Start: Run in container: /root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/node -e
[8743 ms] [17:12:48] Started initializing default profile extensions in extensions installation folder. file:///root/.vscode-server/extensions
[8754 ms] [17:12:48] [127.0.0.1][ce596f81][ManagementConnection] New connection established.
[8758 ms] [17:12:48] ComputeTargetPlatform: linux-x64
[8770 ms] [17:12:48] Completed initializing default profile extensions in extensions installation folder. file:///root/.vscode-server/extensions
[8776 ms] [17:12:48] ComputeTargetPlatform: linux-x64
[8817 ms] [17:12:48] Log level changed to info
[8834 ms] Port forwarding 41518 > 35829 > 37705 stderr: Connection established
[8963 ms] [17:12:49] [127.0.0.1][8baaad35][ExtensionHostConnection] New connection established.
[8972 ms] [17:12:49] [127.0.0.1][8baaad35][ExtensionHostConnection] <275> Launched Extension Host Process.
Steps to Reproduce:
- Create a new VS Code workspace folder.
- Create a
devcontainer.jsoninside a new.devcontainerfolder. - Insert the following into the
devcontainer.jsonfile.
{
"image": "ubuntu:20.04",
"runArgs": [
"--network=host"
],
"customizations": {
"vscode": {
"extensions": [
"redhat.vscode-xml",
"ms-azuretools.vscode-docker"
]
}
}
}
- Reopen the workspace folder as a devcontainer.
- Check if the two extensions were installed.
Does this issue occur when you try this locally?: Yes Does this issue occur when you try this locally and all extensions are disabled?: Yes (with the exception of the devcontainer extension, otherwise the container won't start)
This works for me, not sure what might make the difference. Could this be a firewall or network proxy issue?
Hi,
I tested it also with another container on the same host system and there the problem occurred even without the --network=host flag. So I'm not really sure what seems to cause the problem. I'm not sure where to look for debug information. Also I can install extensions normally on the host inside a workspace that isn't a devcontainer.
Could this be a firewall or network proxy issue?
How could I verify this?
Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of F1 > Network Proxy Test: Test Connection in VS Code?
If you cannot install the extension through the Extensions viewlet in VS Code, you can use the Download Extension link on the above linked page and then install the downloaded VSIX with F1 > Extensions: Install VSIX....
Hi, I tested three connections from inside the container by installing the extension from the provided file:
- The URL to the Marketplace entry for your extension.
- The URL to the download link for your extension.
- The URL to the GitHub homepage.
From what I can read the connections 1 and 3 have no problems but the extension 2 seems to have problems. proxy_test_1.log proxy_test_2.log proxy_test_3.log
Also what I have noticed is that after VSCode reloaded the window to activate the extension again only this specific extension was listed as installed inside the devcontainer. The extension listed inside the devcontainer.json file were not installed.
FWIW I am seeing this behavior as well. Running on a Windows machine but building container from within WSL.
VSCode Version: 1.86.1 (user setup) Local OS Version: Windows_NT x64 10.0.19045 Remote OS Version: Ubuntu22.04 Remote Extension/Connection Type: Containers
I get 0 extensions installed in the dev container
{ "name": "Ubuntu", "image": "mcr.microsoft.com/devcontainers/base:jammy", "features": { "ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {} }, "customizations": { "vscode": { "extensions": [ "eamodio.gitlens" ] } } }
[750 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/mnt/c/Users/BNWELL/AppData/Local/Programs/Microsoft VS Code' && /bin/sh [766 ms] Start: Run in host: id -un [1018 ms] brian [1018 ms] [1018 ms] Start: Run in host: (command -v getent >/dev/null 2>&1 && getent passwd 'brian' || grep -E '^brian|^[^:]:[^:]:brian:' /etc/passwd || true) [1020 ms] Start: Run in host: echo ~ [1021 ms] /home/brian [1021 ms] [1021 ms] Start: Run in host: test -x '/home/brian/.vscode-remote-containers/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node' [1022 ms] [1022 ms] [1022 ms] Start: Run in host: test -f '/home/brian/.vscode-remote-containers/dist/vscode-remote-containers-server-0.342.0.js' [1023 ms] [1023 ms] [1024 ms] userEnvProbe: loginInteractiveShell (default) [1024 ms] userEnvProbe: not found in cache [1024 ms] userEnvProbe shell: /bin/bash [1101 ms] userEnvProbe PATHs: Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Microsoft MPI/Bin/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/Docker/host/bin:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/160/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files/starship/bin/:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/BNWELL/AppData/Local/Programs/Python/Python312/Scripts/:/mnt/c/Users/BNWELL/AppData/Local/Programs/Python/Python312/:/mnt/c/Users/BNWELL/AppData/Local/Programs/Python/Launcher/:/mnt/c/Users/BNWELL/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Users/BNWELL/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/BNWELL/.dotnet/tools:/mnt/c/Users/BNWELL/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin' Container: None [1156 ms] Start: Run: wsl -d Ubuntu -e wslpath -u \wsl.localhost\Ubuntu\home\brian\projects\hmph [1931 ms] Start: Resolving Remote [1998 ms] Start: Run: wsl -d Ubuntu -e wslpath -u \wsl.localhost\Ubuntu\home\brian\projects\hmph [3055 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/brian/projects/hmph' && /bin/sh [3100 ms] Start: Run in host: id -un [3955 ms] brian [3956 ms] [3957 ms] Start: Run in host: (command -v getent >/dev/null 2>&1 && getent passwd 'brian' || grep -E '^brian|^[^:]:[^:]:brian:' /etc/passwd || true) [3962 ms] Start: Run in host: echo ~ [3965 ms] /home/brian [3965 ms] [3965 ms] Start: Run in host: test -x '/home/brian/.vscode-remote-containers/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node' [3967 ms] [3968 ms] [3968 ms] Start: Run in host: test -f '/home/brian/.vscode-remote-containers/dist/vscode-remote-containers-server-0.342.0.js' [3970 ms] [3971 ms] [3973 ms] userEnvProbe: loginInteractiveShell (default) [3974 ms] userEnvProbe: not found in cache [3974 ms] userEnvProbe shell: /bin/bash [4279 ms] userEnvProbe PATHs: Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Microsoft MPI/Bin/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/Docker/host/bin:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/160/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files/starship/bin/:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/BNWELL/AppData/Local/Programs/Python/Python312/Scripts/:/mnt/c/Users/BNWELL/AppData/Local/Programs/Python/Python312/:/mnt/c/Users/BNWELL/AppData/Local/Programs/Python/Launcher/:/mnt/c/Users/BNWELL/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Users/BNWELL/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/BNWELL/.dotnet/tools:/mnt/c/Users/BNWELL/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin' Container: None [4283 ms] Setting up container for folder or workspace: /home/brian/projects/hmph [4378 ms] Start: Check Docker is running [4379 ms] Start: Run in Host: docker version [4549 ms] Client: Docker Engine - Community Cloud integration: v1.0.35+desktop.5 Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:08:02 2023 OS/Arch: linux/amd64 Context: default
Server: Docker Desktop Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:08:02 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.25 GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f runc: Version: 1.1.10 GitCommit: v1.1.10-0-g18a0cb0 docker-init: Version: 0.19.0 GitCommit: de40ad0 [4561 ms] Start: Run in Host: docker volume ls -q [4738 ms] Start: Run in Host: docker inspect --type container e3a86cfc66801bdc3fc11bd8df36282ccdc5af02b7bd74e8443cb9be2c900465 [4894 ms] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph --filter label=vsch.quality=stable [5042 ms] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph --filter label=devcontainer.config_file=/home/brian/projects/hmph/.devcontainer/devcontainer.json [5205 ms] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph [5381 ms] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph [5559 ms] Start: Run in Host: /home/brian/.vscode-remote-containers/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node /home/brian/.vscode-remote-containers/dist/dev-containers-cli-0.342.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/brian/projects/hmph --id-label devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph --id-label devcontainer.config_file=/home/brian/projects/hmph/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/brian/projects/hmph/.devcontainer/devcontainer.json --mount-workspace-git-root [6048 ms] @devcontainers/cli 0.56.0. Node.js v18.17.1. linux 5.15.133.1-microsoft-standard-WSL2 x64. [6048 ms] Start: Run: git rev-parse --show-cdup [6071 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph --filter label=devcontainer.config_file=/home/brian/projects/hmph/.devcontainer/devcontainer.json [6266 ms] Start: Run in Host: /home/brian/.vscode-remote-containers/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node /home/brian/.vscode-remote-containers/dist/dev-containers-cli-0.342.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-7bd0ed4c-b24d-46ba-8d98-3fccb3b601ff1707617390528 --workspace-folder /home/brian/projects/hmph --workspace-mount-consistency cached --id-label devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph --id-label devcontainer.config_file=/home/brian/projects/hmph/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/brian/projects/hmph/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --build-no-cache --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=/run/user/1000/wayland-0,target=/tmp/vscode-wayland-2e8e2b6c-a758-41e0-820f-600328e0b56a.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --terminal-columns 228 --terminal-rows 35 [6672 ms] @devcontainers/cli 0.56.0. Node.js v18.17.1. linux 5.15.133.1-microsoft-standard-WSL2 x64. [6672 ms] Start: Run: docker buildx version [6831 ms] github.com/docker/buildx v0.12.0-desktop.2 c5a13b51c1ae9358eb691e9a21c955590e26d0a0 [6831 ms] [6831 ms] Start: Resolving Remote [6836 ms] Start: Run: git rev-parse --show-cdup [6848 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph --filter label=devcontainer.config_file=/home/brian/projects/hmph/.devcontainer/devcontainer.json [6962 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/base:jammy [7070 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers-contrib/features/zsh-plugins:0'... [7071 ms] * Processing feature: ghcr.io/devcontainers-contrib/features/zsh-plugins:0 [7285 ms] Start: Run: docker-credential-desktop.exe get [8346 ms] * Processing feature: ghcr.io/devcontainers/features/common-utils [8583 ms] * Processing feature: ghcr.io/devcontainers/features/git [8798 ms] Soft-dependency 'ghcr.io/devcontainers/features/git' is not required. Removing from installation order... [8798 ms] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required. Removing from installation order... [8798 ms] * Fetching feature: zsh-plugins_0_oci [9153 ms] * Fetched feature: zsh-plugins_0_oci version 0.0.4 [9160 ms] Start: Run: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-brian/container-features/0.56.0-1707617398307 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:jammy --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-hmph-056103f14a987f0b3d96c35a98ba45924a30f19af0646172904ebcc6dc017b53-features -f /tmp/devcontainercli-brian/container-features/0.56.0-1707617398307/Dockerfile.extended /tmp/devcontainercli-brian/empty-folder [+] Building 0.9s (15/15) FINISHED docker:default => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile.extended 0.0s => => transferring dockerfile: 1.92kB 0.0s => resolve image config for docker.io/docker/dockerfile:1.4 0.6s => CACHED docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc 0.0s => [internal] load metadata for mcr.microsoft.com/devcontainers/base:jammy 0.0s => [context dev_containers_feature_content_source] load .dockerignore 0.0s => => transferring dev_containers_feature_content_source: 2B 0.0s => [dev_containers_target_stage 1/5] FROM mcr.microsoft.com/devcontainers/base:jammy 0.0s => [context dev_containers_feature_content_source] load from client 0.0s => => transferring dev_containers_feature_content_source: 10.61kB 0.0s => CACHED [dev_containers_target_stage 2/5] RUN mkdir -p /tmp/dev-container-features 0.0s => CACHED [dev_containers_feature_content_normalize 2/3] COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/ 0.0s => CACHED [dev_containers_feature_content_normalize 3/3] RUN chmod -R 0755 /tmp/build-features/ 0.0s => CACHED [dev_containers_target_stage 3/5] COPY --from=dev_containers_feature_content_normalize /tmp/build-features/ /tmp/dev-container-features 0.0s => CACHED [dev_containers_target_stage 4/5] RUN echo "_CONTAINER_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]:[^:]:root:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/ 0.0s => CACHED [dev_containers_target_stage 5/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=zsh-plugins_0,target=/tmp/build-features-src/zsh-plugins_0 cp -ar /tmp/build-features-src/zsh-plugin 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:1dc615a5e9beaebe9c424478be331dffd2d4be18b9674e959081a509a8f49c4f 0.0s => => naming to docker.io/library/vsc-hmph-056103f14a987f0b3d96c35a98ba45924a30f19af0646172904ebcc6dc017b53-features 0.0s [10520 ms] Start: Run: docker build -f /tmp/devcontainercli-brian/updateUID.Dockerfile-0.56.0 -t vsc-hmph-056103f14a987f0b3d96c35a98ba45924a30f19af0646172904ebcc6dc017b53-features-uid --build-arg BASE_IMAGE=vsc-hmph-056103f14a987f0b3d96c35a98ba45924a30f19af0646172904ebcc6dc017b53-features --build-arg REMOTE_USER=vscode --build-arg NEW_UID=1000 --build-arg NEW_GID=1000 --build-arg IMAGE_USER=root /tmp/devcontainercli-brian/empty-folder [+] Building 0.2s (6/6) FINISHED docker:default => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from updateUID.Dockerfile-0.56.0 0.0s => => transferring dockerfile: 1.36kB 0.0s => [internal] load metadata for docker.io/library/vsc-hmph-056103f14a987f0b3d96c35a98ba45924a30f19af0646172904ebcc6dc017b53-features:latest 0.0s => [1/2] FROM docker.io/library/vsc-hmph-056103f14a987f0b3d96c35a98ba45924a30f19af0646172904ebcc6dc017b53-features 0.0s => CACHED [2/2] RUN eval $(sed -n "s/vscode:[^:]:([^:]):([^:]):[^:]:([^:])./OLD_UID=\1;OLD_GID=\2;HOME_FOLDER=\3/p" /etc/passwd); eval $(sed -n "s/([^:]):[^:]:1000:.*/EXISTING_USER=\1/p" /etc/passwd); e 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:10164980e3dbe3a824b3e79e56f712298632c2e666b9fd3b3ea00ddca0dd889d 0.0s => => naming to docker.io/library/vsc-hmph-056103f14a987f0b3d96c35a98ba45924a30f19af0646172904ebcc6dc017b53-features-uid 0.0s
What's Next?
View a summary of image vulnerabilities and recommendations → docker scout quickview
[11585 ms] Start: Run: docker -v
[11700 ms] Start: Run: docker events --format {{json .}} --filter event=start
[11705 ms] Start: Starting container
[11705 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=/home/brian/projects/hmph,target=/workspaces/hmph --mount type=volume,src=vscode,dst=/vscode --mount type=bind,src=/run/user/1000/wayland-0,dst=/tmp/vscode-wayland-2e8e2b6c-a758-41e0-820f-600328e0b56a.sock -l devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph -l devcontainer.config_file=/home/brian/projects/hmph/.devcontainer/devcontainer.json --entrypoint /bin/sh vsc-hmph-056103f14a987f0b3d96c35a98ba45924a30f19af0646172904ebcc6dc017b53-features-uid -c echo Container started
Container started
[12390 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph --filter label=devcontainer.config_file=/home/brian/projects/hmph/.devcontainer/devcontainer.json
[12537 ms] Start: Run: docker inspect --type container 24e497a84ed5
[12685 ms] Start: Inspecting container
[12685 ms] Start: Run: docker inspect --type container 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15
[12827 ms] Start: Run in container: /bin/sh
[12834 ms] Start: Run in container: uname -m
[13028 ms] x86_64
[13028 ms]
[13028 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[13032 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
[13032 ms]
[13032 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'vscode' || grep -E '^vscode|^[^:]:[^:]:vscode:' /etc/passwd || true)
[13038 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[13042 ms]
[13043 ms]
[13043 ms] Exit code 1
[13045 ms] Start: Run in container: /bin/sh
[13052 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[13281 ms]
[13281 ms]
[13282 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[13308 ms]
[13309 ms]
[13310 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[13315 ms]
[13315 ms]
[13315 ms] Exit code 1
[13315 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[13319 ms]
[13319 ms]
[13319 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^$])$/\1${PATH:-\3}/g' /etc/profile || true
[13323 ms]
[13324 ms]
[13352 ms] Start: Run in Host: docker inspect --type container 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15
[13550 ms] Start: Run in Host: docker exec -i -u root 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15 /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=7bd0ed4c-b24d-46ba-8d98-3fccb3b601ff1707617390528 ; /bin/sh
[13566 ms] Start: Run in Host: /home/brian/.vscode-remote-containers/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node /home/brian/.vscode-remote-containers/dist/dev-containers-cli-0.342.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/brian/projects/hmph --id-label devcontainer.local_folder=\wsl.localhost\Ubuntu\home\brian\projects\hmph --id-label devcontainer.config_file=/home/brian/projects/hmph/.devcontainer/devcontainer.json --container-id 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15 --log-level debug --log-format json --config /home/brian/projects/hmph/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root
[13769 ms] New container started. Keep-alive process started.
[13929 ms] @devcontainers/cli 0.56.0. Node.js v18.17.1. linux 5.15.133.1-microsoft-standard-WSL2 x64.
[13929 ms] Start: Run: git rev-parse --show-cdup
[13940 ms] Start: Run: docker inspect --type container 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15
[14100 ms] Start: Inspecting container
[14101 ms] Start: Run in Host: docker inspect --type container 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15
[14242 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=7bd0ed4c-b24d-46ba-8d98-3fccb3b601ff1707617390528 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15 /bin/sh
[14247 ms] Start: Run in container: uname -m
[14415 ms] x86_64
[14415 ms]
[14415 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[14419 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
[14420 ms]
[14420 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'vscode' || grep -E '^vscode|^[^:]:[^:]:vscode:' /etc/passwd || true)
[14428 ms] Start: Run in container: command -v git >/dev/null 2>&1 && cd '/workspaces/hmph' && test -d .git && test "$(stat -c %u .)" != "$(id -u)"
[14432 ms]
[14432 ms]
[14432 ms] Exit code 1
[14433 ms] Start: Updating configuration state
[14436 ms] Start: Setup shutdown monitor
[14437 ms] Forking shutdown monitor: c:\Users\BNWELL.vscode\extensions\ms-vscode-remote.remote-containers-0.342.0\dist\shutdown\shutdownMonitorProcess \.\pipe\vscode-remote-containers-35af5468-bce8-4430-81a5-3b2cfc0bc052-sock singleContainer Debug c:\Users\BNWELL\AppData\Roaming\Code\logs\20240210T200131\window1\exthost\ms-vscode-remote.remote-containers 1707617391239
[14502 ms] Start: Run in container: test -d '/home/vscode/.vscode-server'
[14509 ms]
[14510 ms]
[14510 ms] Exit code 1
[14511 ms] Start: Run in container: test -d '/home/vscode/.vscode-remote'
[14518 ms]
[14519 ms]
[14519 ms] Exit code 1
[14519 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[14533 ms]
[14533 ms]
[14533 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json
[14540 ms]
[14541 ms] cat: /home/vscode/.vscode-server/data/Machine/settings.json: No such file or directory
[14542 ms] Exit code 1
[14542 ms] Start: Run in container: test -d '/home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533'
[14552 ms]
[14552 ms]
[14552 ms] Exit code 1
[14553 ms] Start: Run in container: test -d '/vscode/vscode-server/bin/linux-x64/31c37ee8f63491495ac49e43b8544550fbae4533'
[14559 ms]
[14561 ms]
[14562 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/31c37ee8f63491495ac49e43b8544550fbae4533' '/home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533'
[14588 ms]
[14590 ms]
[14591 ms] Start: Run in Host: docker exec -i -u root 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15 /bin/sh
[14592 ms] Start: Run in container: test -x '/home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/bin/helpers/check-requirements.sh'
[14615 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/31c37ee8f63491495ac49e43b8544550fbae4533'
[14618 ms]
[14618 ms]
[14619 ms] Start: Run in container: '/home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/bin/helpers/check-requirements.sh'
[14728 ms]
[14728 ms]
[14729 ms] Start: Launching Dev Containers helper.
[14729 ms] ssh-agent: SSH_AUTH_SOCK not set on wsl host.
[14730 ms] ssh-agent: SSH_AUTH_SOCK not set on local host.
[14732 ms] Start: Run in container: test -e /tmp/.X11-unix/X0
[14742 ms]
[14743 ms]
[14743 ms] Exit code 1
[14744 ms] Start: Run in container: mkdir -p '/tmp/.X11-unix'
[14754 ms]
[14755 ms]
[14755 ms] X11 forwarding: DISPLAY in container (:0) forwarded to wsl host (:0).
[14755 ms] Start: Run in container: gpgconf --list-dir agent-socket
[14765 ms] /home/vscode/.gnupg/S.gpg-agent
[14765 ms]
[14765 ms] Start: Run in container: gpgconf --list-dir homedir
[14771 ms] /home/vscode/.gnupg
[14772 ms]
[14772 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null
[14786 ms]
[14786 ms]
[14786 ms] Exit code 2
[14787 ms] Start: Run in Host: gpgconf --list-dir agent-extra-socket
[14816 ms] /run/user/1000/gnupg/S.gpg-agent.extra
[14817 ms]
[14818 ms] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg'
[14818 ms] gpg-agent: Socket in container (/home/vscode/.gnupg/S.gpg-agent) forwarded to wsl host (/run/user/1000/gnupg/S.gpg-agent.extra).
[14843 ms]
[14845 ms]
[14846 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[14848 ms] Start: Run in Host: gpgconf --list-dir homedir
[14871 ms]
[14871 ms]
[14872 ms] Exit code 127
[14874 ms] Start: Run in Host: docker exec -i -u vscode 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15 /bin/sh
[14877 ms] userEnvProbe: loginInteractiveShell (default)
[14878 ms] Start: Run in container: test -f '/tmp/devcontainers-7bd0ed4c-b24d-46ba-8d98-3fccb3b601ff1707617390528/env-loginInteractiveShell.json'
[14885 ms] /home/brian/.gnupg
[14885 ms]
[14908 ms] Start: Run in container: echo ~
[14914 ms]
[14915 ms]
[14915 ms] Exit code 1
[14917 ms] Start: Run in container: gpgconf --list-dir homedir
[14919 ms] userEnvProbe: not found in cache
[14924 ms] userEnvProbe shell: /bin/bash
[14949 ms] /home/vscode/.gnupg
[14950 ms]
[15016 ms] Start: Run in Host: gpg-connect-agent updatestartuptty /bye
[15168 ms]
[15169 ms]
[15170 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node /tmp/vscode-remote-containers-e449295d-b00b-423e-9f29-cad3106516db.js git-credential-helper $; }; f' || true
[15182 ms]
[15182 ms]
[15183 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 "
[15310 ms] Start: Run in container: cat '/home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/product.json'
[15321 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-31c37ee8f63491495ac49e43b8544550fbae4533' 2>/dev/null || (umask 377 && echo '42d2044b-afd2-4847-913c-a6828479514c' >'/home/vscode/.vscode-server/data/Machine/.connection-token-31c37ee8f63491495ac49e43b8544550fbae4533-74e0a6d2-ff02-411b-9ec2-1e9413d2b9b0' && mv -n '/home/vscode/.vscode-server/data/Machine/.connection-token-31c37ee8f63491495ac49e43b8544550fbae4533-74e0a6d2-ff02-411b-9ec2-1e9413d2b9b0' '/home/vscode/.vscode-server/data/Machine/.connection-token-31c37ee8f63491495ac49e43b8544550fbae4533' && rm -f '/home/vscode/.vscode-server/data/Machine/.connection-token-31c37ee8f63491495ac49e43b8544550fbae4533-74e0a6d2-ff02-411b-9ec2-1e9413d2b9b0' && cat '/home/vscode/.vscode-server/data/Machine/.connection-token-31c37ee8f63491495ac49e43b8544550fbae4533')
[15322 ms] /home/vscode
[15322 ms]
[15323 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-e449295d-b00b-423e-9f29-cad3106516db.js' >/tmp/vscode-remote-containers-e449295d-b00b-423e-9f29-cad3106516db.js
[15333 ms]
[15333 ms]
[15334 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-e449295d-b00b-423e-9f29-cad3106516db.js' >/tmp/vscode-remote-containers-server-e449295d-b00b-423e-9f29-cad3106516db.js_1707617406573
[15336 ms] 42d2044b-afd2-4847-913c-a6828479514c
[15336 ms]
[15337 ms] Start: Starting VS Code Server
[15338 ms] Start: Preparing Extensions
[15338 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[15349 ms]
[15349 ms]
[15351 ms]
[15351 ms]
[15353 ms] Extensions cache, install extensions: eamodio.gitlens, mhutchie.git-graph
[15354 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true
[15363 ms]
[15363 ms]
[15364 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[15368 ms]
[15369 ms]
[15369 ms] Extensions cache, link in container: None
[15369 ms] Optimizing extensions for quality: stable
[15369 ms] Start: Run in Host: docker exec -i -u vscode -e SHELL=/bin/bash -e VSCODE_AGENT_FOLDER=/home/vscode/.vscode-server -w /home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15 /home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server/data/Machine/.connection-token-31c37ee8f63491495ac49e43b8544550fbae4533 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension eamodio.gitlens --install-extension mhutchie.git-graph --start-server --disable-websocket-compression --skip-requirements-check
[15582 ms] userEnvProbe PATHs:
Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[15583 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-7bd0ed4c-b24d-46ba-8d98-3fccb3b601ff1707617390528' && cat > '/tmp/devcontainers-7bd0ed4c-b24d-46ba-8d98-3fccb3b601ff1707617390528/env-loginInteractiveShell.json' << 'envJSON'
[15596 ms]
[15597 ms]
[15598 ms] Start: Run in container: umask 077 && XRD="/tmp/user/$(id -u)" && mkdir -p $XRD && echo $XRD
[15611 ms] /tmp/user/1000
[15612 ms]
[15612 ms] Start: Run in container: test -e /tmp/user/1000/vscode-wayland-2e8e2b6c-a758-41e0-820f-600328e0b56a.sock || ln -sf /tmp/vscode-wayland-2e8e2b6c-a758-41e0-820f-600328e0b56a.sock /tmp/user/1000/vscode-wayland-2e8e2b6c-a758-41e0-820f-600328e0b56a.sock
[15619 ms]
[15620 ms]
[15768 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).
[15776 ms] Server bound to 127.0.0.1:35645 (IPv4) Extension host agent listening on 35645
[15778 ms] Start: Run in container: echo 35645 >'/home/vscode/.vscode-server/data/Machine/.devport-31c37ee8f63491495ac49e43b8544550fbae4533' [15784 ms] [15784 ms] [15784 ms] Port forwarding for container port 35645 starts listening on local port. [15786 ms] Port forwarding local port 35645 to container port 35645 [15808 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git [15815 ms] [15815 ms] [15815 ms] Start: Run in container: # Copy C:\Users\BNWELL.gitconfig to /home/vscode/.gitconfig [15825 ms] [15826 ms] [15832 ms] Port forwarding connection from 55810 > 35645 > 35645 in the container. [15832 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=7bd0ed4c-b24d-46ba-8d98-3fccb3b601ff1707617390528 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15 /home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node -e [15846 ms] Start: Run in container: # Cleaning up git config [15869 ms] [15870 ms] [15870 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node /tmp/vscode-remote-containers-e449295d-b00b-423e-9f29-cad3106516db.js git-credential-helper $*; }; f' || true [15885 ms] [15886 ms] [16186 ms] [02:10:07]
[16233 ms] [02:10:07] Installing extensions... [16236 ms] [02:10:07] Extension host agent started. [16302 ms] Port forwarding 55810 > 35645 > 35645 stderr: Connection established [16349 ms] [02:10:07] Started initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions [16356 ms] Port forwarding connection from 55815 > 35645 > 35645 in the container. [16358 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=7bd0ed4c-b24d-46ba-8d98-3fccb3b601ff1707617390528 24e497a84ed58dfd6d6ed7e1ab70a0e70cede97b2ad3b61d51c5794ddf2dfd15 /home/vscode/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/node -e [16370 ms] [02:10:07] ComputeTargetPlatform: linux-x64 [16401 ms] [02:10:07] [127.0.0.1][22abfcb4][ManagementConnection] New connection established. [16402 ms] [02:10:07] Completed initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions [16421 ms] [02:10:07] ComputeTargetPlatform: linux-x64 [16542 ms] [02:10:07] Log level changed to info [16782 ms] Port forwarding 55815 > 35645 > 35645 stderr: Connection established [17048 ms] [02:10:08] [127.0.0.1][e93da477][ExtensionHostConnection] New connection established. [17085 ms] [02:10:08] [127.0.0.1][e93da477][ExtensionHostConnection] <363> Launched Extension Host Process. [17686 ms] ProxyResolver#loadSystemCertificates count [17693 ms] ProxyResolver#loadSystemCertificates count filtered [17696 ms] Start: Run: C:\Users\BNWELL\AppData\Local\Programs\Microsoft VS Code\Code.exe c:\Users\BNWELL.vscode\extensions\ms-vscode-remote.remote-containers-0.342.0\dist\spec-node\devContainersSpecCLI.js outdated --workspace-folder C:\Users\BNWELL\AppData\Local\Programs\Microsoft VS Code --config c:\Users\BNWELL\AppData\Local\Temp\dev-container-tmp-8ef55ee6-aa66-4ed7-94fc-feb001916486.devcontainer.json --output-format json --log-level debug --log-format json --terminal-columns 234 --terminal-rows 62 [18854 ms] @devcontainers/cli 0.56.0. Node.js v18.17.1. win32 10.0.19045 x64. [18854 ms] Start: Run: git rev-parse --show-cdup [19454 ms] Loading 49 extra certificates from C:\Users\BNWELL\AppData\Local\Temp\vsch\certificates-7480645db09102f9d895f1714760bf24f1a1de6ab717f148cfad6f4ce607eacd.pem. [19778 ms] Start: Run: docker-credential-desktop get
Hi, I tested three connections from inside the container by installing the extension from the provided file:
- The URL to the Marketplace entry for your extension.
- The URL to the download link for your extension.
- The URL to the GitHub homepage.
From what I can read the connections 1 and 3 have no problems but the extension 2 seems to have problems. proxy_test_1.log proxy_test_2.log proxy_test_3.log
Also what I have noticed is that after VSCode reloaded the window to activate the extension again only this specific extension was listed as installed inside the devcontainer. The extension listed inside the devcontainer.json file were not installed.
Number 2 shows an error in the test extension due to an undefined subject on the certificate. I'm publishing 0.0.11 of the extension to protect against that. Please retry. The retry by the extension (as shown in the log you attached) suggests that the certificate chain is ok, but maybe I'm missing something.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!