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.62k stars 279 forks source link

Git unshallow lock file is held indefinitely #5353

Closed leighmcculloch closed 2 years ago

leighmcculloch commented 3 years ago

I've noticed recently that after checking out some repositories the .git/shallow.lock file exists for a long time, indefinitely, as if the background git fetch --unshallow process is failing or erroring and leaving the file around.

I can see the following log lines in the container logs:

[7947 ms] Start: Run in container: git fetch --unshallow --tags
remote: Enumerating objects: 53164, done.
remote: Counting objects: 100% (53164/53164), done.

I don't see any errors.

When I run ps aux | grep git in the container the fetch command is no longer running.

When I run docker ps locally to see if there are any other containers running linked to the volume running that command, I don't see any.

I discovered this because my master branch is shallow, and when trying to fetch it with the unshallow option, it is erroring saying the lock file exists.

leighmcculloch commented 3 years ago

Note that in all the cases this has happened to me if I delete the .git/unshallow.lock file and manually run git fetch --unshallow the command finishes very quickly. So this doesn't appear to be a case where the unshallow is taking too long.

leighmcculloch commented 3 years ago

If the git fetch --unshallow --tags is running in the background of the container that sets up the volume, is it possible that the container is stopping or being shutdown without waiting for the fetch to complete?

chrmarti commented 3 years ago

We are running the command in the background, but not 'detached', so it would be terminated if you quickly reloaded or closed the window.

leighmcculloch commented 3 years ago

I'm not closing or reloading the window, the window is staying open.

chrmarti commented 3 years ago

The output you posted above is truncated, I guess Git crashed. The full output would be something like (omitting the list of tags at the end):

remote: Enumerating objects: 1130466, done.
remote: Counting objects: 100% (1130462/1130462), done.
remote: Compressing objects: 100% (282100/282100), done.
remote: Total 1126656 (delta 812958), reused 1118996 (delta 805378), pack-reused 0
Receiving objects: 100% (1126656/1126656), 360.93 MiB | 24.27 MiB/s, done.
Resolving deltas: 100% (812958/812958), completed with 2639 local objects.
From https://github.com/microsoft/vscode
[...]

Does this always happen? Do you have enough free disk space? (Check with df -H inside the container.)

leighmcculloch commented 3 years ago

This is happening consistently. According to df -H my container has plenty of space:

Filesystem      Size  Used Avail Use% Mounted on
overlay          63G   25G   35G  42% /
tmpfs            68M     0   68M   0% /dev
tmpfs           4.2G     0  4.2G   0% /sys/fs/cgroup
shm              68M     0   68M   0% /dev/shm
/dev/vda1        63G   25G   35G  42% /workspaces
tmpfs           4.2G     0  4.2G   0% /proc/acpi
tmpfs           4.2G     0  4.2G   0% /sys/firmware

This replicates consistently if you clone this repositories master branch: https://github.com/leighmcculloch/stellar--stellar-core

Same thing happens if you clone the parent repository too: https://github.com/stellar/stellar-core

Sometimes the output is even briefer, where there is no output after the git fetch call.

[6859 ms] Start: Run in container: git fetch --unshallow --tags
Container started
leighmcculloch commented 3 years ago

Note that deleting the .git/shallow.lock file and running the command manually is fast, completing in a second at most on this repository, so I don't think it's an issue of it being a large repo and the command is getting stuck on a scale issue.

leighmcculloch commented 3 years ago

I've tried checking out the same repos on a different machine running the same OS (macOS), same version of VSCode (1.58.2), same extensions, same version of Docker for Mac, and the fetch works. 🤔

What's the best way for me to debug why the git process is failing other than the dev container logs? Is there anyway to get verbose logs that will print out things like the exit code, etc?

chrmarti commented 3 years ago

Non-zero exit codes are shown. You can set the log level for Remote-Containers to trace in the user settings: image

That will add 'stop' logs for when the commands stopped among other things. Maybe that will give us a hint. Could attach the full log of a run reproducing the problem?

leighmcculloch commented 3 years ago

I have full logs here I can share. Interestingly after attempting repeatedly on both the computer that fails every time and the computer I saw it working fine, the computer that was working also had some failures. This appears to be intermittent.

The zoomed in logs with trace enabled are:

[9106 ms] Start: Run in container: git fetch --unshallow --tags
remote: Enumerating objects: 53476, done.
remote: Counting objects: 100% (53476/53476), done.
[11518 ms] Stop (2412 ms): Run in container: git fetch --unshallow --tags

The full logs are here:

Full logs ``` [176 ms] Remote-Containers 0.187.1 in VS Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3). [175 ms] Start: Resolving Remote [180 ms] Start: Check Docker is running [180 ms] Start: Run: docker version --format {{.Server.APIVersion}} [364 ms] Stop (184 ms): Run: docker version --format {{.Server.APIVersion}} [364 ms] Server API version: 1.41 [364 ms] Stop (184 ms): Check Docker is running [365 ms] Start: Run: docker volume ls -q [531 ms] Stop (166 ms): Run: docker volume ls -q [532 ms] Start: Run: docker volume create --label vsch.local.repository=https://github.com/leighmcculloch/stellar--stellar-core.git/tree/master --label vsch.local.repository.unique=true --label vsch.local.repository.branch=master stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4 [746 ms] Stop (214 ms): Run: docker volume create --label vsch.local.repository=https://github.com/leighmcculloch/stellar--stellar-core.git/tree/master --label vsch.local.repository.unique=true --label vsch.local.repository.branch=master stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4 [746 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/leighmcculloch/stellar--stellar-core.git/tree/master --filter label=vsch.local.repository.volume=stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4 --filter label=vsch.local.repository.folder=stellar--stellar-core --filter label=vsch.quality=stable [919 ms] Stop (173 ms): Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/leighmcculloch/stellar--stellar-core.git/tree/master --filter label=vsch.local.repository.volume=stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4 --filter label=vsch.local.repository.folder=stellar--stellar-core --filter label=vsch.quality=stable [920 ms] Start: Run: docker build -f /Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/scripts/volumeBootstrap.Dockerfile -t vsc-volume-bootstrap /Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/scripts [+] Building 1.3s (7/7) FINISHED => [internal] load build definition from volumeBootstrap.Dockerfile 0.0s => => transferring dockerfile: 52B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/alpine:3.13.2 1.2s => [auth] library/alpine:pull token for registry-1.docker.io 0.0s => [1/2] FROM docker.io/library/alpine:3.13.2@sha256:a75afd8b57e7f34e4dad8d65e2c7ba2e1975c795ce1ee22fa34f 0.0s => CACHED [2/2] RUN apk add --no-cache nodejs git openssh-client docker-cli docker-compose ; 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:912b476a3386b740d061e6428ec7c02713bb0e2be9cb677b2d6e63665360faff 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 [3765 ms] Stop (2845 ms): Run: docker build -f /Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/scripts/volumeBootstrap.Dockerfile -t vsc-volume-bootstrap /Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/scripts [3766 ms] Cloning Github repository: leighmcculloch/stellar--stellar-core into /workspaces/stellar--stellar-core [3766 ms] Start: Run: docker run -d --mount type=volume,src=stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity [4635 ms] Stop (869 ms): Run: docker run -d --mount type=volume,src=stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity [4636 ms] Start: Run in container: /bin/sh [4637 ms] Start: Launching Remote-Containers helper. [4639 ms] Start: Run: gpgconf --list-dir agent-extra-socket [4640 ms] Stop (1 ms): Run: gpgconf --list-dir agent-extra-socket [4641 ms] Stop (4 ms): Launching Remote-Containers helper. [4641 ms] Stop (2 ms): Run: gpgconf --list-dir agent-extra-socket [4642 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-1550aa80b3a9086252077c01b2bbc8740deee06e.js' >/tmp/vscode-remote-containers-1550aa80b3a9086252077c01b2bbc8740deee06e.js [4963 ms] [4964 ms] [4964 ms] Stop (322 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-1550aa80b3a9086252077c01b2bbc8740deee06e.js' >/tmp/vscode-remote-containers-1550aa80b3a9086252077c01b2bbc8740deee06e.js [4964 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-1550aa80b3a9086252077c01b2bbc8740deee06e.js' >/tmp/vscode-remote-containers-server-1550aa80b3a9086252077c01b2bbc8740deee06e.js [4977 ms] [4977 ms] [4977 ms] Stop (13 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-1550aa80b3a9086252077c01b2bbc8740deee06e.js' >/tmp/vscode-remote-containers-server-1550aa80b3a9086252077c01b2bbc8740deee06e.js [4977 ms] Start: Run in container: node /tmp/vscode-remote-containers-server-1550aa80b3a9086252077c01b2bbc8740deee06e.js [4980 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { node /tmp/vscode-remote-containers-1550aa80b3a9086252077c01b2bbc8740deee06e.js $*; }; f' || true [4993 ms] [4993 ms] [4993 ms] Stop (13 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { node /tmp/vscode-remote-containers-1550aa80b3a9086252077c01b2bbc8740deee06e.js $*; }; f' || true [4994 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh [4998 ms] [4998 ms] [4998 ms] Stop (4 ms): Run in container: # Test for /root/.ssh/known_hosts and ssh [4999 ms] Start: Run in container: # Copy /Users/leighmcculloch/.ssh/known_hosts to /root/.ssh/known_hosts [5003 ms] [5004 ms] [5004 ms] Stop (5 ms): Run in container: # Copy /Users/leighmcculloch/.ssh/known_hosts to /root/.ssh/known_hosts [5585 ms] Start: Run in container: git clone --depth 1 --branch master https://github.com/leighmcculloch/stellar--stellar-core.git . Cloning into '.'... remote: Enumerating objects: 911, done. remote: Counting objects: 100% (911/911), done. remote: Compressing objects: 100% (853/853), done. remote: Total 911 (delta 136), reused 361 (delta 46), pack-reused 0 Receiving objects: 100% (911/911), 5.02 MiB | 5.17 MiB/s, done. Resolving deltas: 100% (136/136), done. [8389 ms] Stop (2804 ms): Run in container: git clone --depth 1 --branch master https://github.com/leighmcculloch/stellar--stellar-core.git . [8720 ms] Start: Run in container: cat /workspaces/stellar--stellar-core/.devcontainer/devcontainer.json 2>/dev/null [8723 ms] Stop (3 ms): Run in container: cat /workspaces/stellar--stellar-core/.devcontainer/devcontainer.json 2>/dev/null [8725 ms] Start: Run in container: cat /workspaces/stellar--stellar-core/.devcontainer/devcontainer.json 2>/dev/null [8727 ms] Stop (2 ms): Run in container: cat /workspaces/stellar--stellar-core/.devcontainer/devcontainer.json 2>/dev/null [8729 ms] Start: Run in container: test -f /workspaces/stellar--stellar-core/.devcontainer/Dockerfile [8732 ms] [8732 ms] [8732 ms] Stop (3 ms): Run in container: test -f /workspaces/stellar--stellar-core/.devcontainer/Dockerfile [8732 ms] Start: Run: docker exec -t 87bf3093e9a97a2898d2feada4884348de523b4e91827d3a01fc6e8e86228bc3 docker build -f /workspaces/stellar--stellar-core/.devcontainer/Dockerfile -t vsc-stellar--stellar-core-3b600b1aee5af2d6cc9f6229fc023fd4 --build-arg APT_MIRROR= /workspaces/stellar--stellar-core/.devcontainer [+] Building 1.0s (14/14) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 3.36kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/ubuntu:focal 0.8s => [ 1/10] FROM docker.io/library/ubuntu:focal@sha256:b3e2e47d016c08b3396b5ebe06ab0b711c34e7f37b98c9d37abe794b71cea0a2 0.0s => CACHED [ 2/10] RUN apt-get update && apt-get -y install --no-install-recommends apt-utils dialog ca-certificates 2>&1 0.0s => CACHED [ 3/10] RUN if [ ! -z "" ]; then sed -i -e "s|http://archive.ubuntu.com/ubuntu/||" -e "s|http://security.ubuntu.com/ubun 0.0s => CACHED [ 4/10] RUN apt-get update && apt-get -y install iproute2 procps lsb-release && groupadd --gid 1000 vscode && useradd -s /bin/ba 0.0s => CACHED [ 5/10] RUN apt-get -y install git build-essential pkg-config autoconf automake libtool bison flex libpq-dev parallel libunwind-dev 0.0s => CACHED [ 6/10] RUN apt-get -y install libstdc++-8-dev clang-format-10 ccache 0.0s => CACHED [ 7/10] RUN apt-get -y install cpp-8 gcc-8 g++-8 0.0s => CACHED [ 8/10] RUN apt-get -y install clang-10 llvm-10 0.0s => CACHED [ 9/10] RUN apt-get -y install postgresql 0.0s => CACHED [10/10] RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:e8a297fab3a9e340b8714469f0df7c3168fd80a7244383e3da88f510aaf97d6b 0.0s => => naming to docker.io/library/vsc-stellar--stellar-core-3b600b1aee5af2d6cc9f6229fc023fd4 0.0s [11158 ms] Stop (2426 ms): Run: docker exec -t 87bf3093e9a97a2898d2feada4884348de523b4e91827d3a01fc6e8e86228bc3 docker build -f /workspaces/stellar--stellar-core/.devcontainer/Dockerfile -t vsc-stellar--stellar-core-3b600b1aee5af2d6cc9f6229fc023fd4 --build-arg APT_MIRROR= /workspaces/stellar--stellar-core/.devcontainer [11158 ms] Start: Run: docker rm -f 87bf3093e9a97a2898d2feada4884348de523b4e91827d3a01fc6e8e86228bc3 [11160 ms] Start: Run: docker events --format {{json .}} --filter event=start [11161 ms] Start: Starting container [11161 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=volume,src=stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4,dst=/workspaces --mount type=volume,src=vscode,dst=/vscode -l vsch.local.repository=https://github.com/leighmcculloch/stellar--stellar-core.git/tree/master -l vsch.local.repository.volume=stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4 -l vsch.local.repository.folder=stellar--stellar-core -l vsch.quality=stable -l vsch.remote.devPort=0 --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -u vscode --entrypoint /bin/sh vsc-stellar--stellar-core-3b600b1aee5af2d6cc9f6229fc023fd4 -c echo Container started [11517 ms] Stop (6540 ms): Run in container: node /tmp/vscode-remote-containers-server-1550aa80b3a9086252077c01b2bbc8740deee06e.js [11517 ms] Remote-Containers server terminated (code: 137, signal: null). [11517 ms] Stop (6881 ms): Run in container: /bin/sh [8390 ms] Start: Run in container: git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* [9106 ms] Stop (716 ms): Run in container: git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* [9106 ms] Start: Run in container: git fetch --unshallow --tags remote: Enumerating objects: 53476, done. remote: Counting objects: 100% (53476/53476), done. [11518 ms] Stop (2412 ms): Run in container: git fetch --unshallow --tags [11671 ms] Stop (513 ms): Run: docker rm -f 87bf3093e9a97a2898d2feada4884348de523b4e91827d3a01fc6e8e86228bc3 Container started [12098 ms] Log: startEventSeen#data {"status":"start","id":"8473422fa3a759d7939ab98900cb5d6a95d7602b73bdba4534d7ea7090de98f0","from":"vsc-stellar--stellar-core-3b600b1aee5af2d6cc9f6229fc023fd4","Type":"container","Action":"start","Actor":{"ID":"8473422fa3a759d7939ab98900cb5d6a95d7602b73bdba4534d7ea7090de98f0","Attributes":{"image":"vsc-stellar--stellar-core-3b600b1aee5af2d6cc9f6229fc023fd4","name":"interesting_hertz","vsch.local.repository":"https://github.com/leighmcculloch/stellar--stellar-core.git/tree/master","vsch.local.repository.folder":"stellar--stellar-core","vsch.local.repository.volume":"stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4","vsch.quality":"stable","vsch.remote.devPort":"0"}},"scope":"local","time":1627167709,"timeNano":1627167709562805100} [12098 ms] Stop (937 ms): Starting container [12098 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/leighmcculloch/stellar--stellar-core.git/tree/master --filter label=vsch.local.repository.volume=stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4 --filter label=vsch.local.repository.folder=stellar--stellar-core --filter label=vsch.quality=stable [12254 ms] Stop (156 ms): Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/leighmcculloch/stellar--stellar-core.git/tree/master --filter label=vsch.local.repository.volume=stellar--stellar-core-master-3b600b1aee5af2d6cc9f6229fc023fd4 --filter label=vsch.local.repository.folder=stellar--stellar-core --filter label=vsch.quality=stable [12254 ms] Start: Run: docker inspect --type container 8473422fa3a7 [12411 ms] Stop (157 ms): Run: docker inspect --type container 8473422fa3a7 [12412 ms] Start: Inspecting container [12412 ms] Start: Run: docker inspect --type container 8473422fa3a759d7939ab98900cb5d6a95d7602b73bdba4534d7ea7090de98f0 [12568 ms] Stop (156 ms): Run: docker inspect --type container 8473422fa3a759d7939ab98900cb5d6a95d7602b73bdba4534d7ea7090de98f0 [12569 ms] Stop (157 ms): Inspecting container [12569 ms] Start: Run in container: /bin/sh [12570 ms] Start: Run in container: uname -m [12820 ms] x86_64 [12820 ms] [12820 ms] Stop (250 ms): Run in container: uname -m [12820 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [12824 ms] NAME="Ubuntu" VERSION="20.04.2 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.2 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal [12824 ms] [12824 ms] Stop (4 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [12824 ms] Start: Run in container: cat /etc/passwd [12827 ms] Stop (3 ms): Run in container: cat /etc/passwd [12828 ms] Start: Run in container: /bin/sh [12829 ms] Start: Run in container: stat -c %u /workspaces/stellar--stellar-core [13106 ms] 0 [13106 ms] [13106 ms] Stop (277 ms): Run in container: stat -c %u /workspaces/stellar--stellar-core [13106 ms] Start: Run in container: chown vscode:1000 /workspaces [13111 ms] [13111 ms] [13111 ms] Stop (5 ms): Run in container: chown vscode:1000 /workspaces [13111 ms] Start: Run in container: chown -R vscode:1000 /workspaces/stellar--stellar-core [13117 ms] [13118 ms] [13118 ms] Stop (7 ms): Run in container: chown -R vscode:1000 /workspaces/stellar--stellar-core [13118 ms] Start: Updating configuration state [13119 ms] Start: Run in container: cat /workspaces/stellar--stellar-core/.devcontainer/Dockerfile [13121 ms] #------------------------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. #------------------------------------------------------------------------------------------------------------- FROM ubuntu:focal # Avoid warnings by switching to noninteractive ENV DEBIAN_FRONTEND=noninteractive # This Dockerfile adds a non-root 'vscode' user with sudo access. However, for Linux, # this user's GID/UID must match your local user UID/GID to avoid permission issues # with bind mounts. Update USER_UID / USER_GID if yours is not 1000. See # https://aka.ms/vscode-remote/containers/non-root-user for details. ARG USERNAME=vscode ARG USER_UID=1000 ARG USER_GID=$USER_UID # setup apt / certificates RUN apt-get update \ && apt-get -y install --no-install-recommends apt-utils dialog ca-certificates 2>&1 # use apt mirror instead of default archives if specified # to use, specify the build arg or as an env var on the host machine # e.g.: # mirror://mirrors.ubuntu.com/mirrors.txt # mirror://mirrors.ubuntu.com/.txt # http://.archive.ubuntu.com/ubuntu/ # http://.ec2.archive.ubuntu.com/ubuntu ARG APT_MIRROR= RUN if [ ! -z "${APT_MIRROR}" ]; then \ sed -i \ -e "s|http://archive.ubuntu.com/ubuntu/|${APT_MIRROR}|" \ -e "s|http://security.ubuntu.com/ubuntu/|${APT_MIRROR}|" \ /etc/apt/sources.list \ ; fi \ ; grep "^[^#;]" /etc/apt/sources.list # install base container packages and prep for VSCode RUN apt-get update \ # Verify process tools, lsb-release (common in install instructions for CLIs) installed && apt-get -y install iproute2 procps lsb-release \ # # Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user. && groupadd --gid $USER_GID $USERNAME \ && useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \ # [Optional] Add sudo support for the non-root user && apt-get install -y sudo \ && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\ && chmod 0440 /etc/sudoers.d/$USERNAME # Add test tool chain # NOTE: newer version of the compilers are not # provided by stock distributions # and are provided by the /test toolchain # RUN apt-get -y install software-properties-common \ # && add-apt-repository ppa:ubuntu-toolchain-r/test \ # && apt-get update # Install common compilation tools RUN apt-get -y install git build-essential pkg-config autoconf automake libtool bison flex libpq-dev parallel libunwind-dev # Update compiler tools RUN apt-get -y install libstdc++-8-dev clang-format-10 ccache # gcc RUN apt-get -y install cpp-8 gcc-8 g++-8 # clang RUN apt-get -y install clang-10 llvm-10 # clang by default ENV CC=clang-10 ENV CXX=clang++-10 # Install postgresql to enable tests under make check RUN apt-get -y install postgresql # Set up locale RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ && locale-gen ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 # Switch back to dialog for any ad-hoc use of apt-get ENV DEBIAN_FRONTEND= [13121 ms] [13121 ms] Stop (2 ms): Run in container: cat /workspaces/stellar--stellar-core/.devcontainer/Dockerfile [13122 ms] Stop (4 ms): Updating configuration state [13122 ms] Start: Setup shutdown monitor [13123 ms] Forking shutdown monitor: /Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/dist/shutdown/shutdownMonitorProcess /var/folders/63/pqms5lmj1ys9wqt171l2y6xr0000gn/T/vscode-remote-containers-f79311866617bbc12c394cbd7f6e06e177d16fd8.sock singleContainer Trace /Users/leighmcculloch/Library/Application Support/Code/logs/20210724T153445/exthost5/ms-vscode-remote.remote-containers 1627167697433 [13124 ms] Stop (2 ms): Setup shutdown monitor [13125 ms] Start: Run in container: test -d /home/vscode/.vscode-server [13127 ms] [13128 ms] [13128 ms] Exit code 1 [13128 ms] Stop (3 ms): Run in container: test -d /home/vscode/.vscode-server [13129 ms] Start: Run in container: test -d /home/vscode/.vscode-remote [13147 ms] [13147 ms] [13147 ms] Exit code 1 [13147 ms] Stop (18 ms): Run in container: test -d /home/vscode/.vscode-remote [13147 ms] Start: Run in container: test -f /var/vscode-server/.patchEtcEnvironmentMarker [13151 ms] [13151 ms] [13151 ms] Exit code 1 [13152 ms] Stop (5 ms): Run in container: test -f /var/vscode-server/.patchEtcEnvironmentMarker [13152 ms] Start: Run in container: test ! -f '/var/vscode-server/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/vscode-server' && { > '/var/vscode-server/.patchEtcEnvironmentMarker' ; } 2> /dev/null [13157 ms] [13157 ms] [13157 ms] Stop (5 ms): Run in container: test ! -f '/var/vscode-server/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/vscode-server' && { > '/var/vscode-server/.patchEtcEnvironmentMarker' ; } 2> /dev/null [13157 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF' [13166 ms] [13166 ms] [13166 ms] Stop (9 ms): Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF' [13166 ms] Start: Run in container: test -f /var/vscode-server/.patchEtcProfileMarker [13169 ms] [13169 ms] [13169 ms] Exit code 1 [13169 ms] Stop (3 ms): Run in container: test -f /var/vscode-server/.patchEtcProfileMarker [13169 ms] Start: Run in container: test ! -f '/var/vscode-server/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/vscode-server' && { > '/var/vscode-server/.patchEtcProfileMarker' ; } 2> /dev/null [13177 ms] [13177 ms] [13177 ms] Stop (8 ms): Run in container: test ! -f '/var/vscode-server/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/vscode-server' && { > '/var/vscode-server/.patchEtcProfileMarker' ; } 2> /dev/null [13178 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true [13188 ms] [13189 ms] [13189 ms] Stop (11 ms): Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true [13189 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 [13194 ms] [13194 ms] [13194 ms] Stop (5 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 [13195 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && cat >'/home/vscode/.vscode-server/data/Machine/settings.json' <<'settingsJSON' [13201 ms] [13201 ms] [13201 ms] Stop (6 ms): Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && cat >'/home/vscode/.vscode-server/data/Machine/settings.json' <<'settingsJSON' [13202 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3 [13204 ms] [13204 ms] [13204 ms] Exit code 1 [13204 ms] Stop (2 ms): Run in container: test -d /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3 [13204 ms] Start: Run in container: test -d /vscode/vscode-server/bin/x64/c3f126316369cd610563c75b1b1725e0679adfb3 [13210 ms] [13210 ms] [13210 ms] Stop (6 ms): Run in container: test -d /vscode/vscode-server/bin/x64/c3f126316369cd610563c75b1b1725e0679adfb3 [13210 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/bin' && ln -s '/vscode/vscode-server/bin/x64/c3f126316369cd610563c75b1b1725e0679adfb3' '/home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3' [13219 ms] [13219 ms] [13219 ms] Stop (9 ms): Run in container: mkdir -p '/home/vscode/.vscode-server/bin' && ln -s '/vscode/vscode-server/bin/x64/c3f126316369cd610563c75b1b1725e0679adfb3' '/home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3' [13220 ms] Start: Run in container: touch '/vscode/vscode-server/bin/x64/c3f126316369cd610563c75b1b1725e0679adfb3' [13220 ms] Start: Launching Remote-Containers helper. [13220 ms] Start: Run: gpgconf --list-dir agent-extra-socket [13226 ms] Stop (6 ms): Run: gpgconf --list-dir agent-extra-socket [13226 ms] Stop (6 ms): Launching Remote-Containers helper. [13227 ms] userEnvProbe: loginInteractiveShell (default) [13227 ms] userEnvProbe shell: /bin/bash [13227 ms] [13227 ms] [13228 ms] Stop (8 ms): Run in container: touch '/vscode/vscode-server/bin/x64/c3f126316369cd610563c75b1b1725e0679adfb3' [13228 ms] Stop (8 ms): Run: gpgconf --list-dir agent-extra-socket [13228 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js' >/tmp/vscode-remote-containers-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js [13235 ms] [13236 ms] [13236 ms] Stop (8 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js' >/tmp/vscode-remote-containers-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js [13236 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh [13242 ms] [13243 ms] [13243 ms] Stop (7 ms): Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh [13243 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js' >/tmp/vscode-remote-containers-server-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js [13256 ms] [13256 ms] [13256 ms] Stop (13 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js' >/tmp/vscode-remote-containers-server-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js [13256 ms] Start: Run in container: # Copy /Users/leighmcculloch/.ssh/known_hosts to /home/vscode/.ssh/known_hosts [13257 ms] Start: Run in container: /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node /tmp/vscode-remote-containers-server-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js [13261 ms] Start: Run in container: /bin/bash -lic '/home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node' -p '"108d641d4611afdab58efe6e4daebae3" + JSON.stringify(process.env) + "108d641d4611afdab58efe6e4daebae3"' [13277 ms] [13277 ms] [13277 ms] Stop (21 ms): Run in container: # Copy /Users/leighmcculloch/.ssh/known_hosts to /home/vscode/.ssh/known_hosts [13277 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system credential.helper '!f() { /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node /tmp/vscode-remote-containers-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js $*; }; f' || true [13284 ms] [13284 ms] [13284 ms] Stop (7 ms): Run in container: command -v git >/dev/null 2>&1 && git config --system credential.helper '!f() { /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node /tmp/vscode-remote-containers-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js $*; }; f' || true [13284 ms] Start: Preparing Extensions [13285 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 [13291 ms] [13291 ms] [13291 ms] Stop (6 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 [13293 ms] Extensions cache, install extensions: streetsidesoftware.code-spell-checker, kahole.magit, mhutchie.git-graph, github.vscode-pull-request-github, eamodio.gitlens, ionutvmi.path-autocomplete, gruntfuggly.todo-tree [13293 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true [13297 ms] [13297 ms] [13297 ms] Stop (4 ms): Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true [13297 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [13305 ms] cschleiden.vscode-github-actions-0.20.3 eamodio.gitlens-11.6.0 github.vscode-pull-request-github-0.28.0 golang.go-0.26.0 gruntfuggly.todo-tree-0.0.213 ionutvmi.path-autocomplete-1.17.1 kahole.magit-0.6.18 mhutchie.git-graph-1.30.0 streetsidesoftware.code-spell-checker-1.10.2 [13305 ms] [13305 ms] Stop (8 ms): Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [13306 ms] Extensions cache, link in container: eamodio.gitlens-11.6.0, github.vscode-pull-request-github-0.28.0, gruntfuggly.todo-tree-0.0.213, ionutvmi.path-autocomplete-1.17.1, kahole.magit-0.6.18, mhutchie.git-graph-1.30.0, streetsidesoftware.code-spell-checker-1.10.2 [13306 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/extensionsCache' && ln -s '/vscode/vscode-server/extensionsCache'/* '/home/vscode/.vscode-server/extensionsCache' || true [13313 ms] [13314 ms] [13314 ms] Stop (8 ms): Run in container: mkdir -p '/home/vscode/.vscode-server/extensionsCache' && ln -s '/vscode/vscode-server/extensionsCache'/* '/home/vscode/.vscode-server/extensionsCache' || true [13314 ms] Stop (30 ms): Preparing Extensions [13314 ms] Start: Run in container: cd /vscode/vscode-server/extensionsCache && touch 'eamodio.gitlens-11.6.0' 'github.vscode-pull-request-github-0.28.0' 'gruntfuggly.todo-tree-0.0.213' 'ionutvmi.path-autocomplete-1.17.1' 'kahole.magit-0.6.18' 'mhutchie.git-graph-1.30.0' 'streetsidesoftware.code-spell-checker-1.10.2' [13315 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 " [13319 ms] [13319 ms] [13319 ms] Stop (5 ms): Run in container: cd /vscode/vscode-server/extensionsCache && touch 'eamodio.gitlens-11.6.0' 'github.vscode-pull-request-github-0.28.0' 'gruntfuggly.todo-tree-0.0.213' 'ionutvmi.path-autocomplete-1.17.1' 'kahole.magit-0.6.18' 'mhutchie.git-graph-1.30.0' 'streetsidesoftware.code-spell-checker-1.10.2' [13389 ms] Starting monitor process... [13413 ms] Received message: [{"type":"configure","sequence":0,"options":{"cwd":"/","dockerCLI":"docker","env":{"ELECTRON_RUN_AS_NODE":"1","USER":"leighmcculloch","__CFBundleIdentifier":"com.microsoft.VSCode","COMMAND_MODE":"unix2003","LOGNAME":"leighmcculloch","PATH":"[REDACTED]","SSH_AUTH_SOCK":"[REDACTED]","SHELL":"/bin/zsh","HOME":"/Users/leighmcculloch","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","TMPDIR":"/var/folders/63/pqms5lmj1ys9wqt171l2y6xr0000gn/T/","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.4425569.4425575","XPC_FLAGS":"0x0","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","VSCODE_CWD":"/","VSCODE_BROWSER_CODE_LOADING":"bypassHeatCheck","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_CODE_CACHE_PATH":"/Users/leighmcculloch/Library/Application Support/Code/CachedData/c3f126316369cd610563c75b1b1725e0679adfb3","VSCODE_IPC_HOOK":"/Users/leighmcculloch/Library/Application Support/Code/1.58.2-main.sock","VSCODE_PID":"16712","SHLVL":"0","PWD":"/","OLDPWD":"/","_":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron","VSCODE_AMD_ENTRYPOINT":"vs/workbench/services/extensions/node/extensionHostProcess","VSCODE_PIPE_LOGGING":"true","VSCODE_VERBOSE_LOGGING":"true","VSCODE_LOG_NATIVE":"false","VSCODE_IPC_HOOK_EXTHOST":"/var/folders/63/pqms5lmj1ys9wqt171l2y6xr0000gn/T/vscode-ipc-801e2e0d-379e-4e54-867a-bca2799173e9.sock","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_LOG_STACK":"false","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","DISPLAY":"1","SSH_ASKPASS":"/Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/scripts/ssh-askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)","VSCODE_SSH_ASKPASS_MAIN":"/Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/dist/common/sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"[REDACTED]","DOCKER_CONTEXT":"default"},"containerId":"8473422fa3a759d7939ab98900cb5d6a95d7602b73bdba4534d7ea7090de98f0","user":"vscode","sessionId":"[REDACTED]","logLevel":1,"delay":10000}}] [13420 ms] Stop (105 ms): 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 " [13422 ms] Start: Starting VS Code Server [13422 ms] Start: Run in container: /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/server.sh --log trace --force-disable-user-env --use-host-proxy --port 0 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension streetsidesoftware.code-spell-checker --install-extension kahole.magit --install-extension mhutchie.git-graph --install-extension github.vscode-pull-request-github --install-extension eamodio.gitlens --install-extension ionutvmi.path-autocomplete --install-extension gruntfuggly.todo-tree --start-server --disable-websocket-compression [13789 ms] * * Visual Studio Code Server * * Reminder: You may only use this software with Visual Studio family products, * as described in the license https://aka.ms/vscode-remote/license * Extension host agent listening on 33041 [13789 ms] Stop (367 ms): Starting VS Code Server [13789 ms] Start: Run in container: echo 33041 >'/home/vscode/.vscode-server/data/Machine/.devport-c3f126316369cd610563c75b1b1725e0679adfb3' [13791 ms] [13792 ms] [13792 ms] Stop (3 ms): Run in container: echo 33041 >'/home/vscode/.vscode-server/data/Machine/.devport-c3f126316369cd610563c75b1b1725e0679adfb3' [13792 ms] Port forwarding for container port 33041 starts listening on local port. [13792 ms] Port forwarding local port 33041 to container port 33041 [13793 ms] Stop (532 ms): Run in container: /bin/bash -lic '/home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node' -p '"108d641d4611afdab58efe6e4daebae3" + JSON.stringify(process.env) + "108d641d4611afdab58efe6e4daebae3"' [13793 ms] 108d641d4611afdab58efe6e4daebae3{"HOSTNAME":"8473422fa3a7","LANGUAGE":"en_US:en","REMOTE_CONTAINERS_IPC":"/tmp/vscode-remote-containers-ipc-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.sock","PWD":"/vscode/vscode-server/bin/x64/c3f126316369cd610563c75b1b1725e0679adfb3","CXX":"clang++-10","HOME":"/home/vscode","LANG":"en_US.UTF-8","LS_COLORS":"","LESSCLOSE":"/usr/bin/lesspipe %s %s","REMOTE_CONTAINERS_SOCKETS":"[\"/tmp/vscode-ssh-auth-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.sock\"]","LESSOPEN":"| /usr/bin/lesspipe %s","SHLVL":"0","LC_ALL":"en_US.UTF-8","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","CC":"clang-10","DEBIAN_FRONTEND":"","_":"/home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node"}108d641d4611afdab58efe6e4daebae3 [13793 ms] bash: cannot set terminal process group (112): Inappropriate ioctl for device bash: no job control in this shell [13793 ms] userEnvProbe parsed: { "HOSTNAME": "8473422fa3a7", "LANGUAGE": "en_US:en", "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.sock", "PWD": "/vscode/vscode-server/bin/x64/c3f126316369cd610563c75b1b1725e0679adfb3", "CXX": "clang++-10", "HOME": "/home/vscode", "LANG": "en_US.UTF-8", "LS_COLORS": "", "LESSCLOSE": "/usr/bin/lesspipe %s %s", "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.sock\"]", "LESSOPEN": "| /usr/bin/lesspipe %s", "SHLVL": "0", "LC_ALL": "en_US.UTF-8", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "CC": "clang-10", "DEBIAN_FRONTEND": "", "_": "/home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node" } [13794 ms] userEnvProbe PATHs: Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' [13794 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' ; } 2> /dev/null [13798 ms] [13799 ms] [13799 ms] Stop (5 ms): Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' ; } 2> /dev/null [13799 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' ; } 2> /dev/null [13804 ms] [13804 ms] [13804 ms] Stop (5 ms): Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' ; } 2> /dev/null [13804 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null [13807 ms] Stop (13632 ms): Resolving Remote [13809 ms] [13810 ms] [13810 ms] Stop (6 ms): Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null [13810 ms] Start: Run in container: # Clone & install dotfiles [13816 ms] Cloning into '/home/vscode/dotfiles'... [13829 ms] Port forwarding connection from 56828 > 33041 > 33041 in the container. [13833 ms] Start: Run in container: /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node -e [13988 ms] Port forwarding process for 56828 > 33041 > 33041 in the container: [ { "pid": 16716, "ppid": 16712, "uid": 501, "gid": 20, "name": "Visual Studio Code", "bin": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code", "cmd": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=1718379636,6344439345956400702,2073395849390375247,131072 --enable-features=WebComponentsV0Enabled --disable-features=CertVerifierService,CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --lang=en-US --service-sandbox-type=network --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --seatbelt-client=43" } ] [14271 ms] [23:01:51] Extension host agent started. [14300 ms] [23:01:51] Started scanning user extensions [14323 ms] Installing extensions... [14324 ms] [23:01:51] Started scanning user extensions [14337 ms] [23:01:51] Scanned user extensions: 0 [14502 ms] [23:01:51] Scanned user extensions: 0 [14537 ms] Port forwarding connection from 56846 > 33041 > 33041 in the container. [14539 ms] Start: Run in container: /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node -e [14566 ms] [23:01:51] RequestService#request https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery [14571 ms] [23:01:51] resolveShellEnv(): skipped (--force-disable-user-env) [14580 ms] [23:01:52] [::ffff:127.0.0.1][dccf0893][ManagementConnection] New connection established. [14596 ms] Port forwarding process for 56846 > 33041 > 33041 in the container: [ { "pid": 16716, "ppid": 16712, "uid": 501, "gid": 20, "name": "Visual Studio Code", "bin": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code", "cmd": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=1718379636,6344439345956400702,2073395849390375247,131072 --enable-features=WebComponentsV0Enabled --disable-features=CertVerifierService,CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --lang=en-US --service-sandbox-type=network --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --seatbelt-client=43" } ] [14649 ms] [23:01:52] Started scanning system extensions [14653 ms] [23:01:52] Started scanning user extensions [14653 ms] [23:01:52] Started scanning system extensions [23:01:52] Started scanning user extensions [23:01:52] Started scanning system extensions [14653 ms] [23:01:52] Started scanning user extensions [14654 ms] [23:01:52] Started scanning user extensions [14992 ms] Executing script /home/vscode/dotfiles/install-remote.sh [14997 ms] Linking /home/vscode/dotfiles/files/zshenv at /home/vscode/.zshenv... [15001 ms] Linking /home/vscode/dotfiles/files/zshrc at /home/vscode/.zshrc... [15001 ms] Linking /home/vscode/dotfiles/files/bash_profile at /home/vscode/.bash_profile... Linking /home/vscode/dotfiles/files/bashrc at /home/vscode/.bashrc... Linking /home/vscode/dotfiles/files/gitmessage at /home/vscode/.gitmessage... [15003 ms] Linking /home/vscode/dotfiles/files/gitignore_global at /home/vscode/.gitignore_global... [15008 ms] Linking /home/vscode/dotfiles/files/gitconfig at /home/vscode/.gitconfig... [15009 ms] Linking /home/vscode/dotfiles/files/tmux.conf at /home/vscode/.tmux.conf... Linking /home/vscode/dotfiles/files/tmux at /home/vscode/.tmux... [15012 ms] Linking /home/vscode/dotfiles/files/tigrc at /home/vscode/.tigrc... [15013 ms] Linking /home/vscode/dotfiles/files/vim at /home/vscode/.vim... [15018 ms] Creating directory /home/vscode/.config... [15023 ms] Linking /home/vscode/dotfiles/files/config/zls.json at /home/vscode/.config/zls.json... [15028 ms] Creating directory /home/vscode/.ssh... Linking /home/vscode/dotfiles/files/ssh/config at /home/vscode/.ssh/config... [15031 ms] Creating directory /home/vscode/.ssh... [15036 ms] Linking /home/vscode/dotfiles/files/ssh/known_hosts at /home/vscode/.ssh/known_hosts... [15037 ms] Creating directory /home/vscode/.gnupg... [15041 ms] Linking /home/vscode/dotfiles/files/gnupg/gpg-agent.conf at /home/vscode/.gnupg/gpg-agent.conf... [15042 ms] Linking /home/vscode/dotfiles/files/lazybin at /home/vscode/.lazybin... [15045 ms] Linking /home/vscode/dotfiles/files/scripts at /home/vscode/.scripts... [15063 ms] Cloning into '/home/vscode/.oh-my-zsh'... [15136 ms] Installing extension 'ionutvmi.path-autocomplete'... [15153 ms] Installing extension 'streetsidesoftware.code-spell-checker'... [15155 ms] Installing extension 'github.vscode-pull-request-github'... [15170 ms] Installing extension 'kahole.magit'... [15174 ms] Installing extension 'gruntfuggly.todo-tree'... [15177 ms] Installing extension 'mhutchie.git-graph'... [15207 ms] Installing extension 'eamodio.gitlens'... [15211 ms] [23:01:52] [::ffff:127.0.0.1][136eccba][ExtensionHostConnection] New connection established. [15219 ms] [23:01:52] [::ffff:127.0.0.1][136eccba][ExtensionHostConnection] <283> Launched Extension Host Process. [15296 ms] [23:01:52] Installing extension: ionutvmi.path-autocomplete [15299 ms] [23:01:52] Installing extension: streetsidesoftware.code-spell-checker [15300 ms] [23:01:52] Installing extension: github.vscode-pull-request-github [15300 ms] [23:01:52] Installing extension: kahole.magit [15300 ms] [23:01:52] Installing extension: gruntfuggly.todo-tree [15300 ms] [23:01:52] Installing extension: mhutchie.git-graph [15300 ms] [23:01:52] Installing extension: eamodio.gitlens [16439 ms] Received message: [{"type":"configure","sequence":1,"options":{"cwd":"/","dockerCLI":"docker","env":{"ELECTRON_RUN_AS_NODE":"1","USER":"leighmcculloch","__CFBundleIdentifier":"com.microsoft.VSCode","COMMAND_MODE":"unix2003","LOGNAME":"leighmcculloch","PATH":"[REDACTED]","SSH_AUTH_SOCK":"[REDACTED]","SHELL":"/bin/zsh","HOME":"/Users/leighmcculloch","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","TMPDIR":"/var/folders/63/pqms5lmj1ys9wqt171l2y6xr0000gn/T/","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.4425569.4425575","XPC_FLAGS":"0x0","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","VSCODE_CWD":"/","VSCODE_BROWSER_CODE_LOADING":"bypassHeatCheck","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_CODE_CACHE_PATH":"/Users/leighmcculloch/Library/Application Support/Code/CachedData/c3f126316369cd610563c75b1b1725e0679adfb3","VSCODE_IPC_HOOK":"/Users/leighmcculloch/Library/Application Support/Code/1.58.2-main.sock","VSCODE_PID":"16712","SHLVL":"0","PWD":"/","OLDPWD":"/","_":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron","VSCODE_AMD_ENTRYPOINT":"vs/workbench/services/extensions/node/extensionHostProcess","VSCODE_PIPE_LOGGING":"true","VSCODE_VERBOSE_LOGGING":"true","VSCODE_LOG_NATIVE":"false","VSCODE_IPC_HOOK_EXTHOST":"/var/folders/63/pqms5lmj1ys9wqt171l2y6xr0000gn/T/vscode-ipc-801e2e0d-379e-4e54-867a-bca2799173e9.sock","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_LOG_STACK":"false","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","DISPLAY":"1","SSH_ASKPASS":"/Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/scripts/ssh-askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)","VSCODE_SSH_ASKPASS_MAIN":"/Users/leighmcculloch/.vscode/extensions/ms-vscode-remote.remote-containers-0.187.1/dist/common/sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"[REDACTED]","DOCKER_CONTEXT":"default"},"containerId":"8473422fa3a759d7939ab98900cb5d6a95d7602b73bdba4534d7ea7090de98f0","user":"vscode","sessionId":"[REDACTED]","logLevel":1,"delay":10000}}] [17352 ms] Installing 'fzf' on first use... [17353 ms] Installing 'curl' on first use... [17419 ms] [23:01:54] Downloaded extension: kahole.magit /home/vscode/.vscode-server/extensionsCache/kahole.magit-0.6.18 [17425 ms] [23:01:54] Downloaded extension: ionutvmi.path-autocomplete /home/vscode/.vscode-server/extensionsCache/ionutvmi.path-autocomplete-1.17.1 [17431 ms] [23:01:54] Downloaded extension: gruntfuggly.todo-tree /home/vscode/.vscode-server/extensionsCache/gruntfuggly.todo-tree-0.0.213 [17432 ms] [23:01:54] Downloaded extension: github.vscode-pull-request-github /home/vscode/.vscode-server/extensionsCache/github.vscode-pull-request-github-0.28.0 [17441 ms] [23:01:54] Downloaded extension: streetsidesoftware.code-spell-checker /home/vscode/.vscode-server/extensionsCache/streetsidesoftware.code-spell-checker-1.10.2 [17445 ms] [23:01:54] Downloaded extension: mhutchie.git-graph /home/vscode/.vscode-server/extensionsCache/mhutchie.git-graph-1.30.0 [17449 ms] [23:01:54] Downloaded extension: eamodio.gitlens /home/vscode/.vscode-server/extensionsCache/eamodio.gitlens-11.6.0 [17766 ms] [23:01:55] Extracted extension to /home/vscode/.vscode-server/extensions/.60659923-1b47-47f0-ab66-5bf3707577f5: kahole.magit [17809 ms] Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] [17862 ms] [23:01:55] Renamed to /home/vscode/.vscode-server/extensions/kahole.magit-0.6.18 [17882 ms] [23:01:55] Installation completed. kahole.magit [17907 ms] [23:01:55] Extensions installed successfully: kahole.magit [17911 ms] Extension 'kahole.magit' v0.6.18 was successfully installed. [18203 ms] [23:01:55] Extracted extension to /home/vscode/.vscode-server/extensions/.c75efaf6-fa8b-41fe-8d02-1ccbfaf599d6: ionutvmi.path-autocomplete [18271 ms] [23:01:55] Renamed to /home/vscode/.vscode-server/extensions/ionutvmi.path-autocomplete-1.17.1 [18280 ms] Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease [18283 ms] [23:01:55] Installation completed. ionutvmi.path-autocomplete [18311 ms] [23:01:55] Extensions installed successfully: ionutvmi.path-autocomplete [18315 ms] Extension 'ionutvmi.path-autocomplete' v1.17.1 was successfully installed. [18398 ms] [23:01:55] Extracted extension to /home/vscode/.vscode-server/extensions/.7d680930-9d82-42a7-8d11-8d2b29a77c63: github.vscode-pull-request-github [18418 ms] Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] [18423 ms] [23:01:55] Renamed to /home/vscode/.vscode-server/extensions/github.vscode-pull-request-github-0.28.0 [18432 ms] [23:01:55] Installation completed. github.vscode-pull-request-github [18446 ms] [23:01:55] Extensions installed successfully: github.vscode-pull-request-github [18449 ms] Extension 'github.vscode-pull-request-github' v0.28.0 was successfully installed. [18457 ms] [23:01:55] Extracted extension to /home/vscode/.vscode-server/extensions/.808cc0a2-e98d-4f94-af46-5f24a6c851b8: gruntfuggly.todo-tree [18481 ms] Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [986 kB] [18484 ms] [23:01:55] Renamed to /home/vscode/.vscode-server/extensions/gruntfuggly.todo-tree-0.0.213 [18493 ms] [23:01:55] Installation completed. gruntfuggly.todo-tree [18510 ms] [23:01:55] Extensions installed successfully: gruntfuggly.todo-tree [18513 ms] Extension 'gruntfuggly.todo-tree' v0.0.213 was successfully installed. [18793 ms] [23:01:56] Extracted extension to /home/vscode/.vscode-server/extensions/.97e11c2e-d006-461b-848e-19580ea8b9c1: mhutchie.git-graph [18852 ms] [23:01:56] Renamed to /home/vscode/.vscode-server/extensions/mhutchie.git-graph-1.30.0 [18858 ms] [23:01:56] Installation completed. mhutchie.git-graph [18866 ms] Get:5 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [784 kB] [18883 ms] [23:01:56] Extensions installed successfully: mhutchie.git-graph [18888 ms] Extension 'mhutchie.git-graph' v1.30.0 was successfully installed. [18970 ms] Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB] [19335 ms] Get:7 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,055 kB] [19914 ms] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,417 kB] [20297 ms] Fetched 4,570 kB in 3s (1,698 kB/s) Reading package lists... [20910 ms] [23:01:58] Extracted extension to /home/vscode/.vscode-server/extensions/.8dfa31f4-5dfb-46fb-8b93-be579f4b47e3: eamodio.gitlens [20953 ms] [23:01:58] Renamed to /home/vscode/.vscode-server/extensions/eamodio.gitlens-11.6.0 [20967 ms] [23:01:58] Installation completed. eamodio.gitlens [20980 ms] [23:01:58] Extensions installed successfully: eamodio.gitlens [20988 ms] Extension 'eamodio.gitlens' v11.6.0 was successfully installed. [21184 ms] Port forwarding connection from 56898 > 33041 > 33041 in the container. [21186 ms] Start: Run in container: /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node -e [21233 ms] Port forwarding process for 56898 > 33041 > 33041 in the container: [ { "pid": 16716, "ppid": 16712, "uid": 501, "gid": 20, "name": "Visual Studio Code", "bin": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code", "cmd": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=1718379636,6344439345956400702,2073395849390375247,131072 --enable-features=WebComponentsV0Enabled --disable-features=CertVerifierService,CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --lang=en-US --service-sandbox-type=network --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --seatbelt-client=43" } ] [22260 ms] [22449 ms] Reading package lists... [23709 ms] [23734 ms] Building dependency tree... [24033 ms] Reading state information... [24034 ms] [24297 ms] [23:02:01] Extracted extension to /home/vscode/.vscode-server/extensions/.780bdc8d-b791-483b-a5cb-7a5ef3dc25dd: streetsidesoftware.code-spell-checker [24314 ms] The following additional packages will be installed: [24315 ms] libcurl4 [24316 ms] [23:02:01] Renamed to /home/vscode/.vscode-server/extensions/streetsidesoftware.code-spell-checker-1.10.2 [24318 ms] [23:02:01] Installation completed. streetsidesoftware.code-spell-checker [24324 ms] [23:02:01] Extensions installed successfully: streetsidesoftware.code-spell-checker [24327 ms] Extension 'streetsidesoftware.code-spell-checker' v1.10.2 was successfully installed. [24351 ms] The following NEW packages will be installed: [24355 ms] curl libcurl4 [24651 ms] 0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded. Need to get 396 kB of archives. After this operation, 1,115 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.6 [234 kB] [25360 ms] Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.6 [161 kB] [25582 ms] debconf: unable to initialize frontend: debconf: (Can't locate Debconf/FrontEnd/.pm in @INC (you may need to install the Debconf::FrontEnd:: module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at (eval 19) line 2, <> line 2.) debconf: falling back to frontend: Noninteractive [26430 ms] Fetched 396 kB in 1s (369 kB/s) [26457 ms] Selecting previously unselected package libcurl4:amd64. (Reading database ... (Reading database ... 60%ase ... 5% [26465 ms] (Reading database ... 65% [26465 ms] (Reading database ... 70% [26467 ms] (Reading database ... 75% [26468 ms] (Reading database ... 80% [26470 ms] (Reading database ... 85% [26472 ms] (Reading database ... 90% [26474 ms] (Reading database ... 95% (Reading database ... 25521 files and directories currently installed.) [26477 ms] Preparing to unpack .../libcurl4_7.68.0-1ubuntu2.6_amd64.deb ... [26486 ms] Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.6) ... [26549 ms] Selecting previously unselected package curl. [26551 ms] Preparing to unpack .../curl_7.68.0-1ubuntu2.6_amd64.deb ... [26555 ms] Unpacking curl (7.68.0-1ubuntu2.6) ... [26613 ms] Setting up libcurl4:amd64 (7.68.0-1ubuntu2.6) ... [26624 ms] Setting up curl (7.68.0-1ubuntu2.6) ... [26635 ms] Processing triggers for libc-bin (2.31-0ubuntu9.2) ... [26784 ms] Finished installing 'curl'. [26970 ms] Port forwarding 56898 > 33041 > 33041 stderr: Remote close [27051 ms] Stop (5865 ms): Run in container: /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node -e [27051 ms] Port forwarding 56898 > 33041 > 33041 terminated with code 0 and signal null. [27216 ms] Port forwarding 56898 > 33041 > 33041: Local close [27352 ms] Cloning into '/home/vscode/.local/fzf'... [28046 ms] Start: Run in container: cat /proc/727/environ [28046 ms] Stdin closed! [28873 ms] Note: switching to '8c533e34eacf310a0babbcdf6c512a08eb447389'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false [28884 ms] Finished installing 'fzf'. [28886 ms] 0.25.0 (8c533e3) [28888 ms] [28888 ms] [28888 ms] Stop (15078 ms): Run in container: # Clone & install dotfiles [28892 ms] Start: Run in container: cat /proc/727/environ [28892 ms] Extensions cache, copy to shared cache: None [28895 ms] Stop (3 ms): Run in container: cat /proc/727/environ [28895 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git [28898 ms] /home/vscode/.gitconfig exists [28898 ms] [28898 ms] Exit code 1 [28898 ms] Stop (3 ms): Run in container: # Test for /home/vscode/.gitconfig and git [28899 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node /tmp/vscode-remote-containers-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js $*; }; f' || true [28904 ms] [28904 ms] [28904 ms] Stop (5 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /home/vscode/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node /tmp/vscode-remote-containers-b41eaf2297e0c7b7d0878d7802aef0e5dd69a9f5.js $*; }; f' || true [28904 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && [ "$(cat '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' 2>/dev/null)" != '2021-07-24T23:01:49.5587123Z' ] && echo '2021-07-24T23:01:49.5587123Z' > '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' [28909 ms] [28909 ms] [28909 ms] Stop (5 ms): Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && [ "$(cat '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' 2>/dev/null)" != '2021-07-24T23:01:49.5587123Z' ] && echo '2021-07-24T23:01:49.5587123Z' > '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' [76449 ms] Received message: [] [88903 ms] Extensions cache, copy to shared cache: None [136459 ms] Received message: [] [148912 ms] Extensions cache, copy to shared cache: None [196467 ms] Received message: [] [208918 ms] Extensions cache, copy to shared cache: None ```
mamidenn commented 2 years ago

Reviving this ticket because we are observing this consistently as well. We do not have a .git/shallow.lock but rather just the .git/shallow marker file suggesting that git fetch --unshallow did not even start to fetch.

Manually running git fetch --unshallow once the container is started fetches the history and branches without issue. It looks like fetch is killed or errors without any output.

[27517 ms] Start: Run: docker rm -f cebf24d19f0713c3a91f79fd55de76c0c75379447e14c9fae9d7c529a3d0fa4d
[27521 ms] Start: Run: docker events --format {{json .}} --filter event=start
[27579 ms] Start: Starting container
[27580 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=volume,src=██████-ba8e99764a9f66b20938dbfeb7e99286,dst=/workspaces --mount source=C:\Users\██████/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind --mount type=volume,src=vscode,dst=/vscode -l vsch.local.repository=██████ -l vsch.local.repository.volume=██████-ba8e99764a9f66b20938dbfeb7e99286 -l vsch.local.repository.folder=██████ -l vsch.quality=stable -l vsch.remote.devPort=0 --entrypoint /bin/sh vsc-██████-ba8e99764a9f66b20938dbfeb7e99286 -c echo Container started
[30028 ms] Stop (15175 ms): Run in container: /bin/sh
[30042 ms] Stop (14937 ms): Run in container: /bin/sh
[30042 ms] Container server terminated (code: 137, signal: null).
[24206 ms] Start: Run in container: git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
[26107 ms] Stop (1901 ms): Run in container: git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
[26107 ms] Start: Run in container: git fetch --unshallow --tags
[30116 ms] Stop (4009 ms): Run in container: git fetch --unshallow --tags
[30366 ms] Stop (2849 ms): Run: docker rm -f cebf24d19f0713c3a91f79fd55de76c0c75379447e14c9fae9d7c529a3d0fa4d
Container started

@chrmarti Please let me know if I can provide you with any more information.

Also, why go the difficult route of cloning with --depth 1 when the repo is unshallowed anyway.

chrmarti commented 2 years ago

We use a shallow clone so we can start building the Docker image earlier. Maybe we should just wait for the unshallow to finish after that when cloning into a volume.

mamidenn commented 2 years ago

I would suggest doing a regular clone without limited depth. The unshallow needs to happen anyway before one is able to start working. It would also simplify the process, i.e. make the remote.origin.fetch workaround for #4901 obsolete.

leighmcculloch commented 2 years ago

I would suggest doing a regular clone without limited depth.

+1. This optimization is creating problems for folks who don't need it. Maybe the shallow clone should be an opt in feature that's configurable and large repo users can opt in if they value?

ckolumbus commented 2 years ago

I would suggest doing a regular clone without limited depth.

another +1 from my side for @mamidenn suggestion!

chrmarti commented 2 years ago

The problem here was that the temporary container running the unshallowing was removed too early. Fixed with #6492.

For larger repositories doing a shallow clone first helps with performance. The workaround in #4901 shouldn't be needed with the fix in #4619. I guess that just didn't work because of the bug fixed here.

Closing for verification.

rzhao271 commented 2 years ago

@chrmarti what are some verification steps for this issue? Is it similar to #6492?

chrmarti commented 2 years ago

To verify you can use Remote-Containers: Clone Repository in Container Volume... with a very large repository and verify that eventually (when the unshallowing has finished in the background) all of the Git history including branches is available.