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

[Remote-SSH Bug]: "Dev Containers:Attach to Running Container" is not working in a specific server #9064

Closed
2 of 3 tasks
newgrit1004 opened this issue Oct 5, 2023 · 30 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH

Comments

@newgrit1004
Copy link

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It connects successfully

->

I was able to attach to running container until yesterday, but it is suddenly unavailable now.

I got the error message

"Command 'Dev Containers: Attach to Running Container...' resulted in an error
The operation was aborted"

this error message doesn't give me any information about how to deal with this situation.

Also, the error message is invoked before showing the list of running containers.
I can't attach to running container in every server.

I removed the folder "/home/username/.vscode-server", "/home/username/.vscode-remote-containers" to re-initialize the setting of vscode, but it doesn't work.

Expected Behavior

I can choose the running containers in the list. Then I can attach to the running container in a new window.

Steps To Reproduce

No response

Remote-SSH Log

Remote-SSH Log

[09:43:51.897] Remote server is listening on port 38043
[09:43:51.897] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":38043},"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/2077","platform":"linux","connectionToken":"1aaaa11a-1111-1a11-1a1a-1a111a1a1aaa"},"downloadTime":1312,"installTime":983,"serverStartTime":82,"installUnpackCode":"success"}
[09:43:51.900] Starting forwarding server. local port 60458 -> socksPort 60455 -> remotePort 38043
[09:43:51.901] Forwarding server listening on port 60458
[09:43:51.901] Waiting for ssh tunnel to be ready
[09:43:51.902] [Forwarding server port 60458] Got connection 0
[09:43:51.903] Tunneled port 38043 to local port 60458
[09:43:51.903] Resolved "ssh-remote+vision_serve" to "port 60458"
[09:43:51.908] ------




[09:43:51.921] > 
[09:43:51.922] [Forwarding server port 60458] Got connection 1
[09:43:51.971] [Forwarding server port 60458] Got connection 2
[09:43:52.453] [Forwarding server port 60458] Got connection 3
[09:43:52.453] [Forwarding server port 60458] Got connection 4
[09:43:52.454] [Forwarding server port 60458] Got connection 5
[09:43:58.174] Opening exec server for ssh-remote+vision_serve
[09:43:58.176] Initizing new exec server for ssh-remote+vision_serve
[09:43:58.185] Using commit id "e7e037083ff4455cf320e344325dacb480062c3c" and quality "stable" for server
[09:43:58.186] Install and start server if needed
[09:43:58.190] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 60455 "vision_serve" bash
[09:43:58.192] Terminal shell path: C:\Windows\System32\cmd.exe
[09:43:58.894] > �]0;C:\Windows\System32\cmd.exe�
[09:43:58.894] Got some output, clearing connection timeout
[09:43:58.954] > sewonkim@172.20.96.65's password: 
[09:43:58.954] Showing password prompt
[09:44:00.823] Got password response
[09:44:00.824] "install" wrote data to terminal: "******"
[09:44:00.852] > 
[09:44:01.392] > 70197a8f4beb: running
[09:44:01.422] > Acquiring lock on /home/sewonkim/.vscode-server/bin/e7e037083ff4455cf320e344325d
> acb480062c3c/vscode-remote-lock.sewonkim.e7e037083ff4455cf320e344325dacb480062c3
> c
[09:44:01.436] > Found existing installation at /home/sewonkim/.vscode-server/bin/e7e037083ff4455
> cf320e344325dacb480062c3c...
> Checking /home/sewonkim/.vscode-server/.e7e037083ff4455cf320e344325dacb480062c3c
> .log and /home/sewonkim/.vscode-server/.e7e037083ff4455cf320e344325dacb480062c3c
> .pid for a running server
> Looking for server with pid: 1077074
[09:44:01.467] > Found running server...
> 
> *
> * Visual Studio Code Server
> *
> * By using the software, you agree to
> * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-lice
> nse) and
> * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacyst
> atement).
> *
> 
> Checking server status on port 38043 with wget
[09:44:01.481] > 70197a8f4beb: start  
> SSH_AUTH_SOCK====    
> DISPLAY====
> webUiAccessToken==== 
> listeningOn==38043== 
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/2077==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> connectionToken==1aaaa11a-1111-1a11-1a1a-1a111a1a1aaa==
> 70197a8f4beb: end
[09:44:01.482] Received install output:   
SSH_AUTH_SOCK====    
DISPLAY====
webUiAccessToken==== 
listeningOn==38043== 
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/2077==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
connectionToken==1aaaa11a-1111-1a11-1a1a-1a111a1a1aaa==

[09:44:01.482] Remote server is listening on port 38043
[09:44:01.482] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":38043},"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/2077","platform":"linux","connectionToken":"1aaaa11a-1111-1a11-1a1a-1a111a1a1aaa"},"installUnpackCode":""}
[09:44:01.485] Starting forwarding server. local port 60481 -> socksPort 60455 -> remotePort 38043
[09:44:01.485] Forwarding server listening on port 60481
[09:44:01.485] Waiting for ssh tunnel to be ready
[09:44:01.486] [Forwarding server port 60481] Got connection 0
[09:44:01.486] Tunneled port 38043 to local port 60481
[09:44:01.487] Resolved "ssh-remote+vision_serve" to "port 60481"
[09:44:01.487] Resolving exec server at port 60481
[09:44:01.488] [Forwarding server port 60481] Got connection 1
[09:44:01.493] Exec server for ssh-remote+vision_serve failed: Error: The operation was aborted
[09:44:01.493] Error opening exec server for ssh-remote+vision_serve: Error: The operation was aborted

Anything else?

No response

@newgrit1004 newgrit1004 added the ssh Issue in vscode-remote SSH label Oct 5, 2023
@lacraig2
Copy link

lacraig2 commented Oct 5, 2023

I am seeing this exact same bug. My vscode host is an M1 Mac and my ssh target is an ubuntu VM.

vscode extension in host machine:

2023-10-04 20:59:09.293 [error] Error: The operation was aborted
	at Socket.<anonymous> (/Users/lu28033/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.2023092715/out/extension.js:2:137710)
	at Object.onceWrapper (node:events:628:26)
	at Socket.emit (node:events:525:35)
	at emitErrorNT (node:internal/streams/destroy:151:8)
	at emitErrorCloseNT (node:internal/streams/destroy:116:3)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21) remote-containers.attachToRunningContainerFromViewlet {"value":"ms-vscode-remote.remote-containers","_lower":"ms-vscode-remote.remote-containers"}

remote-server output:

[20:59:09.217] Remote server is listening on port 34243
[20:59:09.218] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":34243},"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/1002","platform":"linux","connectionToken":"1111aaa1-aaaa-1a11-aaa1-aa111a11a1aa"},"extInstallTime":214,"installUnpackCode":""}
[20:59:09.220] Starting forwarding server. local port 64937 -> socksPort 64903 -> remotePort 34243
[20:59:09.220] Forwarding server listening on port 64937
[20:59:09.220] Waiting for ssh tunnel to be ready
[20:59:09.221] Tunneled port 34243 to local port 64937
[20:59:09.221] Resolved "ssh-remote+server" to "port 64937"
[20:59:09.221] Resolving exec server at port 64937
[20:59:09.222] [Forwarding server port 64937] Got connection 0
[20:59:09.222] [Forwarding server port 64937] Got connection 1
[20:59:09.291] Exec server for ssh-remote+server failed: Error: The operation was aborted
[20:59:09.291] Error opening exec server for ssh-remote+server: Error: The operation was aborted

Edited to add more info.

@yokonao
Copy link

yokonao commented Oct 5, 2023

I encounter the same problem.

The below is logs for vscode extension in host machine.

2023-10-05 10:20:16.499 [error] Error: The operation was aborted
	at Socket.<anonymous> (~/.vscode/extensions/ms-vscode-remote.remote-ssh-0.106.4/out/extension.js:2:137555)
	at Object.onceWrapper (node:events:628:26)
	at Socket.emit (node:events:525:35)
	at emitErrorNT (node:internal/streams/destroy:151:8)
	at emitErrorCloseNT (node:internal/streams/destroy:116:3)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21) remote-containers.openRepositoryInUniqueVolume {"value":"ms-vscode-remote.remote-containers","_lower":"ms-vscode-remote.remote-containers"}
2023-10-05 10:20:17.507 [error] TypeError: Cannot use 'in' operator to search for 'result' in 72
	at ~/.vscode/extensions/ms-vscode-remote.remote-ssh-0.106.4/out/extension.js:2:137281
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

@microhobby
Copy link

Rollbacking to the v0.309.0 fix it

@lacraig2
Copy link

lacraig2 commented Oct 5, 2023

Could someone explain or link to how I can do this?

Rollbacking to the v0.309.0 fix it

edit: Got it. Thanks @microhobby

@microhobby
Copy link

@lacraig2

image

@samuel-odinware
Copy link

Could someone explain or link to how I can do this?

Rollbacking to the v0.309.0 fix it

Open the Dev Containers extension page in vscode and click the dropdown next to Uninstall. You should see an option to Install Another Version.... From there, you will select 0.309.0 from the list.

@yokonao
Copy link

yokonao commented Oct 5, 2023

Extensions > Dev Containers > Unintall > Install Another Version

This comment is easy to understand the way.

#9060 (comment)

@tukutela
Copy link

tukutela commented Oct 5, 2023

same here, rolled back and it now works...

@newgrit1004
Copy link
Author

it also works in my environment. Thanks a million @microhobby.

@Devin-Pi
Copy link

Devin-Pi commented Oct 5, 2023

Rollbacking to the v0.309.0 fix it

Thank you! It works!

@chrmarti
Copy link
Contributor

chrmarti commented Oct 5, 2023

@connor4312 The Cannot use 'in' operator to search for 'result' in 72 error seems to come from here: https://github.com/microsoft/vscode-remote-tunnels/blame/d4789fc7ed4a9b7d428cab28b6d1f24ff27b38df/rpc/src/connectionBearer.ts#L103

I can't reproduce the issue at the moment. Could those seeing it provide additional information on their setup? Please also append the container log from when this happens. (F1 > Dev Containers: Show Container Log)

@rahul-ohlan
Copy link

Many thanks @microhobby <3

@mcanouil
Copy link

mcanouil commented Oct 5, 2023

I am not entirely sure it relates completely to this issue, but the latest release broke completely Dev Containers on remote SSH host not only for attaching containers.
image
It is no longer possible to build nor open Dev Containers.

Context (arch x86-64/amd64):

  • main computer: Windows 11 Enterprise
  • SSH Host: Debian 12 running on a Google Compute Engine instance
  • Dev Container: Ubuntu Jammy
Dev Containers: Show Container Log output v0.315.0
[115549 ms] Dev Containers 0.315.0 in VS Code 1.83.0 (e7e037083ff4455cf320e344325dacb480062c3c).
[115549 ms] Start: Run: C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mickael.canouil\.vscode\extensions\ms-vscode-remote.remote-containers-0.315.0\dist\spec-node\devContainersSpecCLI.js outdated --workspace-folder C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code --config c:\Users\MICKAE~1.CAN\AppData\Local\Temp\dev-container-tmp-d64a49a4-3854-4c43-8a82-4729a3804061\.devcontainer.json --output-format json --log-level debug --log-format json --terminal-columns 161 --terminal-rows 21
[116010 ms] @devcontainers/cli 0.51.3. Node.js v18.15.0. win32 10.0.22621 x64.
[116009 ms] Start: Run: git rev-parse --show-cdup
[116489 ms] Start: Run: docker-credential-wincred get
[116493 ms] Start: Run: docker-credential-wincred get
[116498 ms] Start: Run: docker-credential-wincred get
[116502 ms] Start: Run: docker-credential-wincred get
[116503 ms] Start: Run: docker-credential-wincred get
[116525 ms] findLocalWindowsExecutable: Exectuable 'docker-credential-wincred' not found on PATH 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Common Files\Pulse Secure\TNC Client Plugin\;C:\Program Files\WindowsPowerShell\Scripts\HP.ClientScriptLibrary;C:\Program Files\PowerShell\7\;C:\Users\mickael.canouil\AppData\Local\Microsoft\WindowsApps;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\platform\bundledpython;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\cmd'.
[116528 ms] findLocalWindowsExecutable: Exectuable 'docker-credential-wincred' not found on PATH 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Common Files\Pulse Secure\TNC Client Plugin\;C:\Program Files\WindowsPowerShell\Scripts\HP.ClientScriptLibrary;C:\Program Files\PowerShell\7\;C:\Users\mickael.canouil\AppData\Local\Microsoft\WindowsApps;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\platform\bundledpython;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\cmd'.
[116533 ms] findLocalWindowsExecutable: Exectuable 'docker-credential-wincred' not found on PATH 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Common Files\Pulse Secure\TNC Client Plugin\;C:\Program Files\WindowsPowerShell\Scripts\HP.ClientScriptLibrary;C:\Program Files\PowerShell\7\;C:\Users\mickael.canouil\AppData\Local\Microsoft\WindowsApps;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\platform\bundledpython;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\cmd'.
[116535 ms] findLocalWindowsExecutable: Exectuable 'docker-credential-wincred' not found on PATH 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Common Files\Pulse Secure\TNC Client Plugin\;C:\Program Files\WindowsPowerShell\Scripts\HP.ClientScriptLibrary;C:\Program Files\PowerShell\7\;C:\Users\mickael.canouil\AppData\Local\Microsoft\WindowsApps;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\platform\bundledpython;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\cmd'.
[116537 ms] findLocalWindowsExecutable: Exectuable 'docker-credential-wincred' not found on PATH 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Common Files\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X86\;C:\Program Files (x86)\Common Files\Pulse Secure\TNC Client Plugin\;C:\Program Files\WindowsPowerShell\Scripts\HP.ClientScriptLibrary;C:\Program Files\PowerShell\7\;C:\Users\mickael.canouil\AppData\Local\Microsoft\WindowsApps;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\bin;C:\Users\mickael.canouil\AppData\Local\cloud-code\installer\google-cloud-sdk\platform\bundledpython;C:\Users\mickael.canouil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mickael.canouil\AppData\Local\Programs\Git\cmd'.
Dev Containers: Show Container Log output v0.309.0
[48 ms] Dev Containers 0.309.0 in VS Code 1.83.0 (e7e037083ff4455cf320e344325dacb480062c3c).
[46 ms] Start: Resolving Remote
[57 ms] Start: Run: ssh dls-mcanouil /bin/sh
[76 ms] Start: Run in host: id -un
[14679 ms] mickael_canouil
[14679 ms] 
[14680 ms] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'mickael_canouil' || grep -E '^mickael_canouil|^[^:]*:[^:]*:mickael_canouil:' /etc/passwd || true)
[14711 ms] Start: Run in host: echo ~
[14726 ms] /home/mickael_canouil
[14727 ms] 
[14728 ms] Start: Run in host: test -x '/home/mickael_canouil/.vscode-remote-containers/bin/e7e037083ff4455cf320e344325dacb480062c3c/node'
[14742 ms] 
[14743 ms] 
[14743 ms] Exit code 1
[14743 ms] Start: Run in host: test -x '/home/mickael_canouil/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node'
[14760 ms] 
[14760 ms] 
[14760 ms] Start: Run in host: test -f '/home/mickael_canouil/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node_modules/node-pty/package.json'
[14775 ms] 
[14775 ms] 
[14776 ms] Start: Run in host: test -f '/home/mickael_canouil/.vscode-remote-containers/dist/vscode-remote-containers-server-0.309.0.js'
[14791 ms] 
[14791 ms] 
[14807 ms] userEnvProbe: loginInteractiveShell (default)
[14808 ms] userEnvProbe: not found in cache
[14808 ms] userEnvProbe shell: /bin/bash
[14958 ms] userEnvProbe PATHs:
Probe:     '/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games'
Container: None
[14975 ms] Setting up container for folder or workspace: /home/mickael_canouil/projects/
[14976 ms] Host: ssh://dls-mcanouil
[14978 ms] Start: Run: wsl -l -v
[15163 ms] Could not connect to WSL.
[15163 ms] Command failed: wsl -l -v
[15163 ms] 
Copyright (c) Microsoft Corporation. All rights reserved.

Usage: wsl.exe [Argument]

Arguments:

    --install <Options>
        Install Windows Subsystem for Linux features. If no options are specified,
        the recommended features will be installed along with the default distribution.

        To view the default distribution as well as a list of other valid distributions,
        use 'wsl --list --online'.

        Options:
            --distribution, -d [Argument]
                Specifies the distribution to be downloaded and installed by name.

                Arguments:
                    A valid distribution name (not case sensitive).

                Examples:
                    wsl --install -d Ubuntu
                    wsl --install --distribution Debian

            --inbox
                Install the optional Windows feature instead of the version available via the Microsoft Store.

            --enable-wsl1
                Enable WSL1 support with the Microsoft Store version.

            --no-distribution
                Do not install a distribution (cannot be used with --distribution).

            --no-launch, -n
                Do not launch the distribution after install.

            --web-download
                Download the most recent version of WSL from the internet instead of the Microsoft Store.

    --list, -l [Options]
        Lists distributions.

        Options:
            --online, -o
                Displays a list of available distributions for install with 'wsl --install'.

    --status
        Show the status of Windows Subsystem for Linux.

    --help
        Display usage information.

[15163 ms] 
[15251 ms] Start: Check Docker is running
[15251 ms] Start: Run in Host: docker version --format {{.Server.APIVersion}}
[15302 ms] Server API version: 1.43
[15304 ms] Start: Run in Host: docker volume ls -q
[15347 ms] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=/home/mickael_canouil/projects/ --filter label=vsch.quality=stable
[15404 ms] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/mickael_canouil/projects/ --filter label=devcontainer.config_file=/home/mickael_canouil/projects//.devcontainer/devcontainer.json
[15445 ms] Start: Run in Host: docker inspect --type container 240fb028452b
[15489 ms] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/mickael_canouil/projects/
[15531 ms] Start: Run in Host: docker inspect --type container 240fb028452b
[15573 ms] Start: Run in Host: docker exec -i -u root 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd /bin/sh -c echo "Container already running. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682 ; /bin/sh
[15615 ms] Start: Run in Host: /home/mickael_canouil/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node /home/mickael_canouil/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/mickael_canouil/projects/ --id-label devcontainer.local_folder=/home/mickael_canouil/projects/ --id-label devcontainer.config_file=/home/mickael_canouil/projects//.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/mickael_canouil/projects//.devcontainer/devcontainer.json --mount-workspace-git-root true
[15699 ms] Container already running. Keep-alive process started.
[15896 ms] @devcontainers/cli 0.51.1. Node.js v18.15.0. linux 6.1.0-12-cloud-amd64 x64.
[15896 ms] Start: Run: git rev-parse --show-cdup
[15909 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/mickael_canouil/projects/ --filter label=devcontainer.config_file=/home/mickael_canouil/projects//.devcontainer/devcontainer.json
[15935 ms] Start: Run: docker inspect --type container 240fb028452b
[16002 ms] Start: Run in Host: /home/mickael_canouil/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node /home/mickael_canouil/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682 --workspace-folder /home/mickael_canouil/projects/ --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/mickael_canouil/projects/ --id-label devcontainer.config_file=/home/mickael_canouil/projects//.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/mickael_canouil/projects//.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[16285 ms] @devcontainers/cli 0.51.1. Node.js v18.15.0. linux 6.1.0-12-cloud-amd64 x64.
[16285 ms] Start: Run: docker buildx version
[16389 ms] github.com/docker/buildx v0.11.2 9872040
[16389 ms] 
[16389 ms] Start: Resolving Remote
[16395 ms] Start: Run: git rev-parse --show-cdup
[16501 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/mickael_canouil/projects/ --filter label=devcontainer.config_file=/home/mickael_canouil/projects//.devcontainer/devcontainer.json
[16529 ms] Start: Run: docker inspect --type container 240fb028452b
[16560 ms] Start: Inspecting container
[16561 ms] Start: Run: docker inspect --type container 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd
[16590 ms] Start: Run in container: /bin/sh
[16596 ms] Start: Run in container: uname -m
[16695 ms] x86_64
[16695 ms] 
[16695 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[16698 ms] PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
[16698 ms] 
[16699 ms] Start: Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd 'vscode' || grep -E '^vscode|^[^:]*:[^:]*:vscode:' /etc/passwd || true)
[16703 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[16705 ms] 
[16705 ms] 
[16705 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[16706 ms] 
[16706 ms] 
[16708 ms] Start: Run in Host: docker inspect --type container 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd
[16793 ms] Start: Run in Host: /home/mickael_canouil/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node /home/mickael_canouil/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/mickael_canouil/projects/ --id-label devcontainer.local_folder=/home/mickael_canouil/projects/ --id-label devcontainer.config_file=/home/mickael_canouil/projects//.devcontainer/devcontainer.json --container-id 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd --log-level debug --log-format json --config /home/mickael_canouil/projects//.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[17066 ms] @devcontainers/cli 0.51.1. Node.js v18.15.0. linux 6.1.0-12-cloud-amd64 x64.
[17066 ms] Start: Run: git rev-parse --show-cdup
[17080 ms] Start: Run: docker inspect --type container 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd
[17110 ms] Start: Inspecting container
[17111 ms] Start: Run in Host: docker inspect --type container 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd
[17184 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd /bin/sh
[17206 ms] Start: Run in container: uname -m
[17321 ms] x86_64
[17321 ms] 
[17321 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[17340 ms] PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
[17341 ms] 
[17341 ms] Start: Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd 'vscode' || grep -E '^vscode|^[^:]*:[^:]*:vscode:' /etc/passwd || true)
[17363 ms] Start: Setup shutdown monitor
[17365 ms] Forking shutdown monitor: c:\Users\mickael.canouil\.vscode\extensions\ms-vscode-remote.remote-containers-0.309.0\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-3f47d9b5-88e6-49bd-9465-bf0c48acb484-sock singleContainer Debug c:\Users\mickael.canouil\AppData\Roaming\Code\logs\20231005T101946\window3\exthost\ms-vscode-remote.remote-containers 1696498776475
[17401 ms] Start: Run in container: test -d /home/vscode/.vscode-server
[17422 ms] 
[17422 ms] 
[17423 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[17440 ms] 
[17440 ms] 
[17440 ms] Exit code 1
[17440 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json
[20465 ms] {
        "[r]": {
                "editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?"
        },
        "r.rterm.option": [
                "--no-save",
                "--no-restore-data",
                "--quiet"
        ]
}
[20466 ms] 
[20468 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c
[20488 ms] 
[20488 ms] 
[20488 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/e7e037083ff4455cf320e344325dacb480062c3c
[20507 ms] 
[20508 ms] 
[20510 ms] Start: Run in Host: docker exec -i -u root 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd /bin/sh
[20511 ms] Start: Launching Dev Containers helper.
[20511 ms] ssh-agent: SSH_AUTH_SOCK not set on ssh host.
[20512 ms] ssh-agent: SSH_AUTH_SOCK not set on local host.
[20512 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-a628392e-2c4a-463f-969c-9f97e2f687b5.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent).
[20512 ms] X11 forwarding: DISPLAY not set on ssh host.
[20513 ms] X11 forwarding: DISPLAY not set on local host.
[20513 ms] Start: Run in container: gpgconf --list-dir agent-socket
[20536 ms] /home/vscode/.gnupg/S.gpg-agent
[20536 ms] 
[20536 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/e7e037083ff4455cf320e344325dacb480062c3c'
[20536 ms] Start: Run in container: gpgconf --list-dir homedir
[20556 ms] /home/vscode/.gnupg
[20557 ms] 
[20557 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null
[20621 ms] 
[20621 ms] 
[20622 ms] Exit code 2
[20623 ms] Start: Run in Host: gpgconf --list-dir agent-extra-socket
[20623 ms] 
[20624 ms] 
[20660 ms] /run/user/602289670/gnupg/S.gpg-agent.extra
[20660 ms] 
[20660 ms] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg'
[20660 ms] gpg-agent: Socket in container (/home/vscode/.gnupg/S.gpg-agent) forwarded to ssh host (/run/user/602289670/gnupg/S.gpg-agent.extra).
[20680 ms] 
[20680 ms] 
[20680 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[20680 ms] Start: Run in Host: gpgconf --list-dir homedir
[20722 ms] 
[20722 ms] 
[20722 ms] Exit code 127
[20723 ms] Start: Run in Host: docker exec -i -u vscode 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd /bin/sh
[20724 ms] userEnvProbe: loginInteractiveShell (default)
[20725 ms] Start: Run in container: test -f '/tmp/devcontainers-21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682/env-loginInteractiveShell.json'
[20726 ms] /home/mickael_canouil/.gnupg
[20726 ms] 
[20748 ms] Start: Run in container: echo ~
[20749 ms] 
[20749 ms] 
[20749 ms] Exit code 1
[20749 ms] Start: Run in container: gpgconf --list-dir homedir
[20750 ms] userEnvProbe: not found in cache
[20750 ms] userEnvProbe shell: /bin/bash
[20766 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node /tmp/vscode-remote-containers-a628392e-2c4a-463f-969c-9f97e2f687b5.js git-credential-helper $*; }; f' || true
[20768 ms] /home/vscode/.gnupg
[20768 ms] 
[20789 ms] 
[20789 ms] 
[20791 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 "
[20831 ms] /home/vscode
[20831 ms] 
[20832 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-a628392e-2c4a-463f-969c-9f97e2f687b5.js' >/tmp/vscode-remote-containers-a628392e-2c4a-463f-969c-9f97e2f687b5.js
[20850 ms] 
[20850 ms] 
[20850 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-a628392e-2c4a-463f-969c-9f97e2f687b5.js' >/tmp/vscode-remote-containers-server-a628392e-2c4a-463f-969c-9f97e2f687b5.js_1696498797325
[20881 ms] 
[20881 ms] 
[20884 ms] Start: Run in Host: gpg-connect-agent updatestartuptty /bye
[20908 ms] Start: Run in container: cat '/home/vscode/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/product.json'
[20942 ms] Extension host agent is already running.
[20942 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.devport-e7e037083ff4455cf320e344325dacb480062c3c' 2>/dev/null
[20962 ms] 44289
[20962 ms] 
[20962 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-e7e037083ff4455cf320e344325dacb480062c3c'
[20981 ms] c8cd732d-0a41-44ae-97a1-3524681ba453
[20982 ms] 
[20982 ms] Port forwarding for container port 44289 starts listening on local port.
[20983 ms] Port forwarding local port 44289 to container port 44289
[21008 ms] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[21008 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682' && cat > '/tmp/devcontainers-21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682/env-loginInteractiveShell.json' << 'envJSON'
[21021 ms] Start: Run in Host: /home/mickael_canouil/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node /home/mickael_canouil/.vscode-remote-containers/dist/dev-containers-cli-0.309.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --container-session-data-folder /tmp/devcontainers-21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682 --workspace-folder /home/mickael_canouil/projects/ --id-label devcontainer.local_folder=/home/mickael_canouil/projects/ --id-label devcontainer.config_file=/home/mickael_canouil/projects//.devcontainer/devcontainer.json --container-id 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd --log-level debug --log-format json --config /home/mickael_canouil/projects//.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-a628392e-2c4a-463f-969c-9f97e2f687b5.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-a628392e-2c4a-463f-969c-9f97e2f687b5.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --dotfiles-target-path ~/dotfiles
[21027 ms] 
[21027 ms] 
[21041 ms] Port forwarding connection from 62834 > 44289 > 44289 in the container.
[21042 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd /home/vscode/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node -e 
[21208 ms] Port forwarding 62834 > 44289 > 44289 stderr: Connection established
[21225 ms] Port forwarding connection from 62835 > 44289 > 44289 in the container.
[21225 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd /home/vscode/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node -e 
[21326 ms] @devcontainers/cli 0.51.1. Node.js v18.15.0. linux 6.1.0-12-cloud-amd64 x64.
[21326 ms] Start: Run: docker buildx version
[21395 ms] Port forwarding 62835 > 44289 > 44289 stderr: Connection established
[21434 ms] github.com/docker/buildx v0.11.2 9872040
[21434 ms] 
[21440 ms] Start: Run: git rev-parse --show-cdup
[21449 ms] Start: Run: docker inspect --type container 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd
[21485 ms] Start: Inspecting container
[21485 ms] Start: Run: docker inspect --type container 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd
[21515 ms] Start: Run in container: /bin/sh
[21522 ms] Start: Run in container: uname -m
[21626 ms] x86_64
[21626 ms] 
[21627 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[21630 ms] PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
[21631 ms] 
[21632 ms] Start: Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd 'vscode' || grep -E '^vscode|^[^:]*:[^:]*:vscode:' /etc/passwd || true)
[21637 ms] userEnvProbe: loginInteractiveShell (default)
[21638 ms] Start: Run in container: test -f '/tmp/devcontainers-21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682/env-loginInteractiveShell.json'
[21640 ms] 
[21640 ms] 
[21641 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-10-05T09:14:40.23789227Z}" != '2023-10-05T09:14:40.23789227Z' ] && echo '2023-10-05T09:14:40.23789227Z' > '/home/vscode/.devcontainer/.onCreateCommandMarker'
[21646 ms] 
[21646 ms] 
[21646 ms] Exit code 1
[21647 ms] Start: Run in container: cat '/tmp/devcontainers-21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682/env-loginInteractiveShell.json'
[21649 ms] {
        "HOSTNAME": "240fb028452b",
        "RENV_PATHS_CACHE": "/renv/cache",
        "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-a628392e-2c4a-463f-969c-9f97e2f687b5.sock",
        "HOME": "/home/vscode",
        "LS_COLORS": "",
        "LESSCLOSE": "/usr/bin/lesspipe %s %s",
        "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-a628392e-2c4a-463f-969c-9f97e2f687b5.sock\",\"/home/vscode/.gnupg/S.gpg-agent\"]",
        "LESSOPEN": "| /usr/bin/lesspipe %s",
        "USER": "vscode",
        "SHLVL": "1",
        "PROMPT_DIRTRIM": "4",
        "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin",
        "_": "/usr/bin/cat"
}
[21649 ms] 
[21649 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-10-05T09:14:40.23789227Z}" != '2023-10-05T09:14:40.23789227Z' ] && echo '2023-10-05T09:14:40.23789227Z' > '/home/vscode/.devcontainer/.updateContentCommandMarker'
[21654 ms] 
[21654 ms] 
[21654 ms] Exit code 1
[21655 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-10-05T09:14:40.23789227Z}" != '2023-10-05T09:14:40.23789227Z' ] && echo '2023-10-05T09:14:40.23789227Z' > '/home/vscode/.devcontainer/.postCreateCommandMarker'
[21660 ms] 
[21660 ms] 
[21660 ms] Exit code 1
[21705 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git
[21723 ms] /home/vscode/.gitconfig exists
[21723 ms] 
[21723 ms] Exit code 1
[21777 ms] Start: Run in container: # Cleaning up git config
[21805 ms] 
[21805 ms] 
[21805 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node /tmp/vscode-remote-containers-a628392e-2c4a-463f-969c-9f97e2f687b5.js git-credential-helper $*; }; f' || true
[21829 ms] 
[21829 ms] 
[27073 ms] Start: Run in container: cat /proc/8287/environ
[35036 ms] Port forwarding connection from 57285 > 44289 > 44289 in the container.
[35036 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=21966373-b2b6-45e3-b7c6-c1b64aab98d31696498775682 240fb028452b40dd5b18f4878aa8b6a7fdcbd68a956cacfa4ac12afcda4b3edd /home/vscode/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/node -e 
[35205 ms] Port forwarding 57285 > 44289 > 44289 stderr: Connection established
[40216 ms] Port forwarding 57285 > 44289 > 44289 stderr: Remote close
[40224 ms] Port forwarding 57285 > 44289 > 44289 terminated with code 0 and signal null.

@mrekin
Copy link

mrekin commented Oct 5, 2023

Have the same error with 315/316 versions, had to roll back
Last log i found
`[12:45:37.094] Remote server is listening on port 37673
[12:45:37.094] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":37673},"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/1000","platform":"linux","connectionToken":"a111a1a1-1111-1111-1a1a-1a111aa1a111"},"installUnpackCode":""}
[12:45:37.096] Starting forwarding server. local port 50896 -> socksPort 50871 -> remotePort 37673
[12:45:37.097] Forwarding server listening on port 50896
[12:45:37.098] Waiting for ssh tunnel to be ready
[12:45:37.098] [Forwarding server port 50896] Got connection 0
[12:45:37.099] Tunneled port 37673 to local port 50896
[12:45:37.099] Resolved "ssh-remote+192.168.1.115" to "port 50896"

[12:45:37.099] Resolving exec server at port 50896

[12:45:37.101] [Forwarding server port 50896] Got connection 1

[12:45:37.107] >

[12:45:37.112] Exec server for ssh-remote+192.168.1.115 failed: Error: The operation was aborted

[12:45:37.112] Error opening exec server for ssh-remote+192.168.1.115: Error: The operation was aborted`

@chrmarti
Copy link
Contributor

chrmarti commented Oct 5, 2023

The local OS might make a difference, got it with the following steps:

  • Connect with VS Code 1.83 on Windows to a SSH server on Linux using Remote-SSH (0.106.4).
  • Run Dev Containers: Attach to Running Container... (Dev Containers 0.315.1).
  • Getting:
  ERR Could not find pty on pty host: CodeExpectedError: Could not find pty on pty host
    at A.U (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:32246)
    at A.updateIcon (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:27496)
    at V.<computed> (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:22715)
    at Object.call (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:34:5059)
    at h.s (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:5150)
    at h.q (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:4661)
    at g.value (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:4066)
    at n.z (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:27:1902)
    at n.fire (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:27:2119)
    at process.he (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:25:9949)
    at process.emit (node:events:513:28)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
log.ts:441   ERR Could not find pty on pty host: CodeExpectedError: Could not find pty on pty host
    at A.U (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:32246)
    at A.updateTitle (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:27446)
    at V.<computed> (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:22715)
    at Object.call (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:34:5059)
    at h.s (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:5150)
    at h.q (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:4661)
    at g.value (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:4066)
    at n.z (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:27:1902)
    at n.fire (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:27:2119)
    at process.he (/home/chrmarti/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:25:9949)
    at process.emit (node:events:513:28)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
notificationsAlerts.ts:42 Error running command remote-containers.attachToRunningContainerFromViewlet: The operation was aborted. This is likely caused by the extension that contributes remote-containers.attachToRunningContainerFromViewlet.
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
z @ event.ts:1138
A @ event.ts:1149
fire @ event.ts:1173
addNotification @ notifications.ts:204
error @ notificationService.ts:130
(anonymous) @ treeView.ts:1487
z @ event.ts:1138
A @ event.ts:1149
fire @ event.ts:1173
run @ actions.ts:190
await in run (async)
onClick @ actionViewItems.ts:170
(anonymous) @ menu.ts:499
setTimeout (async)
(anonymous) @ menu.ts:498
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot use 'in' operator to search for 'result' in 72
$ @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:456
Q @ rpcProtocol.ts:441
M @ rpcProtocol.ts:371
L @ rpcProtocol.ts:297
(anonymous) @ rpcProtocol.ts:161
z @ event.ts:1138
fire @ event.ts:1169
fire @ ipc.net.ts:650
Y.onmessage @ localProcessExtensionHost.ts:581
console.ts:137 [Extension Host] stack trace: TypeError: Cannot use 'in' operator to search for 'result' in 72
	at c:\Users\chrmarti\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.4\out\extension.js:2:137281
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
$ @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:456
Q @ rpcProtocol.ts:441
M @ rpcProtocol.ts:371
L @ rpcProtocol.ts:297
(anonymous) @ rpcProtocol.ts:161
z @ event.ts:1138
fire @ event.ts:1169
fire @ ipc.net.ts:650
Y.onmessage @ localProcessExtensionHost.ts:581
mainThreadExtensionService.ts:81 [ms-vscode-remote.remote-ssh]Cannot use 'in' operator to search for 'result' in 72
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
S @ rpcProtocol.ts:456
Q @ rpcProtocol.ts:441
M @ rpcProtocol.ts:371
L @ rpcProtocol.ts:297
(anonymous) @ rpcProtocol.ts:161
z @ event.ts:1138
fire @ event.ts:1169
fire @ ipc.net.ts:650
Y.onmessage @ localProcessExtensionHost.ts:581
mainThreadExtensionService.ts:82 TypeError: Cannot use 'in' operator to search for 'result' in 72
	at c:\Users\chrmarti\.vscode\extensions\ms-vscode-remote.remote-ssh-0.106.4\out\extension.js:2:137281
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:82
S @ rpcProtocol.ts:456
Q @ rpcProtocol.ts:441
M @ rpcProtocol.ts:371
L @ rpcProtocol.ts:297
(anonymous) @ rpcProtocol.ts:161
z @ event.ts:1138
fire @ event.ts:1169
fire @ ipc.net.ts:650
Y.onmessage @ localProcessExtensionHost.ts:581
log.ts:441 

Not sure if the Could not find pty on pty host error is related at all, but I see that right before the Cannot use 'in' operator to search for 'result' in 72 error. /cc @Tyriar

@chrmarti
Copy link
Contributor

chrmarti commented Oct 5, 2023

Moving up to Remote-SSH v0.107.2023092715 avoids the Cannot use 'in' operator to search for 'result' in 72 error. The Could not find pty on pty host errors remain.

Stack from The operation was aborted error:
"Error: The operation was aborted\n\tat Socket. (c:\Users\chrmarti\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.2023092715\out\extension.js:2:137710)\n\tat Object.onceWrapper (node:events:628:26)\n\tat Socket.emit (node:events:525:35)\n\tat emitErrorNT (node:internal/streams/destroy:151:8)\n\tat emitErrorCloseNT (node:internal/streams/destroy:116:3)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:82:21)"

This seems to be from https://github.com/microsoft/vscode-remote-tunnels/blame/d4789fc7ed4a9b7d428cab28b6d1f24ff27b38df/rpc/src/connectionBearer.ts#L123.

@grphine
Copy link

grphine commented Oct 5, 2023

I encountered this problem today. dev containers works fine when locally connected to the machine, however would crash when networked over wireguard.
I can confirm that it works again on 0.309.

My logs look identical to mrekin's, except for the following:

[15:25:51.335] [Forwarding server port 54943] Got connection 1
[15:25:51.341] "install" terminal received data: ""
[15:25:51.418] Exec server for ssh-remote+jdebwg failed: Error: The operation was aborted

@chrmarti
Copy link
Contributor

chrmarti commented Oct 5, 2023

@connor4312 I don't see this with todays 1.84-Insiders. Does that include a fix in this area?

@chrmarti
Copy link
Contributor

chrmarti commented Oct 5, 2023

Enabling Remote.SSH: Use Exec Server in the user settings works around this issue (this setting is enabled in 1.84-Insiders, thanks @connor4312 for the tip!):
image

@samuel-odinware
Copy link

Enabling Remote.SSH: Use Exec Server in the user settings works around this issue (this setting is enabled in 1.84-Insiders, thanks @connor4312 for the tip!): image

This solution worked for me.

I was experiencing the same issue and had rolled back to the previous version; which worked. After seeing this comment, I upgraded and tested with Remote.SSH: Use Exec Server enable and it worked.

@burkeholland
Copy link

Enabling Remote.SSH: Use Exec Server in the user settings works around this issue (this setting is enabled in 1.84-Insiders, thanks @connor4312 for the tip!): image

This solution worked for me as well with the current version of DevContainers extension (v0.315.1)

@connor4312
Copy link
Member

A new ssh release will go out shortly that removes the need to manually change the setting

@connor4312 connor4312 added the bug Issue identified by VS Code Team member as probable bug label Oct 5, 2023
@sarahgmaximo
Copy link

Deu certo pra mim, gente

@SoggyOtter
Copy link

Enabling Remote.SSH: Use Exec Server in the user settings works around this issue (this setting is enabled in 1.84-Insiders, thanks @connor4312 for the tip!):

image

This worked for me as well. I thought I had broken something between switching projects.

Thanks !

@hoangkhai6893
Copy link

Enabling Remote.SSH: Use Exec Server in the user settings works around this issue (this setting is enabled in 1.84-Insiders, thanks @connor4312 for the tip!): image
This solution is working so well. Thank for support

@Hsuan0903
Copy link

Enabling Remote.SSH: Use Exec Server in the user settings works around this issue (this setting is enabled in 1.84-Insiders, thanks @connor4312 for the tip!):
image

This solution is working as well in my enviroment.
Thanks ! @connor4312

@DALBrian
Copy link

DALBrian commented Oct 6, 2023

Rollbacking to the v0.309.0 fix it

work!

@4llan
Copy link

4llan commented Oct 6, 2023

I'm facing a related issue here, but the error is:

[11:52:37.399] Error opening exec server for ssh-remote+debian-vm: Error: The operation was aborted
[11:52:40.387] > local-server-3> Timed out

and

[11:52:36.937] stderr> OpenSSH_9.0p1, OpenSSL 3.0.9 30 May 2023
[11:52:36.986] stderr> debug1: Server host key: ssh-ed25519 SHA256:xxxyyy
[11:52:37.057] stderr> Authenticated to debian-vm ([172.16.0.58]:22) using "publickey".
[11:52:37.058] stderr> bind [::1]:35391: Address already in use
[11:52:37.059] stderr> bind [127.0.0.1]:35391: Address already in use
[11:52:37.059] stderr> channel_setup_fwd_listener_tcpip: cannot listen to port: 35391
[11:52:37.059] stderr> Could not request local forwarding.

v0.309.0 do not have this issue, everything is normal from there.

I'm using VS Code from a Fedora host, connecting via SSH to a Debian VM with Docker installed. I already did ssh-add in my host machine, and the remote connection works fine. But when I try to "Rebuild and Reopen in Container", the operation is aborted:
image

Enabling Remote.SSH: Use Exec Server do not works for me. I don't get the instantaneous operation aborted, but the host is waiting indefinitely to "Setting up SSH Host debian-vm: Waiting for port forwarding to be ready"
image

@connor4312
Copy link
Member

The fix is now out in Remote - SSH 0.106.5. Took a little longer and there were some additional changes needed.

I'm facing a related issue here, but the error is:

That's also fixed by this version ^

@4llan
Copy link

4llan commented Oct 6, 2023

Thank you very much. I can confirm that the problem's gone with Remote - SSH v0.106.5 and Dev Containers v0.315.1.

The fix is now out in Remote - SSH 0.106.5. Took a little longer and there were some additional changes needed.

I'm facing a related issue here, but the error is:

That's also fixed by this version ^

@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests