microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.05k stars 29.23k forks source link

All Extensions Taking 20+ minutes to install in Devcontainer on M1 Mac #179827

Closed ariedl closed 1 year ago

ariedl commented 1 year ago

Type: Bug

New Issue. Since about 4-6 weeks ago when rebuilding and reopening in container (or creating a new devcontainer) container startup and vsc server installation is normal, however extensions are taking 20+ minutes each to install. This used to take <30 seconds for all extensions. Specifically python, pylance, and jupyter.

I am building amd64 using quemu emulation on a native arm64 system. However, extension install had been 'normal' for 6+ months prior to onset.

VS Code version: Code 1.77.3 (Universal) (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:19:37.325Z) OS version: Darwin arm64 22.4.0 Modes: Sandboxed: No Remote OS version: Linux x64 5.15.49-linuxkit

System Info |Item|Value| |---|---| |CPUs|Apple M1 Max (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|3, 3, 3| |Memory (System)|64.00GB (3.82GB free)| |Process Argv|| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|Dev Container: Python 3| |OS|Linux x64 5.15.49-linuxkit| |CPUs|unknown (6 x 0)| |Memory (System)|31.31GB (22.95GB free)| |VM|0%|
Extensions (12) Extension|Author (truncated)|Version ---|---|--- remote-containers|ms-|0.288.0 remote-ssh|ms-|0.100.0 remote-ssh-edit|ms-|0.84.0 remote-explorer|ms-|0.4.0 vscode-eslint|dba|2.4.0 vscode-drawio|hed|1.6.6 python|ms-|2023.4.1 vscode-pylance|ms-|2023.3.30 jupyter|ms-|2023.3.1201040234 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 2i9eh265:30646982 showlangstatbar:30672706 vsctsb:30705553 azdwalk:30687957 pythonms35:30701012 pythonfmttext:30710681 pythonclientmvcf:30708686 ```
ryboe commented 1 year ago

I'm also experiencing this problem. I'm installing these extensions:

davidanson.vscode-markdownlint
eamodio.gitlens
golang.go
ms-azuretools.vscode-docker
redhat.vscode-yaml

I reproduce the issue by deleting the old devcontainer image (produced by devcontainer build) with docker container rm. Then I run devcontainer open. Some extensions install very quickly, but others take an eternity. The specific extensions that struggle to install are not reproducible. For example, sometimes golang.go installs quickly. Sometimes it takes forever.

Apple M1 Max 32 GB running macOS 13.3.1. The devcontainer is built for the linux/amd64 platform, but it's running on Apple Silicon. My ryboe/q repo is where I'm experiencing the problem. It uses an image based on mcr.microsoft.com/vscode/devcontainers/base:alpine.

sandy081 commented 1 year ago

Can you please share the server log during the instance the extensions installation takes longer time?

ariedl commented 1 year ago

Logs from a dev container launch just this morning. Timestamps included to illustrate that it took from 15:54 to 16:21 for the first of many extensions to finish installing. Is there any way I can increase the verbosity of these logs so we can see exactly what process is causing the hang?

[13 ms] Dev Containers 0.288.1 in VS Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710). [12 ms] Start: Resolving Remote [18 ms] Setting up container for folder or workspace: /Users/ariedl/dev/ucd-techdocs [19 ms] Start: Check Docker is running [19 ms] Start: Run: docker version --format {{.Server.APIVersion}} [102 ms] Server API version: 1.41 [103 ms] Start: Run: docker volume ls -q [153 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/ariedl/dev/ucd-techdocs --filter label=vsch.quality=stable [211 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs --filter label=devcontainer.config_file=/Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json [262 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs [315 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs [368 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/ariedl/.vscode/extensions/ms-vscode-remote.remote-containers-0.288.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/ariedl/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-90db4283-e64f-4b20-b563-4ff88c5c5a441681746640474 --workspace-folder /Users/ariedl/dev/ucd-techdocs --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs --id-label devcontainer.config_file=/Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true [510 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. darwin 22.4.0 arm64. [510 ms] Start: Run: docker buildx version [689 ms] github.com/docker/buildx v0.10.3 79e156beb11f697f06ac67fa1fb958e4762c0fab [689 ms] [689 ms] Start: Resolving Remote [691 ms] Start: Run: git rev-parse --show-cdup [698 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs --filter label=devcontainer.config_file=/Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json [772 ms] Start: Run: docker inspect --type image mcr.microsoft.com/vscode/devcontainers/python:0-3.10 [824 ms] local container features stored at: /Users/ariedl/.vscode/extensions/ms-vscode-remote.remote-containers-0.288.1/dist/node_modules/vscode-dev-containers/container-features [824 ms] Start: Run: tar --no-same-owner -x -f - [834 ms] Processing feature: git [834 ms] (!) WARNING: Using the deprecated 'git' Feature. See https://github.com/devcontainers/features/tree/main/src/git#example-usage for the updated Feature. [1814 ms] Fetching feature: git_1_oci [2317 ms] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /var/folders/c3/6z89w6ds5dx2bm2kcjb7j7600000gn/T/devcontainercli/container-features/0.35.0-1681746641617/Dockerfile-with-features -t vsc-ucd-techdocs-479e1cf133596afcfdc1fd8605e0655542d6ec4ca850fc85595b55a4773932dc --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/var/folders/c3/6z89w6ds5dx2bm2kcjb7j7600000gn/T/devcontainercli/container-features/0.35.0-1681746641617 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /Users/ariedl/dev/ucd-techdocs [+] Building 194.9s (23/23) FINISHED
=> [internal] load build definition from Dockerfile-with-features 0.0s => => transferring dockerfile: 4.64kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => resolve image config for docker.io/docker/dockerfile:1.4 1.4s => CACHED docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531b 0.0s => [internal] load build definition from Dockerfile-with-features 0.0s => [internal] load .dockerignore 0.0s => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/p 1.8s => [context dev_containers_feature_content_source] load .dockerignore 0.0s => => transferring dev_containers_feature_content_source: 2B 0.0s => [internal] load build context 0.0s => => transferring context: 180B 0.0s => [context dev_containers_feature_content_source] load from client 0.0s => => transferring dev_containers_feature_content_source: 41.24kB 0.0s => [dev_container_auto_added_stage_label 1/5] FROM mcr.microsoft.com/v 105.3s => => resolve mcr.microsoft.com/vscode/devcontainers/python:0-3.10@sha25 0.0s => => sha256:68a71c865a2c34678c6dea55e4b0928f751ee3c0ca9 5.17MB / 5.17MB 3.0s => => sha256:346a2d8a91a63dcbe3d5f1a6b242de87a54f842d3fb 3.93kB / 3.93kB 0.0s => => sha256:b49b6c1bff3a54046703000a86c2238a91b2ecac3 22.92kB / 22.92kB 0.0s => => sha256:aa9e41e39a74af80913bded477bf19d166781188fb0 1.61kB / 1.61kB 0.0s => => sha256:3e440a7045683e27f8e2fa04000e0e078d8dfac0 55.05MB / 55.05MB 40.1s => => sha256:670730c27c2eacf07897a6e94fe55423ea50b884d 10.88MB / 10.88MB 4.6s => => sha256:5a7a2c95f0f8b221d776ccf35911b68eec2cf941 54.58MB / 54.58MB 45.6s => => sha256:6d627e120214bb28a729d4b54a0ecba4c4aeaf 196.81MB / 196.81MB 93.8s => => sha256:f8c6dc6780819f5eb5a6ee84ce72dd613d5e6c4065 6.29MB / 6.29MB 44.1s => => extracting sha256:3e440a7045683e27f8e2fa04000e0e078d8dfac0c971358a 1.8s => => extracting sha256:68a71c865a2c34678c6dea55e4b0928f751ee3c0ca91cace 0.2s => => extracting sha256:670730c27c2eacf07897a6e94fe55423ea50b884d9c28161 0.2s => => sha256:a6daac42f0daee2fe11dd237f570a94067fd69ec 17.39MB / 17.39MB 52.6s => => sha256:6aee427ebf20be7b852728cc0cab3bafd4ba8710792d52 243B / 243B 46.0s => => extracting sha256:5a7a2c95f0f8b221d776ccf35911b68eec2cf9414a44d216 1.8s => => sha256:f3a8bc02d1593e5bf4b6dcf93773a6a4787cb18892 3.08MB / 3.08MB 47.8s => => sha256:4453a80dbd7862b2f27ad63bb81539ee66a478e4 14.16MB / 14.16MB 55.0s => => sha256:7417cace9c490ee370c652c66dbddbaad553639b4d 5.73MB / 5.73MB 55.8s => => sha256:444d15783a81be3699b32b0e26f2eb785787230f69e01f 417B / 417B 55.4s => => sha256:cbb43cc08b72107cddc8e2f03fe0596f01940cc80738e1 141B / 141B 55.9s => => sha256:95057a309352f7736b21d168afc5a093d322c199310166 227B / 227B 56.3s => => sha256:d21bd946703a734bd396d41a46fa89986e4b657452eeea 236B / 236B 56.4s => => sha256:a59cc68e15f0ce7c83c76c4edb07327ee6bedc9f 63.75MB / 63.75MB 89.8s => => sha256:b25d78eea4ebcc1bcb598192f144c5bd75d18867 44.55MB / 44.55MB 75.3s => => sha256:48eec229514cfaf265ab9b3364495badab7543bf2c 2.09MB / 2.09MB 76.8s => => sha256:14a310518aa39ee23196c6a405e2d1e5e19e884 66.89MB / 66.89MB 100.7s => => extracting sha256:6d627e120214bb28a729d4b54a0ecba4c4aeaf0295ca2d1f 4.9s => => extracting sha256:f8c6dc6780819f5eb5a6ee84ce72dd613d5e6c406585211a 0.2s => => extracting sha256:a6daac42f0daee2fe11dd237f570a94067fd69ec126838af 0.5s => => extracting sha256:6aee427ebf20be7b852728cc0cab3bafd4ba8710792d5239 0.0s => => extracting sha256:f3a8bc02d1593e5bf4b6dcf93773a6a4787cb1889270c22c 0.2s => => extracting sha256:4453a80dbd7862b2f27ad63bb81539ee66a478e4f1283e4c 0.2s => => extracting sha256:7417cace9c490ee370c652c66dbddbaad553639b4dfa8380 0.2s => => extracting sha256:444d15783a81be3699b32b0e26f2eb785787230f69e01fe6 0.0s => => extracting sha256:cbb43cc08b72107cddc8e2f03fe0596f01940cc80738e181 0.0s => => extracting sha256:95057a309352f7736b21d168afc5a093d322c199310166e8 0.0s => => extracting sha256:d21bd946703a734bd396d41a46fa89986e4b657452eeeae6 0.0s => => extracting sha256:b25d78eea4ebcc1bcb598192f144c5bd75d18867ea7d044a 1.1s => => extracting sha256:a59cc68e15f0ce7c83c76c4edb07327ee6bedc9f59b11a51 1.2s => => extracting sha256:48eec229514cfaf265ab9b3364495badab7543bf2c2714ca 0.1s => => extracting sha256:14a310518aa39ee23196c6a405e2d1e5e19e884d7e920c86 1.7s => [dev_container_auto_added_stage_label 2/5] RUN if [ "none" != "none" 0.8s => [dev_container_auto_added_stage_label 3/5] RUN apt-get update && apt 28.2s => [dev_container_auto_added_stage_label 4/5] COPY requirements.txt /tmp 0.0s => [dev_container_auto_added_stage_label 5/5] RUN pip3 --disable-pip-ve 54.7s => [dev_containers_target_stage 1/4] RUN mkdir -p /tmp/dev-container-fea 0.4s => [dev_containers_feature_content_normalize 1/2] COPY --from=dev_contai 0.0s => [dev_containers_feature_content_normalize 2/2] RUN chmod -R 0755 /tmp 0.4s => [dev_containers_target_stage 2/4] COPY --from=dev_containersfeature 0.0s => [dev_containers_target_stage 3/4] RUN echo "_CONTAINER_USER_HOME=$(ge 0.4s => [dev_containers_target_stage 4/4] RUN --mount=type=bind,from=dev_cont 0.7s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:7606a5cded30b33aab84ef7c0e8911ea652b37f8c7c25 0.0s => => naming to docker.io/library/vsc-ucd-techdocs-479e1cf133596afcfdc1f 0.0s => exporting cache 0.0s => => preparing build cache for export 0.0s [197819 ms] Start: Run: docker events --format {{json .}} --filter event=start [197822 ms] Start: Starting container [197822 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=/Users/ariedl/dev/ucd-techdocs,target=/workspaces/ucd-techdocs,consistency=cached --mount type=volume,src=vscode,dst=/vscode -l devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs -l devcontainer.config_file=/Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json --network=host --entrypoint /bin/sh vsc-ucd-techdocs-479e1cf133596afcfdc1fd8605e0655542d6ec4ca850fc85595b55a4773932dc -c echo Container started [198124 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs --filter label=devcontainer.config_file=/Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json Container started [198195 ms] Start: Run: docker inspect --type container f11da07304a2 [198247 ms] Start: Inspecting container [198247 ms] Start: Run: docker inspect --type container f11da07304a20cc5f7de5c71550959ecf887264d5425634c585fb2b030216bfa [198303 ms] Start: Run in container: /bin/sh [198304 ms] Start: Run in container: uname -m [198502 ms] x86_64 [198502 ms] [198502 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [198531 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [198531 ms] [198531 ms] Start: Run in container: cat /etc/passwd [198562 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker' [198567 ms] [198567 ms] [198567 ms] Exit code 1 [198567 ms] Start: Run in container: /bin/sh [198572 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null [198744 ms] [198744 ms] [198744 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF' [198772 ms] [198772 ms] [198772 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker' [198777 ms] [198777 ms] [198777 ms] Exit code 1 [198778 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null [198814 ms] [198814 ms] [198814 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$])$/\1${PATH:-\3}/g' /etc/profile || true [198865 ms] [198865 ms] [198875 ms] Start: Run: docker inspect --type container f11da07304a20cc5f7de5c71550959ecf887264d5425634c585fb2b030216bfa [198937 ms] Start: Run: docker exec -i -u root f11da07304a20cc5f7de5c71550959ecf887264d5425634c585fb2b030216bfa /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=90db4283-e64f-4b20-b563-4ff88c5c5a441681746640474 ; /bin/sh [198938 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/ariedl/.vscode/extensions/ms-vscode-remote.remote-containers-0.288.1/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/ariedl/dev/ucd-techdocs --id-label devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs --id-label devcontainer.config_file=/Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json --container-id f11da07304a20cc5f7de5c71550959ecf887264d5425634c585fb2b030216bfa --log-level debug --log-format json --config /Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json --mount-workspace-git-root true [199078 ms] New container started. Keep-alive process started. [199093 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. darwin 22.4.0 arm64. [199093 ms] Start: Run: git rev-parse --show-cdup [199104 ms] Start: Run: docker inspect --type container f11da07304a20cc5f7de5c71550959ecf887264d5425634c585fb2b030216bfa [199159 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/ariedl/.vscode/extensions/ms-vscode-remote.remote-containers-0.288.1/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/ariedl/dev/ucd-techdocs --id-label devcontainer.local_folder=/Users/ariedl/dev/ucd-techdocs --id-label devcontainer.config_file=/Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json --container-id f11da07304a20cc5f7de5c71550959ecf887264d5425634c585fb2b030216bfa --log-level debug --log-format json --config /Users/ariedl/dev/ucd-techdocs/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true [199303 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. darwin 22.4.0 arm64. [199303 ms] Start: Run: git rev-parse --show-cdup [199312 ms] Start: Run: docker inspect --type container f11da07304a20cc5f7de5c71550959ecf887264d5425634c585fb2b030216bfa [199366 ms] Start: Inspecting container [199366 ms] Start: Run: docker inspect --type container f11da07304a20cc5f7de5c71550959ecf887264d5425634c585fb2b030216bfa [199416 ms] Start: Run in container: /bin/sh [199417 ms] Start: Run in container: uname -m [199569 ms] x86_64 [199569 ms] [199570 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [199600 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [199600 ms] [199601 ms] Start: Run in container: cat /etc/passwd [199631 ms] Start: Run in container: command -v git >/dev/null 2>&1 && cd '/workspaces/ucd-techdocs' && test -d .git && test "$(stat -c %u .)" != "$(id -u)" [199692 ms] [199692 ms] [199692 ms] Start: Run: /bin/sh -c cd '/Users/ariedl/dev/ucd-techdocs' && test "$(stat -f %u .)" = "$(id -u)" [199715 ms] Start: Updating configuration state [199720 ms] Start: Setup shutdown monitor [199721 ms] Forking shutdown monitor: /Users/ariedl/.vscode/extensions/ms-vscode-remote.remote-containers-0.288.1/dist/shutdown/shutdownMonitorProcess /var/folders/c3/6z89w6ds5dx2bm2kcjb7j7600000gn/T/vscode-remote-containers-a4abc278-0fdf-4eea-8e0c-26d1e139404d.sock singleContainer Debug /Users/ariedl/Library/Application Support/Code/logs/20230417T090924/window7/exthost/ms-vscode-remote.remote-containers 1681746640794 [199725 ms] Start: Run in container: test -d /home/vscode/.vscode-server [199737 ms] [199737 ms] [199737 ms] Exit code 1 [199738 ms] Start: Run in container: test -d /home/vscode/.vscode-remote [199744 ms] [199744 ms] [199744 ms] Exit code 1 [199744 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 [199780 ms] [199781 ms] [199781 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && cat >'/home/vscode/.vscode-server/data/Machine/settings.json' <<'settingsJSON' [199835 ms] [199835 ms] [199836 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/704ed70d4fd1c6bd6342c436f1ede30d1cff4710 [199840 ms] [199840 ms] [199840 ms] Exit code 1 [199841 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/704ed70d4fd1c6bd6342c436f1ede30d1cff4710 [199845 ms] [199845 ms] [199845 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/704ed70d4fd1c6bd6342c436f1ede30d1cff4710' '/home/vscode/.vscode-server/bin/704ed70d4fd1c6bd6342c436f1ede30d1cff4710' [199898 ms] [199898 ms] [199898 ms] Start: Run in container: /bin/sh [199899 ms] Start: Launching Dev Containers helper. [199899 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-75392242-6d9b-40aa-b93b-d97824a295e8.sock) forwarded to local host (/private/tmp/com.apple.launchd.CW3Ads3kEw/Listeners). [199899 ms] X11 forwarding: DISPLAY not set on local host. [199899 ms] Start: Run in container: gpgconf --list-dir agent-socket [199899 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/704ed70d4fd1c6bd6342c436f1ede30d1cff4710' [199933 ms] /home/vscode/.gnupg/S.gpg-agent [199933 ms] [199934 ms] Start: Run in container: gpgconf --list-dir homedir [199973 ms] /home/vscode/.gnupg [199973 ms] [199973 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null [200011 ms] [200011 ms] [200011 ms] Exit code 2 [200011 ms] Start: Run: gpgconf --list-dir agent-extra-socket [200013 ms] gpg-agent: No agent-extra-socket found on local host. [200013 ms] Start: Run in container: command -v docker >/dev/null 2>&1 [200020 ms] [200020 ms] [200020 ms] Exit code 127 [200020 ms] Start: Run in container: /bin/sh [200021 ms] userEnvProbe: loginInteractiveShell (default) [200021 ms] Start: Run in container: test -f '/tmp/devcontainers-90db4283-e64f-4b20-b563-4ff88c5c5a441681746640474/env-loginInteractiveShell.json' [200021 ms] Start: Run in container: echo ~ [200026 ms] [200027 ms] [200027 ms] Exit code 1 [200027 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh [200027 ms] userEnvProbe: not found in cache [200027 ms] userEnvProbe shell: /bin/bash [200060 ms] [200060 ms] [200062 ms] [200062 ms] [200063 ms] Start: Run in container: # Copy /Users/ariedl/.ssh/known_hosts to /home/vscode/.ssh/known_hosts [200150 ms] [200150 ms] [200150 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/704ed70d4fd1c6bd6342c436f1ede30d1cff4710/node /tmp/vscode-remote-containers-75392242-6d9b-40aa-b93b-d97824a295e8.js git-credential-helper $; }; f' || true [200153 ms] /home/vscode [200153 ms] [200153 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-75392242-6d9b-40aa-b93b-d97824a295e8.js' >/tmp/vscode-remote-containers-75392242-6d9b-40aa-b93b-d97824a295e8.js [200182 ms] [200183 ms] [200183 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-75392242-6d9b-40aa-b93b-d97824a295e8.js' >/tmp/vscode-remote-containers-server-75392242-6d9b-40aa-b93b-d97824a295e8.js_1681746840977 [200190 ms] [200190 ms] [200190 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 " [200248 ms] [200248 ms] [201491 ms] userEnvProbe PATHs: Probe: '/usr/local/python/current/bin:/usr/local/py-utils/bin:/usr/local/share/nvm/current/bin:/usr/local/bin:/usr/local/python/current/bin:/usr/local/py-utils/bin:/usr/local/share/nvm/current/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin' Container: '/usr/local/python/current/bin:/usr/local/py-utils/bin:/usr/local/share/nvm/current/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' [201610 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-90db4283-e64f-4b20-b563-4ff88c5c5a441681746640474' && cat > '/tmp/devcontainers-90db4283-e64f-4b20-b563-4ff88c5c5a441681746640474/env-loginInteractiveShell.json' << 'envJSON' [201665 ms] [201665 ms] [201665 ms] Start: Run in container: cat '/home/vscode/.vscode-server/bin/704ed70d4fd1c6bd6342c436f1ede30d1cff4710/product.json' [201694 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-704ed70d4fd1c6bd6342c436f1ede30d1cff4710' 2>/dev/null || (umask 377 && echo '701ad70c-0afe-4e7f-8617-3ea27c14a297' >'/home/vscode/.vscode-server/data/Machine/.connection-token-704ed70d4fd1c6bd6342c436f1ede30d1cff4710-6994427a-82f4-4da1-9556-7c6a3af80ee6' && mv -n '/home/vscode/.vscode-server/data/Machine/.connection-token-704ed70d4fd1c6bd6342c436f1ede30d1cff4710-6994427a-82f4-4da1-9556-7c6a3af80ee6' '/home/vscode/.vscode-server/data/Machine/.connection-token-704ed70d4fd1c6bd6342c436f1ede30d1cff4710' && rm -f '/home/vscode/.vscode-server/data/Machine/.connection-token-704ed70d4fd1c6bd6342c436f1ede30d1cff4710-6994427a-82f4-4da1-9556-7c6a3af80ee6' && cat '/home/vscode/.vscode-server/data/Machine/.connection-token-704ed70d4fd1c6bd6342c436f1ede30d1cff4710') [201798 ms] 701ad70c-0afe-4e7f-8617-3ea27c14a297 [201799 ms] [201799 ms] Start: Starting VS Code Server [201800 ms] Start: Preparing Extensions [201800 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 [201832 ms] [201832 ms] [201834 ms] Extensions cache, install extensions: dbaeumer.vscode-eslint, ms-python.python, ms-python.vscode-pylance, yzane.markdown-pdf, tomoki1207.pdf, ms-vscode.live-server [201834 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true [201839 ms] [201839 ms] [201840 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [201876 ms] dbaeumer.vscode-eslint-2.4.0 dbaeumer.vscode-eslint-2.4.0.sigzip hediet.vscode-drawio-1.6.6 hediet.vscode-drawio-1.6.6.sigzip ms-python.isort-2022.8.0.sigzip ms-python.python-2023.2.0 ms-python.python-2023.2.0.sigzip ms-python.python-2023.4.0 ms-python.python-2023.4.0.sigzip ms-python.python-2023.4.1 ms-python.python-2023.4.1.sigzip ms-python.python-2023.6.0 ms-python.python-2023.6.0.sigzip ms-python.vscode-pylance-2023.2.10 ms-python.vscode-pylance-2023.2.10.sigzip ms-python.vscode-pylance-2023.3.10 ms-python.vscode-pylance-2023.3.10.sigzip ms-python.vscode-pylance-2023.3.30 ms-python.vscode-pylance-2023.3.30.sigzip ms-python.vscode-pylance-2023.4.10 ms-python.vscode-pylance-2023.4.10.sigzip ms-toolsai.jupyter-2023.1.2010391206 ms-toolsai.jupyter-2023.1.2010391206.sigzip ms-toolsai.jupyter-2023.2.1000592019 ms-toolsai.jupyter-2023.2.1000592019.sigzip ms-toolsai.jupyter-2023.2.1200692131 ms-toolsai.jupyter-2023.2.1200692131.sigzip ms-toolsai.jupyter-2023.3.1201040234 ms-toolsai.jupyter-keymap-1.0.0 ms-toolsai.jupyter-keymap-1.1.0 ms-toolsai.jupyter-keymap-1.1.0.sigzip ms-toolsai.jupyter-renderers-1.0.14 ms-toolsai.jupyter-renderers-1.0.14.sigzip ms-toolsai.jupyter-renderers-1.0.15 ms-toolsai.jupyter-renderers-1.0.15.sigzip ms-toolsai.vscode-jupyter-cell-tags-0.1.6.sigzip ms-toolsai.vscode-jupyter-cell-tags-0.1.8 ms-toolsai.vscode-jupyter-cell-tags-0.1.8.sigzip ms-toolsai.vscode-jupyter-slideshow-0.1.5.sigzip ms-vscode.live-server-0.4.5 ms-vscode.live-server-0.4.5.sigzip ms-vscode.live-server-0.4.6 ms-vscode.live-server-0.4.6.sigzip ms-vscode.live-server-0.4.7 ms-vscode.live-server-0.4.7.sigzip tomoki1207.pdf-1.2.2 tomoki1207.pdf-1.2.2.sigzip yzane.markdown-pdf-1.4.4 yzane.markdown-pdf-1.4.4.sigzip [201876 ms] [201876 ms] Extensions cache, link in container: dbaeumer.vscode-eslint-2.4.0, dbaeumer.vscode-eslint-2.4.0.sigzip, ms-python.python-2023.2.0, ms-python.python-2023.2.0.sigzip, ms-python.python-2023.4.0, ms-python.python-2023.4.0.sigzip, ms-python.python-2023.4.1, ms-python.python-2023.4.1.sigzip, ms-python.python-2023.6.0, ms-python.python-2023.6.0.sigzip, ms-python.vscode-pylance-2023.2.10, ms-python.vscode-pylance-2023.2.10.sigzip, ms-python.vscode-pylance-2023.3.10, ms-python.vscode-pylance-2023.3.10.sigzip, ms-python.vscode-pylance-2023.3.30, ms-python.vscode-pylance-2023.3.30.sigzip, ms-python.vscode-pylance-2023.4.10, ms-python.vscode-pylance-2023.4.10.sigzip, ms-vscode.live-server-0.4.5, ms-vscode.live-server-0.4.5.sigzip, ms-vscode.live-server-0.4.6, ms-vscode.live-server-0.4.6.sigzip, ms-vscode.live-server-0.4.7, ms-vscode.live-server-0.4.7.sigzip, tomoki1207.pdf-1.2.2, tomoki1207.pdf-1.2.2.sigzip, yzane.markdown-pdf-1.4.4, yzane.markdown-pdf-1.4.4.sigzip [201876 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/extensionsCache' && ln -s '/vscode/vscode-server/extensionsCache'/ '/home/vscode/.vscode-server/extensionsCache' || true [201935 ms] [201936 ms] [201939 ms] Optimizing extensions for quality: stable [201940 ms] Start: Run in container: cd /vscode/vscode-server/extensionsCache && touch 'dbaeumer.vscode-eslint-2.4.0' 'dbaeumer.vscode-eslint-2.4.0.sigzip' 'ms-python.python-2023.2.0' 'ms-python.python-2023.2.0.sigzip' 'ms-python.python-2023.4.0' 'ms-python.python-2023.4.0.sigzip' 'ms-python.python-2023.4.1' 'ms-python.python-2023.4.1.sigzip' 'ms-python.python-2023.6.0' 'ms-python.python-2023.6.0.sigzip' 'ms-python.vscode-pylance-2023.2.10' 'ms-python.vscode-pylance-2023.2.10.sigzip' 'ms-python.vscode-pylance-2023.3.10' 'ms-python.vscode-pylance-2023.3.10.sigzip' 'ms-python.vscode-pylance-2023.3.30' 'ms-python.vscode-pylance-2023.3.30.sigzip' 'ms-python.vscode-pylance-2023.4.10' 'ms-python.vscode-pylance-2023.4.10.sigzip' 'ms-vscode.live-server-0.4.5' 'ms-vscode.live-server-0.4.5.sigzip' 'ms-vscode.live-server-0.4.6' 'ms-vscode.live-server-0.4.6.sigzip' 'ms-vscode.live-server-0.4.7' 'ms-vscode.live-server-0.4.7.sigzip' 'tomoki1207.pdf-1.2.2' 'tomoki1207.pdf-1.2.2.sigzip' 'yzane.markdown-pdf-1.4.4' 'yzane.markdown-pdf-1.4.4.sigzip' [201940 ms] Start: Run in container: /home/vscode/.vscode-server/bin/704ed70d4fd1c6bd6342c436f1ede30d1cff4710/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-704ed70d4fd1c6bd6342c436f1ede30d1cff4710 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension dbaeumer.vscode-eslint --install-extension ms-python.python --install-extension ms-python.vscode-pylance --install-extension yzane.markdown-pdf --install-extension tomoki1207.pdf --install-extension ms-vscode.live-server --start-server --disable-websocket-compression [201968 ms] [201968 ms] [202605 ms]

[202637 ms] Start: Run in container: echo 37553 >'/home/vscode/.vscode-server/data/Machine/.devport-704ed70d4fd1c6bd6342c436f1ede30d1cff4710' [202648 ms] [202649 ms] [202649 ms] Port forwarding for container port 37553 starts listening on local port. [202650 ms] Port forwarding local port 37553 to container port 37553 [202660 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git [202671 ms] Port forwarding connection from 64663 > 37553 > 37553 in the container. [202672 ms] Start: Run in container: /home/vscode/.vscode-server/bin/704ed70d4fd1c6bd6342c436f1ede30d1cff4710/node -e [202694 ms] [202694 ms] [202694 ms] Start: Run in container: # Copy /Users/ariedl/.gitconfig to /home/vscode/.gitconfig [202782 ms] [202782 ms] [202783 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/704ed70d4fd1c6bd6342c436f1ede30d1cff4710/node /tmp/vscode-remote-containers-75392242-6d9b-40aa-b93b-d97824a295e8.js git-credential-helper $*; }; f' || true [202828 ms] [202829 ms] [202829 ms] Start: Run in container: git config --global --add safe.directory '/workspaces/ucd-techdocs' [202871 ms] [202872 ms] [203289 ms] Port forwarding 64663 > 37553 > 37553 stderr: Connection established [203794 ms] [15:54:04]

[204018 ms] [15:54:04] Installing extensions... [204049 ms] [15:54:04] Extension host agent started. [204250 ms] Port forwarding connection from 64667 > 37553 > 37553 in the container. [204250 ms] Start: Run in container: /home/vscode/.vscode-server/bin/704ed70d4fd1c6bd6342c436f1ede30d1cff4710/node -e [204353 ms] [15:54:05] No uninstalled extensions found. [204449 ms] [15:54:05] [127.0.0.1][b6727425][ManagementConnection] New connection established. [204478 ms] [15:54:05] Started initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions [204701 ms] [15:54:05] Log level changed to info [204824 ms] Port forwarding 64667 > 37553 > 37553 stderr: Connection established [205384 ms] [15:54:06] [127.0.0.1][5ca4718a][ExtensionHostConnection] New connection established. [205507 ms] [15:54:06] [127.0.0.1][5ca4718a][ExtensionHostConnection] <714> Launched Extension Host Process. [206823 ms] [15:54:07] Completed initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions [211034 ms] [15:54:11] Installing extension 'dbaeumer.vscode-eslint'... [211042 ms] [15:54:11] Getting Manifest... dbaeumer.vscode-eslint [211077 ms] [15:54:11] Installing extension 'ms-python.python'... [211079 ms] [15:54:11] Getting Manifest... ms-python.python [211099 ms] [15:54:11] Installing extension 'ms-python.vscode-pylance'... [211100 ms] [15:54:11] Getting Manifest... ms-python.vscode-pylance [211125 ms] [15:54:11] Installing extension 'tomoki1207.pdf'... [211127 ms] [15:54:11] Getting Manifest... tomoki1207.pdf [211153 ms] [15:54:11] Installing extension 'yzane.markdown-pdf'... [211156 ms] [15:54:11] Getting Manifest... yzane.markdown-pdf [211250 ms] [15:54:12] Installing extension 'ms-vscode.live-server'... [211255 ms] [15:54:12] Getting Manifest... ms-vscode.live-server [211406 ms] [15:54:12] Installing extension: dbaeumer.vscode-eslint [211438 ms] [15:54:12] Installing extension: ms-python.python [211455 ms] [15:54:12] Installing extension: tomoki1207.pdf [211513 ms] [15:54:12] Installing extension: yzane.markdown-pdf [211538 ms] [15:54:12] Installing extension: ms-python.vscode-pylance [211743 ms] [15:54:12] Installing extension: ms-vscode.live-server [214425 ms] [15:54:15] Getting Manifest... ms-toolsai.jupyter [214818 ms] [15:54:15] Getting Manifest... ms-python.python [215236 ms] [15:54:16] Getting Manifest... ms-toolsai.jupyter-keymap [215497 ms] [15:54:16] Getting Manifest... ms-toolsai.jupyter-renderers [215783 ms] [15:54:16] Getting Manifest... ms-toolsai.vscode-jupyter-cell-tags [216254 ms] [15:54:17] Getting Manifest... ms-toolsai.vscode-jupyter-slideshow [216503 ms] [15:54:17] Getting Manifest... ms-toolsai.jupyter [216652 ms] [15:54:17] Getting Manifest... ms-python.vscode-pylance [217254 ms] [15:54:18] Installing extension: ms-toolsai.jupyter ms-python.python [217260 ms] [15:54:18] Installing extension: ms-toolsai.jupyter-keymap ms-python.python [217263 ms] [15:54:18] Installing extension: ms-toolsai.jupyter-renderers ms-python.python [217265 ms] [15:54:18] Installing extension: ms-toolsai.vscode-jupyter-cell-tags ms-python.python [217272 ms] [15:54:18] Installing extension: ms-toolsai.vscode-jupyter-slideshow ms-python.python [217275 ms] [15:54:18] Waiting for already requested installing extension ms-python.vscode-pylance ms-python.python [217335 ms] [15:54:18] Getting Manifest... ms-toolsai.jupyter-keymap [218303 ms] [15:54:19] Getting Manifest... ms-toolsai.jupyter-renderers [218649 ms] [15:54:19] Getting Manifest... ms-toolsai.vscode-jupyter-cell-tags [219012 ms] [15:54:19] Getting Manifest... ms-toolsai.vscode-jupyter-slideshow [272140 ms] Start: Run in container: mkdir -p '/vscode/vscode-server/extensionsCache' && cd '/home/vscode/.vscode-server/extensionsCache' && cp 'ms-python.vscode-pylance-2023.4.20' 'ms-python.vscode-pylance-2023.4.20.sigzip' 'ms-toolsai.jupyter-2023.3.1201040234.sigzip' 'ms-toolsai.vscode-jupyter-slideshow-0.1.5' '/vscode/vscode-server/extensionsCache' [272353 ms] [272353 ms] [272353 ms] Start: Run in container: cd '/vscode/vscode-server/extensionsCache' && ls -t | tail -n +50 | xargs rm -f [272561 ms] [272561 ms] [1156751 ms] [16:09:57] Extracted extension to /home/vscode/.vscode-server/extensions/.2866d26c-ad5d-49db-aece-9d4f295bb7d5: ms-python.vscode-pylance [1156895 ms] [16:09:57] Renamed to /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2023.4.20 [1157024 ms] [16:09:57] Extracting extension completed. ms-python.vscode-pylance [1157179 ms] [16:09:57] Extension installed successfully: ms-python.vscode-pylance [1157199 ms] [16:09:57] Finished waiting for already requested installing extension ms-python.vscode-pylance ms-python.python [1157208 ms] [16:09:58] Extension 'ms-python.vscode-pylance' v2023.4.20 was successfully installed. [1347969 ms] [16:13:08] Extracted extension to /home/vscode/.vscode-server/extensions/.8e136c93-abd8-411a-86ec-989b2f4275b0: ms-toolsai.jupyter [1348064 ms] [16:13:08] Renamed to /home/vscode/.vscode-server/extensions/ms-toolsai.jupyter-2023.3.1201040234 [1348252 ms] [16:13:09] Extracting extension completed. ms-toolsai.jupyter [1595552 ms] [16:17:16] Extracted extension to /home/vscode/.vscode-server/extensions/.3ff47aa2-b483-4a23-af40-79e5bc082335: ms-vscode.live-server [1595606 ms] [16:17:16] Renamed to /home/vscode/.vscode-server/extensions/ms-vscode.live-server-0.4.7 [1595694 ms] [16:17:16] Extracting extension completed. ms-vscode.live-server [1595757 ms] [16:17:16] Extension installed successfully: ms-vscode.live-server [1595781 ms] [16:17:16] Extension 'ms-vscode.live-server' v0.4.7 was successfully installed. [1868368 ms] [16:21:49] Extracted extension to /home/vscode/.vscode-server/extensions/.f25f2074-6419-4158-8a48-e9ded4b59064: ms-toolsai.vscode-jupyter-cell-tags [1868435 ms] [16:21:49] Renamed to /home/vscode/.vscode-server/extensions/ms-toolsai.vscode-jupyter-cell-tags-0.1.8 [1868473 ms] [16:21:49] Extracting extension completed. ms-toolsai.vscode-jupyter-cell-tags

ariedl commented 1 year ago

In the absence of more verbose logging, I attached to the above container while it was installing and ran htop to see what it was doing. Here are few screenshots:

Screenshot 2023-04-17 at 10 32 40

Screenshot 2023-04-17 at 10 32 58

You can see in the first image that the cpu allocated to the container is pinned. When I wrap one of the offending commands it looks like it's hung at a process named 'vsce-sign'.

sandy081 commented 1 year ago

Can you please add following setting in the remote settings.json file and retry?

"extensions.verifySignature": false

CC @isidorn

ariedl commented 1 year ago

After adding: "extensions.verifySignature": false

to .devcontainer/devcontainer.json in customizations.vscode.settings such that the entire stanza is:

"customizations": {"vscode":{ "settings": { "python.defaultInterpreterPath": "/usr/local/bin/python", "python.linting.enabled": true, "python.linting.pylintEnabled": true, "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", "python.formatting.blackPath": "/usr/local/py-utils/bin/black", "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint", "extensions.verifySignature": false },

All extensions installed in a 'normal' amount of time.

The logs now include indications that signature verification is being skipped: [27067 ms] [17:00:57] Extension signature verification is not done: ms-toolsai.jupyter [27125 ms] [17:00:57] Extension signature verification is not done: ms-toolsai.jupyter-keymap [27210 ms] [17:00:57] Extension signature verification is not done: ms-toolsai.jupyter-renderers [27287 ms] [17:00:57] Extension signature verification is not done: ms-toolsai.vscode-jupyter-cell-tags [27360 ms] [17:00:57] Extension signature verification is not done: ms-toolsai.vscode-jupyter-slideshow

It does seem as though the verify signature step is directly impacting installation time.

isidorn commented 1 year ago

fyi @dtivel

ryboe commented 1 year ago

Great discovery, @ariedl! Setting customizations.vscode.settings.extensions.verifySignature: false fixed it for me too. All the extensions install very quickly now. Thanks!

ariedl commented 1 year ago

@ryboe - I'm glad to hear that this got you back on track. Your confirmation adds additional evidence that the signature verify step is the culprit. I'm hopeful that the VSC team will try to find and fix the root cause. While I expect the likelihood to be fairly low, we are now more open to the possibility of a malicious extension getting installed on our systems.

isidorn commented 1 year ago

Closing as dup of https://github.com/microsoft/vscode/issues/174632