microsoft / vscode-remote-release

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

Unable to List GPG Keys in Dev Container or Sign Git Commits. #8549

Closed dallinb closed 9 months ago

dallinb commented 1 year ago

Dev Container start logs:

[16 ms] Dev Containers 0.292.0 in VS Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435).
[16 ms] Start: Resolving Remote
[25 ms] Setting up container for folder or workspace: /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io
[25 ms] Context: desktop-linux
[26 ms] Start: Check Docker is running
[26 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[82 ms] Server API version: 1.42
[82 ms] Start: Run: docker volume ls -q
[124 ms] Start: Run: docker volume create vscode
[166 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --filter label=vsch.quality=stable
[216 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --filter label=devcontainer.config_file=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json
[260 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io
[304 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io
[344 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/ben.dalling/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --id-label devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --id-label devcontainer.config_file=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json --mount-workspace-git-root true
[474 ms] @devcontainers/cli 0.40.0. Node.js v16.17.1. darwin 22.4.0 arm64.
[473 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --filter label=devcontainer.config_file=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json
[522 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/ben.dalling/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/ben.dalling/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-7e63d48a-1556-44e6-8110-51daa1f1df071685429542300 --workspace-folder /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --id-label devcontainer.config_file=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.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
[651 ms] @devcontainers/cli 0.40.0. Node.js v16.17.1. darwin 22.4.0 arm64.
[651 ms] Start: Run: docker buildx version
[795 ms] github.com/docker/buildx v0.10.4 c513d34049e499c53468deac6c4267ee72948f02
[795 ms] 
[795 ms] Start: Resolving Remote
[797 ms] Start: Run: docker-compose version --short
[865 ms] Docker Compose version: 2.17.3
[866 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=airflowcbdqio_devcontainer --filter label=com.docker.compose.service=airflowdev
[910 ms] Start: Run: docker-compose -f /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/docker-compose.yml --profile * config
[978 ms] name: devcontainer
services:
  airflowdev:
    build:
      context: /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer
      dockerfile: Dockerfile
    container_name: airflowdev
    networks:
      default: null
    volumes:
    - type: bind
      source: /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io
      target: /code
      bind:
        create_host_path: true
    - type: bind
      source: /var/run/docker.sock
      target: /var/run/docker-host.sock
      bind:
        create_host_path: true
    working_dir: /code
networks:
  default:
    name: devcontainer_default
[980 ms] Start: Run: docker events --format {{json .}} --filter event=start
[981 ms] PersistedPath=/Users/ben.dalling/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data, ContainerHasLabels=false
[981 ms] Start: Run: docker-compose -f /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/docker-compose.yml --profile * config
[1043 ms] name: devcontainer
services:
  airflowdev:
    build:
      context: /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer
      dockerfile: Dockerfile
    container_name: airflowdev
    networks:
      default: null
    volumes:
    - type: bind
      source: /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io
      target: /code
      bind:
        create_host_path: true
    - type: bind
      source: /var/run/docker.sock
      target: /var/run/docker-host.sock
      bind:
        create_host_path: true
    working_dir: /code
networks:
  default:
    name: devcontainer_default
[1044 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/base:bullseye
[1090 ms] local container features stored at: /Users/ben.dalling/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/node_modules/vscode-dev-containers/container-features
[1091 ms] Start: Run: tar --no-same-owner -x -f -
[1101 ms] * Processing feature: ghcr.io/devcontainers-contrib/features/actionlint:1
[1273 ms] Start: Run: docker-credential-desktop get
[1854 ms] * Fetching feature: actionlint_1_oci
[2226 ms] Start: Run: docker build -t dev_container_feature_content_temp -f /var/folders/bh/t85g9mns4nj4vqssj9g3xtnm0000gn/T/devcontainercli/container-features/0.40.0-1685429543774/Dockerfile.buildContent /var/folders/bh/t85g9mns4nj4vqssj9g3xtnm0000gn/T/devcontainercli/container-features/0.40.0-1685429543774
[+] Building 0.0s (5/5) FINISHED                                                
 => [internal] load build definition from Dockerfile.buildContent          0.0s
 => => transferring dockerfile: 132B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 36.21kB                                       0.0s
 => [1/1] COPY . /tmp/build-features/                                      0.0s
 => exporting to image                                                     0.0s
 => => exporting layers                                                    0.0s
 => => writing image sha256:ed38e876f2c9b496be74a0ccbe6b17711d84ffa3c1631  0.0s
 => => naming to docker.io/library/dev_container_feature_content_temp      0.0s
[2456 ms] Docker Compose override file for building image:
version: '3.8'

services:
  airflowdev:
    build:
      dockerfile: /var/folders/bh/t85g9mns4nj4vqssj9g3xtnm0000gn/T/devcontainercli/container-features/0.40.0-1685429543774/Dockerfile-with-features
      args:
        - BUILDKIT_INLINE_CACHE=1
        - _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label
        - _DEV_CONTAINERS_IMAGE_USER=root
        - _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp

[2456 ms] Start: Run: docker-compose --project-name airflowcbdqio_devcontainer -f /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/docker-compose.yml -f /Users/ben.dalling/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1685429545140.yml build
[+] Building 65.0s (21/21) FINISHED                                             
 => [internal] load build definition from Dockerfile-with-features         0.0s
 => => transferring dockerfile: 4.38kB                                     0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/dev_container_feature_  0.0s
 => [internal] load metadata for mcr.microsoft.com/devcontainers/base:bul  0.0s
 => [dev_container_auto_added_stage_label 1/6] FROM mcr.microsoft.com/dev  0.2s
 => [internal] load build context                                          0.1s
 => => transferring context: 49.45kB                                       0.0s
 => [dev_containers_feature_content_source 1/1] FROM docker.io/library/de  0.0s
 => [dev_container_auto_added_stage_label 2/6] COPY library-scripts/*.sh   0.0s
 => [dev_container_auto_added_stage_label 3/6] COPY requirements-dev.txt   0.0s
 => [dev_container_auto_added_stage_label 4/6] COPY setup.sh /home/vscode  0.0s
 => [dev_container_auto_added_stage_label 5/6] RUN apt-get update && exp  30.4s
 => [dev_container_auto_added_stage_label 6/6] RUN if [ "false" = "true"  25.3s
 => [dev_containers_feature_content_normalize 1/2] COPY --from=dev_contai  0.0s   
 => [dev_containers_target_stage 1/5] RUN mkdir -p /tmp/dev-container-fea  0.4s 
 => [dev_containers_feature_content_normalize 2/2] RUN chmod -R 0755 /tmp  0.4s 
 => [dev_containers_target_stage 2/5] COPY --from=dev_containers_feature_  0.0s 
 => [dev_containers_target_stage 3/5] RUN echo "_CONTAINER_USER_HOME=$(ge  0.2s 
 => [dev_containers_target_stage 4/5] COPY --chown=root:root --from=dev_c  0.0s 
 => [dev_containers_target_stage 5/5] RUN chmod -R 0755 /tmp/dev-containe  6.3s
 => preparing layers for inline cache                                      2.1s
 => exporting to image                                                     0.0s
 => => exporting layers                                                    0.0s
 => => writing image sha256:b1935a5c00815d80e5c348d4bbaf63cda47e3c386e8dc  0.0s
 => => naming to docker.io/library/airflowcbdqio_devcontainer-airflowdev   0.0s
[67619 ms] Start: Run: docker inspect --type image airflowcbdqio_devcontainer-airflowdev
[67666 ms] Docker Compose override file for creating container:
version: '3.8'

services:
  'airflowdev':
    entrypoint: ["/bin/sh", "-c", "echo Container started\n
trap \"exit 0\" 15\n
\n
exec \"$$@\"\n
while sleep 1 & wait $$!; do :; done", "-", "/usr/local/share/docker-init.sh"]
    command: ["sleep","infinity"]
    environment:
      - PYTHONPATH=.:dags
    labels:
      - 'devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io'
      - 'devcontainer.config_file=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json'
    volumes:
      - vscode:/vscode
volumes:
  vscode:
    external: true
[67666 ms] Writing docker-compose.devcontainer.containerFeatures-1685429610350.yml to /Users/ben.dalling/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose
[67667 ms] Start: Run: docker-compose --project-name airflowcbdqio_devcontainer -f /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/docker-compose.yml -f /Users/ben.dalling/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1685429545140.yml -f /Users/ben.dalling/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1685429610350.yml up -d
[+] Running 2/2
 ✔ Network airflowcbdqio_devcontainer_default  Created                     0.0s 
 ✔ Container airflowdev                        S...                        0.3s 
[68091 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=airflowcbdqio_devcontainer --filter label=com.docker.compose.service=airflowdev
[68145 ms] Start: Run: docker inspect --type container 7ece9761a761
[68185 ms] Start: Inspecting container
[68185 ms] Start: Run: docker inspect --type container 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31
[68225 ms] Start: Run in container: /bin/sh
[68226 ms] Start: Run in container: uname -m
[68303 ms] aarch64
[68303 ms] 
[68303 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[68305 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/"
[68305 ms] 
[68305 ms] Start: Run in container: cat /etc/passwd
[68306 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[68307 ms] 
[68307 ms] 
[68307 ms] Exit code 1
[68307 ms] Start: Run in container: /bin/sh
[68308 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[68380 ms] 
[68380 ms] 
[68380 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[68381 ms] 
[68381 ms] 
[68382 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[68382 ms] 
[68382 ms] 
[68382 ms] Exit code 1
[68382 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[68384 ms] 
[68384 ms] 
[68384 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[68385 ms] 
[68385 ms] 
[68389 ms] Start: Run: docker inspect --type container 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31
[68427 ms] Start: Run: docker exec -i -u root 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31 /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=7e63d48a-1556-44e6-8110-51daa1f1df071685429542300 ; /bin/sh
[68428 ms] Start: Run: docker-compose version --short
[68492 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/ben.dalling/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --id-label devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --id-label devcontainer.config_file=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json --container-id 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31 --log-level debug --log-format json --config /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[68506 ms] New container started. Keep-alive process started.
[68626 ms] @devcontainers/cli 0.40.0. Node.js v16.17.1. darwin 22.4.0 arm64.
[68626 ms] Start: Run: docker inspect --type container 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31
[68667 ms] Start: Inspecting container
[68667 ms] Start: Run: docker inspect --type container 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31
[68703 ms] Start: Run in container: /bin/sh
[68703 ms] Start: Run in container: uname -m
[68786 ms] aarch64
[68786 ms] 
[68787 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[68788 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/"
[68789 ms] 
[68789 ms] Start: Run in container: cat /etc/passwd
[68791 ms] Start: Updating configuration state
[68794 ms] Start: Setup shutdown monitor
[68795 ms] Forking shutdown monitor: /Users/ben.dalling/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/shutdown/shutdownMonitorProcess /var/folders/bh/t85g9mns4nj4vqssj9g3xtnm0000gn/T/vscode-remote-containers-586ec284-7c39-43b7-b343-2574ae289bc3.sock dockerCompose Debug /Users/ben.dalling/Library/Application Support/Code/logs/20230530T075203/window1/exthost/ms-vscode-remote.remote-containers 1685429542684
[68796 ms] Start: Run in container: test -d /home/vscode/.vscode-server
[68797 ms] 
[68797 ms] 
[68797 ms] Exit code 1
[68797 ms] Start: Run in container: test -d /home/vscode/.vscode-remote
[68798 ms] 
[68798 ms] 
[68798 ms] Exit code 1
[68798 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
[68800 ms] 
[68800 ms] 
[68800 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json
[68802 ms] 
[68802 ms] cat: /home/vscode/.vscode-server/data/Machine/settings.json: No such file or directory
[68802 ms] Exit code 1
[68802 ms] 
Support for ARM64 is in preview.

[68802 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435
[68803 ms] 
[68803 ms] 
[68803 ms] Exit code 1
[68803 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-arm64/b3e4e68a0bc097f0ae7907b217c1119af9e03435
[68803 ms] 
[68803 ms] 
[68804 ms] Exit code 1
[68804 ms] Installing VS Code Server for commit b3e4e68a0bc097f0ae7907b217c1119af9e03435
[68804 ms] Start: Run in container: /bin/sh
[68805 ms] Start: Installing VS Code Server
[68805 ms] Start: Run in container: mkdir -p /vscode/vscode-server/bin/linux-arm64/b3e4e68a0bc097f0ae7907b217c1119af9e03435_1685429611489
[68897 ms] 
[68897 ms] 
[68913 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=6682 2>/dev/null; dd iflag=fullblock bs=7052 count=1 2>/dev/null) | tar --no-same-owner -xz -C /vscode/vscode-server/bin/linux-arm64/b3e4e68a0bc097f0ae7907b217c1119af9e03435_1685429611489
[69992 ms] 
[69992 ms] 
[69992 ms] Start: Run in container: mv -n /vscode/vscode-server/bin/linux-arm64/b3e4e68a0bc097f0ae7907b217c1119af9e03435_1685429611489/* /vscode/vscode-server/bin/linux-arm64/b3e4e68a0bc097f0ae7907b217c1119af9e03435 && rmdir /vscode/vscode-server/bin/linux-arm64/b3e4e68a0bc097f0ae7907b217c1119af9e03435_1685429611489
[69995 ms] 
[69995 ms] 
[69996 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-arm64/b3e4e68a0bc097f0ae7907b217c1119af9e03435' '/home/vscode/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435'
[69998 ms] 
[69998 ms] 
[69998 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-arm64/b3e4e68a0bc097f0ae7907b217c1119af9e03435' && cd '/vscode/vscode-server/bin/linux-arm64' && ls -td *[^_]????????????? | tail -n +10 | xargs rm -rf
[69998 ms] Start: Launching Dev Containers helper.
[69999 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-4d97a1db-e458-4444-963c-aebb7b92d97d.sock) forwarded to local host (/private/tmp/com.apple.launchd.wS1kja9TlA/Listeners).
[69999 ms] X11 forwarding: DISPLAY not set on local host.
[69999 ms] Start: Run in container: gpgconf --list-dir agent-socket
[70001 ms] /home/vscode/.gnupg/S.gpg-agent
[70002 ms] 
[70002 ms] Start: Run in container: gpgconf --list-dir homedir
[70003 ms] 
[70003 ms] 
[70004 ms] /home/vscode/.gnupg
[70004 ms] 
[70005 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null
[70007 ms] 
[70007 ms] 
[70007 ms] Exit code 2
[70008 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[70056 ms] /Users/ben.dalling/.gnupg/S.gpg-agent.extra
[70056 ms] 
[70056 ms] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg'
[70056 ms] gpg-agent: Socket in container (/home/vscode/.gnupg/S.gpg-agent) forwarded to local host (/Users/ben.dalling/.gnupg/S.gpg-agent.extra).
[70058 ms] 
[70058 ms] 
[70059 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[70059 ms] Start: Run: gpgconf --list-dir homedir
[70061 ms] 
[70061 ms] 
[70062 ms] Start: Run in container: /bin/sh
[70064 ms] userEnvProbe: loginInteractiveShell (default)
[70065 ms] Start: Run in container: test -f '/tmp/devcontainers-7e63d48a-1556-44e6-8110-51daa1f1df071685429542300/env-loginInteractiveShell.json'
[70065 ms] Start: Run in container: echo ~
[70066 ms] 
[70066 ms] 
[70066 ms] Exit code 1
[70066 ms] userEnvProbe: not found in cache
[70066 ms] userEnvProbe shell: /bin/bash
[70067 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh
[70069 ms] 
[70069 ms] 
[70069 ms] Start: Run in container: # Copy /Users/ben.dalling/.ssh/known_hosts to /home/vscode/.ssh/known_hosts
[70070 ms] /Users/ben.dalling/.gnupg
[70070 ms] 
[70072 ms] 
[70072 ms] 
[70072 ms] Start: Run in container: gpgconf --list-dir homedir
[70072 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/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node /tmp/vscode-remote-containers-4d97a1db-e458-4444-963c-aebb7b92d97d.js git-credential-helper $*; }; f' || true
[70073 ms] /home/vscode/.gnupg
[70074 ms] 
[70074 ms] Start: Run in container: # Test for /home/vscode/.gnupg/pubring.kbx and gpg
[70076 ms] 
[70076 ms] 
[70077 ms] Start: Run in container: # Copy /Users/ben.dalling/.gnupg/pubring.kbx to /home/vscode/.gnupg/pubring.kbx
[70079 ms] 
[70079 ms] 
[70080 ms] Start: Run in container: # Test for /home/vscode/.gnupg/trustdb.gpg and gpg
[70082 ms] 
[70082 ms] 
[70082 ms] Start: Run in container: # Copy /Users/ben.dalling/.gnupg/trustdb.gpg to /home/vscode/.gnupg/trustdb.gpg
[70082 ms] 
[70082 ms] 
[70084 ms] 
[70084 ms] 
[70084 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 "
[70084 ms] Start: Run: gpg-connect-agent updatestartuptty /bye
[70128 ms] Start: Run in container: cat '/home/vscode/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/product.json'
[70137 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-b3e4e68a0bc097f0ae7907b217c1119af9e03435' 2>/dev/null || (umask 377 && echo '07a199fd-e8b1-41f1-b137-41ecf4e8ab8a' >'/home/vscode/.vscode-server/data/Machine/.connection-token-b3e4e68a0bc097f0ae7907b217c1119af9e03435-e6418cb0-a22b-4089-b462-b2de8393e28e' && mv -n '/home/vscode/.vscode-server/data/Machine/.connection-token-b3e4e68a0bc097f0ae7907b217c1119af9e03435-e6418cb0-a22b-4089-b462-b2de8393e28e' '/home/vscode/.vscode-server/data/Machine/.connection-token-b3e4e68a0bc097f0ae7907b217c1119af9e03435' && rm -f '/home/vscode/.vscode-server/data/Machine/.connection-token-b3e4e68a0bc097f0ae7907b217c1119af9e03435-e6418cb0-a22b-4089-b462-b2de8393e28e' && cat '/home/vscode/.vscode-server/data/Machine/.connection-token-b3e4e68a0bc097f0ae7907b217c1119af9e03435')
[70140 ms] 07a199fd-e8b1-41f1-b137-41ecf4e8ab8a
[70140 ms] 
[70141 ms] Start: Starting VS Code Server
[70141 ms] Start: Preparing Extensions
[70141 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
[70142 ms] 
[70142 ms] 
[70143 ms] Extensions cache, install extensions: vscoss.vscode-ansible, redhat.vscode-yaml, ms-vscode.makefile-tools, ms-azuretools.vscode-docker, mutantdino.resourcemonitor, streetsidesoftware.code-spell-checker, njpwerner.autodocstring, ms-python.flake8, vtenentes.bdd, wdhongtw.gpg-indicator
[70143 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true
[70144 ms] 
[70144 ms] 
[70144 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[70145 ms] 
[70145 ms] 
[70145 ms] Extensions cache, link in container: None
[70145 ms] Optimizing extensions for quality: stable
[70145 ms] Start: Run in container: /home/vscode/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --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-b3e4e68a0bc097f0ae7907b217c1119af9e03435 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension vscoss.vscode-ansible --install-extension redhat.vscode-yaml --install-extension ms-vscode.makefile-tools --install-extension ms-azuretools.vscode-docker --install-extension mutantdino.resourcemonitor --install-extension streetsidesoftware.code-spell-checker --install-extension njpwerner.autodocstring --install-extension ms-python.flake8 --install-extension vtenentes.bdd --install-extension wdhongtw.gpg-indicator --start-server 
[70146 ms] /home/vscode
[70146 ms] 
[70146 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-4d97a1db-e458-4444-963c-aebb7b92d97d.js' >/tmp/vscode-remote-containers-4d97a1db-e458-4444-963c-aebb7b92d97d.js
[70148 ms] 
[70148 ms] 
[70148 ms] Start: Run in container: cat ~/.docker/config.json || echo "{
[70150 ms] {
}
[70150 ms] cat: /home/vscode/.docker/config.json: No such file or directory
[70150 ms] Start: Run in container: mkdir -p /usr/local/bin && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-4d97a1db-e458-4444-963c-aebb7b92d97d' >/usr/local/bin/docker-credential-dev-containers-4d97a1db-e458-4444-963c-aebb7b92d97d
[70152 ms] 
[70152 ms] 
[70152 ms] Start: Run in container: chmod +x /usr/local/bin/docker-credential-dev-containers-4d97a1db-e458-4444-963c-aebb7b92d97d
[70153 ms] 
[70153 ms] 
[70153 ms] Start: Run in container: mkdir -p ~/.docker && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-4d97a1db-e458-4444-963c-aebb7b92d97d' >~/.docker/config.json
[70156 ms] 
[70156 ms] 
[70156 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-4d97a1db-e458-4444-963c-aebb7b92d97d.js' >/tmp/vscode-remote-containers-server-4d97a1db-e458-4444-963c-aebb7b92d97d.js_1685429612840
[70159 ms] 
[70159 ms] 
[70223 ms] userEnvProbe PATHs:
Probe:     '/usr/local/share/nvm/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin'
Container: '/usr/local/share/nvm/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[70223 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-7e63d48a-1556-44e6-8110-51daa1f1df071685429542300' && cat > '/tmp/devcontainers-7e63d48a-1556-44e6-8110-51daa1f1df071685429542300/env-loginInteractiveShell.json' << 'envJSON'
[70226 ms] 
[70226 ms] 
[70258 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).
*
[70260 ms] Server bound to 127.0.0.1:38545 (IPv4)
Extension host agent listening on 38545

[70260 ms] Start: Run in container: echo 38545 >'/home/vscode/.vscode-server/data/Machine/.devport-b3e4e68a0bc097f0ae7907b217c1119af9e03435'
[70261 ms] 
[70261 ms] 
[70261 ms] Port forwarding for container port 38545 starts listening on local port.
[70261 ms] Port forwarding local port 38545 to container port 38545
[70262 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/ben.dalling/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --user-data-folder /Users/ben.dalling/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-7e63d48a-1556-44e6-8110-51daa1f1df071685429542300 --workspace-folder /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --id-label devcontainer.local_folder=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io --id-label devcontainer.config_file=/Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json --container-id 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31 --log-level debug --log-format json --config /Users/ben.dalling/workspace/CBDQ/airflow.cbdq.io/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands false --prebuild false --stop-for-personalization true --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-4d97a1db-e458-4444-963c-aebb7b92d97d.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-4d97a1db-e458-4444-963c-aebb7b92d97d.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 211 --terminal-rows 27 --dotfiles-target-path ~/dotfiles
[70272 ms] Port forwarding connection from 51764 > 38545 > 38545 in the container.
[70272 ms] Start: Run in container: /home/vscode/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node -e 
[70337 ms] [06:53:33] 

[70353 ms] [06:53:33] Installing extensions...
[70355 ms] [06:53:33] Extension host agent started.
[70381 ms] [06:53:33] No uninstalled extensions found.
[70382 ms] [06:53:33] Started initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions
[70394 ms] [06:53:33] ComputeTargetPlatform: linux-arm64
[70400 ms] [06:53:33] Completed initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions
[70403 ms] [06:53:33] ComputeTargetPlatform: linux-arm64
[70411 ms] @devcontainers/cli 0.40.0. Node.js v16.17.1. darwin 22.4.0 arm64.
[70411 ms] Start: Run: docker buildx version
[70425 ms] Port forwarding 51764 > 38545 > 38545 stderr: Connection established
[70437 ms] Port forwarding connection from 51766 > 38545 > 38545 in the container.
[70437 ms] Start: Run in container: /home/vscode/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node -e 
[70439 ms] [06:53:33] [127.0.0.1][34019424][ManagementConnection] New connection established.
[70449 ms] [06:53:33] Log level changed to info
[70538 ms] Port forwarding 51766 > 38545 > 38545 stderr: Connection established
[70581 ms] github.com/docker/buildx v0.10.4 c513d34049e499c53468deac6c4267ee72948f02
[70581 ms] 
[70583 ms] Start: Run: docker inspect --type container 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31
[70593 ms] [06:53:33] [127.0.0.1][45a2de34][ExtensionHostConnection] New connection established.
[70598 ms] [06:53:33] [127.0.0.1][45a2de34][ExtensionHostConnection] <366> Launched Extension Host Process.
[70632 ms] Start: Inspecting container
[70632 ms] Start: Run: docker inspect --type container 7ece9761a7618d20e429e4aa7cef4da4a92577d85c07eafb677da2007c780f31
[70683 ms] Start: Run in container: /bin/sh
[70684 ms] Start: Run in container: uname -m
[70776 ms] aarch64
[70776 ms] 
[70777 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[70780 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/"
[70780 ms] 
[70781 ms] Start: Run in container: cat /etc/passwd
[70785 ms] userEnvProbe: loginInteractiveShell (default)
[70785 ms] Start: Run in container: test -f '/tmp/devcontainers-7e63d48a-1556-44e6-8110-51daa1f1df071685429542300/env-loginInteractiveShell.json'
[70787 ms] 
[70787 ms] 
[70787 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-05-30T06:53:30.48379347Z}" != '2023-05-30T06:53:30.48379347Z' ] && echo '2023-05-30T06:53:30.48379347Z' > '/home/vscode/.devcontainer/.onCreateCommandMarker'
[70793 ms] 
[70793 ms] 
[70793 ms] Start: Run in container: cat '/tmp/devcontainers-7e63d48a-1556-44e6-8110-51daa1f1df071685429542300/env-loginInteractiveShell.json'
[70797 ms] {
        "HOSTNAME": "7ece9761a761",
        "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-4d97a1db-e458-4444-963c-aebb7b92d97d.sock",
        "HOME": "/home/vscode",
        "LS_COLORS": "",
        "NVM_SYMLINK_CURRENT": "true",
        "NVM_DIR": "/usr/local/share/nvm",
        "PYTHONPATH": ".:dags",
        "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-4d97a1db-e458-4444-963c-aebb7b92d97d.sock\",\"/home/vscode/.gnupg/S.gpg-agent\"]",
        "USER": "vscode",
        "SHLVL": "1",
        "PROMPT_DIRTRIM": "4",
        "PATH": "/usr/local/share/nvm/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin",
        "_": "/bin/cat"
}
[70797 ms] 
[70797 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-05-30T06:53:30.48379347Z}" != '2023-05-30T06:53:30.48379347Z' ] && echo '2023-05-30T06:53:30.48379347Z' > '/home/vscode/.devcontainer/.updateContentCommandMarker'
[70813 ms] 
[70813 ms] 
[70813 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-05-30T06:53:30.48379347Z}" != '2023-05-30T06:53:30.48379347Z' ] && echo '2023-05-30T06:53:30.48379347Z' > '/home/vscode/.devcontainer/.postCreateCommandMarker'
[70821 ms] 
[70821 ms] 
Running the postCreateCommand from devcontainer.json...

[70821 ms] Start: Run in container: /bin/sh -c /home/vscode/setup.sh
[71089 ms] [06:53:33] Installing extension 'redhat.vscode-yaml'...
[71090 ms] [06:53:33] Getting Manifest... redhat.vscode-yaml
[71100 ms] [06:53:33] Installing extension 'ms-vscode.makefile-tools'...
[71100 ms] [06:53:33] Getting Manifest... ms-vscode.makefile-tools
[71118 ms] [06:53:33] Installing extension 'mutantdino.resourcemonitor'...
[06:53:33] Getting Manifest... mutantdino.resourcemonitor
[71124 ms] [06:53:33] Installing extension 'ms-azuretools.vscode-docker'...
[06:53:33] Getting Manifest... ms-azuretools.vscode-docker
[71150 ms] [06:53:33] Installing extension 'njpwerner.autodocstring'...
[71150 ms] [06:53:33] Getting Manifest... njpwerner.autodocstring
[71154 ms] [06:53:33] Installing extension 'ms-python.flake8'...
[06:53:33] Getting Manifest... ms-python.flake8
[71156 ms] [06:53:33] Installing extension 'vtenentes.bdd'...
[06:53:33] Getting Manifest... vtenentes.bdd
[71160 ms] [06:53:33] Installing extension: redhat.vscode-yaml
[71165 ms] [06:53:33] Installing extension 'streetsidesoftware.code-spell-checker'...
[06:53:33] Getting Manifest... streetsidesoftware.code-spell-checker
[71166 ms] [06:53:33] Installing extension 'wdhongtw.gpg-indicator'...
[06:53:33] Getting Manifest... wdhongtw.gpg-indicator
[71174 ms] [06:53:33] Installing extension: mutantdino.resourcemonitor
[71175 ms] [06:53:33] Installing extension: ms-vscode.makefile-tools
[71210 ms] [06:53:33] Installing extension: ms-azuretools.vscode-docker
[71218 ms] [06:53:33] Installing extension: njpwerner.autodocstring
[71241 ms] [06:53:33] Installing extension: vtenentes.bdd
[71251 ms] [06:53:33] Installing extension: ms-python.flake8
[71251 ms] [06:53:33] Installing extension: wdhongtw.gpg-indicator
[71261 ms] [06:53:33] Installing extension: streetsidesoftware.code-spell-checker
Found existing installation: packaging 23.1
Uninstalling packaging-23.1:
  Successfully uninstalled packaging-23.1
Found existing installation: pathspec 0.11.1
Uninstalling pathspec-0.11.1:
  Successfully uninstalled pathspec-0.11.1
Found existing installation: platformdirs 3.5.1
Uninstalling platformdirs-3.5.1:
  Successfully uninstalled platformdirs-3.5.1
[72368 ms] [06:53:35] Getting Manifest... ms-python.python
[72904 ms] [06:53:35] Getting Manifest... ms-python.vscode-pylance
[72943 ms] [06:53:35] Extension signature is verified: redhat.vscode-yaml
[72948 ms] [06:53:35] Extension signature is verified: mutantdino.resourcemonitor
[72995 ms] [06:53:35] Extension signature is verified: ms-vscode.makefile-tools
[73000 ms] [06:53:35] Installing extension: ms-python.python ms-python.flake8
[73001 ms] [06:53:35] Installing extension: ms-python.vscode-pylance ms-python.flake8
[73031 ms] [06:53:35] Extension signature is verified: njpwerner.autodocstring
[73050 ms] [06:53:35] Extension signature is verified: ms-azuretools.vscode-docker
[73113 ms] [06:53:35] Extracted extension to /home/vscode/.vscode-server/extensions/.ff798f79-6d16-4631-b4b6-1474752f7338: mutantdino.resourcemonitor
[73116 ms] [06:53:35] Renamed to /home/vscode/.vscode-server/extensions/mutantdino.resourcemonitor-1.0.7
[73121 ms] [06:53:35] Extracting extension completed. mutantdino.resourcemonitor
[73126 ms] [06:53:35] Extension installed successfully: mutantdino.resourcemonitor
[73127 ms] [06:53:35] Extension 'mutantdino.resourcemonitor' v1.0.7 was successfully installed.
[73221 ms] [06:53:35] Extension signature is verified: wdhongtw.gpg-indicator
[73294 ms] [06:53:35] Extracted extension to /home/vscode/.vscode-server/extensions/.dd9b18d9-a39a-417a-84a2-031736d62e25: redhat.vscode-yaml
[73334 ms] [06:53:36] Extracted extension to /home/vscode/.vscode-server/extensions/.3a6ba786-1857-4188-a9e8-bea800ff2ec5: njpwerner.autodocstring
[73335 ms] [06:53:36] Renamed to /home/vscode/.vscode-server/extensions/redhat.vscode-yaml-1.13.0
[73341 ms] [06:53:36] Extracting extension completed. redhat.vscode-yaml
[73351 ms] [06:53:36] Renamed to /home/vscode/.vscode-server/extensions/njpwerner.autodocstring-0.6.1
[73358 ms] [06:53:36] Extracting extension completed. njpwerner.autodocstring
[73366 ms] [06:53:36] Extension installed successfully: redhat.vscode-yaml
[06:53:36] Extension 'redhat.vscode-yaml' v1.13.0 was successfully installed.
[06:53:36] Extension installed successfully: njpwerner.autodocstring
[06:53:36] Extension 'njpwerner.autodocstring' v0.6.1 was successfully installed.
[06:53:36] Extracted extension to /home/vscode/.vscode-server/extensions/.9bbcb3ba-db7d-4ad8-b98b-0d59523d948f: wdhongtw.gpg-indicator
[73368 ms] [06:53:36] Renamed to /home/vscode/.vscode-server/extensions/wdhongtw.gpg-indicator-0.7.1
[73371 ms] [06:53:36] Extracting extension completed. wdhongtw.gpg-indicator
[73381 ms] [06:53:36] Extension installed successfully: wdhongtw.gpg-indicator
[06:53:36] Extension 'wdhongtw.gpg-indicator' v0.7.1 was successfully installed.
[73412 ms] [06:53:36] Extracted extension to /home/vscode/.vscode-server/extensions/.9e0276dd-e2d9-4a34-a5e7-ed05bba96bde: ms-azuretools.vscode-docker
[73418 ms] [06:53:36] Renamed to /home/vscode/.vscode-server/extensions/ms-azuretools.vscode-docker-1.25.1
[73425 ms] [06:53:36] Extracting extension completed. ms-azuretools.vscode-docker
[73428 ms] [06:53:36] Extension installed successfully: ms-azuretools.vscode-docker
[73430 ms] [06:53:36] Extension 'ms-azuretools.vscode-docker' v1.25.1 was successfully installed.
[73555 ms] [06:53:36] Extension signature is verified: streetsidesoftware.code-spell-checker
[73702 ms] Port forwarding connection from 51840 > 38545 > 38545 in the container.
[73703 ms] Start: Run in container: /home/vscode/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node -e 
[73824 ms] Port forwarding 51840 > 38545 > 38545 stderr: Connection established
[73901 ms] [06:53:36] Extension signature is verified: vtenentes.bdd
[74199 ms] [06:53:36] Extracted extension to /home/vscode/.vscode-server/extensions/.72129256-09f2-4804-8adb-219ba8974150: vtenentes.bdd
[74201 ms] [06:53:36] Renamed to /home/vscode/.vscode-server/extensions/vtenentes.bdd-0.3.18
[74202 ms] [06:53:36] Extracting extension completed. vtenentes.bdd
[74206 ms] [06:53:36] Extension installed successfully: vtenentes.bdd
[74206 ms] [06:53:36] Extension 'vtenentes.bdd' v0.3.18 was successfully installed.
[74214 ms] [06:53:36] Extracted extension to /home/vscode/.vscode-server/extensions/.22612962-5d9d-4e22-9a81-08290834679c: streetsidesoftware.code-spell-checker
[74217 ms] [06:53:36] Renamed to /home/vscode/.vscode-server/extensions/streetsidesoftware.code-spell-checker-2.20.4
[74219 ms] [06:53:36] Extracting extension completed. streetsidesoftware.code-spell-checker
[74220 ms] [06:53:36] Extension installed successfully: streetsidesoftware.code-spell-checker
[74221 ms] [06:53:36] Extension 'streetsidesoftware.code-spell-checker' v2.20.4 was successfully installed.
[74234 ms] [06:53:36] Extension signature is verified: ms-python.python
[74793 ms] [06:53:37] Extracted extension to /home/vscode/.vscode-server/extensions/.5b1561b4-8873-47bd-a808-cf3d91efc757: ms-vscode.makefile-tools
[74796 ms] [06:53:37] Renamed to /home/vscode/.vscode-server/extensions/ms-vscode.makefile-tools-0.7.0
[74798 ms] [06:53:37] Extracting extension completed. ms-vscode.makefile-tools
[74801 ms] [06:53:37] Extension installed successfully: ms-vscode.makefile-tools
[74802 ms] [06:53:37] Extension 'ms-vscode.makefile-tools' v0.7.0 was successfully installed.
[76848 ms] [06:53:39] Extracted extension to /home/vscode/.vscode-server/extensions/.0e262bde-539e-4560-8335-c7e01e962178: ms-python.python
[76851 ms] [06:53:39] Renamed to /home/vscode/.vscode-server/extensions/ms-python.python-2023.8.0
[76855 ms] [06:53:39] Extracting extension completed. ms-python.python
[77879 ms] [06:53:40] Extension signature is verified: ms-python.vscode-pylance
[80149 ms] Start: Run in container: mkdir -p '/vscode/vscode-server/extensionsCache' && cd '/home/vscode/.vscode-server/extensionsCache' && cp 'ms-azuretools.vscode-docker-1.25.1' 'ms-python.python-2023.8.0' 'ms-python.vscode-pylance-2023.5.40' 'ms-vscode.makefile-tools-0.7.0' 'mutantdino.resourcemonitor-1.0.7' 'njpwerner.autodocstring-0.6.1' 'redhat.vscode-yaml-1.13.0' 'streetsidesoftware.code-spell-checker-2.20.4' 'vtenentes.bdd-0.3.18' 'wdhongtw.gpg-indicator-0.7.1' '/vscode/vscode-server/extensionsCache'
[80194 ms] 
[80195 ms] 
[80196 ms] Start: Run in container: cd '/vscode/vscode-server/extensionsCache' && ls -t | tail -n +50 | xargs rm -f
[80200 ms] 
[80200 ms] 
[80783 ms] Port forwarding 51840 > 38545 > 38545 stderr: Remote close
[80797 ms] Port forwarding 51840 > 38545 > 38545 terminated with code 0 and signal null.
[82468 ms] [06:53:45] Extracted extension to /home/vscode/.vscode-server/extensions/.bf33267c-3914-4ce2-81fc-6e8fa71e3622: ms-python.vscode-pylance
[82512 ms] [06:53:45] Renamed to /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2023.5.40
[82514 ms] [06:53:45] Extracting extension completed. ms-python.vscode-pylance
[83222 ms] [06:53:45] Extension signature is verified: ms-python.flake8
[83379 ms] [06:53:46] Extracted extension to /home/vscode/.vscode-server/extensions/.48d89b13-4943-4f6f-a11b-d31ae0758d1a: ms-python.flake8
[83383 ms] [06:53:46] Renamed to /home/vscode/.vscode-server/extensions/ms-python.flake8-2023.4.0
[83385 ms] [06:53:46] Extracting extension completed. ms-python.flake8
[83393 ms] [06:53:46] Extension installed successfully: ms-python.python
[06:53:46] Extension installed successfully: ms-python.vscode-pylance
[06:53:46] Extension installed successfully: ms-python.flake8
[83395 ms] [06:53:46] Extension 'ms-python.flake8' v2023.4.0 was successfully installed.
WARNING: google-api-core 2.8.2 does not provide the extra 'grpcgcp'
[140209 ms] Start: Run in container: mkdir -p '/vscode/vscode-server/extensionsCache' && cd '/home/vscode/.vscode-server/extensionsCache' && cp 'ms-python.flake8-2023.4.0' '/vscode/vscode-server/extensionsCache'
[140214 ms] 
[140214 ms] 
[140214 ms] Start: Run in container: cd '/vscode/vscode-server/extensionsCache' && ls -t | tail -n +50 | xargs rm -f
[140217 ms] 
[140218 ms] 
pre-commit installed at .git/hooks/pre-commit
[146177 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git
[146179 ms] 
[146179 ms] 
[146180 ms] Start: Run in container: # Copy /Users/ben.dalling/.gitconfig to /home/vscode/.gitconfig
[146182 ms] 
[146182 ms] 
[146183 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/b3e4e68a0bc097f0ae7907b217c1119af9e03435/node /tmp/vscode-remote-containers-4d97a1db-e458-4444-963c-aebb7b92d97d.js git-credential-helper $*; }; f' || true
[146188 ms] 
[146188 ms] 
[265004 ms] Port forwarding 51840 > 38545 > 38545: Local close
[440452 ms] Start: Run in container: cat /proc/2461/environ
[459121 ms] Start: Run in container: cat /proc/2664/environ

Steps to Reproduce:

Similar to #3221 except that I don't attempt to mount ~/.gnupg. The files ~/.gnupg/pubring.kbx and ~/.gnupg/trustdb.gpg are copied over OK.

  1. Ensure GPG_TTY is set:
      export GPG_TTY=$(tty) 
  2. Running the following command:

    echo "test" | gpg --clearsign

    Gives the following output:

    gpg: no default secret key: No secret key
    gpg: [stdin]: clear-sign failed: No secret key
  3. This command:
    gpg --list-secret-keys

    Returns nothing.

As done in #3221, I attempted killing the GPG agent (with gpgconf --kill gpg-agent) when the socket is removed, I reattempt the commands, but with identical results.

Does this issue occur when you try this locally?: No Does this issue occur when you try this locally and all extensions are disabled?: No

chrmarti commented 1 year ago

Does gpg --list-secret-keys show any keys when run locally? What is in you local ~/.gnupg/gpg.conf and ~/.gnupg/gpg-agent.conf?

dallinb commented 1 year ago

Hi @chrmarti thank you for the fast response,

Yes, all runs fine locally. Both gpg --list-secret-keys and echo "test" | gpg --clearsign work as expected when run locally.

This is the contents of my local ~/.gnupg directory:

ls -l ~/.gnupg
total 32
srwx------@ 1 ben.dalling  staff     0 29 May 08:12 S.gpg-agent
srwx------@ 1 ben.dalling  staff     0 29 May 08:12 S.gpg-agent.browser
srwx------@ 1 ben.dalling  staff     0 29 May 08:12 S.gpg-agent.extra
srwx------@ 1 ben.dalling  staff     0 29 May 08:12 S.gpg-agent.ssh
srwx------@ 1 ben.dalling  staff     0 29 May 08:12 S.keyboxd
-rw-r-----@ 1 ben.dalling  staff    12 19 May 17:42 common.conf
-rw-r--r--@ 1 ben.dalling  staff    48 19 May 17:45 gpg-agent.conf
drwx------@ 4 ben.dalling  staff   128 19 May 17:42 private-keys-v1.d
drwxr-x---@ 5 ben.dalling  staff   160 29 May 08:12 public-keys.d
-rw-------@ 1 ben.dalling  staff    32 19 May 19:48 pubring.kbx
-rw-------@ 1 ben.dalling  staff  1280 19 May 17:51 trustdb.gpg
cat ~/.gnupg/gpg-agent.conf
pinentry-program /opt/homebrew/bin/pinentry-mac
cat ~/.gnupg/common.conf
use-keyboxd
dallinb commented 1 year ago

Also this is the version of gpg locally:

gpg --version
gpg (GnuPG) 2.4.1
libgcrypt 1.10.2
Copyright (C) 2023 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /Users/ben.dalling/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

On the Dev Container, it is:

gpg (GnuPG) 2.2.27
libgcrypt 1.8.8
Copyright (C) 2021 Free Software Foundation, Inc.
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/vscode/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

The contents of ~/.gnupg on the Dev Container, immediately after a rebuild is:

  1711349      4 drwx------   3 vscode   vscode       4096 May 30 08:46 /home/vscode/.gnupg/
  1716097      0 srwxr-xr-x   1 vscode   vscode          0 May 30 08:40 /home/vscode/.gnupg/S.gpg-agent
  1711352      4 -rw-r--r--   1 vscode   vscode         32 May 30 06:53 /home/vscode/.gnupg/pubring.kbx
  1711353      4 -rw-r--r--   1 vscode   vscode       1280 May 30 06:53 /home/vscode/.gnupg/trustdb.gpg
  1711403      4 drwx------   2 vscode   vscode       4096 May 30 07:02 /home/vscode/.gnupg/private-keys-v1.d
chrmarti commented 1 year ago

Does it work with a sample dev container? (F1 > Dev Containers: Try a Dev Container Sample... > Node)

dallinb commented 1 year ago

Hi @chrmarti I'll try that out, but I'm afraid that won't be until Thursday. Will let you know the outcome as soon as possible then.

dallinb commented 1 year ago

@chrmarti,

I followed your instructions to create a "Dev Container Sample" (specifically a Node one) and still have the problem. I've also removed the version of GnuPG I had installed on the host node (MacOS) and installed the specific version as suggested by GitHub (see https://www.gnupg.org/download/). Now my host node version of GPG is:

gpg --version
gpg (GnuPG) 2.4.2
libgcrypt 1.10.1
Copyright (C) 2023 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /Users/ben.dalling/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

Trying this out on a completely brand new project, but these are the results in the newly created container:

$ ls -l ~/.gnupg/
total 8
-rw-r--r-- 1 node node   32 Jun  8 13:00 pubring.kbx
srwxr-xr-x 1 node node    0 Jun  8 13:03 S.gpg-agent
-rw-r--r-- 1 node node 1280 Jun  8 13:00 trustdb.gpg
$ echo "test" | gpg --clearsign
gpg: no default secret key: No secret key
gpg: [stdin]: clear-sign failed: No secret key
$ gpg --list-secret-keys
<RETURNS NOTING>

On my native laptop, the echo "test" | gpg --clearsign and gpg --list-secret-keys work as expected, just not in the container.

Also, this is an M2 MacBook pro. In case that makes any difference.

chrmarti commented 1 year ago

What do you get when running gpgconf --list-dir agent-extra-socket locally? And what do you get when running gpgconf --list-dir agent-socket in the container? (Note the slightly different option value in the two.) Wondering if these are different from what the extension sees as shown in the log.

dallinb commented 1 year ago

Running locally:

$ gpgconf --list-dir agent-extra-socket
/Users/ben.dalling/.gnupg/S.gpg-agent.extra

Running in the Dev Container

node ➜ /workspaces/vscode-remote-try-node (main) $ gpgconf --list-dir agent-socket
/home/node/.gnupg/S.gpg-agent

For the sake of simplicity, I'm creating the Dev Container from the method you suggested in https://github.com/microsoft/vscode-remote-release/issues/8549#issuecomment-1576387302. Therefore I have also attached the startup log as it will be different from the one I originally posted devcontainer-log.txt

gremo commented 1 year ago

Same problem here. I'm running Windows and GPG works fine:

Marco@PC-Marco MINGW64 ~/.ssh
$ gpg --version
gpg (GnuPG) 2.2.29-unknown
libgcrypt 1.9.3-unknown
Copyright (C) 2021 Free Software Foundation, Inc.
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /c/Users/Marco/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

Commands echo "test" | gpg --clearsign and gpg --list-secret-keys work as expected but fail in the container.

root@a10232c8e7a2:/var/www/html# echo "test" | gpg --clearsign
gpg: no default secret key: No secret key
gpg: [stdin]: clear-sign failed: No secret key

This prevents me to use git in the container at all, as I've configured it with with gpgsign = true (that works, on Windows).

chrmarti commented 1 year ago

What is the output of gpg --list-secret-keys --verbose in the container? Is anything added to the container log when you run this?

dallinb commented 1 year ago

Is there anything more I can do to gather more information to help resolve this? It's not a massive blocker, just inconvenient that I have to commit code externally from VSCode to have signed commits.

gremo commented 1 year ago

I'm on holiday, I'll provide all the information next week, thanks

mdhthahmd commented 1 year ago

hello, @dallinb did you find a solution/workaround, i also having the exact same problem

dallinb commented 1 year ago

@mdhthahmd , there is no solution so far, but it would probably be useful if you confirmed your host platform.

mdhthahmd commented 1 year ago

@mdhthahmd , there is no solution so far, but it would probably be useful if you confirmed your host platform.

Same as mentioned, m2 mac

MRDGH2821 commented 1 year ago

I found a hacky work around for Windows (should work wherever GPG & VSCode can be installed)

  1. Edit devcontainer.json to add following commands:
    "initializeCommand": {
    "gpg.exportPublicKeys": "gpg -a --export --output .devcontainer/gpg/public-keys.asc --yes",
    "gpg.exportPrivateKeys": "gpg -a --pinentry-mode loopback --passphrase-file=.devcontainer/gpg/gpg-password.txt --export-secret-keys --output .devcontainer/gpg/private-keys.asc --yes",
    "gpg.exportTrustDB": "gpg -a --export-ownertrust --output .devcontainer/gpg/owner-trust-db.txt > .devcontainer/gpg/owner-trust-db.txt"
    },
    "postCreateCommand": {
    "gpg.importPublicKeys": "sudo gpg --import .devcontainer/gpg/public-keys.asc",
    "gpg.importPrivateKeys": "sudo gpg -v --pinentry-mode loopback --passphrase-file=.devcontainer/gpg/gpg-password.txt --import .devcontainer/gpg/private-keys.asc",
    "gpg.importTrustDB": "sudo gpg --import-ownertrust .devcontainer/gpg/owner-trust-db.txt"
    },
  2. Create a folder gpg in .devcontainer folder
  3. Make a new file gpg-password.txt which has your GPG passphrase in plain text
  4. Make sure to install GPG on host system as well as on dev container
  5. Launch the Devcontainer (might need a rebuild)

This way I was able to get commit signing working (although for pin entry, host's gpg pin entry was invoked instead of dev container's gpg pin entry)

This extension can help if the dev container is linux based Name: GPG Indicator VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=wdhongtw.gpg-indicator

I'm still finding ways to make a command pipeline to detect GitHub codespaces where the above commands should not execute.

I'm also looking to export specific key and tried using gpg.conf but didn't work as expected.

mdhthahmd commented 1 year ago

i can confirm that the issue is not reproducible in a debian host (works as expected on debian), so it seems something is going wrong on mac @chrmarti, when i run gpg -k (within dev container) on mac: has no output, but on debian i do get the output for the key on host

chrmarti commented 1 year ago

@mdhthahmd Could you try the following:

mdhthahmd commented 1 year ago

[X] Confirm the gpg-agent is running locally with: ps ax | grep gpg-agent. 1774 ?? Ss 0:03.84 gpg-agent --homedir /Users/<user>/.gnupg --use-standard-socket --daemon 27273 s000 S+ 0:00.00 grep gpg-agent

[x]Confirm you see your keys locally: gpg --list-secret-keys. sec ed25519 2023-07-23 [SC] [expires: 2023-10-21] 4XXXXXXXXXXXXXXXXXXXX uid [ultimate] Midhath Ahmed <email> ssb cv25519 2023-07-23 [E] [expires: 2023-10-21]

[X] Check what socket paths you have in the container: ls -l ~/.gnupg/S.* (is there more than one?) srwxr-xr-x 1 node node 0 Jul 30 03:12 /home/node/.gnupg/S.gpg-agent @chrmarti theres just one

Wodann commented 1 year ago

I followed this tutorial but am experiencing the same problem as reported in this issue. I have tried the advice listed above (and in other closed issues), but to no avail.

Local OS: Windows 11 (10.0.22621) Dev container: https://github.com/NomicFoundation/hardhat/blob/rethnet/main/.devcontainer/devcontainer.json Using: Docker Desktop + WSL2 (Ubuntu)

In Windows (Powershell):

  1. Created GPG key
  2. gpg --list-secret-key works

On devcontainer:

  1. gpg --list-secret-key results in:

    '/home/vscode/.gnupg/pubring.kbx' created

  2. ls -la ~/.gnupg/ shows:

    total 20 drwx------ 2 vscode vscode 4096 Aug 7 20:59 . drwxr-xr-x 1 vscode vscode 4096 Aug 7 20:48 .. -rw------- 1 vscode vscode 32 Aug 7 20:48 pubring.kbx srwxr-xr-x 1 vscode vscode 0 Aug 7 20:48 S.gpg-agent -rw-r--r-- 1 vscode vscode 1520 Aug 7 20:35 trustdb.gpg

Container Log ``` [27 ms] Dev Containers 0.304.0 in VS Code 1.81.0 (6445d93c81ebe42c4cbd7a60712e0b17d9463e97). [27 ms] Start: Resolving Remote [35 ms] Start: Run: wsl -l -v [133 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c echo ~ [253 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/wodann' && /bin/sh [258 ms] Start: Run in host: id -un [321 ms] wodann [322 ms] [322 ms] Start: Run in host: getent passwd wodann [323 ms] Start: Run in host: echo ~ [324 ms] /home/wodann [324 ms] [324 ms] Start: Run in host: test -x '/home/wodann/.vscode-remote-containers/bin/6445d93c81ebe42c4cbd7a60712e0b17d9463e97/node' [325 ms] [325 ms] [326 ms] Start: Run in host: test -f '/home/wodann/.vscode-remote-containers/dist/vscode-remote-containers-server-0.304.0.js' [327 ms] [327 ms] [329 ms] userEnvProbe: loginInteractiveShell (default) [330 ms] userEnvProbe: not found in cache [330 ms] userEnvProbe shell: /bin/bash [383 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/Python311/Scripts/:/mnt/c/Program Files/Python311/:/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/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Go/bin:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/Docker/host/bin:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/Remco/.cargo/bin:/mnt/c/Users/Remco/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Remco/go/bin:/mnt/c/Users/Remco/AppData/Roaming/npm:/snap/bin' Container: None [389 ms] Start: Run in Host: wslpath -w /run/user/1000/wayland-0 [394 ms] Start: Check Docker is running [394 ms] Start: Run: docker version --format {{.Server.APIVersion}} [497 ms] Server API version: 1.43 [499 ms] Start: Run: docker volume ls -q [608 ms] Start: Run: docker build -f C:\Users\Remco\AppData\Local\Temp\vsch\bootstrap-image\0.304.0\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\Remco\AppData\Local\Temp\vsch\bootstrap-image\0.304.0 [+] Building 0.6s (10/10) FINISHED docker:default => [internal] load build definition from bootstrap.Dockerfile 0.0s => => transferring dockerfile: 570B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for mcr.microsoft.com/devcontainers/base:0-a 0.4s => [1/5] FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.16@sha256: 0.0s => [internal] load build context 0.0s => => transferring context: 1.88kB 0.0s => CACHED [2/5] RUN echo "@old https://dl-cdn.alpinelinux.org/alpine/v3. 0.0s => CACHED [3/5] RUN apk add --no-cache git-lfs nodejs python3 npm m 0.0s => CACHED [4/5] RUN cd && npm i node-pty 0.0s => CACHED [5/5] COPY .vscode-remote-containers /root/.vscode-remote-cont 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:6520f45caa0e569d32bb78abffc9e7ac1c3471ff37496 0.0s => => naming to docker.io/library/vsc-volume-bootstrap 0.0s What's Next? View summary of image vulnerabilities and recommendations → docker scout quick view [1722 ms] Cloning Github repository: NomicFoundation/hardhat into /workspaces/hardhat [1722 ms] Start: Run: docker run -d --mount type=volume,src=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity [2220 ms] Start: Run in container: /bin/sh [2237 ms] Start: Launching Dev Containers helper. [2238 ms] ssh-agent: SSH_AUTH_SOCK not set on local host. [2238 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-617fb955-5818-4da5-b4ac-25b073c4b07a.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent). [2238 ms] X11 forwarding: DISPLAY not set on local host. [2238 ms] Start: Run in container: test -e /tmp/.X11-unix/X0 [2397 ms] [2398 ms] [2398 ms] Exit code 1 [2398 ms] Start: Run in container: mkdir -p '/tmp/.X11-unix' [2400 ms] [2400 ms] [2400 ms] X11 forwarding: DISPLAY in container (:0) forwarded to wsl host (:0). [2400 ms] Start: Run in container: gpgconf --list-dir agent-socket [2402 ms] /root/.gnupg/S.gpg-agent [2402 ms] [2402 ms] Start: Run in container: gpgconf --list-dir homedir [2403 ms] /root/.gnupg [2403 ms] [2403 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null [2405 ms] [2405 ms] [2405 ms] Exit code 2 [2405 ms] Start: Run: gpgconf --list-dir agent-extra-socket [2441 ms] C:\Users\Remco\AppData\Local\gnupg\S.gpg-agent.extra [2441 ms] [2441 ms] Start: Run in container: mkdir -p -m 700 '/root/.gnupg' [2441 ms] gpg-agent: Socket in container (/root/.gnupg/S.gpg-agent) forwarded to local host (C:\Users\Remco\AppData\Local\gnupg\S.gpg-agent.extra). [2443 ms] [2444 ms] [2444 ms] Start: Run in container: command -v docker >/dev/null 2>&1 [2444 ms] Start: Run: gpgconf --list-dir homedir [2445 ms] [2445 ms] [2445 ms] Start: Run in container: /bin/sh [2459 ms] Start: Run in container: echo ~ [2483 ms] C:\Users\Remco\AppData\Roaming\gnupg [2483 ms] [2483 ms] Start: Run in container: gpgconf --list-dir homedir [2484 ms] /root/.gnupg [2484 ms] [2485 ms] Start: Run in container: # Test for /root/.gnupg/trustdb.gpg and gpg [2487 ms] [2487 ms] [2487 ms] Start: Run in container: # Copy C:\Users\Remco\AppData\Roaming\gnupg\trustdb.gpg to /root/.gnupg/trustdb.gpg [2489 ms] [2489 ms] [2489 ms] Start: Run: gpg-connect-agent updatestartuptty /bye [2591 ms] /root [2592 ms] [2592 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-617fb955-5818-4da5-b4ac-25b073c4b07a.js' >/tmp/vscode-remote-containers-617fb955-5818-4da5-b4ac-25b073c4b07a.js [2594 ms] [2594 ms] [2595 ms] Start: Run in container: cat ~/.docker/config.json || echo "{ [2597 ms] { } [2597 ms] cat: /root/.docker/config.json: No such file or directory [2597 ms] Start: Run in container: mkdir -p /usr/local/bin && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-617fb955-5818-4da5-b4ac-25b073c4b07a' >/usr/local/bin/docker-credential-dev-containers-617fb955-5818-4da5-b4ac-25b073c4b07a [2599 ms] [2599 ms] [2599 ms] Start: Run in container: chmod +x /usr/local/bin/docker-credential-dev-containers-617fb955-5818-4da5-b4ac-25b073c4b07a [2601 ms] [2601 ms] [2601 ms] Start: Run in container: mkdir -p ~/.docker && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-617fb955-5818-4da5-b4ac-25b073c4b07a' >~/.docker/config.json [2603 ms] [2604 ms] [2604 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-617fb955-5818-4da5-b4ac-25b073c4b07a.js' >/tmp/vscode-remote-containers-server-617fb955-5818-4da5-b4ac-25b073c4b07a.js_1691441313287 [2606 ms] [2606 ms] [2608 ms] Start: Run in container: # Test for /root/.gitconfig and git [2609 ms] [2609 ms] [2609 ms] Start: Run in container: # Copy C:\Users\Remco\.gitconfig to /root/.gitconfig [2611 ms] [2611 ms] [2611 ms] Start: Run in container: # Cleaning up git config [2615 ms] Removing Git config key: gpg.program = C:\Program Files (x86)\GnuPG\bin\gpg.exe [2615 ms] [2615 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-617fb955-5818-4da5-b4ac-25b073c4b07a.js git-credential-helper $*; }; f' || true [2617 ms] [2617 ms] [2617 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh [2619 ms] [2619 ms] [2619 ms] Start: Run in container: # Copy C:\Users\Remco\.ssh\known_hosts to /root/.ssh/known_hosts [2621 ms] [2621 ms] [2661 ms] Start: Run in container: cat /workspaces/hardhat/.devcontainer/devcontainer.json 2>/dev/null [2663 ms] Start: Run in container: cat /workspaces/hardhat/.devcontainer/devcontainer.json 2>/dev/null [2665 ms] Start: Run in container: cat <<'EOF-/tmp/devcontainer-98c25266-503e-4723-92ff-3d190660159f.json' >/tmp/devcontainer-98c25266-503e-4723-92ff-3d190660159f.json_1691441313348 [2667 ms] [2667 ms] [2667 ms] Start: Run in container: docker volume ls -q [3227 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --filter label=vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --filter label=vsch.local.repository.folder=hardhat --filter label=vsch.quality=stable [3397 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --filter label=vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --filter label=vsch.local.repository.folder=hardhat --filter label=devcontainer.config_file=/workspaces/hardhat/.devcontainer/devcontainer.json [3600 ms] Start: Run in container: docker inspect --type container ce8e9c2c38b8 [3786 ms] Start: Run in container: docker ps -q -a --filter label=vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --filter label=vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --filter label=vsch.local.repository.folder=hardhat [3971 ms] Start: Run in container: docker inspect --type container ce8e9c2c38b8 [4155 ms] Start: Run: docker exec -i -u root ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 /bin/sh -c echo "Container already running. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=a684ead5-dd54-412a-90f2-1655e572a7fb1691441310257 ; /bin/sh [4333 ms] Container already running. Keep-alive process started. [4546 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/hardhat --id-label vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --id-label vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --id-label vsch.local.repository.folder=hardhat --id-label devcontainer.config_file=/workspaces/hardhat/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/hardhat/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-98c25266-503e-4723-92ff-3d190660159f.json --mount-workspace-git-root true [4823 ms] @devcontainers/cli 0.50.0. Node.js v16.20.1. linux 5.15.90.1-microsoft-standard-WSL2 x64. [4823 ms] Start: Run: git rev-parse --show-cdup [4829 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --filter label=vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --filter label=vsch.local.repository.folder=hardhat --filter label=devcontainer.config_file=/workspaces/hardhat/.devcontainer/devcontainer.json [4846 ms] Start: Run: docker inspect --type container ce8e9c2c38b8 [5041 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-a684ead5-dd54-412a-90f2-1655e572a7fb1691441310257 --workspace-folder /workspaces/hardhat --workspace-mount-consistency cached --id-label vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --id-label vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --id-label vsch.local.repository.folder=hardhat --id-label devcontainer.config_file=/workspaces/hardhat/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/hardhat/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-98c25266-503e-4723-92ff-3d190660159f.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c,target=/workspaces,external=true --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Ubuntu\run\user\1000\wayland-0,target=/tmp/vscode-wayland-b617db05-67f2-494b-bff2-7b7fb851a5f7.sock --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root true [5364 ms] @devcontainers/cli 0.50.0. Node.js v16.20.1. linux 5.15.90.1-microsoft-standard-WSL2 x64. [5364 ms] Start: Run: docker buildx version [5407 ms] github.com/docker/buildx v0.8.2 6224def4dd2c3d347eee19db595348c50d7cb491 [5407 ms] [5407 ms] Start: Resolving Remote [5409 ms] Start: Run: git rev-parse --show-cdup [5634 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --filter label=vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --filter label=vsch.local.repository.folder=hardhat --filter label=devcontainer.config_file=/workspaces/hardhat/.devcontainer/devcontainer.json [5652 ms] Start: Run: docker inspect --type container ce8e9c2c38b8 [5670 ms] Start: Inspecting container [5671 ms] Start: Run: docker inspect --type container ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 [5689 ms] Start: Run in container: /bin/sh [5691 ms] Start: Run in container: uname -m [5758 ms] x86_64 [5759 ms] [5759 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [5760 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/" [5760 ms] [5761 ms] Start: Run in container: getent passwd vscode [5763 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker' [5766 ms] [5766 ms] [5766 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker' [5767 ms] [5767 ms] [5798 ms] Start: Run: docker inspect --type container ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 [5891 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/hardhat --id-label vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --id-label vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --id-label vsch.local.repository.folder=hardhat --id-label devcontainer.config_file=/workspaces/hardhat/.devcontainer/devcontainer.json --container-id ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 --log-level debug --log-format json --config /workspaces/hardhat/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-98c25266-503e-4723-92ff-3d190660159f.json --include-merged-configuration --mount-workspace-git-root true [6181 ms] @devcontainers/cli 0.50.0. Node.js v16.20.1. linux 5.15.90.1-microsoft-standard-WSL2 x64. [6181 ms] Start: Run: git rev-parse --show-cdup [6188 ms] Start: Run: docker inspect --type container ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 [6234 ms] Start: Inspecting container [6234 ms] Start: Run: docker inspect --type container ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 [6348 ms] Start: Run in container: /bin/sh [6368 ms] Start: Run in container: uname -m [6529 ms] x86_64 [6529 ms] [6529 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [6531 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/" [6531 ms] [6531 ms] Start: Run in container: getent passwd vscode [6533 ms] Start: Setup shutdown monitor [6533 ms] Forking shutdown monitor: c:\Users\Remco\.vscode\extensions\ms-vscode-remote.remote-containers-0.304.0\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-47b0986d-d624-4bec-b502-7fbc55dd05ab-sock singleContainer Debug c:\Users\Remco\AppData\Roaming\Code\logs\20230807T143917\window5\exthost\ms-vscode-remote.remote-containers 1691441310683 [6541 ms] Start: Run in container: test -d /home/vscode/.vscode-server [6543 ms] [6543 ms] [6543 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 [6545 ms] [6545 ms] [6545 ms] Exit code 1 [6545 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json [6546 ms] { "remote.portsAttributes": { "3000": { "label": "mdbook", "onAutoForward": "openPreview" } } } [6546 ms] [6547 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/6445d93c81ebe42c4cbd7a60712e0b17d9463e97 [6548 ms] [6548 ms] [6548 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/6445d93c81ebe42c4cbd7a60712e0b17d9463e97 [6549 ms] [6549 ms] [6549 ms] Start: Run in container: /bin/sh [6549 ms] Start: Launching Dev Containers helper. [6549 ms] ssh-agent: SSH_AUTH_SOCK not set on local host. [6549 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent). [6549 ms] X11 forwarding: DISPLAY not set on local host. [6549 ms] Start: Run in container: test -e /tmp/.X11-unix/X0 [6550 ms] [6550 ms] [6550 ms] Start: Run in container: test -e /tmp/.X11-unix/X1 [6551 ms] [6551 ms] [6551 ms] Exit code 1 [6551 ms] Start: Run in container: mkdir -p '/tmp/.X11-unix' [6553 ms] [6553 ms] [6553 ms] X11 forwarding: DISPLAY in container (:1) forwarded to wsl host (:0). [6553 ms] Start: Run in container: gpgconf --list-dir agent-socket [6554 ms] /home/vscode/.gnupg/S.gpg-agent [6554 ms] [6555 ms] Start: Run in container: gpgconf --list-dir homedir [6556 ms] /home/vscode/.gnupg [6556 ms] [6556 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null [6557 ms] [6557 ms] [6557 ms] Exit code 2 [6558 ms] Start: Run: gpgconf --list-dir agent-extra-socket [6568 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/6445d93c81ebe42c4cbd7a60712e0b17d9463e97' [6595 ms] C:\Users\Remco\AppData\Local\gnupg\S.gpg-agent.extra [6595 ms] [6596 ms] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg' [6596 ms] gpg-agent: Socket in container (/home/vscode/.gnupg/S.gpg-agent) forwarded to local host (C:\Users\Remco\AppData\Local\gnupg\S.gpg-agent.extra). [6598 ms] [6598 ms] [6598 ms] Start: Run in container: command -v docker >/dev/null 2>&1 [6598 ms] Start: Run: gpgconf --list-dir homedir [6599 ms] [6599 ms] [6599 ms] Exit code 127 [6599 ms] Start: Run in container: /bin/sh [6599 ms] userEnvProbe: loginInteractiveShell (default) [6600 ms] Start: Run in container: test -f '/tmp/devcontainers-a684ead5-dd54-412a-90f2-1655e572a7fb1691441310257/env-loginInteractiveShell.json' [6601 ms] [6601 ms] [6601 ms] Exit code 1 [6601 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh [6601 ms] userEnvProbe: not found in cache [6601 ms] userEnvProbe shell: /bin/bash [6602 ms] /home/vscode/.ssh/known_hosts exists [6602 ms] [6602 ms] Exit code 1 [6616 ms] Start: Run in container: echo ~ [6638 ms] C:\Users\Remco\AppData\Roaming\gnupg [6638 ms] [6638 ms] Start: Run in container: gpgconf --list-dir homedir [6640 ms] /home/vscode/.gnupg [6640 ms] [6641 ms] Start: Run in container: # Test for /home/vscode/.gnupg/trustdb.gpg and gpg [6642 ms] /home/vscode/.gnupg/trustdb.gpg exists [6642 ms] [6643 ms] Exit code 1 [6643 ms] Start: Run: gpg-connect-agent updatestartuptty /bye [6658 ms] [6658 ms] [6658 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/6445d93c81ebe42c4cbd7a60712e0b17d9463e97/node /tmp/vscode-remote-containers-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.js git-credential-helper $*; }; f' || true [6660 ms] [6660 ms] [6661 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 " [6689 ms] Start: Run in container: cat '/home/vscode/.vscode-server/bin/6445d93c81ebe42c4cbd7a60712e0b17d9463e97/product.json' [6691 ms] Extension host agent is already running. [6691 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.devport-6445d93c81ebe42c4cbd7a60712e0b17d9463e97' 2>/dev/null [6692 ms] 37223 [6693 ms] [6693 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-6445d93c81ebe42c4cbd7a60712e0b17d9463e97' [6694 ms] 3f9ae0fa-aee0-4fc3-bd16-b52e44877d38 [6694 ms] [6694 ms] Port forwarding for container port 37223 starts listening on local port. [6695 ms] Port forwarding local port 37223 to container port 37223 [6695 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git [6696 ms] /home/vscode/.gitconfig exists [6696 ms] [6696 ms] Exit code 1 [6696 ms] Start: Run in container: # Cleaning up git config [6700 ms] [6700 ms] [6700 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/6445d93c81ebe42c4cbd7a60712e0b17d9463e97/node /tmp/vscode-remote-containers-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.js git-credential-helper $*; }; f' || true [6701 ms] [6701 ms] [6703 ms] /home/vscode [6703 ms] [6704 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.js' >/tmp/vscode-remote-containers-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.js [6705 ms] [6705 ms] [6705 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.js' >/tmp/vscode-remote-containers-server-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.js_1691441317388 [6707 ms] [6707 ms] [6743 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --container-session-data-folder /tmp/devcontainers-a684ead5-dd54-412a-90f2-1655e572a7fb1691441310257 --workspace-folder /workspaces/hardhat --id-label vsch.local.repository=https://github.com/NomicFoundation/hardhat.git/tree/rethnet/book --id-label vsch.local.repository.volume=hardhat-rethnet-book-245d3b9913d902af2eded7e141f5738d6197314b3d3560cab2a2081687f4ce6c --id-label vsch.local.repository.folder=hardhat --id-label devcontainer.config_file=/workspaces/hardhat/.devcontainer/devcontainer.json --container-id ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 --log-level debug --log-format json --config /workspaces/hardhat/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-98c25266-503e-4723-92ff-3d190660159f.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands false --prebuild false --stop-for-personalization false --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.sock --remote-env DISPLAY=:1 --remote-env REMOTE_CONTAINERS_DISPLAY_SOCK=/tmp/.X11-unix/X1 --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --dotfiles-target-path ~/dotfiles [6810 ms] userEnvProbe PATHs: Probe: '/home/vscode/.cargo/bin:/usr/local/share/nvm/current/bin:/usr/local/share/nvm/versions/node/v18.17.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin' Container: '/usr/local/share/nvm/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' [6810 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-a684ead5-dd54-412a-90f2-1655e572a7fb1691441310257' && cat > '/tmp/devcontainers-a684ead5-dd54-412a-90f2-1655e572a7fb1691441310257/env-loginInteractiveShell.json' << 'envJSON' [6812 ms] [6812 ms] [6812 ms] Start: Run in container: umask 077 && XRD="/tmp/user/$(id -u)" && mkdir -p $XRD && echo $XRD [6814 ms] /tmp/user/1000 [6814 ms] [6815 ms] Start: Run in container: test -e /tmp/user/1000/vscode-wayland-d9f39929-02bd-46a8-a985-f9e3fb65e9e1.sock || ln -sf /tmp/vscode-wayland-d9f39929-02bd-46a8-a985-f9e3fb65e9e1.sock /tmp/user/1000/vscode-wayland-d9f39929-02bd-46a8-a985-f9e3fb65e9e1.sock [6815 ms] [6815 ms] [6821 ms] Port forwarding connection from 62358 > 37223 > 37223 in the container. [6821 ms] Start: Run in container: /home/vscode/.vscode-server/bin/6445d93c81ebe42c4cbd7a60712e0b17d9463e97/node -e [6975 ms] Port forwarding 62358 > 37223 > 37223 stderr: Connection established [6988 ms] Port forwarding connection from 62366 > 37223 > 37223 in the container. [6988 ms] Start: Run in container: /home/vscode/.vscode-server/bin/6445d93c81ebe42c4cbd7a60712e0b17d9463e97/node -e [7101 ms] @devcontainers/cli 0.50.0. Node.js v16.20.1. linux 5.15.90.1-microsoft-standard-WSL2 x64. [7101 ms] Start: Run: docker buildx version [7200 ms] Port forwarding 62366 > 37223 > 37223 stderr: Connection established [7220 ms] github.com/docker/buildx v0.8.2 6224def4dd2c3d347eee19db595348c50d7cb491 [7220 ms] [7223 ms] Start: Run: git rev-parse --show-cdup [7226 ms] Start: Run: docker inspect --type container ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 [7247 ms] Start: Inspecting container [7247 ms] Start: Run: docker inspect --type container ce8e9c2c38b8c3beffa8b7280ce9b8687751af093e9542c746826431152d0f39 [7267 ms] Start: Run in container: /bin/sh [7270 ms] Start: Run in container: uname -m [7348 ms] x86_64 [7348 ms] [7348 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [7351 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/" [7351 ms] [7351 ms] Start: Run in container: getent passwd vscode [7354 ms] userEnvProbe: loginInteractiveShell (default) [7354 ms] Start: Run in container: test -f '/tmp/devcontainers-a684ead5-dd54-412a-90f2-1655e572a7fb1691441310257/env-loginInteractiveShell.json' [7356 ms] [7357 ms] [7357 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-08-07T20:35:40.025286277Z}" != '2023-08-07T20:35:40.025286277Z' ] && echo '2023-08-07T20:35:40.025286277Z' > '/home/vscode/.devcontainer/.onCreateCommandMarker' [7361 ms] [7361 ms] [7361 ms] Exit code 1 [7361 ms] Start: Run in container: cat '/tmp/devcontainers-a684ead5-dd54-412a-90f2-1655e572a7fb1691441310257/env-loginInteractiveShell.json' [7363 ms] { "NVM_INC": "/usr/local/share/nvm/versions/node/v18.17.0/include/node", "HOSTNAME": "ce8e9c2c38b8", "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.sock", "HOME": "/home/vscode", "LS_COLORS": "", "NVM_SYMLINK_CURRENT": "true", "NVM_DIR": "/usr/local/share/nvm", "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.sock\",\"/tmp/.X11-unix/X1\",\"/home/vscode/.gnupg/S.gpg-agent\"]", "USER": "vscode", "SHLVL": "1", "NVM_CD_FLAGS": "", "PROMPT_DIRTRIM": "4", "PATH": "/home/vscode/.cargo/bin:/usr/local/share/nvm/current/bin:/usr/local/share/nvm/versions/node/v18.17.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin", "NVM_BIN": "/usr/local/share/nvm/versions/node/v18.17.0/bin", "_": "/bin/cat" } [7363 ms] [7363 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-08-07T20:35:40.025286277Z}" != '2023-08-07T20:35:40.025286277Z' ] && echo '2023-08-07T20:35:40.025286277Z' > '/home/vscode/.devcontainer/.updateContentCommandMarker' [7367 ms] [7367 ms] [7367 ms] Exit code 1 [7367 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-08-07T20:35:40.025286277Z}" != '2023-08-07T20:35:40.025286277Z' ] && echo '2023-08-07T20:35:40.025286277Z' > '/home/vscode/.devcontainer/.postCreateCommandMarker' [7371 ms] [7371 ms] [7371 ms] Exit code 1 [7371 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.postStartCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-08-07T20:35:40.375844201Z}" != '2023-08-07T20:35:40.375844201Z' ] && echo '2023-08-07T20:35:40.375844201Z' > '/home/vscode/.devcontainer/.postStartCommandMarker' [7374 ms] [7374 ms] [7374 ms] Exit code 1 Running the postAttachCommand from devcontainer.json... [7375 ms] Start: Run in container: /bin/sh -c scripts/setup.sh [7784 ms] Start: Run in container: cat /proc/656/environ [7784 ms] Start: Run in container: cat /proc/656/environ [7786 ms] Start: Run in container: rm '/tmp/vscode-remote-containers-ipc-c75a175e-75b7-4fb2-bc7e-02fbfb541e63.sock' && ln -s '/tmp/vscode-remote-containers-ipc-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.sock' '/tmp/vscode-remote-containers-ipc-c75a175e-75b7-4fb2-bc7e-02fbfb541e63.sock' [7788 ms] [7788 ms] [7788 ms] Start: Run in container: rm '/tmp/vscode-ssh-auth-c75a175e-75b7-4fb2-bc7e-02fbfb541e63.sock' && ln -s '/tmp/vscode-ssh-auth-fce6c2d9-a855-4fd2-a803-82de95ed8f2a.sock' '/tmp/vscode-ssh-auth-c75a175e-75b7-4fb2-bc7e-02fbfb541e63.sock' [7790 ms] [7791 ms] [7791 ms] Start: Run in container: rm '/tmp/.X11-unix/X0' && ln -s '/tmp/.X11-unix/X1' '/tmp/.X11-unix/X0' [7792 ms] [7793 ms] info: downloading installer info: profile set to 'default' info: default host triple is x86_64-unknown-linux-gnu warning: Updating existing toolchain, profile choice will be ignored info: syncing channel updates for '1.70-x86_64-unknown-linux-gnu' info: default toolchain set to '1.70-x86_64-unknown-linux-gnu' 1.70-x86_64-unknown-linux-gnu unchanged - rustc 1.70.0 (90c541806 2023-05-31) Rust is installed now. Great! To get started you may need to restart your current shell. This would reload your PATH environment variable to include Cargo's bin directory ($HOME/.cargo/bin). To configure your current shell, run: source "$HOME/.cargo/env" Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease Hit:3 https://dl.yarnpkg.com/debian stable InRelease Hit:4 http://deb.debian.org/debian bullseye-updates InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done pkg-config is already the newest version (0.29.2-1). libudev-dev is already the newest version (247.3-7+deb11u4). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [11935 ms] Start: Run: docker rm -f f217e11d6d37d24c39e8beb594736ff5bd741432d4b2dd82b043743bdab352e3 [12078 ms] Container server terminated (code: 137, signal: null). ```

My suspicion is that I might be missing something between the Windows <-> WSL (Ubuntu) gpg setup, but I'm not sure what it could be based on tutorial, as I followed all steps..

SvenAelterman commented 1 year ago

Similar situation here with Windows 11.

However, on the host machine, running gci ~/.gnupg/* only results in a single file present: pubring.kbx.

I suspect this means I didn't set up GPG correctly on Windows, though I am successfully signing commits on Windows (and echo "test" | gpg --clearsign works too.

I didn't set up GPG using Git bash; I never use it.

[EDIT] agent-socket and agent-extra-socket are in C:\Users\<username>\AppData\Local\gnupg\S.gpg-agent

SvenAelterman commented 1 year ago

Is there anything more I can do to gather more information to help resolve this? It's not a massive blocker, just inconvenient that I have to commit code externally from VSCode to have signed commits.

Just adding the thought that if you clone the repo in the devcontainer volume, which provides better performance (versus mounting it), you must have access to keys inside the devcontainer.

jamisonbryant commented 1 year ago

I also have this issue on a 2021 Apple M1 MacBook Pro, GPG-signed commits were working one day and not the next.

Local OS: macOS Monterey (12.5.1) Using: Docker Desktop + VS Code

I resolved my issues by disabling GPG signing in git: git config --global commit.gpgsign false because signing is not a requirement for my organization, but it is a nice-to-have.

Troubleshooting steps
Connect to the dev container with VS Code. [DONE]

Confirm the gpg-agent is running locally with: ps ax | grep gpg-agent. [DONE - AGENT IS RUNNING]
```
❯ ps ax | grep gpg-agent
  590   ??  S      0:00.01 /bin/bash /usr/local/MacGPG2/libexec/shutdown-gpg-agent
 4970   ??  Ss     2:59.99 gpg-agent --homedir /Users/mrunicorn/.gnupg --use-standard-socket --daemon
68118 s001  S+     0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox gpg-agent
```

Confirm you see your keys locally: gpg --list-secret-keys. [DONE - KEYS PRESENT]
```
❯ gpg --list-secret-keys
/Users/mrunicorn/.gnupg/pubring.kbx
---------------------------------------
sec   rsa4096 2023-03-23 [SC] [expires: 2027-03-23]
      E12E8F0D7B60F58B03C3FEEA85AB3B351D6CC61D
uid           [ultimate] Mr Unicorn (Mr's GPG Key) 
ssb   rsa4096 2023-03-23 [E] [expires: 2027-03-23]
```

Check what socket paths you have in the container: ls -l ~/.gnupg/S.* (is there more than one?) [DONE - NOT MORE THAN ONE]
```
➜  ui-vite-vue3 git:(feature/municorn-fun-stuff) ✗ ls -l ~/.gnupg/S.*
srwxr-xr-x 1 root root 0 Aug 16 02:11 /root/.gnupg/S.gpg-agent
```

Remove the socket paths in the container: rm ~/.gnupg/S.* [DONE]

Reload the VS Code window: F1 > Developer: Reload Window. [DONE]

Again check what socket paths you have in the container: ls -l ~/.gnupg/S.* (there should be a single one now) [DONE - ONLY ONE PRESENT]

Check if you see any keys in the container: gpg --list-secret-keys. [DONE - NO KEYS]

If there are no keys, check if there are any errors in the container log: F1 > Dev Containers: Show Container Log [DONE - NO ERRORS]
antony-frolov commented 1 year ago

Hi! I am experiencing the same issue. Actually I've got two images one of which works, and the other has this issue.

The one that works has Ubuntu 20.04, gpg 2.2.19, libgcrypt 1.8.5 and the one that doesn't has Ubuntu 22.04, gpg2.2.27, libgcrypt 1.9.4

Ready to provide some additional info if needed

chrmarti commented 1 year ago

@antony-frolov Which version do you have installed locally and which OS are you on? Does it work with the following devcontainer.json? This is using Ubuntu 22.04, gpg2.2.27, libgcrypt 1.9.4 as you reported as not working:

{
    "image": "mcr.microsoft.com/devcontainers/base:jammy"
}

(This works for me on macOS Ventura with gpg 2.4.1 and libgcrypt 1.10.2.)

antony-frolov commented 1 year ago

@antony-frolov Which version do you have installed locally and which OS are you on? Does it work with the following devcontainer.json? This is using Ubuntu 22.04, gpg2.2.27, libgcrypt 1.9.4 as you reported as not working:

{
  "image": "mcr.microsoft.com/devcontainers/base:jammy"
}

(This works for me on macOS Ventura with gpg 2.4.1 and libgcrypt 1.10.2.)

I'll try! I've also looked into it and found out that both images work on our VMs with Ubuntu 18.04. So I only have issues on our older VM with Ubuntu 16.04 (which also probably has some outdated packages installed).

Locally I've got MacOS, but as I've said we're developing and running Docker on Ubuntu VMs. The extension version is v0.304.0.

antony-frolov commented 1 year ago

@antony-frolov Which version do you have installed locally and which OS are you on? Does it work with the following devcontainer.json? This is using Ubuntu 22.04, gpg2.2.27, libgcrypt 1.9.4 as you reported as not working:

{
  "image": "mcr.microsoft.com/devcontainers/base:jammy"
}

(This works for me on macOS Ventura with gpg 2.4.1 and libgcrypt 1.10.2.)

Got the same error with the devcontainer.json you provided. Changed jammy to focal

{
    "image": "mcr.microsoft.com/devcontainers/base:focal"
}

and it worked fine. Both focal and jammy images work fine on VMs with Ubuntu 18.04 (and probably some newer system packages).

Here's a paste of the logs I've got with jammy image on Ubuntu 16.04 VM https://pastebin.com/eN211h6G. Not sure it's a problem with gpg at this point cause I tried to upgrade it to 2.4.1 and the issue is still there.

chrmarti commented 1 year ago

pastebin.com seems to have removed the log, could you post it here?

What versions of GPG and libgcrypt are others using seeing this? (Run gpg --version to find out.)

antony-frolov commented 1 year ago

pastebin.com seems to have removed the log, could you post it here?

What versions of GPG and libgcrypt are others using seeing this? (Run gpg --version to find out.)

The VM has: Ubuntu 16.04, gpg (GnuPG) 2.2.4, libgcrypt 1.10.2

The devcontainer.json used

{
  "image": "mcr.microsoft.com/devcontainers/base:jammy",
  "name": "${localEnv:USER}_jammy",
  "runArgs": [
    "--name", "${localEnv:USER}_jammy"
  ]
}
Here is the log ``` [2023-08-22T12:55:01.722Z] Dev Containers 0.304.0 in VS Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794). [2023-08-22T12:55:01.722Z] Start: Resolving Remote [2023-08-22T12:55:01.733Z] Start: Run: ssh zeliboba /bin/sh [2023-08-22T12:55:01.735Z] Start: Run in host: id -un [2023-08-22T12:55:02.298Z] lovanto [2023-08-22T12:55:02.298Z] [2023-08-22T12:55:02.299Z] Stop (564 ms): Run in host: id -un [2023-08-22T12:55:02.299Z] Start: Run in host: getent passwd lovanto [2023-08-22T12:55:02.392Z] Stop (93 ms): Run in host: getent passwd lovanto [2023-08-22T12:55:02.392Z] Start: Run in host: echo ~ [2023-08-22T12:55:02.402Z] /home/lovanto [2023-08-22T12:55:02.402Z] [2023-08-22T12:55:02.403Z] Stop (11 ms): Run in host: echo ~ [2023-08-22T12:55:02.403Z] Start: Run in host: test -x '/home/lovanto/.vscode-remote-containers/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node' [2023-08-22T12:55:02.418Z] [2023-08-22T12:55:02.418Z] [2023-08-22T12:55:02.418Z] Exit code 1 [2023-08-22T12:55:02.419Z] Stop (16 ms): Run in host: test -x '/home/lovanto/.vscode-remote-containers/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node' [2023-08-22T12:55:02.419Z] Start: Run in host: test -x '/home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node' [2023-08-22T12:55:02.431Z] [2023-08-22T12:55:02.431Z] [2023-08-22T12:55:02.431Z] Stop (12 ms): Run in host: test -x '/home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node' [2023-08-22T12:55:02.431Z] Start: Run in host: test -f '/home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node_modules/node-pty/package.json' [2023-08-22T12:55:02.442Z] [2023-08-22T12:55:02.443Z] [2023-08-22T12:55:02.443Z] Stop (12 ms): Run in host: test -f '/home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node_modules/node-pty/package.json' [2023-08-22T12:55:02.443Z] Start: Run in host: test -f '/home/lovanto/.vscode-remote-containers/dist/vscode-remote-containers-server-0.304.0.js' [2023-08-22T12:55:02.454Z] [2023-08-22T12:55:02.454Z] [2023-08-22T12:55:02.454Z] Stop (11 ms): Run in host: test -f '/home/lovanto/.vscode-remote-containers/dist/vscode-remote-containers-server-0.304.0.js' [2023-08-22T12:55:02.464Z] userEnvProbe: loginInteractiveShell (default) [2023-08-22T12:55:02.465Z] userEnvProbe: not found in cache [2023-08-22T12:55:02.465Z] userEnvProbe shell: /bin/zsh [2023-08-22T12:55:02.465Z] Start: Run in Host: /bin/zsh -lic echo -n c963611e-93ae-4fac-b725-fbb21ce6d7dc; cat /proc/self/environ; echo -n c963611e-93ae-4fac-b725-fbb21ce6d7dc [2023-08-22T12:55:03.169Z] Stop (704 ms): Run in Host: /bin/zsh -lic echo -n c963611e-93ae-4fac-b725-fbb21ce6d7dc; cat /proc/self/environ; echo -n c963611e-93ae-4fac-b725-fbb21ce6d7dc [2023-08-22T12:55:03.169Z] c963611e-93ae-4fac-b725-fbb21ce6d7dcTERM_SESSION_ID=6969db3b-4cf6-439c-b7d2-bc9c0147c69cMAIL=/var/mail/lovantoUSER=lovantoSSH_CLIENT=2a02:6b8:0:40c:b50a:fd74:cce9:f34c 54673 22SHLVL=1HOME=/home/lovantoOLDPWD=/home/lovanto/devconainerNIX_PROFILES=/nix/var/nix/profiles/default /home/lovanto/.nix-profileTMPDIR=/var/tmpLOGNAME=lovantoREMOTE_CONTAINERS_IPC=_=/bin/catXDG_SESSION_ID=71971PATH=/home/lovanto/mambaforge/bin:/home/lovanto/mambaforge/bin:/home/lovanto/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/lovanto/.local/bin:/home/lovanto/.cargo/bin:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux:/home/lovanto/.antigen/bundles/zsh-users/zsh-autosuggestions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose:/home/lovanto/.antigen/bundles/jeffreytse/zsh-vi-mode:/home/lovanto/.antigen/bundles/esc/conda-zsh-completion:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/heroku:/home/lovanto/.antigen/bundles/zsh-users/zsh-completions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract:/home/lovanto/.antigen/bundles/mafredri/zsh-async-main:/home/lovanto/.antigen/bundles/zdharma-continuum/fast-syntax-highlighting:/home/lovanto/.antigen/bundles/romkatv/powerlevel10kXDG_RUNTIME_DIR=/run/user/451693REMOTE_CONTAINERS_SOCKETS=[]LANG=en_US.UTF-8SSH_AUTH_SOCK=/tmp/ssh-vrmIe2suRX/agent.203726SHELL=/bin/zshNIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crtPWD=/home/lovanto/devconainerSSH_CONNECTION=2a02:6b8:0:40c:b50a:fd74:cce9:f34c 54673 2a02:6b8:c11:4c09:0:696:3f85:0 22PAGER=lessLESS=-RLSCOLORS=GxfxcxdxbxegedabagacadLS_COLORS=ZSH_TMUX_TERM=screenZSH_TMUX_CONFIG=/home/lovanto/.tmux.conf_ZSH_TMUX_FIXED_CONFIG=/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux/tmux.extra.confP9K_SSH=1_P9K_SSH_TTY=CONDA_ROOT_PREFIX=/home/lovanto/mambaforgeMAMBA_EXE=/home/lovanto/.local/bin/micromambaMAMBA_ROOT_PREFIX=/home/lovanto/mambaforgec963611e-93ae-4fac-b725-fbb21ce6d7dc [2023-08-22T12:55:03.169Z] /home/lovanto/.zsh/env_vars.zsh:10: unknown condition: -v [2023-08-22T12:55:03.170Z] userEnvProbe parsed: { "TERM_SESSION_ID": "6969db3b-4cf6-439c-b7d2-bc9c0147c69c", "MAIL": "/var/mail/lovanto", "USER": "lovanto", "SSH_CLIENT": "2a02:6b8:0:40c:b50a:fd74:cce9:f34c 54673 22", "SHLVL": "1", "HOME": "/home/lovanto", "OLDPWD": "/home/lovanto/devconainer", "NIX_PROFILES": "/nix/var/nix/profiles/default /home/lovanto/.nix-profile", "TMPDIR": "/var/tmp", "LOGNAME": "lovanto", "REMOTE_CONTAINERS_IPC": "", "_": "/bin/cat", "XDG_SESSION_ID": "71971", "PATH": "/home/lovanto/mambaforge/bin:/home/lovanto/mambaforge/bin:/home/lovanto/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/lovanto/.local/bin:/home/lovanto/.cargo/bin:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux:/home/lovanto/.antigen/bundles/zsh-users/zsh-autosuggestions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose:/home/lovanto/.antigen/bundles/jeffreytse/zsh-vi-mode:/home/lovanto/.antigen/bundles/esc/conda-zsh-completion:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/heroku:/home/lovanto/.antigen/bundles/zsh-users/zsh-completions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract:/home/lovanto/.antigen/bundles/mafredri/zsh-async-main:/home/lovanto/.antigen/bundles/zdharma-continuum/fast-syntax-highlighting:/home/lovanto/.antigen/bundles/romkatv/powerlevel10k", "XDG_RUNTIME_DIR": "/run/user/451693", "REMOTE_CONTAINERS_SOCKETS": "[]", "LANG": "en_US.UTF-8", "SSH_AUTH_SOCK": "/tmp/ssh-vrmIe2suRX/agent.203726", "SHELL": "/bin/zsh", "NIX_SSL_CERT_FILE": "/etc/ssl/certs/ca-certificates.crt", "PWD": "/home/lovanto/devconainer", "SSH_CONNECTION": "2a02:6b8:0:40c:b50a:fd74:cce9:f34c 54673 2a02:6b8:c11:4c09:0:696:3f85:0 22", "PAGER": "less", "LESS": "-R", "LSCOLORS": "Gxfxcxdxbxegedabagacad", "LS_COLORS": "", "ZSH_TMUX_TERM": "screen", "ZSH_TMUX_CONFIG": "/home/lovanto/.tmux.conf", "_ZSH_TMUX_FIXED_CONFIG": "/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux/tmux.extra.conf", "P9K_SSH": "1", "_P9K_SSH_TTY": "", "CONDA_ROOT_PREFIX": "/home/lovanto/mambaforge", "MAMBA_EXE": "/home/lovanto/.local/bin/micromamba", "MAMBA_ROOT_PREFIX": "/home/lovanto/mambaforge" } [2023-08-22T12:55:03.170Z] userEnvProbe PATHs: Probe: '/home/lovanto/mambaforge/bin:/home/lovanto/mambaforge/bin:/home/lovanto/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/lovanto/.local/bin:/home/lovanto/.cargo/bin:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux:/home/lovanto/.antigen/bundles/zsh-users/zsh-autosuggestions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose:/home/lovanto/.antigen/bundles/jeffreytse/zsh-vi-mode:/home/lovanto/.antigen/bundles/esc/conda-zsh-completion:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/heroku:/home/lovanto/.antigen/bundles/zsh-users/zsh-completions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract:/home/lovanto/.antigen/bundles/mafredri/zsh-async-main:/home/lovanto/.antigen/bundles/zdharma-continuum/fast-syntax-highlighting:/home/lovanto/.antigen/bundles/romkatv/powerlevel10k' Container: None [2023-08-22T12:55:03.180Z] Setting up container for folder or workspace: /home/lovanto/devconainer [2023-08-22T12:55:03.181Z] Host: ssh://zeliboba [2023-08-22T12:55:03.323Z] Start: Check Docker is running [2023-08-22T12:55:03.323Z] Start: Run in Host: docker version --format {{.Server.APIVersion}} [2023-08-22T12:55:03.448Z] Stop (125 ms): Run in Host: docker version --format {{.Server.APIVersion}} [2023-08-22T12:55:03.448Z] Server API version: 1.41 [2023-08-22T12:55:03.448Z] Stop (125 ms): Check Docker is running [2023-08-22T12:55:03.449Z] Start: Run in Host: docker volume ls -q [2023-08-22T12:55:03.556Z] Stop (107 ms): Run in Host: docker volume ls -q [2023-08-22T12:55:03.557Z] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=/home/lovanto/devconainer --filter label=vsch.quality=stable [2023-08-22T12:55:03.648Z] Stop (91 ms): Run in Host: docker ps -q -a --filter label=vsch.local.folder=/home/lovanto/devconainer --filter label=vsch.quality=stable [2023-08-22T12:55:03.649Z] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/lovanto/devconainer --filter label=devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json [2023-08-22T12:55:03.740Z] Stop (91 ms): Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/lovanto/devconainer --filter label=devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json [2023-08-22T12:55:03.740Z] Start: Run in Host: docker inspect --type container 17f50b623d77 [2023-08-22T12:55:03.836Z] Stop (96 ms): Run in Host: docker inspect --type container 17f50b623d77 [2023-08-22T12:55:03.837Z] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/lovanto/devconainer [2023-08-22T12:55:03.965Z] Stop (128 ms): Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/lovanto/devconainer [2023-08-22T12:55:03.965Z] Start: Run in Host: docker inspect --type container 17f50b623d77 [2023-08-22T12:55:04.050Z] Stop (85 ms): Run in Host: docker inspect --type container 17f50b623d77 [2023-08-22T12:55:04.050Z] Start: Run in Host: docker exec -i -u root 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 /bin/sh -c echo "Container already running. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888 ; /bin/sh [2023-08-22T12:55:04.076Z] Start: Run in Host: /home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node /home/lovanto/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/lovanto/devconainer --id-label devcontainer.local_folder=/home/lovanto/devconainer --id-label devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json --log-level trace --log-format json --config /home/lovanto/devconainer/.devcontainer.json --mount-workspace-git-root true [2023-08-22T12:55:04.269Z] Container already running. Keep-alive process started. [2023-08-22T12:55:04.778Z] @devcontainers/cli 0.50.0. Node.js v16.17.1. linux 5.4.112-15.1bert x64. [2023-08-22T12:55:04.777Z] Start: Run: git rev-parse --show-cdup [2023-08-22T12:55:04.798Z] Stop (21 ms): Run: git rev-parse --show-cdup [2023-08-22T12:55:04.801Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/lovanto/devconainer --filter label=devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json [2023-08-22T12:55:04.877Z] Stop (76 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/lovanto/devconainer --filter label=devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json [2023-08-22T12:55:04.878Z] Start: Run: docker inspect --type container 17f50b623d77 [2023-08-22T12:55:04.956Z] Stop (78 ms): Run: docker inspect --type container 17f50b623d77 [2023-08-22T12:55:04.782Z] Stop (706 ms): Run in Host: /home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node /home/lovanto/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/lovanto/devconainer --id-label devcontainer.local_folder=/home/lovanto/devconainer --id-label devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json --log-level trace --log-format json --config /home/lovanto/devconainer/.devcontainer.json --mount-workspace-git-root true [2023-08-22T12:55:04.825Z] Start: Run in Host: /home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node /home/lovanto/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888 --workspace-folder /home/lovanto/devconainer --workspace-mount-consistency consistent --id-label devcontainer.local_folder=/home/lovanto/devconainer --id-label devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json --log-level trace --log-format json --config /home/lovanto/devconainer/.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 [2023-08-22T12:55:05.580Z] @devcontainers/cli 0.50.0. Node.js v16.17.1. linux 5.4.112-15.1bert x64. [2023-08-22T12:55:05.580Z] Start: Run: docker buildx version [2023-08-22T12:55:05.757Z] Stop (177 ms): Run: docker buildx version [2023-08-22T12:55:05.758Z] github.com/docker/buildx v0.5.1-docker 11057da37336192bfc57d81e02359ba7ba848e4a [2023-08-22T12:55:05.759Z] [2023-08-22T12:55:05.759Z] Start: Resolving Remote [2023-08-22T12:55:05.768Z] Start: Run: git rev-parse --show-cdup [2023-08-22T12:55:05.774Z] Stop (6 ms): Run: git rev-parse --show-cdup [2023-08-22T12:55:06.147Z] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/lovanto/devconainer --filter label=devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json [2023-08-22T12:55:06.230Z] Stop (83 ms): Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/lovanto/devconainer --filter label=devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json [2023-08-22T12:55:06.232Z] Start: Run: docker inspect --type container 17f50b623d77 [2023-08-22T12:55:06.329Z] Stop (97 ms): Run: docker inspect --type container 17f50b623d77 [2023-08-22T12:55:06.337Z] Start: Inspecting container [2023-08-22T12:55:06.338Z] Start: Run: docker inspect --type container 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 [2023-08-22T12:55:06.452Z] Stop (114 ms): Run: docker inspect --type container 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 [2023-08-22T12:55:06.452Z] Stop (115 ms): Inspecting container [2023-08-22T12:55:06.455Z] Start: Run in container: /bin/sh [2023-08-22T12:55:06.464Z] Start: Run in container: uname -m [2023-08-22T12:55:06.669Z] x86_64 [2023-08-22T12:55:06.669Z] [2023-08-22T12:55:06.669Z] Stop (205 ms): Run in container: uname -m [2023-08-22T12:55:06.669Z] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [2023-08-22T12:55:06.673Z] PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.2 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 [2023-08-22T12:55:06.673Z] [2023-08-22T12:55:06.673Z] Stop (4 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [2023-08-22T12:55:06.674Z] Start: Run in container: getent passwd vscode [2023-08-22T12:55:06.680Z] Stop (6 ms): Run in container: getent passwd vscode [2023-08-22T12:55:06.682Z] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker' [2023-08-22T12:55:06.684Z] [2023-08-22T12:55:06.684Z] [2023-08-22T12:55:06.684Z] Stop (2 ms): Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker' [2023-08-22T12:55:06.684Z] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker' [2023-08-22T12:55:06.686Z] [2023-08-22T12:55:06.686Z] [2023-08-22T12:55:06.686Z] Stop (2 ms): Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker' [2023-08-22T12:55:06.686Z] Stop (927 ms): Resolving Remote [2023-08-22T12:55:06.587Z] Stop (1762 ms): Run in Host: /home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node /home/lovanto/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888 --workspace-folder /home/lovanto/devconainer --workspace-mount-consistency consistent --id-label devcontainer.local_folder=/home/lovanto/devconainer --id-label devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json --log-level trace --log-format json --config /home/lovanto/devconainer/.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 [2023-08-22T12:55:06.588Z] Start: Run in Host: docker inspect --type container 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 [2023-08-22T12:55:06.673Z] Stop (85 ms): Run in Host: docker inspect --type container 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 [2023-08-22T12:55:06.702Z] Start: Run in Host: /home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node /home/lovanto/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/lovanto/devconainer --id-label devcontainer.local_folder=/home/lovanto/devconainer --id-label devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json --container-id 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 --log-level trace --log-format json --config /home/lovanto/devconainer/.devcontainer.json --include-merged-configuration --mount-workspace-git-root true [2023-08-22T12:55:07.418Z] @devcontainers/cli 0.50.0. Node.js v16.17.1. linux 5.4.112-15.1bert x64. [2023-08-22T12:55:07.418Z] Start: Run: git rev-parse --show-cdup [2023-08-22T12:55:07.436Z] Stop (18 ms): Run: git rev-parse --show-cdup [2023-08-22T12:55:07.439Z] Start: Run: docker inspect --type container 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 [2023-08-22T12:55:07.537Z] Stop (98 ms): Run: docker inspect --type container 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 [2023-08-22T12:55:07.369Z] Stop (667 ms): Run in Host: /home/lovanto/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node /home/lovanto/.vscode-remote-containers/dist/dev-containers-cli-0.304.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/lovanto/devconainer --id-label devcontainer.local_folder=/home/lovanto/devconainer --id-label devcontainer.config_file=/home/lovanto/devconainer/.devcontainer.json --container-id 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 --log-level trace --log-format json --config /home/lovanto/devconainer/.devcontainer.json --include-merged-configuration --mount-workspace-git-root true [2023-08-22T12:55:07.370Z] Start: Inspecting container [2023-08-22T12:55:07.370Z] Start: Run in Host: docker inspect --type container 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 [2023-08-22T12:55:07.501Z] Stop (131 ms): Run in Host: docker inspect --type container 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 [2023-08-22T12:55:07.501Z] Stop (131 ms): Inspecting container [2023-08-22T12:55:07.506Z] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 /bin/sh [2023-08-22T12:55:07.521Z] Start: Run in container: uname -m [2023-08-22T12:55:07.711Z] x86_64 [2023-08-22T12:55:07.711Z] [2023-08-22T12:55:07.711Z] Stop (190 ms): Run in container: uname -m [2023-08-22T12:55:07.711Z] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [2023-08-22T12:55:07.725Z] PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.2 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 [2023-08-22T12:55:07.725Z] [2023-08-22T12:55:07.725Z] Stop (14 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [2023-08-22T12:55:07.725Z] Start: Run in container: getent passwd vscode [2023-08-22T12:55:07.738Z] Stop (13 ms): Run in container: getent passwd vscode [2023-08-22T12:55:07.739Z] Start: Setup shutdown monitor [2023-08-22T12:55:07.739Z] Forking shutdown monitor: /Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/shutdown/shutdownMonitorProcess /var/folders/h_/h1z2cq811zn2_ph8f8hmktb41_07w9/T/vscode-remote-containers-9483d3e5-0818-4487-810a-64a7826cb7e9.sock singleContainer Trace /Users/lovanto/Library/Application Support/Code/logs/20230822T134820/window3/exthost/ms-vscode-remote.remote-containers 1692708901692 [2023-08-22T12:55:07.741Z] Stop (2 ms): Setup shutdown monitor [2023-08-22T12:55:07.742Z] Start: Run in container: test -d /home/vscode/.vscode-server [2023-08-22T12:55:07.753Z] [2023-08-22T12:55:07.753Z] [2023-08-22T12:55:07.754Z] Stop (12 ms): Run in container: test -d /home/vscode/.vscode-server [2023-08-22T12:55:07.754Z] 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 [2023-08-22T12:55:07.766Z] [2023-08-22T12:55:07.766Z] [2023-08-22T12:55:07.766Z] Exit code 1 [2023-08-22T12:55:07.767Z] Stop (13 ms): 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 [2023-08-22T12:55:07.767Z] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json [2023-08-22T12:55:07.779Z] [2023-08-22T12:55:07.779Z] cat: /home/vscode/.vscode-server/data/Machine/settings.json: No such file or directory [2023-08-22T12:55:07.779Z] Exit code 1 [2023-08-22T12:55:07.779Z] Stop (12 ms): Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json [2023-08-22T12:55:07.780Z] Start: Run in container: test -d /home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794 [2023-08-22T12:55:07.795Z] [2023-08-22T12:55:07.795Z] [2023-08-22T12:55:07.795Z] Stop (15 ms): Run in container: test -d /home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794 [2023-08-22T12:55:07.795Z] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794 [2023-08-22T12:55:07.808Z] [2023-08-22T12:55:07.808Z] [2023-08-22T12:55:07.808Z] Stop (13 ms): Run in container: test -d /vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794 [2023-08-22T12:55:07.808Z] Start: Run in Host: docker exec -i -u root 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 /bin/sh [2023-08-22T12:55:07.809Z] Start: Launching Dev Containers helper. [2023-08-22T12:55:07.809Z] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-f18e5c14-6503-43bd-a37b-974b7af10a3c.sock) forwarded to ssh host (/tmp/ssh-vrmIe2suRX/agent.203726). [2023-08-22T12:55:07.809Z] X11 forwarding: DISPLAY not set on ssh host. [2023-08-22T12:55:07.810Z] Start: Run in container: test -e /tmp/.X11-unix/X0 [2023-08-22T12:55:07.824Z] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794' [2023-08-22T12:55:07.826Z] [2023-08-22T12:55:07.826Z] [2023-08-22T12:55:07.826Z] Exit code 1 [2023-08-22T12:55:07.826Z] Stop (16 ms): Run in container: test -e /tmp/.X11-unix/X0 [2023-08-22T12:55:07.827Z] Start: Run in container: mkdir -p '/tmp/.X11-unix' [2023-08-22T12:55:07.842Z] [2023-08-22T12:55:07.842Z] [2023-08-22T12:55:07.842Z] Stop (15 ms): Run in container: mkdir -p '/tmp/.X11-unix' [2023-08-22T12:55:07.842Z] X11 forwarding: DISPLAY in container (:0) forwarded to local host (/private/tmp/com.apple.launchd.ics329eBsy/org.xquartz:0). [2023-08-22T12:55:07.842Z] Start: Run in container: gpgconf --list-dir agent-socket [2023-08-22T12:55:07.858Z] /home/vscode/.gnupg/S.gpg-agent [2023-08-22T12:55:07.858Z] [2023-08-22T12:55:07.859Z] Stop (17 ms): Run in container: gpgconf --list-dir agent-socket [2023-08-22T12:55:07.859Z] Start: Run in container: gpgconf --list-dir homedir [2023-08-22T12:55:07.872Z] /home/vscode/.gnupg [2023-08-22T12:55:07.872Z] [2023-08-22T12:55:07.872Z] Stop (13 ms): Run in container: gpgconf --list-dir homedir [2023-08-22T12:55:07.872Z] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null [2023-08-22T12:55:07.884Z] [2023-08-22T12:55:07.885Z] [2023-08-22T12:55:07.885Z] Exit code 2 [2023-08-22T12:55:07.885Z] Stop (13 ms): Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null [2023-08-22T12:55:07.885Z] Start: Run in Host: gpgconf --list-dir agent-extra-socket [2023-08-22T12:55:07.909Z] Starting monitor process... [2023-08-22T12:55:07.917Z] Stop (32 ms): Run in Host: gpgconf --list-dir agent-extra-socket [2023-08-22T12:55:07.917Z] /run/user/451693/gnupg/S.gpg-agent.extra [2023-08-22T12:55:07.917Z] [2023-08-22T12:55:07.918Z] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg' [2023-08-22T12:55:07.918Z] gpg-agent: Socket in container (/home/vscode/.gnupg/S.gpg-agent) forwarded to ssh host (/run/user/451693/gnupg/S.gpg-agent.extra). [2023-08-22T12:55:07.919Z] Received message: [{"type":"configure","sequence":0,"options":{"cwd":"/home/lovanto/devconainer","dockerCLI":"docker","env":{"TERM_SESSION_ID":"6969db3b-4cf6-439c-b7d2-bc9c0147c69c","MAIL":"/var/mail/lovanto","USER":"lovanto","SSH_CLIENT":"2a02:6b8:0:40c:b50a:fd74:cce9:f34c 54673 22","SHLVL":"1","HOME":"/home/lovanto","OLDPWD":"/home/lovanto/devconainer","NIX_PROFILES":"/nix/var/nix/profiles/default /home/lovanto/.nix-profile","TMPDIR":"/var/tmp","LOGNAME":"lovanto","REMOTE_CONTAINERS_IPC":"","_":"/bin/cat","XDG_SESSION_ID":"71971","PATH":"/home/lovanto/mambaforge/bin:/home/lovanto/mambaforge/bin:/home/lovanto/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/lovanto/.local/bin:/home/lovanto/.cargo/bin:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux:/home/lovanto/.antigen/bundles/zsh-users/zsh-autosuggestions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose:/home/lovanto/.antigen/bundles/jeffreytse/zsh-vi-mode:/home/lovanto/.antigen/bundles/esc/conda-zsh-completion:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/heroku:/home/lovanto/.antigen/bundles/zsh-users/zsh-completions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract:/home/lovanto/.antigen/bundles/mafredri/zsh-async-main:/home/lovanto/.antigen/bundles/zdharma-continuum/fast-syntax-highlighting:/home/lovanto/.antigen/bundles/romkatv/powerlevel10k","XDG_RUNTIME_DIR":"/run/user/451693","REMOTE_CONTAINERS_SOCKETS":"[]","LANG":"en_US.UTF-8","SSH_AUTH_SOCK":"/tmp/ssh-vrmIe2suRX/agent.203726","SHELL":"/bin/zsh","NIX_SSL_CERT_FILE":"/etc/ssl/certs/ca-certificates.crt","SSH_CONNECTION":"2a02:6b8:0:40c:b50a:fd74:cce9:f34c 54673 2a02:6b8:c11:4c09:0:696:3f85:0 22","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","LS_COLORS":"","ZSH_TMUX_TERM":"screen","ZSH_TMUX_CONFIG":"/home/lovanto/.tmux.conf","_ZSH_TMUX_FIXED_CONFIG":"/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux/tmux.extra.conf","P9K_SSH":"1","_P9K_SSH_TTY":"","CONDA_ROOT_PREFIX":"/home/lovanto/mambaforge","MAMBA_EXE":"/home/lovanto/.local/bin/micromamba","MAMBA_ROOT_PREFIX":"/home/lovanto/mambaforge","DISPLAY":"/private/tmp/com.apple.launchd.ics329eBsy/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/scripts/ssh-askpass.sh","SSH_ASKPASS_REQUIRE":"force","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/common/sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/h_/h1z2cq811zn2_ph8f8hmktb41_07w9/T/ssh-askpass-998b54b7-edc6-4fc3-8c40-63d695354e94.sock","DOCKER_CONTEXT":"default","VSCODE_DOCKER_HOST":"ssh://zeliboba"},"containerId":"17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1","user":"vscode","sessionId":"7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888","logLevel":1,"delay":10000}}] [2023-08-22T12:55:07.930Z] [2023-08-22T12:55:07.930Z] [2023-08-22T12:55:07.930Z] Stop (12 ms): Run in container: mkdir -p -m 700 '/home/vscode/.gnupg' [2023-08-22T12:55:07.931Z] Start: Run in container: command -v docker >/dev/null 2>&1 [2023-08-22T12:55:07.931Z] Start: Run in Host: gpgconf --list-dir homedir [2023-08-22T12:55:07.961Z] [2023-08-22T12:55:07.961Z] [2023-08-22T12:55:07.961Z] Exit code 127 [2023-08-22T12:55:07.961Z] Stop (30 ms): Run in container: command -v docker >/dev/null 2>&1 [2023-08-22T12:55:07.961Z] Start: Run in Host: docker exec -i -u vscode 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 /bin/sh [2023-08-22T12:55:07.962Z] Stop (153 ms): Launching Dev Containers helper. [2023-08-22T12:55:07.962Z] userEnvProbe: loginInteractiveShell (default) [2023-08-22T12:55:07.962Z] Start: Run in container: test -f '/tmp/devcontainers-7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888/env-loginInteractiveShell.json' [2023-08-22T12:55:07.973Z] Stop (42 ms): Run in Host: gpgconf --list-dir homedir [2023-08-22T12:55:07.974Z] /home/lovanto/.gnupg [2023-08-22T12:55:07.974Z] [2023-08-22T12:55:07.987Z] Start: Run in container: echo ~ [2023-08-22T12:55:07.988Z] [2023-08-22T12:55:07.988Z] [2023-08-22T12:55:07.988Z] Exit code 1 [2023-08-22T12:55:07.988Z] Stop (26 ms): Run in container: test -f '/tmp/devcontainers-7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888/env-loginInteractiveShell.json' [2023-08-22T12:55:07.988Z] Start: Run in container: gpgconf --list-dir homedir [2023-08-22T12:55:07.988Z] userEnvProbe: not found in cache [2023-08-22T12:55:07.988Z] userEnvProbe shell: /bin/bash [2023-08-22T12:55:08.003Z] /home/vscode/.gnupg [2023-08-22T12:55:08.004Z] [2023-08-22T12:55:08.004Z] Stop (16 ms): Run in container: gpgconf --list-dir homedir [2023-08-22T12:55:08.036Z] [2023-08-22T12:55:08.036Z] [2023-08-22T12:55:08.036Z] Stop (212 ms): Run in container: touch '/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794' [2023-08-22T12:55:08.036Z] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node /tmp/vscode-remote-containers-f18e5c14-6503-43bd-a37b-974b7af10a3c.js git-credential-helper $*; }; f' || true [2023-08-22T12:55:08.056Z] [2023-08-22T12:55:08.056Z] [2023-08-22T12:55:08.056Z] Stop (20 ms): Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node /tmp/vscode-remote-containers-f18e5c14-6503-43bd-a37b-974b7af10a3c.js git-credential-helper $*; }; f' || true [2023-08-22T12:55:08.056Z] 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 " [2023-08-22T12:55:08.217Z] Stop (161 ms): 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 " [2023-08-22T12:55:08.218Z] /home/vscode [2023-08-22T12:55:08.218Z] [2023-08-22T12:55:08.218Z] Stop (231 ms): Run in container: echo ~ [2023-08-22T12:55:08.218Z] Start: Run in container: # Test for /home/vscode/.gnupg/pubring.gpg and gpg [2023-08-22T12:55:08.218Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-f18e5c14-6503-43bd-a37b-974b7af10a3c.js' >/tmp/vscode-remote-containers-f18e5c14-6503-43bd-a37b-974b7af10a3c.js [2023-08-22T12:55:08.236Z] /home/vscode/.gnupg/pubring.gpg exists [2023-08-22T12:55:08.237Z] [2023-08-22T12:55:08.237Z] Exit code 1 [2023-08-22T12:55:08.237Z] Stop (19 ms): Run in container: # Test for /home/vscode/.gnupg/pubring.gpg and gpg [2023-08-22T12:55:08.237Z] [2023-08-22T12:55:08.237Z] [2023-08-22T12:55:08.237Z] Stop (19 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-f18e5c14-6503-43bd-a37b-974b7af10a3c.js' >/tmp/vscode-remote-containers-f18e5c14-6503-43bd-a37b-974b7af10a3c.js [2023-08-22T12:55:08.237Z] Start: Run in container: cat '/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/product.json' [2023-08-22T12:55:08.237Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-f18e5c14-6503-43bd-a37b-974b7af10a3c.js' >/tmp/vscode-remote-containers-server-f18e5c14-6503-43bd-a37b-974b7af10a3c.js_1692708908237 [2023-08-22T12:55:08.275Z] Stop (38 ms): Run in container: cat '/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/product.json' [2023-08-22T12:55:08.276Z] Running extension host agents: [] [2023-08-22T12:55:08.276Z] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794' 2>/dev/null || (umask 377 && echo '3e260238-1be3-432f-9360-82d9884d98f9' >'/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794-08fabafb-dd70-4945-a03c-1946c003bd7f' && mv -n '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794-08fabafb-dd70-4945-a03c-1946c003bd7f' '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794' && rm -f '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794-08fabafb-dd70-4945-a03c-1946c003bd7f' && cat '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794') [2023-08-22T12:55:08.283Z] [2023-08-22T12:55:08.283Z] [2023-08-22T12:55:08.283Z] Stop (46 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-f18e5c14-6503-43bd-a37b-974b7af10a3c.js' >/tmp/vscode-remote-containers-server-f18e5c14-6503-43bd-a37b-974b7af10a3c.js_1692708908237 [2023-08-22T12:55:08.299Z] 36a09045-607b-4587-ac49-ab9fc7e0f43e [2023-08-22T12:55:08.299Z] [2023-08-22T12:55:08.299Z] Stop (23 ms): Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794' 2>/dev/null || (umask 377 && echo '3e260238-1be3-432f-9360-82d9884d98f9' >'/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794-08fabafb-dd70-4945-a03c-1946c003bd7f' && mv -n '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794-08fabafb-dd70-4945-a03c-1946c003bd7f' '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794' && rm -f '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794-08fabafb-dd70-4945-a03c-1946c003bd7f' && cat '/home/vscode/.vscode-server/data/Machine/.connection-token-6c3e3dba23e8fadc360aed75ce363ba185c49794') [2023-08-22T12:55:08.299Z] Start: Run in container: # Test for /home/vscode/.gnupg/trustdb.gpg and gpg [2023-08-22T12:55:08.300Z] Start: Run in Container: /bin/bash -lic echo -n 26557e19-7809-4e5a-b5b3-6fd8a15f3180; cat /proc/self/environ; echo -n 26557e19-7809-4e5a-b5b3-6fd8a15f3180 [2023-08-22T12:55:08.300Z] Start: Starting VS Code Server [2023-08-22T12:55:08.301Z] Start: Preparing Extensions [2023-08-22T12:55:08.313Z] /home/vscode/.gnupg/trustdb.gpg exists [2023-08-22T12:55:08.313Z] [2023-08-22T12:55:08.313Z] Exit code 1 [2023-08-22T12:55:08.313Z] Stop (14 ms): Run in container: # Test for /home/vscode/.gnupg/trustdb.gpg and gpg [2023-08-22T12:55:08.313Z] 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 [2023-08-22T12:55:08.314Z] Start: Run in Host: gpg-connect-agent updatestartuptty /bye [2023-08-22T12:55:08.314Z] Container server: /home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node[101739]: ../src/node_platform.cc:61:std::unique_ptr node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed. [2023-08-22T12:55:08.318Z] Container server: 1: 0xb02960 node::Abort() [/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] [2023-08-22T12:55:08.319Z] Container server: 2: 0xb029de [/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] [2023-08-22T12:55:08.320Z] Container server: 3: 0xb6fb7e [/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] [2023-08-22T12:55:08.320Z] Container server: 4: 0xb6fc46 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] [2023-08-22T12:55:08.320Z] Container server: 5: 0xac7d64 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] [2023-08-22T12:55:08.320Z] Container server: 6: 0xac8949 node::Start(int, char**) [/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] 7: 0x7f4efc44bd90 [/lib/x86_64-linux-gnu/libc.so.6] 8: 0x7f4efc44be40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6] [2023-08-22T12:55:08.320Z] Container server: 9: 0xa3d03c [/home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] [2023-08-22T12:55:08.321Z] Container server: Aborted [2023-08-22T12:55:08.334Z] [2023-08-22T12:55:08.334Z] [2023-08-22T12:55:08.334Z] Exit code 1 [2023-08-22T12:55:08.334Z] Stop (21 ms): 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 [2023-08-22T12:55:08.336Z] Extensions cache, install extensions: None [2023-08-22T12:55:08.336Z] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true [2023-08-22T12:55:08.337Z] Stop (376 ms): Run in Host: docker exec -i -u vscode 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 /bin/sh [2023-08-22T12:55:08.337Z] Container server terminated (code: 134, signal: null). [2023-08-22T12:55:08.338Z] Error: stream ended with:0 but wanted:9 at c (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:102284) at /Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:102465 at s (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:27:5371) at Stream. (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:27:5541) at Stream.emit (node:events:513:28) at g (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:27:7426) at Ik.e.read (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:109349) at So._onstream (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:108625) at So.write (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:107582) at /Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:109585 at /Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:95068 at /Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:97674 at Object.cb (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:104250) at c (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:102133) at l (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:102395) at d.read (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:102763) at Object.cb (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:104150) at c (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:102133) at l (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:102395) at /Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:24:102478 at s (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:27:5371) at Socket. (/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/extension/extension.js:27:5472) at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Readable.push (node:internal/streams/readable:228:10) at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) [2023-08-22T12:55:08.345Z] Stop (31 ms): Run in Host: gpg-connect-agent updatestartuptty /bye [2023-08-22T12:55:08.348Z] [2023-08-22T12:55:08.348Z] [2023-08-22T12:55:08.348Z] Stop (12 ms): Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true [2023-08-22T12:55:08.348Z] Start: Run in container: mkdir -p '/tmp/devcontainers-7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888' && cat > '/tmp/devcontainers-7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888/env-loginInteractiveShell.json' << 'envJSON' [2023-08-22T12:55:08.373Z] [2023-08-22T12:55:08.373Z] [2023-08-22T12:55:08.373Z] Stop (25 ms): Run in container: mkdir -p '/tmp/devcontainers-7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888' && cat > '/tmp/devcontainers-7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888/env-loginInteractiveShell.json' << 'envJSON' [2023-08-22T12:55:08.373Z] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [2023-08-22T12:55:08.384Z] [2023-08-22T12:55:08.385Z] [2023-08-22T12:55:08.385Z] Stop (12 ms): Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [2023-08-22T12:55:08.385Z] Extensions cache, link in container: None [2023-08-22T12:55:08.386Z] Optimizing extensions for quality: stable [2023-08-22T12:55:08.386Z] Stop (85 ms): Preparing Extensions [2023-08-22T12:55:08.386Z] 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/6c3e3dba23e8fadc360aed75ce363ba185c49794 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 /home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/bin/code-server --log trace --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --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-6c3e3dba23e8fadc360aed75ce363ba185c49794 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --start-server [2023-08-22T12:55:08.682Z] Stop (296 ms): 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/6c3e3dba23e8fadc360aed75ce363ba185c49794 17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1 /home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/bin/code-server --log trace --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --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-6c3e3dba23e8fadc360aed75ce363ba185c49794 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --start-server [2023-08-22T12:55:08.685Z] Command failed: /home/vscode/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/bin/code-server --log trace --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --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-6c3e3dba23e8fadc360aed75ce363ba185c49794 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --start-server [2023-08-22T12:55:08.686Z] /vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794/node[101756]: ../src/node_platform.cc:61:std::unique_ptr node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed. 1: 0xb02960 node::Abort() [/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] 2: 0xb029de [/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] 3: 0xb6fb7e [/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] 4: 0xb6fc46 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] 5: 0xac7d64 node::InitializeOncePerProcess(int, char**, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] 6: 0xac8949 node::Start(int, char**) [/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] 7: 0x7f4ff3983d90 [/lib/x86_64-linux-gnu/libc.so.6] 8: 0x7f4ff3983e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6] 9: 0xa3d03c [/vscode/vscode-server/bin/linux-x64/6c3e3dba23e8fadc360aed75ce363ba185c49794/node] Aborted [2023-08-22T12:55:08.686Z] Exit code 134 [2023-08-22T12:55:10.598Z] Received message: [{"type":"configure","sequence":1,"options":{"cwd":"/home/lovanto/devconainer","dockerCLI":"docker","env":{"TERM_SESSION_ID":"6969db3b-4cf6-439c-b7d2-bc9c0147c69c","MAIL":"/var/mail/lovanto","USER":"lovanto","SSH_CLIENT":"2a02:6b8:0:40c:b50a:fd74:cce9:f34c 54673 22","SHLVL":"1","HOME":"/home/lovanto","OLDPWD":"/home/lovanto/devconainer","NIX_PROFILES":"/nix/var/nix/profiles/default /home/lovanto/.nix-profile","TMPDIR":"/var/tmp","LOGNAME":"lovanto","REMOTE_CONTAINERS_IPC":"","_":"/bin/cat","XDG_SESSION_ID":"71971","PATH":"/home/lovanto/mambaforge/bin:/home/lovanto/mambaforge/bin:/home/lovanto/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/lovanto/.local/bin:/home/lovanto/.cargo/bin:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux:/home/lovanto/.antigen/bundles/zsh-users/zsh-autosuggestions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose:/home/lovanto/.antigen/bundles/jeffreytse/zsh-vi-mode:/home/lovanto/.antigen/bundles/esc/conda-zsh-completion:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/heroku:/home/lovanto/.antigen/bundles/zsh-users/zsh-completions:/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract:/home/lovanto/.antigen/bundles/mafredri/zsh-async-main:/home/lovanto/.antigen/bundles/zdharma-continuum/fast-syntax-highlighting:/home/lovanto/.antigen/bundles/romkatv/powerlevel10k","XDG_RUNTIME_DIR":"/run/user/451693","REMOTE_CONTAINERS_SOCKETS":"[]","LANG":"en_US.UTF-8","SSH_AUTH_SOCK":"/tmp/ssh-vrmIe2suRX/agent.203726","SHELL":"/bin/zsh","NIX_SSL_CERT_FILE":"/etc/ssl/certs/ca-certificates.crt","SSH_CONNECTION":"2a02:6b8:0:40c:b50a:fd74:cce9:f34c 54673 2a02:6b8:c11:4c09:0:696:3f85:0 22","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","LS_COLORS":"","ZSH_TMUX_TERM":"screen","ZSH_TMUX_CONFIG":"/home/lovanto/.tmux.conf","_ZSH_TMUX_FIXED_CONFIG":"/home/lovanto/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux/tmux.extra.conf","P9K_SSH":"1","_P9K_SSH_TTY":"","CONDA_ROOT_PREFIX":"/home/lovanto/mambaforge","MAMBA_EXE":"/home/lovanto/.local/bin/micromamba","MAMBA_ROOT_PREFIX":"/home/lovanto/mambaforge","DISPLAY":"/private/tmp/com.apple.launchd.ics329eBsy/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/scripts/ssh-askpass.sh","SSH_ASKPASS_REQUIRE":"force","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/lovanto/.vscode/extensions/ms-vscode-remote.remote-containers-0.304.0/dist/common/sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/h_/h1z2cq811zn2_ph8f8hmktb41_07w9/T/ssh-askpass-998b54b7-edc6-4fc3-8c40-63d695354e94.sock","DOCKER_CONTEXT":"default","VSCODE_DOCKER_HOST":"ssh://zeliboba"},"containerId":"17f50b623d775141f8a56ed24c9c950988e8dfa67f90082bef283d1072e8d0f1","user":"vscode","sessionId":"7a66721a-763b-4ba8-95d1-382ee85f18fe1692708900888","logLevel":1,"delay":10000}}] ```
chrmarti commented 1 year ago

The log shows assertion failures in Node similar to https://github.com/nodejs/node/issues/43064. Are others seeing the same?

antony-frolov commented 1 year ago

The log shows assertion failures in Node similar to nodejs/node#43064. Are others seeing the same?

Huge thanks, that helped a lot!

Wodann commented 1 year ago

The log shows assertion failures in Node similar to nodejs/node#43064. Are others seeing the same?

@chrmarti AFAICT there is no nodejs assertion failure in my case: https://github.com/microsoft/vscode-remote-release/issues/8549#issuecomment-1668576634

I'm not sure what I should be looking for in the log as a cause for the failure, but one thing I noticed is that it seems to detect and copy GPG-related settings from Windows to WSL but then doesn't do anything in the next step:

[12160 ms] Start: Run in container: # Test for /home/vscode/.gnupg/trustdb.gpg and gpg [12162 ms] /home/vscode/.gnupg/trustdb.gpg exists

chrmarti commented 1 year ago

@Wodann It copies the public keys and trust db to the container as these are not available through the gpg-agent. It will not overwrite existing files. Make sure pubring.kbx, pubring.gpg and trustdb.gpg do not already exist in the container image.

Wodann commented 1 year ago

@Wodann It copies the public keys and trust db to the container as these are not available through the gpg-agent. It will not overwrite existing files. Make sure pubring.kbx, pubring.gpg and trustdb.gpg do not already exist in the container image.

@chrmarti I checked and:

My WSL ~/.gnupg/ folder only contains a gpg-agent.conf file with the following content:

pinentry-program /mnt/c/Program Files (x86)/Gpg4win/bin/pinentry.exe

My container image is a standard: mcr.microsoft.com/devcontainers/base:bullseye, which I assume doesn't have any of those in it. Yet, after creation of the container, this is the content in ~/.gnupg/:

$ ls -la ~/.gnupg/
total 16
drwx------ 2 vscode vscode 4096 Aug 25 19:28 .
drwxr-xr-x 1 vscode vscode 4096 Aug 25 19:28 ..
srwxr-xr-x 1 vscode vscode    0 Aug 25 19:28 S.gpg-agent
-rw-r--r-- 1 vscode vscode 1520 Aug 25 19:28 trustdb.gpg
chrmarti commented 1 year ago

@Wodann The log you posted shows that it connects to the gpg-agent on Windows and also copies that file from Windows (~\AppData\Roaming\gnupg). (For workspace folders on Windows it will prefer the GPG install on Windows, for workspace folder in WSL it will prefer the one in WSL.)

Wodann commented 1 year ago

Just to make sure I understand correctly:

Since I'm running a devcontainer with a virtual volume, it tries to copy the GPG keys from WSL and WSL has unique GPG keys compared to Windows.

If my understanding is correct, then how can I ensure that my Windows keys are instead copied?

If instead you meant that the devcontainer is correctly copying the files from Windows, how can it be that in Windows my GPG keys are listed on the CLI but in the devcontainer they are not?

mamiu commented 1 year ago

@chrmarti Were you already able to find the issue? If not, I'm happy to give you all information you need to solve the issue.

I have the same problem as explained by all the others above.

Everything works fine locally, but not in the dev container.

Local machine (MacBook Pro M2 16"):

  1. ssh-add -l:
    2048 SHA256:v+7UsdAuBvRks48DOAGNVb+sSg/iR4yWN/iTZnnqa1c manu@miu-mbp.local (RSA)
  2. gpg --list-secret-keys:
    /Users/manu/.gnupg/pubring.kbx
    ------------------------------
    sec   ed25519 2021-08-26 [SC]
          B9626714B84DA885341E17A3E29AC8CADE1A807B
    uid           [ultimate] Paul Miu <miu.manu@gmx.de>
    ssb   cv25519 2021-08-26 [E]
  3. echo "test" | gpg --clearsign:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    test
    -----BEGIN PGP SIGNATURE-----
    
    iHUEARYKAB0WIQS5YmcUuE2ohTQeF6PimsjK3hqAewUCZPlxjQAKCRDimsjK3hqA
    e5G9AP9MjHT7aFqyXwaFC11+S2YiW1Zw0hfnTGDL5zcoKUeHaAEA3fojVtoMpQ4p
    D/R4gy4UJh4ug/gLn7fmtWQvW4yfVQA=
    =u5eC
    -----END PGP SIGNATURE-----
  4. ls -la ~/.gnupg/:
    total 4.0K
    drwx------  13 manu staff  416 Sep  7 02:45 .
    drwxr-x---+ 50 manu staff 1.6K Sep  5 16:07 ..
    drwxr-xr-x   3 manu staff   96 Jul  6 05:18 openpgp-revocs.d
    drwxr-x---   4 manu staff  128 Jul  6 05:18 private-keys-v1.d
    srwx------   1 manu staff    0 Sep  7 01:44 S.gpg-agent
    srwx------   1 manu staff    0 Sep  7 01:44 S.gpg-agent.browser
    srwx------   1 manu staff    0 Sep  7 01:44 S.gpg-agent.extra
    srwx------   1 manu staff    0 Sep  7 01:44 S.gpg-agent.ssh
    srwx------   1 manu staff    0 Sep  7 01:44 S.scdaemon
    -rw-r--r--   1 manu staff   48 Jul 24 17:35 gpg-agent.conf
    lrwxr-xr-x   1 manu staff   45 Jul  6 05:18 pubring.kbx
    lrwxr-xr-x   1 manu staff   46 Jul  6 05:18 pubring.kbx~
    lrwxr-xr-x   1 manu staff   45 Jul  6 05:18 trustdb.gpg
  5. cat ~/.gnupg/gpg-agent.conf:
    pinentry-program /opt/homebrew/bin/pinentry-mac
  6. ps -ax | grep gpg-agent | grep -v grep:
    24426 ??         0:01.70 gpg-agent --homedir /Users/manu/.gnupg --use-standard-socket --daemon

Development container (python:latest)

  1. The devcontainer.json contains an "initializeCommand":
    "initializeCommand": ["ssh-add"],
  2. pubring.kbx, pubring.gpg and trustdb.gpg do not already exist in the container. ls -la ~/.gnupg/:
    ls: cannot access '/root/.gnupg/': No such file or directory
  3. apt list gpg gnupg2:
    Listing... Done
    gnupg2/stable,now 2.2.40-1.1 all [installed]
    gpg/stable,now 2.2.40-1.1 arm64 [installed]
  4. ssh-add -l:
    2048 SHA256:v+7UsdAuBvRks48DOAGNVb+sSg/iR4yWN/iTZnnqa1c manu@miu-mbp.local (RSA)
  5. echo "test" | gpg2 --clearsign:
    gpg: directory '/root/.gnupg' created
    gpg: keybox '/root/.gnupg/pubring.kbx' created
    gpg: no default secret key: No secret key
    gpg: [stdin]: clear-sign failed: No secret key
  6. gpg --list-secret-keys
    gpg: /root/.gnupg/trustdb.gpg: trustdb created
  7. export GPG_TTY=$(tty) doesn't change anything

Also tested it with the "Dev Containers: Try a Dev Container Sample..." command and the Node image (vscode-remote-try-node), but I still get exactly the same output from above.


If you need more information, please let me know.

mamiu commented 1 year ago

@chrmarti I think I found the issue.

When I launch VS Code from the terminal everything works fine (e.g. code path/to/project). Only when I launch VS Code from the Dock, Launchpad, Spotlight, Alfred, etc. I'll see the issue described above.

This reminded me of our discussion almost two and a half years ago.

Especially this part:

As already mentioned by @weinand:

On macOS all apps started from Finder, Dock, or Launchpad do not read the users ".profile", ".bash_profile" etc. files. So they don't inherit the same environment as apps launched from a terminal.

When I launch VSCode from a terminal I don't get any error message and it works as expected.

You suggested:

Maybe we could introduce a user setting to configure what type of shell should be used to read the environment.

In the end you left it for @bpasero @deepak1556 @joaomoreno to move or extract an issue.

It'd be great if we could at least warn users (with a popup, notification, or something) or add it somewhere in the docs so that we don't create GitHub issues every time this comes up, and also to save you and us time investigating the unexpected behavior.

Wodann commented 10 months ago

@chrmarti Circling back to validate my earlier question:

https://github.com/microsoft/vscode-remote-release/issues/8549#issuecomment-1695149105

chrmarti commented 10 months ago

@Wodann Your log indicates that the gpg socket is forwarded to the gpg-agent on Windows:

[2441 ms] gpg-agent: Socket in container (/root/.gnupg/S.gpg-agent) forwarded to local host (C:\Users\Remco\AppData\Local\gnupg\S.gpg-agent.extra).

@mamiu VS Code should use your default shell to read the environment variables from an interactive login shell session (e.g., running something like bash -lic printenv). To investigate further, you could:

Afterwards remove the "log-level": "trace" entry to stop filling the logs with trace output.

Wodann commented 10 months ago

@Wodann Your log indicates that the gpg socket is forwarded to the gpg-agent on Windows:

[2441 ms] gpg-agent: Socket in container (/root/.gnupg/S.gpg-agent) forwarded to local host (C:\Users\Remco\AppData\Local\gnupg\S.gpg-agent.extra).

@chrmarti one thing I've noticed is that when I run gpg --version on the Windows terminal, it tells me the following:

Home: C:\Users\wodan\AppData\Roaming\gnupg

That's making me wonder why the devcontainer is targetting the AppData\local instead of AppData\Roaming. Maybe this is the source of the problem?

mamiu commented 10 months ago

Thanks for your response @chrmarti

I followed the steps you described and found this error in the logs:

2023-10-28 05:45:03.486 [trace] getUnixShellEnvironment#stderr warning: Could not set up terminal.
warning: TERM environment variable not set.
warning: Using fallback terminal type 'xterm-256color'.
open terminal failed: not a terminal
Expand to see the all logs from the Main channel

``` 2023-10-28 05:45:03.322 [trace] [File Watcher (node.js)] Request to start watching: /Users/manu/Library/Application Support/Code/User (excludes: , includes: ),/Users/manu/Library/Application Support/Code/User/settings.json (excludes: , includes: ) 2023-10-28 05:45:03.322 [debug] Starting VS Code 2023-10-28 05:45:03.322 [debug] from: /Applications/Visual Studio Code.app/Contents/Resources/app 2023-10-28 05:45:03.322 [debug] args: {"_":[],"diff":false,"merge":false,"add":false,"goto":false,"new-window":false,"reuse-window":false,"wait":false,"help":false,"list-extensions":false,"show-versions":false,"pre-release":false,"version":false,"verbose":false,"log":["trace"],"status":false,"prof-startup":false,"no-cached-data":false,"prof-v8-extensions":false,"disable-extensions":false,"disable-gpu":false,"disable-chromium-sandbox":false,"ms-enable-electron-run-as-node":false,"telemetry":false,"debugRenderer":false,"enable-smoke-test-driver":false,"logExtensionHostCommunication":false,"skip-release-notes":false,"skip-welcome":false,"disable-telemetry":false,"disable-updates":false,"use-inmemory-secretstorage":false,"disable-workspace-trust":false,"disable-crash-reporter":false,"crash-reporter-id":"9c853fa6-9a8f-4acd-b4e6-dcc8aec2dff9","skip-add-to-recently-opened":false,"unity-launch":false,"open-url":false,"file-write":false,"file-chmod":false,"force":false,"do-not-sync":false,"trace":false,"force-user-env":false,"force-disable-user-env":false,"open-devtools":false,"disable-gpu-sandbox":false,"__enable-file-policy":false,"enable-coi":false,"no-proxy-server":false,"no-sandbox":false,"nolazy":false,"force-renderer-accessibility":false,"ignore-certificate-errors":false,"allow-insecure-localhost":false,"disable-dev-shm-usage":false,"profile-temp":false,"logsPath":"/Users/manu/Library/Application Support/Code/logs/20231028T054503"} 2023-10-28 05:45:03.322 [trace] Resolving machine identifier... 2023-10-28 05:45:03.322 [trace] Resolved machine identifier: 0e11ddcdaba44db9abf4f3b7b89b57b8a1487b1e4686b8607696b3085a8cc52f 2023-10-28 05:45:03.322 [trace] Main->SharedProcess#connect 2023-10-28 05:45:03.323 [trace] StorageMainService: creating application storage 2023-10-28 05:45:03.325 [trace] ElectronURLListener: waiting for window to be ready to handle URLs... 2023-10-28 05:45:03.327 [trace] lifecycle (main): phase changed (value: 2) 2023-10-28 05:45:03.327 [trace] windowsManager#open 2023-10-28 05:45:03.328 [trace] windowsManager#open pathsToOpen [{"workspace":{"id":"875a3cc5c8a14577abf29ec9ecb1a9f6","uri":{"$mid":1,"fsPath":"/Users/manu/dev/path/to/current/project","path":"/Users/manu/dev/path/to/current/project","scheme":"file"}},"type":2,"exists":true}] 2023-10-28 05:45:03.328 [trace] windowsManager#doOpenFolderOrWorkspace {"folderOrWorkspace":{"workspace":{"id":"875a3cc5c8a14577abf29ec9ecb1a9f6","uri":{"$mid":1,"fsPath":"/Users/manu/dev/path/to/current/project","path":"/Users/manu/dev/path/to/current/project","scheme":"file"}},"type":2,"exists":true}} 2023-10-28 05:45:03.328 [trace] IPC Object URL: Registered new channel vscode:1b61fe74-00a7-463d-b019-01c6a4b77b26. 2023-10-28 05:45:03.328 [trace] window#validateWindowState: validating window state on 1 display(s) {"mode":1,"x":0,"y":44,"width":2056,"height":1285} 2023-10-28 05:45:03.328 [trace] window#validateWindowState: 1 monitor working area {"x":0,"y":44,"width":2056,"height":1285} 2023-10-28 05:45:03.328 [trace] window#ctor: using window state {"mode":1,"x":0,"y":44,"width":2056,"height":1285} 2023-10-28 05:45:03.344 [trace] window#load: attempt to load window (id: 1) 2023-10-28 05:45:03.348 [trace] StorageMainService: creating workspace storage (875a3cc5c8a14577abf29ec9ecb1a9f6) 2023-10-28 05:45:03.349 [trace] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 0, emptyToOpen: 0) 2023-10-28 05:45:03.349 [trace] lifecycle (main): phase changed (value: 3) 2023-10-28 05:45:03.349 [trace] resolveShellEnv(): running (macOS/Linux) 2023-10-28 05:45:03.349 [trace] getUnixShellEnvironment#runAsNode undefined 2023-10-28 05:45:03.349 [trace] getUnixShellEnvironment#noAttach undefined 2023-10-28 05:45:03.349 [trace] getUnixShellEnvironment#env {"MallocNanoZone":"0","USER":"manu","COMMAND_MODE":"unix2003","__CFBundleIdentifier":"com.microsoft.VSCode","PATH":"/Users/manu/bin:/usr/local/bin:/Users/manu/.config/fish/scripts:/opt/homebrew/bin:/usr/local/gnubin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/manu/.config/fish/scripts","LOGNAME":"manu","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.EWhBbMAAmi/Listeners","HOME":"/Users/manu","SHELL":"/opt/homebrew/bin/fish","TMPDIR":"/var/folders/53/97nctlzx5s9gjrf8k82qn2dr0000gn/T/","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0xF","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.13331741.13331747","XPC_FLAGS":"0x0","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","VSCODE_CWD":"/","VSCODE_NLS_CONFIG":"{\"locale\":\"en-gb\",\"osLocale\":\"en-au\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_CODE_CACHE_PATH":"/Users/manu/Library/Application Support/Code/CachedData/f1b07bd25dfad64b0167beb15359ae573aecd2cc","VSCODE_IPC_HOOK":"/Users/manu/Library/Application Support/Code/1.83-main.sock","VSCODE_PID":"73084","ELECTRON_RUN_AS_NODE":"1","ELECTRON_NO_ATTACH_CONSOLE":"1","VSCODE_RESOLVING_ENVIRONMENT":"1"} 2023-10-28 05:45:03.349 [trace] getUnixShellEnvironment#shell /opt/homebrew/bin/fish 2023-10-28 05:45:03.349 [trace] getUnixShellEnvironment#spawn ["-i","-l","-c"] '/Applications/Visual Studio Code.app/Contents/MacOS/Electron' --ms-enable-electron-run-as-node -p '"453bbd3aa6e1" + JSON.stringify(process.env) + "453bbd3aa6e1"' 2023-10-28 05:45:03.352 [info] update#setState idle 2023-10-28 05:45:03.486 [trace] getUnixShellEnvironment#raw 2023-10-28 05:45:03.486 [trace] getUnixShellEnvironment#stderr warning: Could not set up terminal. warning: TERM environment variable not set. warning: Using fallback terminal type 'xterm-256color'. open terminal failed: not a terminal 2023-10-28 05:45:03.489 [trace] [File Watcher (node.js)] Started watching: '/Users/manu/Library/Application Support/Code/User' 2023-10-28 05:45:03.490 [trace] [File Watcher (node.js)] Started watching: '/Users/manu/Library/Application Support/Code/User/settings.json' 2023-10-28 05:45:03.616 [trace] resolveShellEnv(): running (macOS/Linux) 2023-10-28 05:45:03.616 [error] Unable to resolve your shell environment: Unexpected exit code from spawned shell (code 1, signal null) 2023-10-28 05:45:03.816 [trace] window#load: window reported ready (id: 1) 2023-10-28 05:45:03.816 [trace] ElectronURLListener#flush(): flushing URLs 2023-10-28 05:45:03.885 [trace] menubarService#updateMenubar 1 2023-10-28 05:45:03.904 [trace] [UtilityProcess id: 1, type: extensionHost, pid: ]: creating new... 2023-10-28 05:45:03.905 [trace] [UtilityProcess id: 1, type: extensionHost, pid: 73099]: successfully created 2023-10-28 05:45:04.096 [trace] resolveShellEnv(): running (macOS/Linux) 2023-10-28 05:45:04.096 [error] ptyHost was unable to resolve shell environment Unable to resolve your shell environment: Unexpected exit code from spawned shell (code 1, signal null) 2023-10-28 05:45:04.113 [trace] [SharedProcess] onWindowConnection for: vscode:createSharedProcessChannelConnectionResult 2023-10-28 05:45:04.113 [trace] [UtilityProcess type: shared-process, pid: ]: creating new... 2023-10-28 05:45:04.113 [trace] [UtilityProcessWorker]: createWorker(window: 1, moduleId: vs/platform/files/node/watcher/watcherMain) 2023-10-28 05:45:04.113 [trace] [UtilityProcess id: 1, type: fileWatcher, pid: ]: creating new... 2023-10-28 05:45:04.114 [trace] [UtilityProcess type: shared-process, pid: 73100]: successfully created 2023-10-28 05:45:04.114 [trace] [UtilityProcess id: 1, type: fileWatcher, pid: 73101]: successfully created 2023-10-28 05:45:04.156 [debug] Terminal profile not validated pwsh ["pwsh"] 2023-10-28 05:45:04.173 [trace] resolveShellEnv(): running (macOS/Linux) 2023-10-28 05:45:04.173 [error] resolving shell environment failed Unable to resolve your shell environment: Unexpected exit code from spawned shell (code 1, signal null) 2023-10-28 05:45:04.232 [trace] [SharedProcess] IPC ready 2023-10-28 05:45:04.233 [trace] Main->SharedProcess#connect: connection established 2023-10-28 05:45:04.238 [trace] [File Watcher (node.js)] Request to start watching: /Users/manu/Library/Application Support/Code/User (excludes: , includes: ),/Users/manu/Library/Application Support/Code/User/settings.json (excludes: , includes: ) 2023-10-28 05:45:04.244 [trace] [File Watcher (node.js)] Started watching: '/Users/manu/Library/Application Support/Code/User' 2023-10-28 05:45:04.244 [trace] [File Watcher (node.js)] Started watching: '/Users/manu/Library/Application Support/Code/User/settings.json' 2023-10-28 05:45:04.256 [trace] [SharedProcess] Overall ready 2023-10-28 05:45:04.261 [trace] resolveShellEnv(): running (macOS/Linux) 2023-10-28 05:45:04.280 [trace] [File Watcher (node.js)] Request to start watching: /Users/manu/.vscode/extensions (excludes: , includes: ),/Users/manu/.vscode/extensions/extensions.json (excludes: , includes: ) 2023-10-28 05:45:04.283 [trace] [File Watcher (node.js)] Started watching: '/Users/manu/.vscode/extensions' 2023-10-28 05:45:04.283 [trace] [File Watcher (node.js)] Started watching: '/Users/manu/.vscode/extensions/extensions.json' 2023-10-28 05:45:04.606 [trace] [EncryptionMainService] Decrypting value. 2023-10-28 05:45:04.606 [trace] [EncryptionMainService] Decrypted value. 2023-10-28 05:45:04.652 [trace] resolveShellEnv(): running (macOS/Linux) 2023-10-28 05:45:04.984 [trace] menubarService#updateMenubar 1 2023-10-28 05:45:05.172 [trace] resolveShellEnv(): running (macOS/Linux) 2023-10-28 05:45:05.315 [debug] ProfileStorageChangesListenerChannel#registerStorageChangeListeners 2023-10-28 05:45:05.315 [trace] [File Watcher (node.js)] Request to start watching: /Users/manu/Library/Application Support/Code/User/snippets (excludes: , includes: ) 2023-10-28 05:45:05.316 [trace] resolveShellEnv(): running (macOS/Linux) 2023-10-28 05:45:05.318 [trace] [File Watcher (node.js)] Started watching: '/Users/manu/Library/Application Support/Code/User/snippets' ```

The error says that the TERM environment variable isn't set, but it is set as you can see here in my fish config file.

My current setup works perfectly fine with everything for many years now, apart from VS Code.

I use the fish shell on macOS. When I run which fish I get /opt/homebrew/bin/fish.

And this is the terminal config in my settings.json:

{
  ...
  "terminal.integrated.profiles.osx": {
    "fish": {
      "path": "/opt/homebrew/bin/fish"
    }
  },
  "terminal.integrated.defaultProfile.osx": "fish",
  ...
}

I also always get this popup when I open VS Code from the Dock:

image

What am I missing here?

chrmarti commented 10 months ago

@Wodann The home folder and the socket can be indifferent folders. What's a bit curious is that you mention C:\Users\wodan while the logs show C:\Users\Remco. Are there two user accounts involved?

@mamiu I don't see any recent changes in VS Code's env probing. What do you get when running env -i PATH="$PATH" fish -lic printenv ; echo "exit code: $?" in a terminal?

mamiu commented 10 months ago

@chrmarti I have that issue for years already (at least 3 years).

This is the output:

bash-5.2$ env -i PATH="$PATH" fish -lic printenv ; echo "exit code: $?"
warning: Could not set up terminal.
warning: TERM environment variable not set.
warning: Using fallback terminal type 'xterm-256color'.
PWD=/Users/manu
SYSTEMD_PAGER=/opt/homebrew/bin/bat -l log -p
HOME=/Users/manu
XDG_CONFIG_HOME=/Users/manu/.config
LC_ALL=en_US.UTF-8
USER=manu
LC_CTYPE=en_US.UTF-8
SHLVL=1
MANPAGER=sh -c 'col -bx | /opt/homebrew/bin/bat -l man --style=plain,numbers'
LANG=en_US.UTF-8
TERM=xterm-256color
XDG_DATA_HOME=/Users/manu/.local/share
GPG_TTY=/dev/ttys006
PAGER=/opt/homebrew/bin/bat -p
MANROFFOPT=-c
PATH=/Users/manu/.config/fish/scripts:/opt/homebrew/bin:/usr/local/gnubin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/manu/bin:/Users/manu/.config/fish/scripts
EDITOR=vim
XDG_CACHE_HOME=/Users/manu/.cache
exit code: 0

Interestingly I see the same warnings in here as in VS Code:

warning: Could not set up terminal.
warning: TERM environment variable not set.
warning: Using fallback terminal type 'xterm-256color'.

If I just run fish -lic printenv it works perfectly well. (Printing all env variables from the fish shell)

And if I add TERM="$TERM" to your command, it also works without a warning.

Here's the same command with the TERM variable and the output:

bash-5.2$ env -i PATH="$PATH" TERM="$TERM" fish -lic printenv ; echo "exit code: $?"
PWD=/Users/manu
SYSTEMD_PAGER=/opt/homebrew/bin/bat -l log -p
HOME=/Users/manu
XDG_CONFIG_HOME=/Users/manu/.config
USER=manu
LC_CTYPE=en_US.UTF-8
SHLVL=1
MANPAGER=sh -c 'col -bx | /opt/homebrew/bin/bat -l man --style=plain,numbers'
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
TERM=xterm-256color
XDG_DATA_HOME=/Users/manu/.local/share
GPG_TTY=/dev/ttys001
PAGER=/opt/homebrew/bin/bat -p
MANROFFOPT=-c
PATH=/Users/manu/.config/fish/scripts:/opt/homebrew/bin:/usr/local/gnubin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/manu/bin:/Users/manu/.config/fish/scripts
EDITOR=vim
XDG_CACHE_HOME=/Users/manu/.cache
exit code: 0

Does this help you troubleshoot?

chrmarti commented 10 months ago

The log also shows open terminal failed: not a terminal. Does that show when you run env -i PATH="$PATH" TERM="$TERM" sh -c 'echo | fish -lic printenv | cat' ; echo "exit code: $?"?

paul-gilber commented 10 months ago

have you tried with bionic image? mcr.microsoft.com/devcontainers/base:bionic this resolved the issue for me

mamiu commented 10 months ago

You're right @chrmarti.

But I don't get the open terminal failed: not a terminal error when executing the command you gave me, independent of having TERM="$TERM" in the command or not.

However, if I run your command from a shell that doesn't initialize the environment (i.e. doesn't source the /etc/profile file) such as env -i bash or env -i sh I get the following error:

bash-3.2$ env -i PATH="$PATH" TERM="$TERM" sh -c 'echo | fish -lic printenv | cat' ; echo "exit code: $?"
sh: fish: command not found
exit code: 0

If you want to see the exit code of fish -lic printenv:

sh-3.2$ env -i PATH="$PATH" TERM="$TERM" sh -c 'fish -lic printenv ; echo "exit code: $?"'
sh: fish: command not found
exit code: 127

This error occurs because the dirname of the fish shell (/opt/homebrew/bin/fish) isn't in the PATH variable.

If I run this command with the -l (login) and -i (interactive) shell flags, then it works fine.

sh-3.2$ env -i PATH="$PATH" TERM="$TERM" sh -lic 'echo | fish -lic printenv | cat' ; echo "exit code: $?"
PWD=/Users/manu
SYSTEMD_PAGER=/opt/homebrew/bin/bat -l log -p
HOME=/Users/manu
XDG_CONFIG_HOME=/Users/manu/.config
USER=manu
LC_CTYPE=en_US.UTF-8
SHLVL=2
MANPAGER=sh -c 'col -bx | /opt/homebrew/bin/bat -l man --style=plain,numbers'
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
TERM=xterm-256color
XDG_DATA_HOME=/Users/manu/.local/share
GPG_TTY=not a tty
PAGER=/opt/homebrew/bin/bat -p
MANROFFOPT=-c
PATH=/Users/manu/.config/fish/scripts:/opt/homebrew/bin:/usr/local/gnubin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/gnu/bin:.
EDITOR=vim
XDG_CACHE_HOME=/Users/manu/.cache
exit code: 0

I don't know if this is relevant to troubleshoot this problem.

Thanks a lot for looking into this @chrmarti. If you need any other information let me know

beplay commented 10 months ago

Facing the same issue as the OP:

Everything works locally (i.e., gpg --list-secret-keys lists the key, echo "test" | gpg --clearsign signs the message).

What is interesting in the remote session is that when running echo "test" | gpg --clearsign -vvv I get the following output:

gpg: using character set 'utf-8'
gpg: connection to agent is in restricted mode
gpg: no default secret key: No secret key
gpg: [stdin]: clear-sign failed: No secret key

But when listing the secret keys using: gpg --list-secret-keys -vvv it seems to at least pick up the key as a trusted key:

gpg: using character set 'utf-8'
gpg: using pgp trust model
gpg: key F64BFF0C6C5382AD: accepted as trusted key

There is no issue under Windows 10 and WSL when signing commits in the Dev Container, however, on MacOS it stopped to work a few weeks ago (I can't remember when exactly, unfortunately).

Are there any steps required under MacOS similar to following these steps for WSL to enable the pinentry popup or console prompt to the Dev Container?

DaazKu commented 9 months ago

For some of you this is probably the problem: https://github.com/microsoft/vscode-remote-release/issues/9217

You do not have a ~/.gnupg/pubring.kbx locally because use-keyboxd is set in ~/.gnupg/common.conf

chrmarti commented 9 months ago

@mamiu Your log in https://github.com/microsoft/vscode-remote-release/issues/8549#issuecomment-1783766850 shows the full path to fish, so it not being on the PATH initially is indeed not a problem.

Since it is working when starting VS Code from the terminal, could you compare printenv output from the terminal with the output when first clearing the environment with env as you already did?