Closed chrmarti closed 1 year ago
@samruddhikhandale I tried it just now and indeed the post-create.sh
script isn't being created anymore. The build of the devcontainer fails, though:
It's as if it's still trying to run the version of devcontainer.json
prior to #120, which contained the sh ./.devcontainer/post-create.sh
as a postCreateCommand. The generated devcontainer doesn't have it, though:
I've attached the entire log file:
[1026 ms] Dev Containers 0.275.0 in VS Code 1.75.0 (e2816fe719a4026ffa1ee0189dc89bdfdbafb164).
[1025 ms] Start: Resolving Remote
[1088 ms] Start: Check Docker is running
[1089 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[2235 ms] Server API version: 1.41
[2246 ms] Start: Run: docker build -f C:\Users\tudor\AppData\Local\Temp\vsch\bootstrap-image\0.275.0\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\tudor\AppData\Local\Temp\vsch\bootstrap-image\0.275.0
[+] Building 123.3s (10/10) FINISHED
=> [internal] load build definition from bootstrap.Dockerfile 0.1s
=> => transferring dockerfile: 42B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/devcontainers/base:0-alpine-3.16 0.3s
=> [internal] load build context 0.1s
=> => transferring context: 5.90kB 0.0s
=> [1/5] FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.16@sha256:911d707a0033e74e0a94cc00e9c5ddaf04f77862cb73df746d29d7f5250aa3bf 51.2s
=> => resolve mcr.microsoft.com/devcontainers/base:0-alpine-3.16@sha256:911d707a0033e74e0a94cc00e9c5ddaf04f77862cb73df746d29d7f5250aa3bf 0.1s
=> => sha256:13f068f5151cb5deaff55d94a5413f8b77290004693788b7f2565ff0dbf9379c 1.43kB / 1.43kB 0.0s
=> => sha256:dcbc09c957778a0c62e6b8321e7025d26ac7b70a33d168b06981a208d5c4d7a6 242B / 242B 0.4s
=> => sha256:911d707a0033e74e0a94cc00e9c5ddaf04f77862cb73df746d29d7f5250aa3bf 1.61kB / 1.61kB 0.0s
=> => sha256:5e9c5ad5060194d2d2592e7d8c0600945630fd0a5ea1c9834dc797835c0e42dd 7.80kB / 7.80kB 0.0s
=> => sha256:19ca9752a3f02ff3246dc7c9cbbdd37b55798212cb5a8da8a96ddb78130df739 416B / 416B 0.3s
=> => sha256:f6e7bda0920349179a60819f6989a250e2f6794ce28830ae83da87c51c58f19b 63.49kB / 63.49kB 0.4s
=> => extracting sha256:19ca9752a3f02ff3246dc7c9cbbdd37b55798212cb5a8da8a96ddb78130df739 0.0s
=> => sha256:45ba0c39f2ad7f2ae6efdad482393d76cf6bbdb9f35d2191f610ca3c5f1a3f96 188.73MB / 188.73MB 26.5s
=> => sha256:8e1450f04d64aebfa6cf7eb04354a1fe63f438cf8343011421ad28dba052d5dc 34.83MB / 34.83MB 9.4s
=> => extracting sha256:f6e7bda0920349179a60819f6989a250e2f6794ce28830ae83da87c51c58f19b 0.0s
=> => extracting sha256:dcbc09c957778a0c62e6b8321e7025d26ac7b70a33d168b06981a208d5c4d7a6 0.0s
=> => extracting sha256:45ba0c39f2ad7f2ae6efdad482393d76cf6bbdb9f35d2191f610ca3c5f1a3f96 15.6s
=> => extracting sha256:8e1450f04d64aebfa6cf7eb04354a1fe63f438cf8343011421ad28dba052d5dc 5.1s
=> [2/5] RUN echo "@old https://dl-cdn.alpinelinux.org/alpine/v3.15/main" >> /etc/apk/repositories 2.0s
=> [3/5] RUN apk add --no-cache nodejs python3 npm make g++ docker-cli docker-cli-buildx docker-cli-compose openssh-client-default@old ; 40.1s
=> [4/5] RUN cd && npm i node-pty 24.3s
=> [5/5] COPY .vscode-remote-containers /root/.vscode-remote-containers 0.2s
=> exporting to image 4.5s
=> => exporting layers 4.4s
=> => writing image sha256:b40263d88de5dace914b681078e8c387401da934245030ebbd881f6e1cd9a6c7 0.0s
=> => naming to docker.io/library/vsc-volume-bootstrap 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[138796 ms] Start: Run: docker run -d --mount type=volume,src=jekyll-2,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[141938 ms] Start: Run in container: /bin/sh
[144383 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/jekyll-2 --id-label vsc.devcontainer.volume.name=jekyll-2 --id-label vsc.devcontainer.volume.folder=jekyll-2 --log-level debug --log-format json --mount-workspace-git-root true --terminal-columns 171 --terminal-rows 29
[146355 ms] (node:27) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[146356 ms] (Use `node --trace-deprecation ...` to show where the warning was created)
[146378 ms] @devcontainers/cli 0.29.0. Node.js v16.17.1. linux 5.15.83.1-microsoft-standard-WSL2 x64.
[146378 ms] Start: Run: git rev-parse --show-cdup
[146422 ms] Start: Run: docker ps -q -a --filter label=vsc.devcontainer.volume.name=jekyll-2 --filter label=vsc.devcontainer.volume.folder=jekyll-2
[146665 ms] Start: Run in container: cat <<'EOF-/tmp/devcontainer-e1233a0f-cac4-4f77-be2b-7ceca71b01e1.json' >/tmp/devcontainer-e1233a0f-cac4-4f77-be2b-7ceca71b01e1.json_1675447697126
[146685 ms]
[146686 ms]
[146687 ms] Start: Run in container: docker volume ls -q
[151260 ms] Start: Run in container: docker ps -q -a --filter label=vsc.devcontainer.volume.name=jekyll-2 --filter label=vsc.devcontainer.volume.folder=jekyll-2
[153024 ms] Start: Run in container: docker ps -q -a --filter label=vsc.devcontainer.volume.name=jekyll-2 --filter label=vsc.devcontainer.volume.folder=jekyll-2 --filter label=devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json
[154756 ms] Start: Run in container: docker ps -q -a --filter label=vsc.devcontainer.volume.name=jekyll-2 --filter label=vsc.devcontainer.volume.folder=jekyll-2
[156557 ms] Start: Run in container: docker ps -q -a --filter label=vsc.devcontainer.volume.name=jekyll-2 --filter label=vsc.devcontainer.volume.folder=jekyll-2
[161749 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder tmp/devcontainers-1249c958-f2ad-43e2-87df-8737df6807071675447548173 --workspace-folder /workspaces/jekyll-2 --workspace-mount-consistency cached --id-label vsc.devcontainer.volume.name=jekyll-2 --id-label vsc.devcontainer.volume.folder=jekyll-2 --id-label devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/jekyll-2/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-e1233a0f-cac4-4f77-be2b-7ceca71b01e1.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=jekyll-2,target=/workspaces,external=true --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root true --terminal-columns 171 --terminal-rows 29
[166478 ms] (node:152) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[166482 ms] (Use `node --trace-deprecation ...` to show where the warning was created)
[166501 ms] @devcontainers/cli 0.29.0. Node.js v16.17.1. linux 5.15.83.1-microsoft-standard-WSL2 x64.
[166501 ms] Start: Run: docker buildx version
[167086 ms] github.com/docker/buildx v0.8.2 6224def4dd2c3d347eee19db595348c50d7cb491
[167087 ms]
[167088 ms] Start: Resolving Remote
[167135 ms] Start: Run: git rev-parse --show-cdup
[167176 ms] Start: Run: docker ps -q -a --filter label=vsc.devcontainer.volume.name=jekyll-2 --filter label=vsc.devcontainer.volume.folder=jekyll-2 --filter label=devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json
[167476 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/jekyll:0-bullseye
[167771 ms] local container features stored at: /root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/node_modules/vscode-dev-containers/container-features
[167789 ms] Start: Run: tar --no-same-owner -x -f -
[168368 ms] Start: Run: docker -v
[168626 ms] Start: Run: docker events --format {{json .}} --filter event=start
[168647 ms] Start: Starting container
[168663 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=volume,src=jekyll-2,dst=/workspaces --mount type=volume,src=vscode,dst=/vscode -l vsc.devcontainer.volume.name=jekyll-2 -l vsc.devcontainer.volume.folder=jekyll-2 -l devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json --entrypoint /bin/sh -l devcontainer.metadata=[{"id":"ghcr.io/devcontainers/features/common-utils:2"},{"id":"ghcr.io/devcontainers/features/git:1"},{"id":"ghcr.io/devcontainers/features/node:1","customizations":{"vscode":{"extensions":["dbaeumer.vscode-eslint"]}}},{"id":"ghcr.io/devcontainers/features/ruby:1","customizations":{"vscode":{"extensions":["rebornix.Ruby"]}}},{"customizations":{"vscode":{"extensions":["rebornix.Ruby"]}},"remoteUser":"vscode"},{"id":"ghcr.io/devcontainers/features/git:1"},{"postCreateCommand":"sh ./.devcontainer/post-create.sh","remoteUser":"vscode","forwardPorts":[4000,35729]}] mcr.microsoft.com/devcontainers/jekyll:0-bullseye -c echo Container started
Container started
[173070 ms] Start: Run: docker ps -q -a --filter label=vsc.devcontainer.volume.name=jekyll-2 --filter label=vsc.devcontainer.volume.folder=jekyll-2 --filter label=devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json
[173352 ms] Start: Run: docker inspect --type container e21b629d2185
[173603 ms] Start: Inspecting container
[173604 ms] Start: Run: docker inspect --type container e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73
[173965 ms] Start: Run in container: /bin/sh
[173984 ms] Start: Run in container: uname -m
[174675 ms] x86_64
[174676 ms]
[174684 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[174716 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/"
[174717 ms]
[174718 ms] Start: Run in container: cat /etc/passwd
[174771 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[174829 ms]
[174830 ms]
[174830 ms] Exit code 1
[174843 ms] Start: Run in container: /bin/sh
[174871 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[175699 ms]
[175699 ms]
[175700 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[175730 ms]
[175730 ms]
[175732 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[175777 ms]
[175780 ms]
[175780 ms] Exit code 1
[175781 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[175820 ms]
[175820 ms]
[175820 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[175871 ms]
[175871 ms]
[176156 ms] Start: Run: docker inspect --type container e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73
[177238 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/jekyll-2 --id-label vsc.devcontainer.volume.name=jekyll-2 --id-label vsc.devcontainer.volume.folder=jekyll-2 --id-label devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json --container-id e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73 --log-level debug --log-format json --config /workspaces/jekyll-2/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-e1233a0f-cac4-4f77-be2b-7ceca71b01e1.json --mount-workspace-git-root true
[179884 ms] (node:300) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[179885 ms] (Use `node --trace-deprecation ...` to show where the warning was created)
[179897 ms] @devcontainers/cli 0.29.0. Node.js v16.17.1. linux 5.15.83.1-microsoft-standard-WSL2 x64.
[179897 ms] Start: Run: git rev-parse --show-cdup
[179934 ms] Start: Run: docker inspect --type container e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73
[180239 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /workspaces/jekyll-2 --id-label vsc.devcontainer.volume.name=jekyll-2 --id-label vsc.devcontainer.volume.folder=jekyll-2 --id-label devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json --container-id e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73 --log-level debug --log-format json --config /workspaces/jekyll-2/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-e1233a0f-cac4-4f77-be2b-7ceca71b01e1.json --include-merged-configuration --mount-workspace-git-root true
[182260 ms] (node:327) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[182263 ms] (Use `node --trace-deprecation ...` to show where the warning was created)
[182286 ms] @devcontainers/cli 0.29.0. Node.js v16.17.1. linux 5.15.83.1-microsoft-standard-WSL2 x64.
[182286 ms] Start: Run: git rev-parse --show-cdup
[182338 ms] Start: Run: docker inspect --type container e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73
[182734 ms] Start: Inspecting container
[182735 ms] Start: Run: docker inspect --type container e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73
[183440 ms] Start: Run in container: /bin/sh
[183587 ms] Start: Run in container: uname -m
[184336 ms] x86_64
[184337 ms]
[184339 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[184355 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/"
[184355 ms]
[184356 ms] Start: Run in container: cat /etc/passwd
[184403 ms] Start: Run in container: /bin/sh
[184565 ms] Start: Run in container: stat -c %u /workspaces/jekyll-2
[185436 ms] 0
[185437 ms]
[185438 ms] Start: Run in container: chown vscode:1000 /workspaces
[185451 ms]
[185452 ms]
[185453 ms] Start: Run in container: chown -R vscode:1000 /workspaces/jekyll-2
[185465 ms]
[185466 ms]
[185468 ms] Start: Updating configuration state
[185477 ms] Start: Setup shutdown monitor
[185483 ms] Forking shutdown monitor: c:\Users\tudor\.vscode\extensions\ms-vscode-remote.remote-containers-0.275.0\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-c1793fbeb55b1f32dcda291b669880a0b54add38-sock singleContainer Debug c:\Users\tudor\AppData\Roaming\Code\logs\20230203T190454\window1\exthost\ms-vscode-remote.remote-containers 1675447550463
[185522 ms] Start: Run in container: test -d /home/vscode/.vscode-server
[185537 ms]
[185538 ms]
[185539 ms] Exit code 1
[185540 ms] Start: Run in container: test -d /home/vscode/.vscode-remote
[185554 ms]
[185555 ms]
[185556 ms] Exit code 1
[185558 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
[185591 ms]
[185592 ms]
[185596 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json
[185634 ms]
[185635 ms] cat: /home/vscode/.vscode-server/data/Machine/settings.json: No such file or directory
[185635 ms] Exit code 1
[185638 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164
[185652 ms]
[185654 ms]
[185654 ms] Exit code 1
[185656 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/e2816fe719a4026ffa1ee0189dc89bdfdbafb164
[185669 ms]
[185672 ms]
[185673 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/e2816fe719a4026ffa1ee0189dc89bdfdbafb164' '/home/vscode/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164'
[185690 ms]
[185691 ms]
[185692 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/e2816fe719a4026ffa1ee0189dc89bdfdbafb164'
[185699 ms] Start: Launching Dev Containers helper.
[185705 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-b3133f5f530042941f8f42d666d0e6cf94ca40fb.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent).
[185706 ms] X11 forwarding: DISPLAY not set on host.
[185708 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[185716 ms]
[185718 ms]
[185892 ms] findLocalWindowsExecutable: Exectuable 'gpgconf' not found on PATH 'C:\Program Files (x86)\VMware\VMware Player\bin\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\RedHat\java-17-openjdk-17.0.1.0.12-1\bin;C:\Program Files (x86)\HashiCorp\Vagrant\bin;C:\Program Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;C:\Users\tudor\AppData\Local\Microsoft\WindowsApps;C:\Users\tudor\AppData\Local\Programs\Microsoft VS Code\bin'.
[185895 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[185905 ms]
[185906 ms]
[185906 ms] Exit code 127
[185907 ms] Start: Run in container: /bin/sh
[185911 ms] userEnvProbe: loginInteractiveShell (default)
[185913 ms] Start: Run in container: test -f 'tmp/devcontainers-1249c958-f2ad-43e2-87df-8737df6807071675447548173/env-loginInteractiveShell.json'
[185918 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/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/node /tmp/vscode-remote-containers-b3133f5f530042941f8f42d666d0e6cf94ca40fb.js git-credential-helper $*; }; f' || true
[185937 ms]
[185938 ms]
[185938 ms] Exit code 1
[185941 ms] userEnvProbe: not found in cache
[185949 ms] userEnvProbe shell: /bin/bash
[185967 ms]
[185968 ms]
[185970 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[186155 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-e2816fe719a4026ffa1ee0189dc89bdfdbafb164' 2>/dev/null || (umask 377 && echo 'ca966cec-6a5a-4c75-9186-c23ec4b900d6' >'/home/vscode/.vscode-server/data/Machine/.connection-token-e2816fe719a4026ffa1ee0189dc89bdfdbafb164-96b47b52-66db-476a-9853-c5fd52bb5e78' && mv -n '/home/vscode/.vscode-server/data/Machine/.connection-token-e2816fe719a4026ffa1ee0189dc89bdfdbafb164-96b47b52-66db-476a-9853-c5fd52bb5e78' '/home/vscode/.vscode-server/data/Machine/.connection-token-e2816fe719a4026ffa1ee0189dc89bdfdbafb164' && rm -f '/home/vscode/.vscode-server/data/Machine/.connection-token-e2816fe719a4026ffa1ee0189dc89bdfdbafb164-96b47b52-66db-476a-9853-c5fd52bb5e78' && cat '/home/vscode/.vscode-server/data/Machine/.connection-token-e2816fe719a4026ffa1ee0189dc89bdfdbafb164')
[186178 ms] Start: Run in container: echo ~
[186241 ms] ca966cec-6a5a-4c75-9186-c23ec4b900d6
[186243 ms]
[186251 ms] Start: Starting VS Code Server
[186253 ms] Start: Preparing Extensions
[186254 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
[186270 ms]
[186271 ms]
[186282 ms] Extensions cache, install extensions: dbaeumer.vscode-eslint, rebornix.Ruby
[186283 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true
[186302 ms]
[186303 ms]
[186304 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[186332 ms] dbaeumer.vscode-eslint-2.2.6
eamodio.gitlens-13.2.0
editorconfig.editorconfig-0.16.4
github.vscode-pull-request-github-0.54.1
ms-azuretools.vscode-docker-1.18.0
rebornix.ruby-0.28.1
streetsidesoftware.code-spell-checker-2.13.0
streetsidesoftware.code-spell-checker-2.14.0
wingrunr21.vscode-ruby-0.28.0
[186333 ms]
[186336 ms] Extensions cache, link in container: dbaeumer.vscode-eslint-2.2.6, rebornix.ruby-0.28.1
[186336 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/extensionsCache' && ln -s '/vscode/vscode-server/extensionsCache'/* '/home/vscode/.vscode-server/extensionsCache' || true
[186370 ms]
[186371 ms]
[186373 ms] Start: Run in container: cd /vscode/vscode-server/extensionsCache && touch 'dbaeumer.vscode-eslint-2.2.6' 'rebornix.ruby-0.28.1'
[186374 ms] Start: Run in container: /home/vscode/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server/data/Machine/.connection-token-e2816fe719a4026ffa1ee0189dc89bdfdbafb164 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension dbaeumer.vscode-eslint --install-extension rebornix.Ruby --start-server --disable-websocket-compression
[186388 ms]
[186388 ms]
[186950 ms] /home/vscode
[186951 ms]
[186951 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-b3133f5f530042941f8f42d666d0e6cf94ca40fb.js' >/tmp/vscode-remote-containers-b3133f5f530042941f8f42d666d0e6cf94ca40fb.js
[186957 ms]
[186958 ms]
[186959 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-b3133f5f530042941f8f42d666d0e6cf94ca40fb.js' >/tmp/vscode-remote-containers-server-b3133f5f530042941f8f42d666d0e6cf94ca40fb.js_1675447737421
[186970 ms]
[186971 ms]
[187377 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).
*
[187402 ms] Server bound to 127.0.0.1:37289 (IPv4)
Extension host agent listening on 37289
[187404 ms] Start: Run in container: echo 37289 >'/home/vscode/.vscode-server/data/Machine/.devport-e2816fe719a4026ffa1ee0189dc89bdfdbafb164'
[187414 ms]
[187415 ms]
[187416 ms] Port forwarding for container port 37289 starts listening on local port.
[187420 ms] Port forwarding local port 37289 to container port 37289
[187422 ms] Start: Run in container: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --container-session-data-folder tmp/devcontainers-1249c958-f2ad-43e2-87df-8737df6807071675447548173 --workspace-folder /workspaces/jekyll-2 --id-label vsc.devcontainer.volume.name=jekyll-2 --id-label vsc.devcontainer.volume.folder=jekyll-2 --id-label devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json --container-id e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73 --log-level debug --log-format json --config /workspaces/jekyll-2/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-e1233a0f-cac4-4f77-be2b-7ceca71b01e1.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-b3133f5f530042941f8f42d666d0e6cf94ca40fb.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-b3133f5f530042941f8f42d666d0e6cf94ca40fb.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 171 --terminal-rows 29
[188167 ms] [18:08:58]
[188254 ms] userEnvProbe PATHs:
Probe: '/usr/local/rvm/gems/default/bin:/usr/local/rvm/gems/default@global/bin:/usr/local/rvm/rubies/default/bin:/usr/local/share/rbenv/bin:/usr/local/share/nvm/current/bin:/usr/local/bundle/bin:/usr/local/rvm/gems/default/bin:/usr/local/rvm/gems/default@global/bin:/usr/local/rvm/rubies/default/bin:/usr/local/share/rbenv/bin:/usr/local/share/nvm/current/bin:/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin:/usr/local/rvm/bin'
Container: '/usr/local/rvm/gems/default/bin:/usr/local/rvm/gems/default@global/bin:/usr/local/rvm/rubies/default/bin:/usr/local/share/rbenv/bin:/usr/local/share/nvm/current/bin:/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[188255 ms] Start: Run in container: mkdir -p 'tmp/devcontainers-1249c958-f2ad-43e2-87df-8737df6807071675447548173' && cat > 'tmp/devcontainers-1249c958-f2ad-43e2-87df-8737df6807071675447548173/env-loginInteractiveShell.json' << 'envJSON'
[188286 ms]
[188288 ms]
[188420 ms] Port forwarding connection from 58129 > 37289 > 37289 in the container.
[188421 ms] Start: Run in container: /home/vscode/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/node -e
[188456 ms] Installing extensions...
[188485 ms] [18:08:58] Extension host agent started.
[188841 ms] [18:08:59] Started initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions
[188904 ms] [18:08:59] ComputeTargetPlatform: linux-x64
[189141 ms] [18:08:59] Completed initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions
[189582 ms] Port forwarding 58129 > 37289 > 37289 stderr: Connection established
[189620 ms] Port forwarding connection from 58132 > 37289 > 37289 in the container.
[189621 ms] Start: Run in container: /home/vscode/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/node -e
[189741 ms] [18:09:00] [127.0.0.1][c5de17ed][ManagementConnection] New connection established.
[190288 ms] (node:353) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[190289 ms] (Use `node --trace-deprecation ...` to show where the warning was created)
[190285 ms] @devcontainers/cli 0.29.0. Node.js v16.17.1. linux 5.15.83.1-microsoft-standard-WSL2 x64.
[190284 ms] Start: Run: docker buildx version
[190778 ms] github.com/docker/buildx v0.8.2 6224def4dd2c3d347eee19db595348c50d7cb491
[190779 ms]
[190810 ms] Start: Run: git rev-parse --show-cdup
[190831 ms] Start: Run: docker inspect --type container e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73
[191125 ms] Start: Inspecting container
[191126 ms] Start: Run: docker inspect --type container e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73
[191263 ms] Port forwarding 58132 > 37289 > 37289 stderr: Connection established
[191298 ms] Start: Run in container: /bin/sh
[191319 ms] Start: Run in container: uname -m
[191701 ms] x86_64
[191702 ms]
[191703 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[191730 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/"
[191731 ms]
[191732 ms] Start: Run in container: cat /etc/passwd
[191742 ms] userEnvProbe: loginInteractiveShell (default)
[191744 ms] Start: Run in container: test -f 'tmp/devcontainers-1249c958-f2ad-43e2-87df-8737df6807071675447548173/env-loginInteractiveShell.json'
[191752 ms]
[191752 ms]
[191752 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-02-03T18:08:39.389733267Z}" != '2023-02-03T18:08:39.389733267Z' ] && echo '2023-02-03T18:08:39.389733267Z' > '/home/vscode/.devcontainer/.onCreateCommandMarker'
[191763 ms]
[191764 ms]
[191764 ms] Start: Run in container: cat 'tmp/devcontainers-1249c958-f2ad-43e2-87df-8737df6807071675447548173/env-loginInteractiveShell.json'
[191772 ms] {
"NVM_RC_VERSION": "",
"rvm_prefix": "/usr/local",
"HOSTNAME": "e21b629d2185",
"LANGUAGE": "en_US",
"rvm_stored_umask": "0022",
"RUBY_DOWNLOAD_SHA256": "b38dff2e1f8ce6e5b7d433f8758752987a6b2adfd9bc7571dbc42ea5d04e3e4c",
"MY_RUBY_HOME": "/usr/local/rvm/rubies/default",
"REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-b3133f5f530042941f8f42d666d0e6cf94ca40fb.sock",
"RUBY_VERSION": "2.7.7",
"rvm_version": "1.29.12 (latest)",
"rvm_user_install_flag": "0",
"BUNDLE_APP_CONFIG": "/usr/local/bundle",
"RUBY_MAJOR": "2.7",
"TZ": "Etc/UTC",
"HOME": "/home/vscode",
"LANG": "en_US.UTF-8",
"LS_COLORS": "",
"NVM_SYMLINK_CURRENT": "true",
"BUNDLE_SILENCE_ROOT_WARNING": "1",
"NVM_DIR": "/usr/local/share/nvm",
"rvm_bin_path": "/usr/local/rvm/bin",
"GEM_PATH": "/usr/local/rvm/gems/default:/usr/local/rvm/gems/default@global",
"GEM_HOME": "/usr/local/rvm/gems/default",
"REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-b3133f5f530042941f8f42d666d0e6cf94ca40fb.sock\"]",
"USER": "vscode",
"rvm_loaded_flag": "1",
"SHLVL": "1",
"NVM_CD_FLAGS": "",
"PROMPT_DIRTRIM": "4",
"LC_ALL": "en_US.UTF-8",
"PATH": "/usr/local/rvm/gems/default/bin:/usr/local/rvm/gems/default@global/bin:/usr/local/rvm/rubies/default/bin:/usr/local/share/rbenv/bin:/usr/local/share/nvm/current/bin:/usr/local/bundle/bin:/usr/local/rvm/gems/default/bin:/usr/local/rvm/gems/default@global/bin:/usr/local/rvm/rubies/default/bin:/usr/local/share/rbenv/bin:/usr/local/share/nvm/current/bin:/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin:/usr/local/rvm/bin",
"rvm_path": "/usr/local/rvm",
"_": "/bin/cat"
}
[191772 ms]
[191772 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-02-03T18:08:39.389733267Z}" != '2023-02-03T18:08:39.389733267Z' ] && echo '2023-02-03T18:08:39.389733267Z' > '/home/vscode/.devcontainer/.updateContentCommandMarker'
[191793 ms]
[191793 ms]
[191801 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-02-03T18:08:39.389733267Z}" != '2023-02-03T18:08:39.389733267Z' ] && echo '2023-02-03T18:08:39.389733267Z' > '/home/vscode/.devcontainer/.postCreateCommandMarker'
[191876 ms]
[191876 ms]
Running the postCreateCommand from devcontainer.json...
[191886 ms] Start: Run in container: /bin/sh -c sh ./.devcontainer/post-create.sh
[191965 ms] [18:09:02] [127.0.0.1][5fd6116f][ExtensionHostConnection] New connection established.
[192012 ms] [18:09:02] [127.0.0.1][5fd6116f][ExtensionHostConnection] <467> Launched Extension Host Process.
sh: 0: cannot open ./.devcontainer/post-create.sh: No such file
[192493 ms] postCreateCommand failed with exit code 2. Skipping any further user-provided commands.
[192491 ms] Error: Command failed: /bin/sh -c sh ./.devcontainer/post-create.sh
[192492 ms] at vN (/root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js:1708:130)
[192493 ms] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[192493 ms] at async Promise.all (index 0)
[192494 ms] at async xg (/root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js:1700:3617)
[192494 ms] at async Sg (/root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js:1700:2831)
[192494 ms] at async hoe (/root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js:2045:35947)
[192495 ms] at async foe (/root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js:2045:33270)
[192641 ms] Exit code 1
[192643 ms] Start: Run: docker rm -f e1283d348e60bb9cd987de0a3af4bf36cdea5712bbb4101a01540e40fd653a9c
[192648 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.275.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --container-session-data-folder tmp/devcontainers-1249c958-f2ad-43e2-87df-8737df6807071675447548173 --workspace-folder /workspaces/jekyll-2 --id-label vsc.devcontainer.volume.name=jekyll-2 --id-label vsc.devcontainer.volume.folder=jekyll-2 --id-label devcontainer.config_file=/workspaces/jekyll-2/.devcontainer/devcontainer.json --container-id e21b629d2185926c19efc9f72e2c3d01094f901a9549652239625afd4f885d73 --log-level debug --log-format json --config /workspaces/jekyll-2/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-e1233a0f-cac4-4f77-be2b-7ceca71b01e1.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-b3133f5f530042941f8f42d666d0e6cf94ca40fb.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-b3133f5f530042941f8f42d666d0e6cf94ca40fb.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 171 --terminal-rows 29
[193323 ms] Installing extension 'rebornix.ruby'...
[193337 ms] Installing extension 'dbaeumer.vscode-eslint'...
[18:09:03] Getting Manifest... rebornix.ruby
[18:09:03] Getting Manifest... dbaeumer.vscode-eslint
[193543 ms] [18:09:04] Installing extension: rebornix.ruby
[193548 ms] [18:09:04] Installing extension: dbaeumer.vscode-eslint
[194572 ms] [18:09:04] Getting Manifest... wingrunr21.vscode-ruby
[195035 ms] [18:09:05] Installing extension: wingrunr21.vscode-ruby rebornix.ruby
[195222 ms] [18:09:05] Extracted extension to /home/vscode/.vscode-server/extensions/.2bf673f3-5a4b-430a-bfa9-ed09fc729fde: dbaeumer.vscode-eslint
[195465 ms] [18:09:05] Renamed to /home/vscode/.vscode-server/extensions/dbaeumer.vscode-eslint-2.2.6
[18:09:05] Extracting completed. dbaeumer.vscode-eslint
[18:09:05] Extension installed successfully: dbaeumer.vscode-eslint
Extension 'dbaeumer.vscode-eslint' v2.2.6 was successfully installed.
[195760 ms] [18:09:06] Extracted extension to /home/vscode/.vscode-server/extensions/.1b96f623-7f55-4beb-9c9b-804e48f452cd: wingrunr21.vscode-ruby
[195777 ms] [18:09:06] Renamed to /home/vscode/.vscode-server/extensions/wingrunr21.vscode-ruby-0.28.0
[195797 ms] [18:09:06] Extracting completed. wingrunr21.vscode-ruby
[196832 ms] [18:09:07] Extracted extension to /home/vscode/.vscode-server/extensions/.47684236-81f9-41db-bce6-265bf22591c0: rebornix.ruby
[18:09:07] Renamed to /home/vscode/.vscode-server/extensions/rebornix.ruby-0.28.1
[18:09:07] Extracting completed. rebornix.ruby
[18:09:07] Extension installed successfully: wingrunr21.vscode-ruby
[18:09:07] Extension installed successfully: rebornix.ruby
Extension 'rebornix.ruby' v0.28.1 was successfully installed.
Would you prefer that I open a separate issue for this?
I wasn't able to reproduce the error.
@tudortimi Do you mind removing the jekyll image that might be present locally and then retrying?
I wonder if this is because of image caching 🤔
./.devcontainer/post-create.sh
might also come from an older image before the changes in https://github.com/devcontainers/images/pull/390 were released.
I cleaned all images and recreated the container, then it worked. Great instincts!
Awesome, closing as completed. 🎉
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Reported by @tudortimi in https://github.com/microsoft/vscode-remote-release/issues/7948:
The command will create a
devcontainer.json
with the following content:and a
post-create.sh
:Newer versions of the Jekyll dev container already contain the settings for
postCreateCommand
(and in port forwarding) - the entry in the JSON and the script. The generated setup results in thebundler
commands being executed twice.