Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use ssh-agent from devcontainer CLI ? #441

Open
hpe-ykoehler opened this issue Mar 11, 2023 · 24 comments
Open

How to use ssh-agent from devcontainer CLI ? #441

hpe-ykoehler opened this issue Mar 11, 2023 · 24 comments
Assignees
Labels
feature-request New feature or request
Milestone

Comments

@hpe-ykoehler
Copy link

I have a devcontainer that I will be using in vscode and in CI.

In the CI we use devcontainer up/exec

in vscode, we see there is a dev container helper that sets up ssh-agent.

In the CI we setup ssh-agent and add the key, but I cannot find a way to have the same devcontainer works in both environment.

I run vscode on windows and remote container are on linux. I can mount my SSH_AUTH_SOCK to /tmp/ssh-agent.socket and then I can start ssh-agent -a /tmp/ssh-agent.socket, but ssh-add -L still report no identities and outside of the container ssh-add -L do report at least one key that I did add to the ssh-agent.

Would you have an example of how one can use devcontainer with docker-compose to access the local ssh-agent, in a compatible way that would also work within vscode itself?

(when I load the same devcontainer in vscode, the SSH_AUTH_SOCK gets transformed into a ".", yet my linux remove is using ssh-agent and has a proper SSH_AUTH_SOCK value). Somehow I think the Windows version is being used, for which no SSH_AUTH_SOCK exists, but I do have the ssh-agent running on Windows.

I would definitely prefer that the remote container uses the remote linux ssh-agent than my windows.

@metaskills
Copy link

Curious as well, there seems to be tons of old documentation on how to do this (https://stackoverflow.com/questions/43418188/ssh-agent-forwarding-during-docker-build) but it appears there is more modern (still old) tooling with docker build --ssh too. moby/moby#6396 (comment)

@chrmarti
Copy link
Contributor

The ssh-agent forwarding is part of the Dev Containers extension and not part of the Dev Containers CLI. You could mount the ssh-agent's socket and then point SSH_AUTH_SOCK at it.

@hpe-ykoehler
Copy link
Author

Strangely when I did mount the ssh-auth-socket to let's say /tmp/ssh-agent.socket and then set SSH_AUTH_SOCK to /tmp/ssh-agent.socket, I could confirm the mount was done and the env was set, but ssh-add was still unable to talk to the ssh-agent itself.

I then start a ssh-agent within the devcontainer itself telling it to use /tmp/ssh-agent.socket and ssh-add was happy but still not finding any of my key which I had in my how ssh-agent.

The other issue, is that when I did so, within vscode things stop working, because the SSH_AUTH_SOCK got converted to "." instead of the real SSH_AUTH_SOCK value, even thougth the dev conatiners extension is able to find that value propery.

@hpe-ykoehler
Copy link
Author

hpe-ykoehler commented Mar 21, 2023

    "runArgs": [
       "-e",
       "SSH_AUTH_SOCK=/tmp/ssh-agent.socket",
       "-v",
       "${env:SSH_AUTH_SOCK}:/tmp/ssh-agent.socket"
    ],

and docker-compose.yml:

    volumes:
    - ..:/workspaces:cached
    - ${SSH_AUTH_SOCK}:/tmp/ssh-agent.socket

If I do that in a docker container it works, but when I do it via the devcontainer cli it doesn't work.

Anyway it would be really nice for devcontainer teams to align and provide an example on how to use ssh-agent in devcontainer CLI in a way compatible with VSCode that is compatible with all OS/remote or not, etc. as it doesn't seem that easy to get working.

@chrmarti
Copy link
Contributor

You only need to run an ssh-agent on your local machine (where the private keys are), not inside the container. Note that "runArgs" doesn't apply to Docker Compose. I can't get it to work on Mac right now, maybe this has changed.

Another option would be to mount ~/.ssh in the container to get access to the private keys.

@hpe-ykoehler
Copy link
Author

@chrmarti I would prefer the option of ssh-agent because getting access to the key doesn't get you access to the passphrase to unlock the key which then raises another challenge.

It also simplifies cases where the key to use may not be in the .ssh, some users prefer to use a different folder to make it harder to attackers to find those, etc.

when I do not start the ssh-agent within the container, even thought the socket is mounted, ssh-add simply fail to connect to it and report an error.

I am using VSCode on Windows, then connect to Linux via Remote-SSH and use devcontainer.

Using VSCode, the dev containers helper connect my "Windows" ssh-agent to my devcontainer... which in itself is strange, as I would really like my remote linux to be the ssh-agent, as to not share my keys on my windows machine like I have to now. But that is another matter.

And as indicated then using SSH_AUTH_SOCK env variable it breaks VSCode because then SSH_AUTH_SOCK becomes . and the docker-compose complains that

  • .:/tmp/ssh-agent.socket

is not a valid volume format.

It somehow look like I would need to start VSCode with SSH_AUTH_SOCK set to my linux SSH_AUTH_SOCK so that VSCode continue to work... which doesn't appear usable.

@chrmarti
Copy link
Contributor

I agree, using the ssh-agent seems preferable.

Using VSCode, the dev containers helper connect my "Windows" ssh-agent to my devcontainer... which in itself is strange, as I would really like my remote linux to be the ssh-agent, as to not share my keys on my windows machine like I have to now. But that is another matter.

That should actually work. If SSH_AUTH_SOCK is properly set in your remote machine's shell startup scripts, the Dev Containers extension should prefer that over the local one. Try running with Dev Container's log level set to 'trace' in the user settings to get the env variables logged as seen by the extension.

And as indicated then using SSH_AUTH_SOCK env variable it breaks VSCode because then SSH_AUTH_SOCK becomes . and the docker-compose complains that

  • .:/tmp/ssh-agent.socket

is not a valid volume format.

Docker Compose should do the variable replacement there. Maybe another indicator that SSH_AUTH_SOCK isn't properly picked up on the remote machine.

@hpe-ykoehler
Copy link
Author

That should actually work. If SSH_AUTH_SOCK is properly set in your remote machine's shell startup scripts, the Dev Containers extension should prefer that over the local one. Try running with Dev Container's log level set to 'trace' in the user settings to get the env variables logged as seen by the extension.

SSH_AUTH_SOCK is set by my .bashrc but in my linux, it works nicely when I use it with ssh, but vscode still translate to .

One interesting thing is that my ssh-agent in order to use a single socket start ssh-agent, create a symlink to the socket and then set SSH_AUTH_SOCK to the symlink.

if [ ! -S /tmp/yk-ssh_auth_sock ]; then
    eval $(ssh-agent)
    ln -sf "$SSH_AUTH_SOCK" /tmp/yk-ssh_auth_sock
fi
export SSH_AUTH_SOCK=/tmp/yk-ssh_auth_sock

So maybe that could be a reason for this issue. Another could be that .bashrc is only used for some interactive login and I may need to put it in a .profile or .bash_profile, I will try that to see if things change.

But I can assure you that it currently prefer my Windows ssh-agent over my Linux one.

[11009 ms] Start: Launching Dev Containers helper.
[11010 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-f0cca852-df04-4f31-8740-5fdba9bd0967.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent).
[11010 ms] X11 forwarding: DISPLAY not set on host.

I wish this part was a little more verbose and somehow provide clues as to why my Linux ssh-agent was not found, maybe some kind of warning that the SSH_AUTH_SOCK is not set, the extension fallback to the native host ssh-agent ? With some URL pointing to how to properly set SSH_AUTH_SOCK in a way for Remote-SSH to detect it.

Because the issue my SSH_AUTH_SOCK is set when I used ssh manually, it is also set when I used remote-ssh feature of VSCode, it is only apparently not set when I used the remote-devcontainer plugin feature.

@hpe-ykoehler
Copy link
Author

hpe-ykoehler commented Mar 22, 2023

I have removed the symlink by using ssh-agent -a and no change.

if [ ! -S /tmp/yk-ssh_auth_sock ]; then
    eval $(ssh-agent -a /tmp/yk-ssh_auth_sock)
fi

still attach to my windows ssh-agent:

[9765 ms] Start: Launching Dev Containers helper.
[9765 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-1c2a37c7-9284-4ad4-99a7-7013dc50c28a.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent).
[9766 ms] X11 forwarding: DISPLAY not set on host.

I also added the ssh-agent setup in my .bash_profile and .profile, no impact.

@chrmarti
Copy link
Contributor

Could you run with the Dev Container's log level set to 'trace' in the user settings to get the env variables logged as seen by the extension?
image

@chrmarti
Copy link
Contributor

I will also improve logging for this. For now we can use the trace logging output.

@hpe-ykoehler
Copy link
Author

hpe-ykoehler commented Mar 23, 2023

[18871 ms] Start: Run: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[18955 ms] Stop (84 ms): Run: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[18956 ms] Stop (85 ms): Inspecting container
[18959 ms] Start: Run in container: /bin/sh
[18973 ms] Start: Run in container: uname -m
[19145 ms] x86_64
[19145 ms] 
[19145 ms] Stop (172 ms): Run in container: uname -m
[19145 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[19153 ms] NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[19153 ms] 
[19153 ms] Stop (8 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[19154 ms] Start: Run in container: cat /etc/passwd
[19157 ms] Stop (3 ms): Run in container: cat /etc/passwd
[19159 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[19161 ms] 
[19162 ms] 
[19162 ms] Exit code 1
[19162 ms] Stop (3 ms): Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[19163 ms] Start: Run in container: /bin/sh
[19176 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[19357 ms] 
[19357 ms] 
[19357 ms] Stop (181 ms): Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[19357 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[19365 ms] 
[19365 ms] 
[19365 ms] Stop (8 ms): Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[19366 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[19368 ms] 
[19368 ms] 
[19368 ms] Exit code 1
[19368 ms] Stop (2 ms): Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[19369 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[19375 ms] 
[19375 ms] 
[19375 ms] Stop (6 ms): Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[19376 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[19387 ms] 
[19387 ms] 
[19387 ms] Stop (11 ms): Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[19389 ms] Stop (14350 ms): Resolving Remote
[19422 ms] Stop (15424 ms): Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.286.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-933f80f4-6726-4784-aa66-128ff75f113e1679597210270 --workspace-folder /work/krypton/dal --workspace-mount-consistency cached --id-label devcontainer.local_folder=/work/krypton/dal --id-label devcontainer.config_file=/work/krypton/dal/.devcontainer/devcontainer.json --log-level trace --log-format json --config /work/krypton/dal/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true --terminal-columns 298 --terminal-rows 37
[19425 ms] Start: Run in Host: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[19630 ms] Stop (205 ms): Run in Host: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[19631 ms] Start: Run in Host: docker exec -i -u root 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7 /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=933f80f4-6726-4784-aa66-128ff75f113e1679597210270 ; /bin/sh
[19836 ms] Start: Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.286.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /work/krypton/dal --id-label devcontainer.local_folder=/work/krypton/dal --id-label devcontainer.config_file=/work/krypton/dal/.devcontainer/devcontainer.json --container-id 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7 --log-level trace --log-format json --config /work/krypton/dal/.devcontainer/devcontainer.json --mount-workspace-git-root true
[19899 ms] New container started. Keep-alive process started.
[20376 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. linux 5.15.0-53-generic x64.
[20375 ms] Start: Run: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[20463 ms] Stop (88 ms): Run: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[20496 ms] Stop (660 ms): Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.286.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /work/krypton/dal --id-label devcontainer.local_folder=/work/krypton/dal --id-label devcontainer.config_file=/work/krypton/dal/.devcontainer/devcontainer.json --container-id 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7 --log-level trace --log-format json --config /work/krypton/dal/.devcontainer/devcontainer.json --mount-workspace-git-root true
[20499 ms] Start: Run in Host: docker-compose version --short
[21049 ms] Stop (550 ms): Run in Host: docker-compose version --short
[21448 ms] Start: Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.286.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /work/krypton/dal --id-label devcontainer.local_folder=/work/krypton/dal --id-label devcontainer.config_file=/work/krypton/dal/.devcontainer/devcontainer.json --container-id 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7 --log-level trace --log-format json --config /work/krypton/dal/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[21893 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. linux 5.15.0-53-generic x64.
[21893 ms] Start: Run: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[21979 ms] Stop (86 ms): Run: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[22013 ms] Stop (565 ms): Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.286.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /work/krypton/dal --id-label devcontainer.local_folder=/work/krypton/dal --id-label devcontainer.config_file=/work/krypton/dal/.devcontainer/devcontainer.json --container-id 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7 --log-level trace --log-format json --config /work/krypton/dal/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[22015 ms] Start: Inspecting container
[22016 ms] Start: Run in Host: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[22213 ms] Stop (197 ms): Run in Host: docker inspect --type container 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7
[22214 ms] Stop (199 ms): Inspecting container
[22222 ms] Start: Run in Host: docker exec -i -u aos-dev -e VSCODE_REMOTE_CONTAINERS_SESSION=933f80f4-6726-4784-aa66-128ff75f113e1679597210270 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7 /bin/sh
[22326 ms] Start: Run in container: uname -m
[22509 ms] x86_64
[22510 ms] 
[22510 ms] Stop (184 ms): Run in container: uname -m
[22510 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[22609 ms] NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[22610 ms] 
[22610 ms] Stop (100 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[22611 ms] Start: Run in container: cat /etc/passwd
[22708 ms] Stop (97 ms): Run in container: cat /etc/passwd
[22709 ms] Start: Updating configuration state
[22909 ms] Stop (200 ms): Updating configuration state
[22910 ms] Start: Setup shutdown monitor
[22912 ms] Forking shutdown monitor: c:\Users\koehlery\.vscode\extensions\ms-vscode-remote.remote-containers-0.286.0\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-188be55c-b66a-4687-984e-451d68846e1d-sock dockerCompose Trace c:\Users\koehlery\AppData\Roaming\Code\logs\20230323T124001\window1\exthost\ms-vscode-remote.remote-containers 1679597211250
[22928 ms] Stop (18 ms): Setup shutdown monitor
[22930 ms] Start: Run in container: test -d /home/aos-dev/.vscode-server
[23026 ms] 
[23027 ms] 
[23027 ms] Exit code 1
[23027 ms] Stop (97 ms): Run in container: test -d /home/aos-dev/.vscode-server
[23028 ms] Start: Run in container: test -d /home/aos-dev/.vscode-remote
[23127 ms] 
[23127 ms] 
[23128 ms] Exit code 1
[23128 ms] Stop (100 ms): Run in container: test -d /home/aos-dev/.vscode-remote
[23129 ms] Start: Run in container: test ! -f '/home/aos-dev/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/aos-dev/.vscode-server/data/Machine' && { > '/home/aos-dev/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[23156 ms] Starting monitor process...
[23180 ms] Received message: [{"type":"configure","sequence":0,"options":{"cwd":"/work/krypton/dal","dockerCLI":"docker","dockerComposeCLI":{"version":"1.29.2","cmd":"docker-compose","args":[]},"env":{"USER":"ykoehler","SSH_CLIENT":"15.111.190.46 59187 22","XDG_SESSION_TYPE":"tty","SHLVL":"0","MOTD_SHOWN":"pam","HOME":"/net/spindles/ykoehler","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/11846/bus","LOGNAME":"ykoehler","REMOTE_CONTAINERS_IPC":"","_":"dc1b38b5-793b-473c-9beb-1443b3852f14","XDG_SESSION_CLASS":"user","XDG_SESSION_ID":"24863","PATH":"/net/spindles/ykoehler/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","XDG_RUNTIME_DIR":"/run/user/11846","REMOTE_CONTAINERS_SOCKETS":"[]","LANG":"en_US.UTF-8","SHELL":"/bin/bash","SSH_CONNECTION":"15.111.190.46 59187 10.82.21.252 22","XDG_DATA_DIRS":"/usr/share/gnome:/usr/local/share/:/usr/share/","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\koehlery\\.vscode\\extensions\\ms-vscode-remote.remote-containers-0.286.0\\scripts\\ssh-askpass.bat","SSH_ASKPASS_REQUIRE":"force","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\koehlery\\.vscode\\extensions\\ms-vscode-remote.remote-containers-0.286.0\\dist\\common\\sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\ssh-askpass-7e8dfe39-ed35-48e1-be65-950df360332b-sock","DOCKER_CONTEXT":"default","VSCODE_DOCKER_HOST":"ssh://slrubdev-ykoehler22"},"containerId":"5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7","user":"aos-dev","sessionId":"933f80f4-6726-4784-aa66-128ff75f113e1679597210270","shutdownAction":"stopCompose","projectName":"dal_devcontainer","composeFiles":["/work/krypton/dal/.devcontainer/docker-compose.yml"],"service":"krypton-c-env","logLevel":1,"delay":10000}}]
[23236 ms] 
[23236 ms] 
[23236 ms] Stop (107 ms): Run in container: test ! -f '/home/aos-dev/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/aos-dev/.vscode-server/data/Machine' && { > '/home/aos-dev/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[23237 ms] Start: Run in container: cat /home/aos-dev/.vscode-server/data/Machine/settings.json
[23343 ms] 
[23344 ms] cat: /home/aos-dev/.vscode-server/data/Machine/settings.json: No such file or directory
[23344 ms] Exit code 1
[23344 ms] Stop (107 ms): Run in container: cat /home/aos-dev/.vscode-server/data/Machine/settings.json
[23345 ms] Start: Run in container: test -d /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
[23453 ms] 
[23453 ms] 
[23453 ms] Exit code 1
[23453 ms] Stop (108 ms): Run in container: test -d /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
[23453 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
[23554 ms] 
[23554 ms] 
[23554 ms] Stop (101 ms): Run in container: test -d /vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
[23554 ms] Start: Run in container: mkdir -p '/home/aos-dev/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884' '/home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[23661 ms] 
[23662 ms] 
[23662 ms] Stop (108 ms): Run in container: mkdir -p '/home/aos-dev/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884' '/home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[23663 ms] Start: Run in Host: docker exec -i -u root 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7 /bin/sh
[23664 ms] Start: Launching Dev Containers helper.
[23665 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-542f4882-bd97-4ec9-84e9-5890f4f5d07b.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent).
[23666 ms] X11 forwarding: DISPLAY not set on host.
[23666 ms] Start: Run in Host: gpgconf --list-dir agent-extra-socket
[23776 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[23879 ms] Stop (213 ms): Run in Host: gpgconf --list-dir agent-extra-socket
[23880 ms] /run/user/11846/gnupg/S.gpg-agent.extra
[23881 ms] 
[23881 ms] Start: Run in container: gpgconf --list-dir agent-socket
[23942 ms] 
[23942 ms] 
[23942 ms] Stop (166 ms): Run in container: touch '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[23993 ms] /home/aos-dev/.gnupg/S.gpg-agent
[23993 ms] 
[23993 ms] Stop (112 ms): Run in container: gpgconf --list-dir agent-socket
[23993 ms] Start: Run in container: gpgconf --list-dir homedir
[24101 ms] /home/aos-dev/.gnupg
[24102 ms] 
[24102 ms] Stop (109 ms): Run in container: gpgconf --list-dir homedir
[24102 ms] Start: Run in container: ls '/home/aos-dev/.gnupg/private-keys-v1.d' 2>/dev/null
[24204 ms] 
[24205 ms] 
[24205 ms] Exit code 2
[24205 ms] Stop (103 ms): Run in container: ls '/home/aos-dev/.gnupg/private-keys-v1.d' 2>/dev/null
[24205 ms] Start: Run in container: mkdir -p -m 700 '/home/aos-dev/.gnupg'
[24302 ms] 
[24302 ms] 
[24302 ms] Stop (97 ms): Run in container: mkdir -p -m 700 '/home/aos-dev/.gnupg'
[24302 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[24302 ms] Start: Run in Host: gpgconf --list-dir homedir
[24403 ms] 
[24403 ms] 
[24403 ms] Stop (101 ms): Run in container: command -v docker >/dev/null 2>&1
[24404 ms] Start: Run in Host: docker exec -i -u aos-dev 5bbf06ee9b61785eb5ccd1e58e556086a53a497e9054160c6248d01a9906f1d7 /bin/sh
[24404 ms] Stop (740 ms): Launching Dev Containers helper.
[24404 ms] userEnvProbe: loginInteractiveShell (default)
[24405 ms] Start: Run in container: test -f '/tmp/devcontainers-933f80f4-6726-4784-aa66-128ff75f113e1679597210270/env-loginInteractiveShell.json'
[24512 ms] Stop (210 ms): Run in Host: gpgconf --list-dir homedir
[24514 ms] /net/spindles/ykoehler/.gnupg
[24514 ms] 
[24515 ms] 
[24516 ms] 
[24516 ms] Exit code 1
[24516 ms] Stop (111 ms): Run in container: test -f '/tmp/devcontainers-933f80f4-6726-4784-aa66-128ff75f113e1679597210270/env-loginInteractiveShell.json'
[24517 ms] Start: Run in container: echo ~
[24517 ms] Start: Run in container: gpgconf --list-dir homedir
[24517 ms] userEnvProbe: not found in cache
[24518 ms] userEnvProbe shell: /bin/bash
[24614 ms] /home/aos-dev/.gnupg
[24615 ms] 
[24615 ms] Stop (98 ms): Run in container: gpgconf --list-dir homedir
[24615 ms] Start: Run in container: # Test for /home/aos-dev/.ssh/known_hosts and ssh
[24702 ms] /home/aos-dev
[24703 ms] 
[24704 ms] Stop (187 ms): Run in container: echo ~
[24704 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-542f4882-bd97-4ec9-84e9-5890f4f5d07b.js' >/tmp/vscode-remote-containers-542f4882-bd97-4ec9-84e9-5890f4f5d07b.js
[24726 ms] 
[24727 ms] 

In the area around ssh-agent, there apparently are no trace logs.

@chrmarti
Copy link
Contributor

That doesn't seem to be the full log. Check for userEnvProbe in the full log, that will run twice, first on the SSH server and then in the container. For the ssh-agent forwarding on the SSH server, the first is of interest.

Also check your local ~/.ssh/config for ForwardAgent yes, that might overwrite SSH_AUTH_SOCK.

@hpe-ykoehler
Copy link
Author

Is there a file I can retrieve? Right now then I do rebuild the log is within a terminal window and history doesn't go back to the beginning.

I have put the full log in here.

I found this snippet to be relevant:

[23054 ms] Start: Launching Dev Containers helper.
[23054 ms] ssh-agent: SSH_AUTH_SOCK not set on ssh host.
[23054 ms] ssh-agent: SSH_AUTH_SOCK not set on local host.
[23055 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-f246c978-3ab3-4551-bec8-f4444610a51c.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent).
[23055 ms] X11 forwarding: DISPLAY not set on ssh host.
[23055 ms] X11 forwarding: DISPLAY not set on local host.

Yet, whenever I log SSH (or with Remote SSH) on that machine SSH_AUTH_SOCK is set. Likely this has something to do with interactive login mode vs something else. That is an aspect of Linux that I am less familiar with.

[18330 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[18338 ms] NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[18338 ms] 
[18338 ms] Stop (8 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[18339 ms] Start: Run in container: cat /etc/passwd
[18343 ms] Stop (4 ms): Run in container: cat /etc/passwd
[18346 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[18348 ms] 
[18348 ms] 
[18348 ms] Exit code 1
[18348 ms] Stop (2 ms): Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[18350 ms] Start: Run in container: /bin/sh
[18363 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[18536 ms] 
[18536 ms] 
[18536 ms] Stop (173 ms): Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null
[18537 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[18546 ms] 
[18546 ms] 
[18546 ms] Stop (9 ms): Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF'
[18546 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[18550 ms] 
[18550 ms] 
[18550 ms] Exit code 1
[18550 ms] Stop (4 ms): Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[18550 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[18557 ms] 
[18557 ms] 
[18557 ms] Stop (7 ms): Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null
[18557 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[18569 ms] 
[18569 ms] 
[18569 ms] Stop (12 ms): Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true
[18570 ms] Stop (13492 ms): Resolving Remote
[18611 ms] Stop (14651 ms): Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.287.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 --workspace-folder /work/krypton/libaos --workspace-mount-consistency cached --id-label devcontainer.local_folder=/work/krypton/libaos --id-label devcontainer.config_file=/work/krypton/libaos/.devcontainer/devcontainer.json --log-level trace --log-format json --config /work/krypton/libaos/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true --terminal-columns 298 --terminal-rows 37
[18614 ms] Start: Run in Host: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[18844 ms] Stop (230 ms): Run in Host: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[18846 ms] Start: Run in Host: docker exec -i -u root 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 ; /bin/sh
[19051 ms] Start: Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.287.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /work/krypton/libaos --id-label devcontainer.local_folder=/work/krypton/libaos --id-label devcontainer.config_file=/work/krypton/libaos/.devcontainer/devcontainer.json --container-id 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 --log-level trace --log-format json --config /work/krypton/libaos/.devcontainer/devcontainer.json --mount-workspace-git-root true
[19124 ms] New container started. Keep-alive process started.
[19537 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. linux 5.15.0-53-generic x64.
[19537 ms] Start: Run: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[19626 ms] Stop (89 ms): Run: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[19665 ms] Stop (614 ms): Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.287.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /work/krypton/libaos --id-label devcontainer.local_folder=/work/krypton/libaos --id-label devcontainer.config_file=/work/krypton/libaos/.devcontainer/devcontainer.json --container-id 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 --log-level trace --log-format json --config /work/krypton/libaos/.devcontainer/devcontainer.json --mount-workspace-git-root true
[19669 ms] Start: Run in Host: docker-compose version --short
[20360 ms] Stop (691 ms): Run in Host: docker-compose version --short
[20753 ms] Start: Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.287.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /work/krypton/libaos --id-label devcontainer.local_folder=/work/krypton/libaos --id-label devcontainer.config_file=/work/krypton/libaos/.devcontainer/devcontainer.json --container-id 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 --log-level trace --log-format json --config /work/krypton/libaos/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[21263 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. linux 5.15.0-53-generic x64.
[21263 ms] Start: Run: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[21353 ms] Stop (90 ms): Run: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[21395 ms] Stop (642 ms): Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.287.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /work/krypton/libaos --id-label devcontainer.local_folder=/work/krypton/libaos --id-label devcontainer.config_file=/work/krypton/libaos/.devcontainer/devcontainer.json --container-id 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 --log-level trace --log-format json --config /work/krypton/libaos/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[21396 ms] Start: Inspecting container
[21396 ms] Start: Run in Host: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[21632 ms] Stop (236 ms): Run in Host: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[21633 ms] Stop (237 ms): Inspecting container
[21641 ms] Start: Run in Host: docker exec -i -u aos-dev -e VSCODE_REMOTE_CONTAINERS_SESSION=d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /bin/sh
[21748 ms] Start: Run in container: uname -m
[21916 ms] x86_64
[21916 ms] 
[21916 ms] Stop (168 ms): Run in container: uname -m
[21916 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[22023 ms] NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[22024 ms] 
[22024 ms] Stop (108 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[22025 ms] Start: Run in container: cat /etc/passwd
[22127 ms] Stop (102 ms): Run in container: cat /etc/passwd
[22128 ms] Start: Updating configuration state
[22334 ms] Stop (206 ms): Updating configuration state
[22335 ms] Start: Setup shutdown monitor
[22335 ms] Forking shutdown monitor: c:\Users\koehlery\.vscode\extensions\ms-vscode-remote.remote-containers-0.287.0\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-09430fb4-a9e1-43ad-a278-63be6d7fb6c3-sock dockerCompose Trace c:\Users\koehlery\AppData\Roaming\Code\logs\20230324T102418\window3\exthost\ms-vscode-remote.remote-containers 1679668288698
[22348 ms] Stop (13 ms): Setup shutdown monitor
[22348 ms] Start: Run in container: test -d /home/aos-dev/.vscode-server
[22448 ms] 
[22448 ms] 
[22448 ms] Exit code 1
[22448 ms] Stop (100 ms): Run in container: test -d /home/aos-dev/.vscode-server
[22448 ms] Start: Run in container: test -d /home/aos-dev/.vscode-remote
[22546 ms] 
[22546 ms] 
[22546 ms] Exit code 1
[22546 ms] Stop (98 ms): Run in container: test -d /home/aos-dev/.vscode-remote
[22547 ms] Start: Run in container: test ! -f '/home/aos-dev/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/aos-dev/.vscode-server/data/Machine' && { > '/home/aos-dev/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[22568 ms] Starting monitor process...
[22584 ms] Received message: [{"type":"configure","sequence":0,"options":{"cwd":"/work/krypton/libaos","dockerCLI":"docker","dockerComposeCLI":{"version":"1.29.2","cmd":"docker-compose","args":[]},"env":{"USER":"ykoehler","SSH_CLIENT":"15.111.190.46 55453 22","XDG_SESSION_TYPE":"tty","SHLVL":"0","MOTD_SHOWN":"pam","HOME":"/net/spindles/ykoehler","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/11846/bus","LOGNAME":"ykoehler","REMOTE_CONTAINERS_IPC":"","_":"71d67e6c-c087-4261-be3d-0c551ff6ceec","XDG_SESSION_CLASS":"user","XDG_SESSION_ID":"25029","PATH":"/net/spindles/ykoehler/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","XDG_RUNTIME_DIR":"/run/user/11846","REMOTE_CONTAINERS_SOCKETS":"[]","LANG":"en_US.UTF-8","SHELL":"/bin/bash","SSH_CONNECTION":"15.111.190.46 55453 10.82.21.252 22","XDG_DATA_DIRS":"/usr/share/gnome:/usr/local/share/:/usr/share/","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\koehlery\\.vscode\\extensions\\ms-vscode-remote.remote-containers-0.287.0\\scripts\\ssh-askpass.bat","SSH_ASKPASS_REQUIRE":"force","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\koehlery\\.vscode\\extensions\\ms-vscode-remote.remote-containers-0.287.0\\dist\\common\\sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\ssh-askpass-cb014f7c-a96b-4f9e-9f2b-cc1f1c6dfb02-sock","DOCKER_CONTEXT":"default","VSCODE_DOCKER_HOST":"ssh://slrubdev-ykoehler22"},"containerId":"6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762","user":"aos-dev","sessionId":"d987cec5-5c52-40f9-810d-d95551fb81d21679668287578","shutdownAction":"stopCompose","projectName":"libaos_devcontainer","composeFiles":["/work/krypton/libaos/.devcontainer/docker-compose.yml"],"service":"krypton-c-env","logLevel":1,"delay":10000}}]
[22650 ms] 
[22650 ms] 
[22651 ms] Stop (104 ms): Run in container: test ! -f '/home/aos-dev/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/aos-dev/.vscode-server/data/Machine' && { > '/home/aos-dev/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[22651 ms] Start: Run in container: cat /home/aos-dev/.vscode-server/data/Machine/settings.json
[22745 ms] 
[22745 ms] cat: /home/aos-dev/.vscode-server/data/Machine/settings.json: No such file or directory
[22745 ms] Exit code 1
[22745 ms] Stop (94 ms): Run in container: cat /home/aos-dev/.vscode-server/data/Machine/settings.json
[22745 ms] Start: Run in container: test -d /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
[22838 ms] 
[22838 ms] 
[22839 ms] Exit code 1
[22839 ms] Stop (94 ms): Run in container: test -d /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
[22839 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
[22942 ms] 
[22942 ms] 
[22942 ms] Stop (103 ms): Run in container: test -d /vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
[22942 ms] Start: Run in container: mkdir -p '/home/aos-dev/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884' '/home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[23053 ms] 
[23053 ms] 
[23053 ms] Stop (111 ms): Run in container: mkdir -p '/home/aos-dev/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884' '/home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[23053 ms] Start: Run in Host: docker exec -i -u root 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /bin/sh
[23054 ms] Start: Launching Dev Containers helper.
[23054 ms] ssh-agent: SSH_AUTH_SOCK not set on ssh host.
[23054 ms] ssh-agent: SSH_AUTH_SOCK not set on local host.
[23055 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-f246c978-3ab3-4551-bec8-f4444610a51c.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent).
[23055 ms] X11 forwarding: DISPLAY not set on ssh host.
[23055 ms] X11 forwarding: DISPLAY not set on local host.
[23055 ms] Start: Run in container: gpgconf --list-dir agent-socket
[23157 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[23165 ms] /home/aos-dev/.gnupg/S.gpg-agent
[23165 ms] 
[23165 ms] Stop (110 ms): Run in container: gpgconf --list-dir agent-socket
[23165 ms] Start: Run in container: gpgconf --list-dir homedir
[23265 ms] /home/aos-dev/.gnupg
[23265 ms] 
[23265 ms] Stop (100 ms): Run in container: gpgconf --list-dir homedir
[23265 ms] Start: Run in container: ls '/home/aos-dev/.gnupg/private-keys-v1.d' 2>/dev/null
[23342 ms] 
[23343 ms] 
[23343 ms] Stop (186 ms): Run in container: touch '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[23368 ms] 
[23368 ms] 
[23368 ms] Exit code 2
[23368 ms] Stop (103 ms): Run in container: ls '/home/aos-dev/.gnupg/private-keys-v1.d' 2>/dev/null
[23369 ms] Start: Run in Host: gpgconf --list-dir agent-extra-socket
[23569 ms] Stop (200 ms): Run in Host: gpgconf --list-dir agent-extra-socket
[23570 ms] /run/user/11846/gnupg/S.gpg-agent.extra
[23570 ms] 
[23570 ms] Start: Run in container: mkdir -p -m 700 '/home/aos-dev/.gnupg'
[23570 ms] gpg-agent: Socket in container (/home/aos-dev/.gnupg/S.gpg-agent) forwarded to ssh host (/run/user/11846/gnupg/S.gpg-agent.extra).
[23669 ms] 
[23670 ms] 
[23670 ms] Stop (100 ms): Run in container: mkdir -p -m 700 '/home/aos-dev/.gnupg'
[23670 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[23670 ms] Start: Run in Host: gpgconf --list-dir homedir
[23777 ms] 
[23778 ms] 
[23778 ms] Stop (108 ms): Run in container: command -v docker >/dev/null 2>&1
[23778 ms] Start: Run in Host: docker exec -i -u aos-dev 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /bin/sh
[23778 ms] Stop (724 ms): Launching Dev Containers helper.
[23778 ms] userEnvProbe: loginInteractiveShell (default)
[23779 ms] Start: Run in container: test -f '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578/env-loginInteractiveShell.json'
[23877 ms] Stop (207 ms): Run in Host: gpgconf --list-dir homedir
[23878 ms] /net/spindles/ykoehler/.gnupg
[23878 ms] 
[23889 ms] Start: Run in container: echo ~
[23889 ms] 
[23889 ms] 
[23889 ms] Exit code 1
[23889 ms] Stop (110 ms): Run in container: test -f '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578/env-loginInteractiveShell.json'
[23889 ms] Start: Run in container: gpgconf --list-dir homedir
[23890 ms] userEnvProbe: not found in cache
[23890 ms] userEnvProbe shell: /bin/bash
[23986 ms] /home/aos-dev/.gnupg
[23986 ms] 
[23986 ms] Stop (97 ms): Run in container: gpgconf --list-dir homedir
[23987 ms] Start: Run in container: # Test for /home/aos-dev/.ssh/known_hosts and ssh
[24049 ms] /home/aos-dev
[24050 ms] 
[24050 ms] Stop (161 ms): Run in container: echo ~
[24050 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-f246c978-3ab3-4551-bec8-f4444610a51c.js' >/tmp/vscode-remote-containers-f246c978-3ab3-4551-bec8-f4444610a51c.js
[24096 ms] 
[24097 ms] 
[24097 ms] Stop (110 ms): Run in container: # Test for /home/aos-dev/.ssh/known_hosts and ssh
[24097 ms] Start: Run in container: # Copy /net/spindles/ykoehler/.ssh/known_hosts to /home/aos-dev/.ssh/known_hosts
[24156 ms] 
[24156 ms] 
[24156 ms] Stop (106 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-f246c978-3ab3-4551-bec8-f4444610a51c.js' >/tmp/vscode-remote-containers-f246c978-3ab3-4551-bec8-f4444610a51c.js
[24299 ms] 
[24299 ms] 
[24299 ms] Stop (202 ms): Run in container: # Copy /net/spindles/ykoehler/.ssh/known_hosts to /home/aos-dev/.ssh/known_hosts
[24299 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /tmp/vscode-remote-containers-f246c978-3ab3-4551-bec8-f4444610a51c.js git-credential-helper $*; }; f' || true
[24365 ms] Start: Run in container: cat ~/.docker/config.json || echo "{
[24456 ms] 
[24456 ms] 
[24456 ms] Stop (157 ms): Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /tmp/vscode-remote-containers-f246c978-3ab3-4551-bec8-f4444610a51c.js git-credential-helper $*; }; f' || true
[24457 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd || echo ; readlink /proc/$pid/ns/mnt || echo ; cat /proc/$pid/stat | tr "
[24465 ms] {
}
[24465 ms] cat: /home/aos-dev/.docker/config.json: No such file or directory
[24465 ms] Stop (100 ms): Run in container: cat ~/.docker/config.json || echo "{
[24465 ms] Start: Run in container: mkdir -p /usr/local/bin && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-f246c978-3ab3-4551-bec8-f4444610a51c' >/usr/local/bin/docker-credential-dev-containers-f246c978-3ab3-4551-bec8-f4444610a51c
[24567 ms] 
[24567 ms] 
[24567 ms] Stop (102 ms): Run in container: mkdir -p /usr/local/bin && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-f246c978-3ab3-4551-bec8-f4444610a51c' >/usr/local/bin/docker-credential-dev-containers-f246c978-3ab3-4551-bec8-f4444610a51c
[24567 ms] Start: Run in container: chmod +x /usr/local/bin/docker-credential-dev-containers-f246c978-3ab3-4551-bec8-f4444610a51c
[24653 ms] Start: Run in Host: gpg-connect-agent updatestartuptty /bye
[24677 ms] 
[24678 ms] 
[24678 ms] Stop (111 ms): Run in container: chmod +x /usr/local/bin/docker-credential-dev-containers-f246c978-3ab3-4551-bec8-f4444610a51c
[24680 ms] Start: Run in container: mkdir -p ~/.docker && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-f246c978-3ab3-4551-bec8-f4444610a51c' >~/.docker/config.json
[24701 ms] Stop (244 ms): Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd || echo ; readlink /proc/$pid/ns/mnt || echo ; cat /proc/$pid/stat | tr "
[24704 ms] Start: Run in container: cat '/home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/product.json'
[24782 ms] 
[24782 ms] 
[24782 ms] Stop (102 ms): Run in container: mkdir -p ~/.docker && cat <<'EOF-/usr/local/bin/docker-credential-dev-containers-f246c978-3ab3-4551-bec8-f4444610a51c' >~/.docker/config.json
[24782 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-f246c978-3ab3-4551-bec8-f4444610a51c.js' >/tmp/vscode-remote-containers-server-f246c978-3ab3-4551-bec8-f4444610a51c.js_1679668313480
[24808 ms] Stop (104 ms): Run in container: cat '/home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/product.json'
[24810 ms] Running extension host agents:
[]
[24810 ms] Start: Run in container: cat '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884' 2>/dev/null || (umask 377 && echo '1feeb8f7-5ccc-48b5-a08f-2c28e1dc10c9' >'/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-e931b28c-2311-4d8e-ac58-f927f3dddbdd' && mv -n '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-e931b28c-2311-4d8e-ac58-f927f3dddbdd' '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884' && rm -f '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-e931b28c-2311-4d8e-ac58-f927f3dddbdd' && cat '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884')
[24861 ms] Stop (208 ms): Run in Host: gpg-connect-agent updatestartuptty /bye
[24903 ms] 
[24904 ms] 
[24904 ms] Stop (122 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-f246c978-3ab3-4551-bec8-f4444610a51c.js' >/tmp/vscode-remote-containers-server-f246c978-3ab3-4551-bec8-f4444610a51c.js_1679668313480
[24921 ms] 1feeb8f7-5ccc-48b5-a08f-2c28e1dc10c9
[24921 ms] 
[24921 ms] Stop (111 ms): Run in container: cat '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884' 2>/dev/null || (umask 377 && echo '1feeb8f7-5ccc-48b5-a08f-2c28e1dc10c9' >'/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-e931b28c-2311-4d8e-ac58-f927f3dddbdd' && mv -n '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-e931b28c-2311-4d8e-ac58-f927f3dddbdd' '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884' && rm -f '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-e931b28c-2311-4d8e-ac58-f927f3dddbdd' && cat '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884')
[24922 ms] Start: Starting VS Code Server
[24922 ms] Start: Preparing Extensions
[24922 ms] Start: Run in container: test ! -f '/home/aos-dev/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/aos-dev/.vscode-server/data/Machine' && { > '/home/aos-dev/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[25000 ms] Start: Run in Container: /bin/bash -lic echo -n 7f1d34a9-2730-474f-8da2-9f9bacf37152; cat /proc/self/environ; echo -n 7f1d34a9-2730-474f-8da2-9f9bacf37152
[25022 ms] 
[25023 ms] 
[25023 ms] Stop (101 ms): Run in container: test ! -f '/home/aos-dev/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/aos-dev/.vscode-server/data/Machine' && { > '/home/aos-dev/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[25027 ms] Extensions cache, install extensions: ms-azuretools.vscode-docker, atlassian.atlascode, ms-vscode.cpptools, numaru.vscode-ceedling-test-adapter, twxs.cmake, ms-vscode.cpptools-extension-pack, ban.troff, SonkengMaldini.conanlight, hbenl.vscode-test-explorer, ryanluker.vscode-coverage-gutters, wayou.vscode-todo-highlight, gruntfuggly.todo-tree, ms-vscode.cmake-tools, ms-vscode.test-adapter-converter, fredericbonnet.cmake-test-adapter
[25028 ms] Start: Run in container: test -d /home/aos-dev/.vscode-server/extensionsCache && ls /home/aos-dev/.vscode-server/extensionsCache || true
[25140 ms] 
[25140 ms] 
[25141 ms] Stop (113 ms): Run in container: test -d /home/aos-dev/.vscode-server/extensionsCache && ls /home/aos-dev/.vscode-server/extensionsCache || true
[25141 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[25248 ms] afri-bit.vsconan-0.4.0
atlassian.atlascode-2.10.12
atlassian.atlascode-3.0.2
atlassian.atlascode-3.0.2.sigzip
ban.troff-1.0.22
ban.troff-1.0.24
ban.troff-1.0.24.sigzip
disroop.conan-0.8.5
fredericbonnet.cmake-test-adapter-0.17.1
fredericbonnet.cmake-test-adapter-0.17.1.sigzip
gruntfuggly.todo-tree-0.0.220
gruntfuggly.todo-tree-0.0.224
gruntfuggly.todo-tree-0.0.224.sigzip
hbenl.vscode-test-explorer-2.21.1
hbenl.vscode-test-explorer-2.21.1.sigzip
ms-azuretools.vscode-docker-1.23.3
ms-azuretools.vscode-docker-1.23.3.sigzip
ms-azuretools.vscode-docker-1.24.0
ms-azuretools.vscode-docker-1.24.0.sigzip
ms-vscode.cmake-tools-1.12.27
ms-vscode.cmake-tools-1.13.44
ms-vscode.cmake-tools-1.13.45
ms-vscode.cmake-tools-1.13.45.sigzip
ms-vscode.cpptools-1.13.7-linux-x64
ms-vscode.cpptools-1.14.3-linux-x64
ms-vscode.cpptools-1.14.3-linux-x64.sigzip
ms-vscode.cpptools-1.14.4-linux-x64
ms-vscode.cpptools-1.14.4-linux-x64.sigzip
ms-vscode.cpptools-1.14.5-linux-x64
ms-vscode.cpptools-1.14.5-linux-x64.sigzip
ms-vscode.cpptools-extension-pack-1.3.0
ms-vscode.cpptools-extension-pack-1.3.0.sigzip
ms-vscode.cpptools-themes-2.0.0
ms-vscode.cpptools-themes-2.0.0.sigzip
ms-vscode.live-server-0.4.7
ms-vscode.test-adapter-converter-0.1.6
ms-vscode.test-adapter-converter-0.1.6.sigzip
numaru.vscode-ceedling-test-adapter-1.10.1
numaru.vscode-ceedling-test-adapter-1.10.1.sigzip
redhat.vscode-yaml-1.12.2
redhat.vscode-yaml-1.12.2.sigzip
ryanluker.vscode-coverage-gutters-2.10.3
ryanluker.vscode-coverage-gutters-2.10.4
sonkengmaldini.conanlight-1.4.0
sonkengmaldini.conanlight-1.4.0.sigzip
twxs.cmake-0.0.17
twxs.cmake-0.0.17.sigzip
wayou.vscode-todo-highlight-1.0.5
wayou.vscode-todo-highlight-1.0.5.sigzip
[25248 ms] 
[25248 ms] Stop (107 ms): Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[25249 ms] Extensions cache, link in container: atlassian.atlascode-2.10.12, atlassian.atlascode-3.0.2, atlassian.atlascode-3.0.2.sigzip, ban.troff-1.0.22, ban.troff-1.0.24, ban.troff-1.0.24.sigzip, fredericbonnet.cmake-test-adapter-0.17.1, fredericbonnet.cmake-test-adapter-0.17.1.sigzip, gruntfuggly.todo-tree-0.0.220, gruntfuggly.todo-tree-0.0.224, gruntfuggly.todo-tree-0.0.224.sigzip, hbenl.vscode-test-explorer-2.21.1, hbenl.vscode-test-explorer-2.21.1.sigzip, ms-azuretools.vscode-docker-1.23.3, ms-azuretools.vscode-docker-1.23.3.sigzip, ms-azuretools.vscode-docker-1.24.0, ms-azuretools.vscode-docker-1.24.0.sigzip, ms-vscode.cmake-tools-1.12.27, ms-vscode.cmake-tools-1.13.44, ms-vscode.cmake-tools-1.13.45, ms-vscode.cmake-tools-1.13.45.sigzip, ms-vscode.cpptools-1.13.7-linux-x64, ms-vscode.cpptools-1.14.3-linux-x64, ms-vscode.cpptools-1.14.3-linux-x64.sigzip, ms-vscode.cpptools-1.14.4-linux-x64, ms-vscode.cpptools-1.14.4-linux-x64.sigzip, ms-vscode.cpptools-1.14.5-linux-x64, ms-vscode.cpptools-1.14.5-linux-x64.sigzip, ms-vscode.cpptools-extension-pack-1.3.0, ms-vscode.cpptools-extension-pack-1.3.0.sigzip, ms-vscode.cpptools-themes-2.0.0, ms-vscode.cpptools-themes-2.0.0.sigzip, ms-vscode.test-adapter-converter-0.1.6, ms-vscode.test-adapter-converter-0.1.6.sigzip, numaru.vscode-ceedling-test-adapter-1.10.1, numaru.vscode-ceedling-test-adapter-1.10.1.sigzip, ryanluker.vscode-coverage-gutters-2.10.3, ryanluker.vscode-coverage-gutters-2.10.4, sonkengmaldini.conanlight-1.4.0, sonkengmaldini.conanlight-1.4.0.sigzip, twxs.cmake-0.0.17, twxs.cmake-0.0.17.sigzip, wayou.vscode-todo-highlight-1.0.5, wayou.vscode-todo-highlight-1.0.5.sigzip
[25249 ms] Start: Run in container: mkdir -p '/home/aos-dev/.vscode-server/extensionsCache' && ln -s '/vscode/vscode-server/extensionsCache'/* '/home/aos-dev/.vscode-server/extensionsCache' || true
[25354 ms] 
[25354 ms] 
[25354 ms] Stop (105 ms): Run in container: mkdir -p '/home/aos-dev/.vscode-server/extensionsCache' && ln -s '/vscode/vscode-server/extensionsCache'/* '/home/aos-dev/.vscode-server/extensionsCache' || true
[25355 ms] Stop (433 ms): Preparing Extensions
[25355 ms] Start: Run in container: cd /vscode/vscode-server/extensionsCache && touch 'atlassian.atlascode-2.10.12' 'atlassian.atlascode-3.0.2' 'atlassian.atlascode-3.0.2.sigzip' 'ban.troff-1.0.22' 'ban.troff-1.0.24' 'ban.troff-1.0.24.sigzip' 'fredericbonnet.cmake-test-adapter-0.17.1' 'fredericbonnet.cmake-test-adapter-0.17.1.sigzip' 'gruntfuggly.todo-tree-0.0.220' 'gruntfuggly.todo-tree-0.0.224' 'gruntfuggly.todo-tree-0.0.224.sigzip' 'hbenl.vscode-test-explorer-2.21.1' 'hbenl.vscode-test-explorer-2.21.1.sigzip' 'ms-azuretools.vscode-docker-1.23.3' 'ms-azuretools.vscode-docker-1.23.3.sigzip' 'ms-azuretools.vscode-docker-1.24.0' 'ms-azuretools.vscode-docker-1.24.0.sigzip' 'ms-vscode.cmake-tools-1.12.27' 'ms-vscode.cmake-tools-1.13.44' 'ms-vscode.cmake-tools-1.13.45' 'ms-vscode.cmake-tools-1.13.45.sigzip' 'ms-vscode.cpptools-1.13.7-linux-x64' 'ms-vscode.cpptools-1.14.3-linux-x64' 'ms-vscode.cpptools-1.14.3-linux-x64.sigzip' 'ms-vscode.cpptools-1.14.4-linux-x64' 'ms-vscode.cpptools-1.14.4-linux-x64.sigzip' 'ms-vscode.cpptools-1.14.5-linux-x64' 'ms-vscode.cpptools-1.14.5-linux-x64.sigzip' 'ms-vscode.cpptools-extension-pack-1.3.0' 'ms-vscode.cpptools-extension-pack-1.3.0.sigzip' 'ms-vscode.cpptools-themes-2.0.0' 'ms-vscode.cpptools-themes-2.0.0.sigzip' 'ms-vscode.test-adapter-converter-0.1.6' 'ms-vscode.test-adapter-converter-0.1.6.sigzip' 'numaru.vscode-ceedling-test-adapter-1.10.1' 'numaru.vscode-ceedling-test-adapter-1.10.1.sigzip' 'ryanluker.vscode-coverage-gutters-2.10.3' 'ryanluker.vscode-coverage-gutters-2.10.4' 'sonkengmaldini.conanlight-1.4.0' 'sonkengmaldini.conanlight-1.4.0.sigzip' 'twxs.cmake-0.0.17' 'twxs.cmake-0.0.17.sigzip' 'wayou.vscode-todo-highlight-1.0.5' 'wayou.vscode-todo-highlight-1.0.5.sigzip'
[25355 ms] Start: Run in Host: docker exec -i -u aos-dev -e SHELL=/bin/bash -e VSCODE_AGENT_FOLDER=/home/aos-dev/.vscode-server -w /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/code-server --log trace --force-disable-user-env --server-data-dir /home/aos-dev/.vscode-server --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884 --extensions-download-dir /home/aos-dev/.vscode-server/extensionsCache --install-extension ms-azuretools.vscode-docker --install-extension atlassian.atlascode --install-extension ms-vscode.cpptools --install-extension numaru.vscode-ceedling-test-adapter --install-extension twxs.cmake --install-extension ms-vscode.cpptools-extension-pack --install-extension ban.troff --install-extension SonkengMaldini.conanlight --install-extension hbenl.vscode-test-explorer --install-extension ryanluker.vscode-coverage-gutters --install-extension wayou.vscode-todo-highlight --install-extension gruntfuggly.todo-tree --install-extension ms-vscode.cmake-tools --install-extension ms-vscode.test-adapter-converter --install-extension fredericbonnet.cmake-test-adapter --start-server 
[25460 ms] 
[25461 ms] 
[25461 ms] Stop (106 ms): Run in container: cd /vscode/vscode-server/extensionsCache && touch 'atlassian.atlascode-2.10.12' 'atlassian.atlascode-3.0.2' 'atlassian.atlascode-3.0.2.sigzip' 'ban.troff-1.0.22' 'ban.troff-1.0.24' 'ban.troff-1.0.24.sigzip' 'fredericbonnet.cmake-test-adapter-0.17.1' 'fredericbonnet.cmake-test-adapter-0.17.1.sigzip' 'gruntfuggly.todo-tree-0.0.220' 'gruntfuggly.todo-tree-0.0.224' 'gruntfuggly.todo-tree-0.0.224.sigzip' 'hbenl.vscode-test-explorer-2.21.1' 'hbenl.vscode-test-explorer-2.21.1.sigzip' 'ms-azuretools.vscode-docker-1.23.3' 'ms-azuretools.vscode-docker-1.23.3.sigzip' 'ms-azuretools.vscode-docker-1.24.0' 'ms-azuretools.vscode-docker-1.24.0.sigzip' 'ms-vscode.cmake-tools-1.12.27' 'ms-vscode.cmake-tools-1.13.44' 'ms-vscode.cmake-tools-1.13.45' 'ms-vscode.cmake-tools-1.13.45.sigzip' 'ms-vscode.cpptools-1.13.7-linux-x64' 'ms-vscode.cpptools-1.14.3-linux-x64' 'ms-vscode.cpptools-1.14.3-linux-x64.sigzip' 'ms-vscode.cpptools-1.14.4-linux-x64' 'ms-vscode.cpptools-1.14.4-linux-x64.sigzip' 'ms-vscode.cpptools-1.14.5-linux-x64' 'ms-vscode.cpptools-1.14.5-linux-x64.sigzip' 'ms-vscode.cpptools-extension-pack-1.3.0' 'ms-vscode.cpptools-extension-pack-1.3.0.sigzip' 'ms-vscode.cpptools-themes-2.0.0' 'ms-vscode.cpptools-themes-2.0.0.sigzip' 'ms-vscode.test-adapter-converter-0.1.6' 'ms-vscode.test-adapter-converter-0.1.6.sigzip' 'numaru.vscode-ceedling-test-adapter-1.10.1' 'numaru.vscode-ceedling-test-adapter-1.10.1.sigzip' 'ryanluker.vscode-coverage-gutters-2.10.3' 'ryanluker.vscode-coverage-gutters-2.10.4' 'sonkengmaldini.conanlight-1.4.0' 'sonkengmaldini.conanlight-1.4.0.sigzip' 'twxs.cmake-0.0.17' 'twxs.cmake-0.0.17.sigzip' 'wayou.vscode-todo-highlight-1.0.5' 'wayou.vscode-todo-highlight-1.0.5.sigzip'
[25549 ms] Stop (549 ms): Run in Container: /bin/bash -lic echo -n 7f1d34a9-2730-474f-8da2-9f9bacf37152; cat /proc/self/environ; echo -n 7f1d34a9-2730-474f-8da2-9f9bacf37152
[25549 ms] 7f1d34a9-2730-474f-8da2-9f9bacf37152HOSTNAME=6af0abdb4d6aREMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-f246c978-3ab3-4551-bec8-f4444610a51c.sockPWD=/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884TZ=America/Los_AngelesHOME=/home/aos-devLS_COLORS=DOCKER_BUILDKIT=1LESSCLOSE=/usr/bin/lesspipe %s %sREMOTE_CONTAINERS_SOCKETS=["/tmp/vscode-ssh-auth-f246c978-3ab3-4551-bec8-f4444610a51c.sock","/home/aos-dev/.gnupg/S.gpg-agent"]LESSOPEN=| /usr/bin/lesspipe %sUSER=aos-devSHLVL=1PROMPT_DIRTRIM=4PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/aos-dev/.local/bin_=/usr/bin/cat7f1d34a9-2730-474f-8da2-9f9bacf37152
[25550 ms] bash: cannot set terminal process group (98): Inappropriate ioctl for device
bash: no job control in this shell

[25550 ms] userEnvProbe parsed: {
  "HOSTNAME": "6af0abdb4d6a",
  "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-f246c978-3ab3-4551-bec8-f4444610a51c.sock",
  "PWD": "/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884",
  "TZ": "America/Los_Angeles",
  "HOME": "/home/aos-dev",
  "LS_COLORS": "",
  "DOCKER_BUILDKIT": "1",
  "LESSCLOSE": "/usr/bin/lesspipe %s %s",
  "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-f246c978-3ab3-4551-bec8-f4444610a51c.sock\",\"/home/aos-dev/.gnupg/S.gpg-agent\"]",
  "LESSOPEN": "| /usr/bin/lesspipe %s",
  "USER": "aos-dev",
  "SHLVL": "1",
  "PROMPT_DIRTRIM": "4",
  "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/aos-dev/.local/bin",
  "_": "/usr/bin/cat"
}
[25550 ms] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/aos-dev/.local/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[25550 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578' && cat > '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578/env-loginInteractiveShell.json' << 'envJSON'
[25746 ms] 
[25746 ms] 
[25746 ms] Stop (196 ms): Run in container: mkdir -p '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578' && cat > '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578/env-loginInteractiveShell.json' << 'envJSON'
[25899 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).
*
[25914 ms] Server bound to 127.0.0.1:41369 (IPv4)
Extension host agent listening on 41369

[25914 ms] Stop (992 ms): Starting VS Code Server
[25914 ms] Start: Run in container: echo 41369 >'/home/aos-dev/.vscode-server/data/Machine/.devport-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[26013 ms] 
[26013 ms] 
[26013 ms] Stop (99 ms): Run in container: echo 41369 >'/home/aos-dev/.vscode-server/data/Machine/.devport-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884'
[26013 ms] Port forwarding for container port 41369 starts listening on local port.
[26014 ms] Port forwarding local port 41369 to container port 41369
[26019 ms] Stop (25978 ms): Resolving Remote
[26025 ms] Port forwarding connection from 55476 > 41369 > 41369 in the container.
[26035 ms] Start: Run in Host: docker exec -i -u aos-dev -e VSCODE_REMOTE_CONTAINERS_SESSION=d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node -e 
[26216 ms] Start: Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.287.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --container-session-data-folder /tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 --workspace-folder /work/krypton/libaos --id-label devcontainer.local_folder=/work/krypton/libaos --id-label devcontainer.config_file=/work/krypton/libaos/.devcontainer/devcontainer.json --container-id 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 --log-level trace --log-format json --config /work/krypton/libaos/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands false --prebuild false --stop-for-personalization true --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-f246c978-3ab3-4551-bec8-f4444610a51c.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-f246c978-3ab3-4551-bec8-f4444610a51c.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 298 --terminal-rows 37 --dotfiles-target-path ~/dotfiles
[26365 ms] [07:31:55] Remote configuration data at /home/aos-dev/.vscode-server
[26367 ms] [07:31:55] process arguments: {
  _: [],
  host: '127.0.0.1',
  port: '0',
  'connection-token-file': '/home/aos-dev/.vscode-server/data/Machine/.connection-token-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884',
  'without-connection-token': false,
  'disable-websocket-compression': false,
  'print-startup-performance': false,
  'print-ip-address': false,
  'accept-server-license-terms': true,
  'server-data-dir': '/home/aos-dev/.vscode-server',
  'telemetry-level': 'all',
  'enable-smoke-test-driver': false,
  'disable-telemetry': false,
  'disable-workspace-trust': false,
  log: [ 'trace' ],
  'force-disable-user-env': true,
  'enable-sync': false,
  'extensions-download-dir': '/home/aos-dev/.vscode-server/extensionsCache',
  'install-extension': [
    'ms-azuretools.vscode-docker',
    'atlassian.atlascode',
    'ms-vscode.cpptools',
    'numaru.vscode-ceedling-test-adapter',
    'twxs.cmake',
    'ms-vscode.cpptools-extension-pack',
    'ban.troff',
    'SonkengMaldini.conanlight',
    'hbenl.vscode-test-explorer',
    'ryanluker.vscode-coverage-gutters',
    'wayou.vscode-todo-highlight',
    'gruntfuggly.todo-tree',
    'ms-vscode.cmake-tools',
    'ms-vscode.test-adapter-converter',
    'fredericbonnet.cmake-test-adapter'
  ],
  'list-extensions': false,
  'show-versions': false,
  force: false,
  'do-not-sync': false,
  'pre-release': false,
  'start-server': true,
  'enable-remote-auto-shutdown': false,
  'remote-auto-shutdown-without-delay': false,
  'use-host-proxy': false,
  'without-browser-env-var': false,
  help: false,
  version: false,
  'user-data-dir': '/home/aos-dev/.vscode-server/data',
  'builtin-extensions-dir': '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/extensions',
  'extensions-dir': '/home/aos-dev/.vscode-server/extensions',
  logsPath: '/home/aos-dev/.vscode-server/data/logs/20230324T073155'
}
[26367 ms] [07:31:55] 




[26388 ms] [07:31:55] [File Watcher (node.js)] Request to start watching: /home/aos-dev/.vscode-server/data/Machine (excludes: <none>, includes: <all>),/home/aos-dev/.vscode-server/data/Machine/settings.json (excludes: <none>, includes: <all>)
[26408 ms] [07:31:55] resolveShellEnv(): running (macOS/Linux)
[26408 ms] [07:31:55] getUnixShellEnvironment#runAsNode undefined
[07:31:55] getUnixShellEnvironment#noAttach undefined
[26409 ms] [07:31:55] getUnixShellEnvironment#env {
  DOCKER_BUILDKIT: '1',
  HOSTNAME: '6af0abdb4d6a',
  HOME: '/home/aos-dev',
  PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  VSCODE_AGENT_FOLDER: '/home/aos-dev/.vscode-server',
  SHELL: '/bin/bash',
  PWD: '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884',
  TZ: 'America/Los_Angeles',
  VSCODE_HANDLES_SIGPIPE: 'true',
  ELECTRON_RUN_AS_NODE: '1',
  ELECTRON_NO_ATTACH_CONSOLE: '1',
  VSCODE_RESOLVING_ENVIRONMENT: '1'
}
[26434 ms] [07:31:55] ExtensionManagementService#cleanUp
[26435 ms] [07:31:55] getUnixShellEnvironment#shell /bin/bash
[26435 ms] [07:31:55] getUnixShellEnvironment#spawn ["-i","-l","-c"] '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node'  -p '"4ce3dec1c5df" + JSON.stringify(process.env) + "4ce3dec1c5df"'
[26437 ms] Port forwarding 55476 > 41369 > 41369 stderr: Connection established
[26463 ms] Installing extensions...
[26464 ms] [07:31:55] Started scanning user extensions g {
  scheme: 'file',
  authority: '',
  path: '/home/aos-dev/.vscode-server/extensions/extensions.json',
  query: '',
  fragment: '',
  _formatted: 'file:///home/aos-dev/.vscode-server/extensions/extensions.json',
  _fsPath: null
}
[26485 ms] [07:31:55] Extension host agent started.
[26605 ms] [07:31:55] Removing uninstalled extensions: []
[26607 ms] [07:31:55] Started scanning user extensions g {
  scheme: 'file',
  authority: '',
  path: '/home/aos-dev/.vscode-server/extensions',
  query: '',
  fragment: '',
  _formatted: 'file:///home/aos-dev/.vscode-server/extensions',
  _fsPath: '/home/aos-dev/.vscode-server/extensions'
}
[26625 ms] [07:31:55] [File Watcher (node.js)] Request to start watching: /home/aos-dev/.vscode-server/extensions (excludes: <none>, includes: <all>)
[26638 ms] Port forwarding connection from 55477 > 41369 > 41369 in the container.
[26649 ms] Start: Run in Host: docker exec -i -u aos-dev -e VSCODE_REMOTE_CONTAINERS_SESSION=d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node -e 
[26652 ms] [07:31:55] Started initializing default profile extensions in extensions installation folder. file:///home/aos-dev/.vscode-server/extensions
[26653 ms] [07:31:55] Started scanning user extensions g {
  scheme: 'file',
  authority: '',
  path: '/home/aos-dev/.vscode-server/extensions',
  query: '',
  fragment: '',
  _formatted: 'file:///home/aos-dev/.vscode-server/extensions',
  _fsPath: '/home/aos-dev/.vscode-server/extensions'
}
[26654 ms] [07:31:55] [File Watcher (node.js)] Started watching: '/home/aos-dev/.vscode-server/data/Machine'
[26695 ms] [07:31:55] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/home/aos-dev/.vscode-server/data/Machine/settings.json'
[26718 ms] [07:31:55] Scanned user extensions: 0
[26718 ms] [07:31:55] ExtensionManagementService#removeGeneratedFolders
[26727 ms] [07:31:55] getUnixShellEnvironment#raw 4ce3dec1c5df{"SHELL":"/bin/bash","HOSTNAME":"6af0abdb4d6a","ELECTRON_RUN_AS_NODE":"1","PWD":"/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884","TZ":"America/Los_Angeles","HOME":"/home/aos-dev","LS_COLORS":"","VSCODE_AGENT_FOLDER":"/home/aos-dev/.vscode-server","DOCKER_BUILDKIT":"1","LESSCLOSE":"/usr/bin/lesspipe %s %s","VSCODE_HANDLES_SIGPIPE":"true","LESSOPEN":"| /usr/bin/lesspipe %s","USER":"aos-dev","SHLVL":"0","PROMPT_DIRTRIM":"4","ELECTRON_NO_ATTACH_CONSOLE":"1","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/aos-dev/.local/bin","VSCODE_RESOLVING_ENVIRONMENT":"1","_":"/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node"}4ce3dec1c5df

[26730 ms] [07:31:55] getUnixShellEnvironment#stderr bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

[26731 ms] [07:31:55] getUnixShellEnvironment#result {
  SHELL: '/bin/bash',
  HOSTNAME: '6af0abdb4d6a',
  PWD: '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884',
  TZ: 'America/Los_Angeles',
  HOME: '/home/aos-dev',
  LS_COLORS: '',
  VSCODE_AGENT_FOLDER: '/home/aos-dev/.vscode-server',
  DOCKER_BUILDKIT: '1',
  LESSCLOSE: '/usr/bin/lesspipe %s %s',
  VSCODE_HANDLES_SIGPIPE: 'true',
  LESSOPEN: '| /usr/bin/lesspipe %s',
  USER: 'aos-dev',
  SHLVL: '0',
  PROMPT_DIRTRIM: '4',
  PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/aos-dev/.local/bin',
  _: '/vscode/vscode-server/bin/linux-x64/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node'
}
[26735 ms] [07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/atlassian.atlascode-2.10.12
[26737 ms] [07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ban.troff-1.0.22
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/gruntfuggly.todo-tree-0.0.220
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-azuretools.vscode-docker-1.23.3
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cmake-tools-1.13.44
[26737 ms] [07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cmake-tools-1.12.27
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cpptools-1.14.4-linux-x64
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cpptools-1.14.3-linux-x64
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cpptools-1.13.7-linux-x64
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ryanluker.vscode-coverage-gutters-2.10.3
[26739 ms] [07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/atlassian.atlascode-3.0.2.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ban.troff-1.0.24.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/fredericbonnet.cmake-test-adapter-0.17.1.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/gruntfuggly.todo-tree-0.0.224.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/hbenl.vscode-test-explorer-2.21.1.sigzip
[26739 ms] [07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-azuretools.vscode-docker-1.23.3.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-azuretools.vscode-docker-1.24.0.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cmake-tools-1.13.45.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cpptools-1.14.3-linux-x64.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cpptools-1.14.4-linux-x64.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cpptools-1.14.5-linux-x64.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cpptools-extension-pack-1.3.0.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.cpptools-themes-2.0.0.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/ms-vscode.test-adapter-converter-0.1.6.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/numaru.vscode-ceedling-test-adapter-1.10.1.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/redhat.vscode-yaml-1.12.2.sigzip
[26739 ms] [07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/sonkengmaldini.conanlight-1.4.0.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/twxs.cmake-0.0.17.sigzip
[07:31:55] Deleting from cache /home/aos-dev/.vscode-server/extensionsCache/wayou.vscode-todo-highlight-1.0.5.sigzip
[26745 ms] [07:31:55] [File Watcher (node.js)] Started watching: '/home/aos-dev/.vscode-server/extensions'
[26756 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. linux 5.15.0-53-generic x64.
[26756 ms] Start: Run: docker buildx version
[26790 ms] [07:31:55] ComputeTargetPlatform: linux-x64
[07:31:55] Scanned user extensions: 0
[26790 ms] [07:31:55] [File Watcher (node.js)] [raw] ["rename"] extensions.json
[26790 ms] [07:31:55] [File Watcher (node.js)] [raw] ["change"] extensions.json
[26790 ms] [07:31:55] [File Watcher (node.js)] [ADDED] /home/aos-dev/.vscode-server/extensions/extensions.json
[26790 ms] [07:31:55] Completed initializing default profile extensions in extensions installation folder. file:///home/aos-dev/.vscode-server/extensions
[26790 ms] [07:31:55] [File Watcher (node.js)] Request to start watching: /home/aos-dev/.vscode-server/extensions/extensions.json (excludes: <none>, includes: <all>)
[26790 ms] [07:31:55] Scanned user extensions: 0
[26791 ms] [07:31:55] RequestService#request (node) - begin https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery
[07:31:55] resolveShellEnv(): skipped (--force-disable-user-env)
[26841 ms] [07:31:55] Started scanning user extensions g {
  scheme: 'file',
  authority: '',
  path: '/home/aos-dev/.vscode-server/extensions',
  query: '',
  fragment: '',
  _formatted: 'file:///home/aos-dev/.vscode-server/extensions',
  _fsPath: '/home/aos-dev/.vscode-server/extensions'
}
[07:31:55] [File Watcher (node.js)] Started watching: '/home/aos-dev/.vscode-server/extensions/extensions.json'
[07:31:55] Scanned user extensions: 0
[26864 ms] [07:31:55] [File Watcher (node.js)] >> normalized [ADDED] /home/aos-dev/.vscode-server/extensions/extensions.json
[26889 ms] [07:31:55] [File Watcher (node.js)] [CHANGED] /home/aos-dev/.vscode-server/extensions/extensions.json
[26907 ms] [07:31:55] [127.0.0.1][fa5cf168][ManagementConnection] New connection established.
[26924 ms] [07:31:55] RequestService#request (node) - success https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery
[26954 ms] [07:31:55] RequestService#request (node) - begin https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery
[07:31:55] resolveShellEnv(): skipped (--force-disable-user-env)
[26957 ms] [07:31:55] [File Watcher (node.js)] >> normalized [CHANGED] /home/aos-dev/.vscode-server/extensions/extensions.json
[27042 ms] Port forwarding 55477 > 41369 > 41369 stderr: Connection established
[27036 ms] Stop (280 ms): Run: docker buildx version
[27038 ms] github.com/docker/buildx v0.10.0-docker 876462897612d36679153c3414f7689626251501
[27038 ms] 
[27050 ms] Start: Run: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[27133 ms] Port forwarding process for 55476 > 41369 > 41369 in the container:
[
  {
    "pid": 18040,
    "ppid": 10612,
    "bin": "C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",
    "name": "Code.exe",
    "cmd": "\"C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --user-data-dir=\"C:\\Users\\koehlery\\AppData\\Roaming\\Code\" --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 --mojo-platform-channel-handle=1908 --field-trial-handle=1704,i,12991718677560691623,18246770036238254631,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand /prefetch:8"
  }
]
[27133 ms] [07:31:55] RequestService#request (node) - success https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery
[27151 ms] [07:31:55] Started scanning system extensions
[27152 ms] [07:31:55] Started scanning user extensions g {
  scheme: 'file',
  authority: '',
  path: '/home/aos-dev/.vscode-server/extensions/extensions.json',
  query: '',
  fragment: '',
  _formatted: 'file:///home/aos-dev/.vscode-server/extensions/extensions.json',
  _fsPath: '/home/aos-dev/.vscode-server/extensions/extensions.json'
}
[27152 ms] [07:31:55] ExtensionManagementService.refreshReportedCache
[27152 ms] [07:31:55] RequestService#request (node) - begin https://az764295.vo.msecnd.net/extensions/marketplace.json
[07:31:55] resolveShellEnv(): skipped (--force-disable-user-env)
[27152 ms] [07:31:55] Started scanning system extensions
[27152 ms] [07:31:55] Started scanning user extensions g {
  scheme: 'file',
  authority: '',
  path: '/home/aos-dev/.vscode-server/extensions/extensions.json',
  query: '',
  fragment: '',
  _formatted: 'file:///home/aos-dev/.vscode-server/extensions/extensions.json',
  _fsPath: '/home/aos-dev/.vscode-server/extensions/extensions.json'
}
[27152 ms] [07:31:55] Started scanning user extensions g {
  scheme: 'file',
  authority: '',
  path: '/home/aos-dev/.vscode-server/extensions/extensions.json',
  query: '',
  fragment: '',
  _formatted: 'file:///home/aos-dev/.vscode-server/extensions/extensions.json',
  _fsPath: '/home/aos-dev/.vscode-server/extensions/extensions.json'
}
[27145 ms] Stop (95 ms): Run: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[27152 ms] Start: Inspecting container
[27153 ms] Start: Run: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[27242 ms] Stop (89 ms): Run: docker inspect --type container 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762
[27242 ms] Stop (90 ms): Inspecting container
[27245 ms] Start: Run in container: /bin/sh
[27258 ms] Start: Run in container: uname -m
[27474 ms] x86_64
[27474 ms] 
[27474 ms] Stop (216 ms): Run in container: uname -m
[27474 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[27479 ms] NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[27479 ms] 
[27480 ms] Stop (6 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[27480 ms] Start: Run in container: cat /etc/passwd
[27485 ms] Stop (5 ms): Run in container: cat /etc/passwd
[27487 ms] userEnvProbe: loginInteractiveShell (default)
[27488 ms] LifecycleCommandExecutionMap: {
    "onCreateCommand": [],
    "updateContentCommand": [],
    "postCreateCommand": [
        {
            "origin": "devcontainer.json",
            "command": ".devcontainer/setup.sh"
        }
    ],
    "postStartCommand": [],
    "postAttachCommand": [],
    "initializeCommand": []
}
[27488 ms] Start: Run in container: test -f '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578/env-loginInteractiveShell.json'
[27490 ms] 
[27490 ms] 
[27490 ms] Stop (2 ms): Run in container: test -f '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578/env-loginInteractiveShell.json'
[27490 ms] Start: Run in container: mkdir -p '/home/aos-dev/.devcontainer' && CONTENT="$(cat '/home/aos-dev/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-03-24T14:31:45.397003246Z}" != '2023-03-24T14:31:45.397003246Z' ] && echo '2023-03-24T14:31:45.397003246Z' > '/home/aos-dev/.devcontainer/.onCreateCommandMarker'
[27512 ms] 
[27512 ms] 
[27513 ms] Stop (23 ms): Run in container: mkdir -p '/home/aos-dev/.devcontainer' && CONTENT="$(cat '/home/aos-dev/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-03-24T14:31:45.397003246Z}" != '2023-03-24T14:31:45.397003246Z' ] && echo '2023-03-24T14:31:45.397003246Z' > '/home/aos-dev/.devcontainer/.onCreateCommandMarker'
[27513 ms] Start: Run in container: cat '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578/env-loginInteractiveShell.json'
[27519 ms] {
        "HOSTNAME": "6af0abdb4d6a",
        "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-f246c978-3ab3-4551-bec8-f4444610a51c.sock",
        "TZ": "America/Los_Angeles",
        "HOME": "/home/aos-dev",
        "LS_COLORS": "",
        "DOCKER_BUILDKIT": "1",
        "LESSCLOSE": "/usr/bin/lesspipe %s %s",
        "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-f246c978-3ab3-4551-bec8-f4444610a51c.sock\",\"/home/aos-dev/.gnupg/S.gpg-agent\"]",
        "LESSOPEN": "| /usr/bin/lesspipe %s",
        "USER": "aos-dev",
        "SHLVL": "1",
        "PROMPT_DIRTRIM": "4",
        "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/aos-dev/.local/bin",
        "_": "/usr/bin/cat"
}
[27519 ms] 
[27519 ms] Stop (6 ms): Run in container: cat '/tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578/env-loginInteractiveShell.json'
[27519 ms] Start: Run in container: mkdir -p '/home/aos-dev/.devcontainer' && CONTENT="$(cat '/home/aos-dev/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-03-24T14:31:45.397003246Z}" != '2023-03-24T14:31:45.397003246Z' ] && echo '2023-03-24T14:31:45.397003246Z' > '/home/aos-dev/.devcontainer/.updateContentCommandMarker'
[27543 ms] 
[27543 ms] 
[27543 ms] Stop (24 ms): Run in container: mkdir -p '/home/aos-dev/.devcontainer' && CONTENT="$(cat '/home/aos-dev/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-03-24T14:31:45.397003246Z}" != '2023-03-24T14:31:45.397003246Z' ] && echo '2023-03-24T14:31:45.397003246Z' > '/home/aos-dev/.devcontainer/.updateContentCommandMarker'
[27543 ms] Start: Run in container: mkdir -p '/home/aos-dev/.devcontainer' && CONTENT="$(cat '/home/aos-dev/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-03-24T14:31:45.397003246Z}" != '2023-03-24T14:31:45.397003246Z' ] && echo '2023-03-24T14:31:45.397003246Z' > '/home/aos-dev/.devcontainer/.postCreateCommandMarker'
[27553 ms] 
[27553 ms] 
[27553 ms] Stop (10 ms): Run in container: mkdir -p '/home/aos-dev/.devcontainer' && CONTENT="$(cat '/home/aos-dev/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-03-24T14:31:45.397003246Z}" != '2023-03-24T14:31:45.397003246Z' ] && echo '2023-03-24T14:31:45.397003246Z' > '/home/aos-dev/.devcontainer/.postCreateCommandMarker'
Running the postCreateCommand from devcontainer.json...

[27555 ms] Start: Run in container: /bin/sh -c .devcontainer/setup.sh
[27575 ms] [07:31:56] [127.0.0.1][439949d1][ExtensionHostConnection] New connection established.
[27626 ms] [07:31:56] [127.0.0.1][439949d1][ExtensionHostConnection] <346> Launched Extension Host Process.
[27668 ms] Port forwarding process for 55477 > 41369 > 41369 in the container:
[
  {
    "pid": 18040,
    "ppid": 10612,
    "bin": "C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",
    "name": "Code.exe",
    "cmd": "\"C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --user-data-dir=\"C:\\Users\\koehlery\\AppData\\Roaming\\Code\" --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 --mojo-platform-channel-handle=1908 --field-trial-handle=1704,i,12991718677560691623,18246770036238254631,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand /prefetch:8"
  }
]
+ ping -c 1 krypton-conan.arubacorp.net
PING krypton-conan.arubacorp.net (10.82.4.59) 56(84) bytes of data.
64 bytes from jenkins-instanceon.arubacorp.net (10.82.4.59): icmp_seq=1 ttl=62 time=1.02 ms

--- krypton-conan.arubacorp.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.021/1.021/1.021/0.000 ms
+ conan profile detect
[28310 ms] Installing extension 'ms-vscode.cpptools'...
[28312 ms] Installing extension 'numaru.vscode-ceedling-test-adapter'...
[28319 ms] Installing extension 'atlassian.atlascode'...
[28319 ms] Received message: [{"type":"configure","sequence":1,"options":{"cwd":"/work/krypton/libaos","dockerCLI":"docker","dockerComposeCLI":{"version":"1.29.2","cmd":"docker-compose","args":[]},"env":{"USER":"ykoehler","SSH_CLIENT":"15.111.190.46 55453 22","XDG_SESSION_TYPE":"tty","SHLVL":"0","MOTD_SHOWN":"pam","HOME":"/net/spindles/ykoehler","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/11846/bus","LOGNAME":"ykoehler","REMOTE_CONTAINERS_IPC":"","_":"71d67e6c-c087-4261-be3d-0c551ff6ceec","XDG_SESSION_CLASS":"user","XDG_SESSION_ID":"25029","PATH":"/net/spindles/ykoehler/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","XDG_RUNTIME_DIR":"/run/user/11846","REMOTE_CONTAINERS_SOCKETS":"[]","LANG":"en_US.UTF-8","SHELL":"/bin/bash","SSH_CONNECTION":"15.111.190.46 55453 10.82.21.252 22","XDG_DATA_DIRS":"/usr/share/gnome:/usr/local/share/:/usr/share/","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\koehlery\\.vscode\\extensions\\ms-vscode-remote.remote-containers-0.287.0\\scripts\\ssh-askpass.bat","SSH_ASKPASS_REQUIRE":"force","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\koehlery\\.vscode\\extensions\\ms-vscode-remote.remote-containers-0.287.0\\dist\\common\\sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\ssh-askpass-cb014f7c-a96b-4f9e-9f2b-cc1f1c6dfb02-sock","DOCKER_CONTEXT":"default","VSCODE_DOCKER_HOST":"ssh://slrubdev-ykoehler22"},"containerId":"6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762","user":"aos-dev","sessionId":"d987cec5-5c52-40f9-810d-d95551fb81d21679668287578","shutdownAction":"stopCompose","projectName":"libaos_devcontainer","composeFiles":["/work/krypton/libaos/.devcontainer/docker-compose.yml"],"service":"krypton-c-env","logLevel":1,"delay":10000}}]
[28331 ms] [07:31:57] Getting Manifest... ms-vscode.cpptools
[28331 ms] [07:31:57] Getting Manifest... numaru.vscode-ceedling-test-adapter
[07:31:57] Getting Manifest... atlassian.atlascode
[28359 ms] Installing extension 'ms-vscode.cpptools-extension-pack'...
[28360 ms] [07:31:57] Getting Manifest... ms-vscode.cpptools-extension-pack
[28365 ms] Installing extension 'ban.troff'...
[28366 ms] [07:31:57] Getting Manifest... ban.troff
[28370 ms] Installing extension 'twxs.cmake'...
[28371 ms] [07:31:57] Getting Manifest... twxs.cmake
[28382 ms] Installing extension 'ms-azuretools.vscode-docker'...
[28382 ms] [07:31:57] Getting Manifest... ms-azuretools.vscode-docker
[28402 ms] Installing extension 'sonkengmaldini.conanlight'...
[28402 ms] [07:31:57] Getting Manifest... sonkengmaldini.conanlight
[28420 ms] Installing extension 'ryanluker.vscode-coverage-gutters'...
[28420 ms] [07:31:57] Getting Manifest... ryanluker.vscode-coverage-gutters
[28421 ms] Installing extension 'hbenl.vscode-test-explorer'...
[28421 ms] [07:31:57] Getting Manifest... hbenl.vscode-test-explorer
[28447 ms] Installing extension 'wayou.vscode-todo-highlight'...
[28448 ms] [07:31:57] Getting Manifest... wayou.vscode-todo-highlight
[28455 ms] Installing extension 'ms-vscode.cmake-tools'...
[07:31:57] Getting Manifest... ms-vscode.cmake-tools
[28465 ms] Installing extension 'ms-vscode.test-adapter-converter'...
[28466 ms] [07:31:57] Getting Manifest... ms-vscode.test-adapter-converter
[28503 ms] [07:31:57] Installing extension: numaru.vscode-ceedling-test-adapter
[28504 ms] Installing extension 'fredericbonnet.cmake-test-adapter'...
[28504 ms] [07:31:57] Getting Manifest... fredericbonnet.cmake-test-adapter
[28516 ms] [07:31:57] Installing extension: atlassian.atlascode
[28517 ms] [07:31:57] Installing extension: ms-vscode.cpptools-extension-pack
[28535 ms] Installing extension 'gruntfuggly.todo-tree'...
[28535 ms] [07:31:57] Getting Manifest... gruntfuggly.todo-tree
[28566 ms] [07:31:57] Installing extension: ms-vscode.cpptools
[28567 ms] [07:31:57] Installing extension: twxs.cmake
[28569 ms] [07:31:57] Installing extension: ban.troff
[28570 ms] [07:31:57] Installing extension: sonkengmaldini.conanlight
[28573 ms] [07:31:57] Installing extension: ryanluker.vscode-coverage-gutters
[28603 ms] [07:31:57] Installing extension: hbenl.vscode-test-explorer
[28618 ms] [07:31:57] Installing extension: ms-azuretools.vscode-docker
[28618 ms] [07:31:57] Installing extension: wayou.vscode-todo-highlight
[28736 ms] [07:31:57] Installing extension: ms-vscode.cmake-tools
[28740 ms] [07:31:57] Installing extension: fredericbonnet.cmake-test-adapter
[28742 ms] [07:31:57] Installing extension: ms-vscode.test-adapter-converter
[28822 ms] [07:31:57] Installing extension: gruntfuggly.todo-tree
Found gcc 9
gcc>=5, using the major as version
[29924 ms] [07:31:58] Getting Manifest... redhat.vscode-yaml
[29972 ms] [07:31:58] Getting Manifest... hbenl.vscode-test-explorer
[30308 ms] [07:31:58] Getting Manifest... ms-vscode.test-adapter-converter
[30347 ms] [07:31:59] Getting Manifest... ms-vscode.test-adapter-converter
[30452 ms] [07:31:59] Getting Manifest... twxs.cmake
[30529 ms] [07:31:59] Getting Manifest... hbenl.vscode-test-explorer
gcc C++ standard library: libstdc++11
Detected profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux

WARN: This profile is a guess of your environment, please check it.
WARN: The output of this command is not guaranteed to be stable and can change in future Conan versions.
WARN: Use your own profile files for stability.
Saving detected profile to /home/aos-dev/.conan2/profiles/default
+ cp -rf /usr/conan2/profiles /usr/conan2/settings.yml /home/aos-dev/.conan2/
+ conan remote add krypton http://krypton-conan.arubacorp.net:8081/artifactory/api/conan/conan-local --index 0
[31045 ms] [07:31:59] Installing extension: redhat.vscode-yaml atlassian.atlascode
[31200 ms] [07:31:59] Getting Manifest... ms-vscode.test-adapter-converter
+ conan remote login -p 'Krypton0!' krypton admin
[31359 ms] [07:32:00] Getting Manifest... ms-vscode.live-server
[31437 ms] [07:32:00] Waiting for already requested installing extension ms-vscode.test-adapter-converter hbenl.vscode-test-explorer
[31635 ms] [07:32:00] Waiting for already requested installing extension hbenl.vscode-test-explorer numaru.vscode-ceedling-test-adapter
[31636 ms] [07:32:00] Waiting for already requested installing extension ms-vscode.test-adapter-converter numaru.vscode-ceedling-test-adapter
[31938 ms] [07:32:00] Waiting for already requested installing extension twxs.cmake ms-vscode.cmake-tools
[32379 ms] [07:32:01] Waiting for already requested installing extension hbenl.vscode-test-explorer fredericbonnet.cmake-test-adapter
[32379 ms] [07:32:01] Waiting for already requested installing extension ms-vscode.test-adapter-converter fredericbonnet.cmake-test-adapter
[32768 ms] [07:32:01] Installing extension: ms-vscode.live-server ryanluker.vscode-coverage-gutters
[33699 ms] [07:32:02] Getting Manifest... ms-vscode.cpptools
[33827 ms] [07:32:02] Getting Manifest... ms-vscode.cmake-tools
[33933 ms] [07:32:02] Getting Manifest... twxs.cmake
[33958 ms] [07:32:02] Getting Manifest... ms-vscode.cpptools-themes
[34107 ms] [07:32:02] Waiting for already requested installing extension ms-vscode.cpptools ms-vscode.cpptools-extension-pack
[34108 ms] [07:32:02] Waiting for already requested installing extension ms-vscode.cmake-tools ms-vscode.cpptools-extension-pack
[07:32:02] Waiting for already requested installing extension twxs.cmake ms-vscode.cpptools-extension-pack
[34108 ms] [07:32:02] Installing extension: ms-vscode.cpptools-themes ms-vscode.cpptools-extension-pack
[35490 ms] Extensions cache, copy to shared cache: ms-vscode.live-server-0.4.7.sigzip
[35490 ms] Start: Run in container: mkdir -p '/vscode/vscode-server/extensionsCache' && cd '/home/aos-dev/.vscode-server/extensionsCache' && cp 'ms-vscode.live-server-0.4.7.sigzip' '/vscode/vscode-server/extensionsCache'
[35513 ms] [07:32:04] Extension signature verification: twxs.cmake. Verification status: Verified.
[35613 ms] [07:32:04] Extension signature verification: sonkengmaldini.conanlight. Verification status: Verified.
[35614 ms] [07:32:04] Extension signature verification: ban.troff. Verification status: Verified.
[35614 ms] 
[35614 ms] 
[35615 ms] Stop (125 ms): Run in container: mkdir -p '/vscode/vscode-server/extensionsCache' && cd '/home/aos-dev/.vscode-server/extensionsCache' && cp 'ms-vscode.live-server-0.4.7.sigzip' '/vscode/vscode-server/extensionsCache'
[35615 ms] Start: Run in container: cd '/vscode/vscode-server/extensionsCache' && ls -t | tail -n +50 | xargs rm -f
[35685 ms] [07:32:04] Extension signature verification: ms-vscode.cpptools. Verification status: Verified.
[35730 ms] [07:32:04] Extracted extension to /home/aos-dev/.vscode-server/extensions/.83698fe7-e24a-4279-a755-cceaa0c0eb35: sonkengmaldini.conanlight
[35749 ms] [07:32:04] Extracted extension to /home/aos-dev/.vscode-server/extensions/.026e61c0-4439-46fb-9036-6e0fa4d145a3: ban.troff
[35754 ms] [07:32:04] Renamed to /home/aos-dev/.vscode-server/extensions/sonkengmaldini.conanlight-1.4.0
[35760 ms] [07:32:04] Renamed to /home/aos-dev/.vscode-server/extensions/ban.troff-1.0.24
[35771 ms] 
[35771 ms] 
[35771 ms] Stop (156 ms): Run in container: cd '/vscode/vscode-server/extensionsCache' && ls -t | tail -n +50 | xargs rm -f
[35772 ms] [07:32:04] Extracting extension completed. sonkengmaldini.conanlight
[35775 ms] [07:32:04] Extracting extension completed. ban.troff
[35798 ms] [07:32:04] Extension signature verification: wayou.vscode-todo-highlight. Verification status: Verified.
[35801 ms] [07:32:04] Extension installed successfully: sonkengmaldini.conanlight
Extension 'sonkengmaldini.conanlight' v1.4.0 was successfully installed.
[35811 ms] [07:32:04] Extension signature verification: ms-vscode.test-adapter-converter. Verification status: Verified.
[35833 ms] [07:32:04] Extension installed successfully: ban.troff
[35834 ms] Extension 'ban.troff' v1.0.24 was successfully installed.
[35854 ms] [07:32:04] Extension signature verification: redhat.vscode-yaml. Verification status: Verified.
[35920 ms] [07:32:04] Extension signature verification: ms-vscode.live-server. Verification status: Verified.
[35935 ms] [07:32:04] Extracted extension to /home/aos-dev/.vscode-server/extensions/.260e41bf-81fb-45ab-a53d-bd75928af518: ms-vscode.test-adapter-converter
[35945 ms] [07:32:04] Renamed to /home/aos-dev/.vscode-server/extensions/ms-vscode.test-adapter-converter-0.1.6
[35959 ms] [07:32:04] Extracting extension completed. ms-vscode.test-adapter-converter
[35969 ms] [07:32:04] Extension signature verification: fredericbonnet.cmake-test-adapter. Verification status: Verified.
[35977 ms] [07:32:04] Extension signature verification: gruntfuggly.todo-tree. Verification status: Verified.
[35981 ms] [07:32:04] Extension installed successfully: ms-vscode.test-adapter-converter
[35983 ms] [07:32:04] Finished waiting for already requested installing extension ms-vscode.test-adapter-converter hbenl.vscode-test-explorer
[35983 ms] [07:32:04] Finished waiting for already requested installing extension ms-vscode.test-adapter-converter numaru.vscode-ceedling-test-adapter
[35983 ms] [07:32:04] Finished waiting for already requested installing extension ms-vscode.test-adapter-converter fredericbonnet.cmake-test-adapter
[35983 ms] Extension 'ms-vscode.test-adapter-converter' v0.1.6 was successfully installed.
[35984 ms] [07:32:04] Extension signature verification: numaru.vscode-ceedling-test-adapter. Verification status: Verified.
[36012 ms] [07:32:04] Extension signature verification: ms-vscode.cmake-tools. Verification status: Verified.
[36035 ms] [07:32:04] Extension signature verification: hbenl.vscode-test-explorer. Verification status: Verified.
[36035 ms] [07:32:04] Extension signature verification: ms-azuretools.vscode-docker. Verification status: Verified.
Changed user of remote 'krypton' from 'None' (anonymous) to 'admin' (authenticated)
[36218 ms] [07:32:04] Extension signature verification: ms-vscode.cpptools-themes. Verification status: Verified.
+ conan remote add conanv2 https://conanv2beta.jfrog.io/artifactory/api/conan/conan --index 1
[36499 ms] [07:32:05] Extracted extension to /home/aos-dev/.vscode-server/extensions/.e301386f-809f-45b4-863d-233bb6a3e73e: wayou.vscode-todo-highlight
[36564 ms] [07:32:05] Renamed to /home/aos-dev/.vscode-server/extensions/wayou.vscode-todo-highlight-1.0.5
[36612 ms] [07:32:05] Extracting extension completed. wayou.vscode-todo-highlight
[36662 ms] [07:32:05] Extension installed successfully: wayou.vscode-todo-highlight
[36662 ms] Extension 'wayou.vscode-todo-highlight' v1.0.5 was successfully installed.
[36750 ms] [07:32:05] Extracted extension to /home/aos-dev/.vscode-server/extensions/.584fc37b-44c0-41f5-aeb6-3201e21157fc: ms-vscode.cpptools-themes
[36782 ms] [07:32:05] Renamed to /home/aos-dev/.vscode-server/extensions/ms-vscode.cpptools-themes-2.0.0
[36815 ms] [07:32:05] Extracting extension completed. ms-vscode.cpptools-themes
++ getconf _NPROCESSORS_ONLN
+ cpu_count=6
+ echo conan_cpu_count=6
+ npx husky install
[37485 ms] [07:32:06] Extracted extension to /home/aos-dev/.vscode-server/extensions/.f79c3383-dc18-4358-83f9-97659dab9cdf: redhat.vscode-yaml
[37511 ms] [07:32:06] Renamed to /home/aos-dev/.vscode-server/extensions/redhat.vscode-yaml-1.12.2
[37533 ms] [07:32:06] Extracting extension completed. redhat.vscode-yaml
[37785 ms] [07:32:06] Extracted extension to /home/aos-dev/.vscode-server/extensions/.6dc7e86a-6611-47a1-b75e-6c513857922c: gruntfuggly.todo-tree
[37795 ms] [07:32:06] Renamed to /home/aos-dev/.vscode-server/extensions/gruntfuggly.todo-tree-0.0.224
[37813 ms] [07:32:06] Extracting extension completed. gruntfuggly.todo-tree
[37828 ms] [07:32:06] Extension installed successfully: gruntfuggly.todo-tree
[37829 ms] Extension 'gruntfuggly.todo-tree' v0.0.224 was successfully installed.
[37847 ms] [07:32:06] Extracted extension to /home/aos-dev/.vscode-server/extensions/.1105feb7-0b40-4a54-a187-92d3efcad334: hbenl.vscode-test-explorer
[37860 ms] [07:32:06] Renamed to /home/aos-dev/.vscode-server/extensions/hbenl.vscode-test-explorer-2.21.1
[37879 ms] [07:32:06] Extracting extension completed. hbenl.vscode-test-explorer
[37902 ms] [07:32:06] Extension installed successfully: hbenl.vscode-test-explorer
[37903 ms] [07:32:06] Finished waiting for already requested installing extension hbenl.vscode-test-explorer numaru.vscode-ceedling-test-adapter
[07:32:06] Finished waiting for already requested installing extension hbenl.vscode-test-explorer fredericbonnet.cmake-test-adapter
[37903 ms] Extension 'hbenl.vscode-test-explorer' v2.21.1 was successfully installed.
[37993 ms] Port forwarding connection from 55505 > 41369 > 41369 in the container.
[38002 ms] Start: Run in Host: docker exec -i -u aos-dev -e VSCODE_REMOTE_CONTAINERS_SESSION=d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node -e 
[38105 ms] [07:32:06] Extracted extension to /home/aos-dev/.vscode-server/extensions/.72d91eb0-37f9-44e4-9d2d-a36f015bc3e2: fredericbonnet.cmake-test-adapter
[38154 ms] [07:32:06] Renamed to /home/aos-dev/.vscode-server/extensions/fredericbonnet.cmake-test-adapter-0.17.1
[38173 ms] [07:32:06] Extracting extension completed. fredericbonnet.cmake-test-adapter
[38213 ms] [07:32:06] Extension installed successfully: fredericbonnet.cmake-test-adapter
Extension 'fredericbonnet.cmake-test-adapter' v0.17.1 was successfully installed.
[38273 ms] [07:32:06] Extracted extension to /home/aos-dev/.vscode-server/extensions/.39e88241-5319-4c8e-acf1-75251d6c8a01: ms-azuretools.vscode-docker
[38322 ms] [07:32:07] Renamed to /home/aos-dev/.vscode-server/extensions/ms-azuretools.vscode-docker-1.24.0
[38364 ms] [07:32:07] Extracting extension completed. ms-azuretools.vscode-docker
[38395 ms] [07:32:07] Extension installed successfully: ms-azuretools.vscode-docker
[38401 ms] Extension 'ms-azuretools.vscode-docker' v1.24.0 was successfully installed.
[38402 ms] [07:32:07] Extension signature verification: ms-vscode.cpptools-extension-pack. Verification status: Verified.
[38407 ms] Port forwarding 55505 > 41369 > 41369 stderr: Connection established
[38680 ms] [07:32:07] Extracted extension to /home/aos-dev/.vscode-server/extensions/.3227ac0a-28e1-4475-863c-860e9d7051ee: ms-vscode.cpptools-extension-pack
[38706 ms] [07:32:07] Renamed to /home/aos-dev/.vscode-server/extensions/ms-vscode.cpptools-extension-pack-1.3.0
[38723 ms] [07:32:07] Extracting extension completed. ms-vscode.cpptools-extension-pack
[38768 ms] [07:32:07] Extracted extension to /home/aos-dev/.vscode-server/extensions/.72fc3651-c816-44a3-a96d-f7c83f2046a4: twxs.cmake
[38793 ms] [07:32:07] Renamed to /home/aos-dev/.vscode-server/extensions/twxs.cmake-0.0.17
[38794 ms] [07:32:07] Extracting extension completed. twxs.cmake
[38794 ms] [07:32:07] Extension installed successfully: twxs.cmake
[38794 ms] [07:32:07] Finished waiting for already requested installing extension twxs.cmake ms-vscode.cmake-tools
[07:32:07] Finished waiting for already requested installing extension twxs.cmake ms-vscode.cpptools-extension-pack
[38794 ms] Extension 'twxs.cmake' v0.0.17 was successfully installed.
[38848 ms] Port forwarding process for 55505 > 41369 > 41369 in the container:
[
  {
    "pid": 18040,
    "ppid": 10612,
    "bin": "C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",
    "name": "Code.exe",
    "cmd": "\"C:\\Users\\koehlery\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --user-data-dir=\"C:\\Users\\koehlery\\AppData\\Roaming\\Code\" --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 --mojo-platform-channel-handle=1908 --field-trial-handle=1704,i,12991718677560691623,18246770036238254631,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand /prefetch:8"
  }
]
[39057 ms] [07:32:07] Extension signature verification: atlassian.atlascode. Verification status: Verified.
[39127 ms] [07:32:07] Extracted extension to /home/aos-dev/.vscode-server/extensions/.14b9b509-6589-4b25-a71d-840e64cbe8f0: ms-vscode.cmake-tools
[39136 ms] [07:32:07] Renamed to /home/aos-dev/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.45
[39144 ms] [07:32:07] Extracting extension completed. ms-vscode.cmake-tools
[39158 ms] [07:32:07] Extension installed successfully: ms-vscode.cmake-tools
[39161 ms] [07:32:07] Finished waiting for already requested installing extension ms-vscode.cmake-tools ms-vscode.cpptools-extension-pack
[39161 ms] Extension 'ms-vscode.cmake-tools' v1.13.45 was successfully installed.
[39441 ms] [07:32:08] Extracted extension to /home/aos-dev/.vscode-server/extensions/.a94f6296-c05e-4074-88d4-89c37ec5663a: numaru.vscode-ceedling-test-adapter
[39480 ms] [07:32:08] Renamed to /home/aos-dev/.vscode-server/extensions/numaru.vscode-ceedling-test-adapter-1.10.1
[39482 ms] [07:32:08] Extracting extension completed. numaru.vscode-ceedling-test-adapter
[39482 ms] [07:32:08] Extracted extension to /home/aos-dev/.vscode-server/extensions/.649179be-a427-4f79-95e2-4e2e0faceae3: ms-vscode.live-server
[39485 ms] [07:32:08] Extension installed successfully: numaru.vscode-ceedling-test-adapter
[39487 ms] Extension 'numaru.vscode-ceedling-test-adapter' v1.10.1 was successfully installed.
[39488 ms] [07:32:08] Renamed to /home/aos-dev/.vscode-server/extensions/ms-vscode.live-server-0.4.7
[39498 ms] [07:32:08] Extracting extension completed. ms-vscode.live-server
husky - Git hooks installed
[40075 ms] [07:32:08] Extracted extension to /home/aos-dev/.vscode-server/extensions/.bbdecff3-4232-4d07-8f11-f30cd5ce5f8c: atlassian.atlascode
[40081 ms] [07:32:08] Renamed to /home/aos-dev/.vscode-server/extensions/atlassian.atlascode-3.0.2
[40086 ms] [07:32:08] Extracting extension completed. atlassian.atlascode
[40096 ms] [07:32:08] Extension installed successfully: redhat.vscode-yaml
[40096 ms] [07:32:08] Extension installed successfully: atlassian.atlascode
[40097 ms] Extension 'atlassian.atlascode' v3.0.2 was successfully installed.
[40233 ms] Stop (12678 ms): Run in container: /bin/sh -c .devcontainer/setup.sh
[40265 ms] Stop (14049 ms): Run in Host: /net/spindles/ykoehler/.vscode-remote-containers/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /net/spindles/ykoehler/.vscode-remote-containers/dist/dev-containers-cli-0.287.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --container-session-data-folder /tmp/devcontainers-d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 --workspace-folder /work/krypton/libaos --id-label devcontainer.local_folder=/work/krypton/libaos --id-label devcontainer.config_file=/work/krypton/libaos/.devcontainer/devcontainer.json --container-id 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 --log-level trace --log-format json --config /work/krypton/libaos/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands false --prebuild false --stop-for-personalization true --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-f246c978-3ab3-4551-bec8-f4444610a51c.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-f246c978-3ab3-4551-bec8-f4444610a51c.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 298 --terminal-rows 37 --dotfiles-target-path ~/dotfiles
[40468 ms] Start: Run in container: # Test for /home/aos-dev/.gitconfig and git
[40577 ms] 
[40577 ms] 
[40577 ms] Stop (109 ms): Run in container: # Test for /home/aos-dev/.gitconfig and git
[40577 ms] Start: Run in container: # Copy /net/spindles/ykoehler/.gitconfig to /home/aos-dev/.gitconfig
[40765 ms] 
[40765 ms] 
[40765 ms] Stop (188 ms): Run in container: # Copy /net/spindles/ykoehler/.gitconfig to /home/aos-dev/.gitconfig
[40961 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /tmp/vscode-remote-containers-f246c978-3ab3-4551-bec8-f4444610a51c.js git-credential-helper $*; }; f' || true
[41039 ms] [07:32:09] Extension signature verification: ryanluker.vscode-coverage-gutters. Verification status: Verified.
[41061 ms] 
[41062 ms] 
[41062 ms] Stop (101 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node /tmp/vscode-remote-containers-f246c978-3ab3-4551-bec8-f4444610a51c.js git-credential-helper $*; }; f' || true
[42621 ms] [07:32:11] Extracted extension to /home/aos-dev/.vscode-server/extensions/.1e2842d9-9878-4cff-8a69-06cc1a108716: ryanluker.vscode-coverage-gutters
[42642 ms] [07:32:11] Renamed to /home/aos-dev/.vscode-server/extensions/ryanluker.vscode-coverage-gutters-2.10.4
[42651 ms] [07:32:11] Extracting extension completed. ryanluker.vscode-coverage-gutters
[42661 ms] [07:32:11] Extension installed successfully: ms-vscode.live-server
[07:32:11] Extension installed successfully: ryanluker.vscode-coverage-gutters
[42662 ms] Extension 'ryanluker.vscode-coverage-gutters' v2.10.4 was successfully installed.
[47005 ms] [07:32:15] Extracted extension to /home/aos-dev/.vscode-server/extensions/.e1f3b156-345c-4a4d-9516-f890e3715764: ms-vscode.cpptools
[47020 ms] [07:32:15] Renamed to /home/aos-dev/.vscode-server/extensions/ms-vscode.cpptools-1.14.5-linux-x64
[47075 ms] [07:32:15] Extracting extension completed. ms-vscode.cpptools
[47099 ms] [07:32:15] Extension installed successfully: ms-vscode.cpptools
[47110 ms] [07:32:15] Finished waiting for already requested installing extension ms-vscode.cpptools ms-vscode.cpptools-extension-pack
[47111 ms] Extension 'ms-vscode.cpptools' v1.14.5 was successfully installed.
[07:32:15] Extension installed successfully: ms-vscode.cpptools-themes
[47111 ms] [07:32:15] Extension installed successfully: ms-vscode.cpptools-extension-pack
[47111 ms] Extension 'ms-vscode.cpptools-extension-pack' v1.3.0 was successfully installed.
[50550 ms] Port forwarding 55505 > 41369 > 41369 stderr: Remote close
[50581 ms] Stop (12579 ms): Run in Host: docker exec -i -u aos-dev -e VSCODE_REMOTE_CONTAINERS_SESSION=d987cec5-5c52-40f9-810d-d95551fb81d21679668287578 6af0abdb4d6a3122b874f69fb19acb1d25f502a71f540c013bcd8714be3d8762 /home/aos-dev/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/node -e 
[50582 ms] Port forwarding 55505 > 41369 > 41369 terminated with code 0 and signal null.
[88323 ms] Received message: []
[95867 ms] Extensions cache, copy to shared cache: None
[148328 ms] Received message: []
[155974 ms] Extensions cache, copy to shared cache: None
[170585 ms] Port forwarding 55505 > 41369 > 41369: Local close with error
[208331 ms] Received message: []
[216079 ms] Extensions cache, copy to shared cache: None

@hpe-ykoehler
Copy link
Author

I found on stack overlow a command syntax to use non-interactive login:

 $ ssh -f -q -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null slrubdev-ykoehler22.arubacorp.net echo $SSH_AUTH_SOCK

and when I use that I see no value. Will try to find out how to make that work then will retry with vscode.

Yet, I am not clear why Remote-SSH would work, but not Devcontainer.

@chrmarti
Copy link
Contributor

chrmarti commented Apr 3, 2023

You can find log files from previous sessions with F1 > Dev Containers Developer: Show All Logs....

@TheButlah
Copy link

Would it be possible to add a cli arg to make this more easily possible? I am confused how to do this.

@chrmarti
Copy link
Contributor

@TheButlah The ssh-agent is only forwarded when using the Dev Containers extension for VS Code. The Dev Containers CLI does not do that yet. Labelling as feature request.

@chrmarti chrmarti added this to the Backlog milestone May 19, 2023
@chrmarti chrmarti added feature-request New feature or request and removed info-needed Issue requires more information from poster labels May 19, 2023
@hpe-ykoehler
Copy link
Author

One wishes I have is that once devcontainer/cli does it, that vscode stop doing it on its own and relies on the devcontainer/cli tool to do it instead. The idea is that there is a single mechanism to understand/document/debug.

It also seems like there is a similar system related to GPG, likely both would need to be moved from vscode to devcontainer/cli.

@TheButlah
Copy link

TheButlah commented May 19, 2023

BTW, to solve this, I had to both mount the agent socket into the container, set the permission of the socket to allow the user to access it, and set SSH_AUTH_SOCK env var to point to the socket.

On mac, the socket path was the magic path of /run/host-services/ssh-auth.sock, whereas on linux this is likely dynamic.

I still advocate that this functionality be implemented directly in the devcontainers cli, as figuring out how to do all of that was a nightmare.

@hpe-ykoehler
Copy link
Author

@TheButlah I will see if I can repro your result, I am on Ubuntu and I have attempted many things, without success so far. Also there seem to be 2 modes of usage in devcontainer, either Dockefile, docker-compose. I am using docker-compose, which may be slightly different sometimes. I remember having tried to mount the socket in docker-compose and check permission, also move the ssh-agent socket location from ~/.ssh/ which was not accessible to /tmp/, and then also passing an SSH_AUTH_SOCK value that made sense within the container, but where I had success with normal docker container, it didn't work, from memory, using devcontainer.

@andronat
Copy link

JFYI by mounting /run/host-services/ssh-auth.sock on your devcontainer.json like:

	"mounts": [
		"source=/run/host-services/ssh-auth.sock,target=/run/host-services/ssh-auth.sock,type=bind"
	],

Is unfortunately non-portable to other OS like Windows. Native support from devcontainer/cli is required.

I would also like to flag that vscode is additionally do some more magic that involved even .gitconfig. I wonder if is there a plan to migrate all these essential functionality to devcontainer/cli?

@randomthingsandstuff
Copy link

Based on what I'm gathering (and for my several years of trying to do this lazily across docker and k8s) this will require a wrapper so you can mux PTY/std fds and agent sock to target container over stdin/stdout. Which I'm guessing is what the extension does when it runs, based on what I see in lsof. Some similar logic to adapt to whatever Windows needs. Frankly, the easiest solution right now is to run an sshd inside the container (that's super ugly, but will result in less complaints from my devs that writing my own minimally used thing) since it will handle all this stuff out of the box.

It's a nontrivial effort because basically the same pty logic from docker's run/exec commands to setup the terminal and do the right thing over stdin/stdout to the daemon. Then, each channel (pty/ssh agent/gpg agent/x11 socket/...) needs its own flow control to avoid head-of-line blocking before demux. BTW, this technique is definitely required in k8s where you can't easily just reach in and mount stuff. Of course if Microsoft didn't hold the dev containers extension behind the proprietary firewall, this could probably be made to work a bit quicker with some copy+paest engineering.

My use-case is simple: I want to develop in containers without vscode or similar tooling and simply hop in, vim it good, commit, and push all from within the container. I should be able to leave the containers running, drop my ssh session, hop back in, deal with it being run as another user (so realistically, the socket should be proxied inside the container) and generally be as clean every time i do a devcontainer exec.

@trxcllnt
Copy link
Contributor

trxcllnt commented May 13, 2024

If the issue is socket permissions (e.g. host user is root, container user is non-root), you can use socat in the container to proxy to the host's ssh-agent socket. Stick something like this in the postCreateCommand lifecycle step:

# usage:
# devcontainer up \
#   --remote-env "SSH_AUTH_SOCK=/tmp/ssh-auth-sock" \
#   --mount "type=bind,source=${SSH_AUTH_SOCK},target=/tmp/ssh-auth-sock" \
#   ... etc.

# If SSH_AUTH_SOCK exists and isn't owned by the container user, use socat to proxy
# between a socket owned by the container user and the one mounted in from the host
if test -n "${SSH_AUTH_SOCK:-}" \
&& test "${SSH_AUTH_SOCK}" != ~/.ssh/socket \
&& test "$(stat -c "%u:%g" "${SSH_AUTH_SOCK}")" != "$(id -u):$(id -g)"; then
    ssh_auth_sock=~/.ssh/socket;
    # If the remapped ssh socket doesn't already exist
    if ! test -f "${ssh_auth_sock}"; then
        # Map the host's ssh-agent socket to one owned by the container user
        sudo --background socat "UNIX-LISTEN:${ssh_auth_sock},fork,user=$(id -nu),group=$(id -ng),mode=777" "UNIX-CONNECT:${SSH_AUTH_SOCK}";
        sleep 5;
    fi
    # test the remapped ssh-agent socket
    SSH_AUTH_SOCK="${ssh_auth_sock}" ssh-add -L 1>&2;
    # set SSH_AUTH_SOCK to the new remapped one
    echo "SSH_AUTH_SOCK=${ssh_auth_sock}" >> ~/.bashrc;
    export SSH_AUTH_SOCK="${ssh_auth_sock}";
    unset ssh_auth_sock;
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants