microsoft / microsoft/vscode-remote-release
listeningOn is empty and Failed to parse remote port from server output
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Is there an existing issue for this bug?
- I have searched the existing open issues and found none that apply.
- If I find any issue of interest that is related or closed, I will included a link to it in this issue.
Required Troubleshooting Steps
- I have read and performed the troubleshooting steps
- I have tried both values of the
remote.SSH.useLocalServersetting - My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
- I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar
[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I did not try step 2 of the troubleshooting steps
Remote-SSH Log
Remote-SSH Log
[19:35:35.973] Log Level: 2
[19:35:35.983] SSH Resolver called for "ssh-remote+192.168.80.146", attempt 1
[19:35:35.987] remote.SSH.useLocalServer = false
[19:35:35.987] remote.SSH.useExecServer = true
[19:35:35.987] remote.SSH.bindHost = {}
[19:35:35.987] remote.SSH.showLoginTerminal = false
[19:35:35.987] remote.SSH.remotePlatform = {"1.15.141.169":"linux","192.168.80.130":"linux","Kali Linux":"linux","192.168.80.146":"linux"}
[19:35:35.987] remote.SSH.path =
[19:35:35.987] remote.SSH.configFile =
[19:35:35.987] remote.SSH.useFlock = true
[19:35:35.987] remote.SSH.lockfilesInTmp = false
[19:35:35.988] remote.SSH.localServerDownload = auto
[19:35:35.989] remote.SSH.remoteServerListenOnSocket = false
[19:35:35.989] remote.SSH.defaultExtensions = []
[19:35:35.989] remote.SSH.defaultExtensionsIfInstalledLocally = []
[19:35:35.989] remote.SSH.loglevel = 2
[19:35:35.989] remote.SSH.enableDynamicForwarding = true
[19:35:35.989] remote.SSH.enableRemoteCommand = false
[19:35:35.989] remote.SSH.serverPickPortsFromRange = {}
[19:35:35.989] remote.SSH.serverInstallPath = {}
[19:35:35.989] remote.SSH.permitPtyAllocation = false
[19:35:35.990] remote.SSH.preferredLocalPortRange = undefined
[19:35:35.990] remote.SSH.useCurlAndWgetConfigurationFiles = false
[19:35:35.990] remote.SSH.experimental.chat = true
[19:35:35.990] remote.SSH.experimental.enhancedSessionLogs = true
[19:35:35.990] remote.SSH.httpProxy = {"*":""}
[19:35:35.990] remote.SSH.httpsProxy = {"*":""}
[19:35:35.994] VS Code version: 1.102.3
[19:35:35.994] Remote-SSH version: remote-ssh@0.120.0
[19:35:35.994] win32 x64
[19:35:35.996] SSH Resolver called for host: 192.168.80.146
[19:35:35.996] Setting up SSH remote "192.168.80.146"
[19:35:36.001] Using commit id "488a1f239235055e34e673291fb8d8c810886f81" and quality "stable" for server
[19:35:36.001] Extensions to install:
[19:35:36.004] Install and start server if needed
[19:35:36.008] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[19:35:36.009] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[19:35:36.009] Checking ssh with "C:\Windows\ssh.exe -V"
[19:35:36.010] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[19:35:36.010] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[19:35:36.010] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[19:35:36.010] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[19:35:36.011] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[19:35:36.011] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[19:35:36.035] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
[19:35:36.038] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 51028 "192.168.80.146" sh
[19:35:36.038] Generated SSH command: 'type "C:\Users\yhryf\AppData\Local\Temp\vscode-linux-multi-line-command-192.168.80.146-125115992.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 51028 "192.168.80.146" sh'
[19:35:36.039] Using connect timeout of 17 seconds
[19:35:36.039] Terminal shell path: C:\Windows\System32\cmd.exe
[19:35:36.784] >
[19:35:36.784] Got some output, clearing connection timeout
[19:35:36.989] > 660b419e2664: running
> Script executing under PID: 13057
[19:35:36.996] > Installing to /home/yuhr/.vscode-server...
> 660b419e2664%%1%%
> Downloading with wget
[19:35:37.004] > wget is from busybox: no
> Program 'wget' appears to support flag '--no-config'
[19:35:39.297] > Download complete
[19:35:39.305] > 660b419e2664%%2%%
> tar --version: tar (GNU tar) 1.35
> Copyright (C) 2023 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by John Gilmore and Jay Fenlason.
[19:35:39.381] > code 1.102.3 (commit 488a1f239235055e34e673291fb8d8c810886f81)
[19:35:39.390] > Starting VS Code CLI...
> Spawned remote CLI: 13113
> Waiting for server log...
[19:35:39.419] > Waiting for server log...
[19:35:39.451] > Waiting for server log...
[19:35:39.484] > Waiting for server log...
[19:35:39.516] > Waiting for server log...
[19:35:39.548] > Waiting for server log...
[19:35:39.580] > Waiting for server log...
[19:35:39.613] > Waiting for server log...
[19:35:39.645] > Waiting for server log...
[19:35:39.677] > Waiting for server log...
[19:35:39.710] > Waiting for server log...
[19:35:39.742] > Waiting for server log...
[19:35:39.775] > Waiting for server log...
[19:35:39.807] > Waiting for server log...
[19:35:39.839] > Waiting for server log...
[19:35:39.871] > 660b419e2664: start
> listeningOn====
> osReleaseId==opensuse-tumbleweed==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult==success==
> didLocalDownload==0==
> downloadTime==2302==
> installTime==80==
> serverStartTime==487==
> execServerToken==a1111111-11a1-11aa-1aa1-1aaaa1111a1a==
> platformDownloadPath==cli-alpine-x64==
> SSH_AUTH_SOCK====
> DISPLAY====
> 660b419e2664: end
[19:35:39.871] Received install output:
listeningOn====
osReleaseId==opensuse-tumbleweed==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==2302==
installTime==80==
serverStartTime==487==
execServerToken==a1111111-11a1-11aa-1aa1-1aaaa1111a1a==
platformDownloadPath==cli-alpine-x64==
SSH_AUTH_SOCK====
DISPLAY====
[19:35:39.872] Failed to parse remote port from server output
[19:35:39.872] Resolver error: Error
at y.Create (c:\Users\yhryf\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:744751)
at t.handleInstallOutput (c:\Users\yhryf\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:742832)
at t.tryInstall (c:\Users\yhryf\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:865534)
at async c:\Users\yhryf\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824246
at async t.withShowDetailsEvent (c:\Users\yhryf\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:827501)
at async A (c:\Users\yhryf\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:820760)
at async t.resolve (c:\Users\yhryf\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824898)
at async c:\Users\yhryf\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:1113660
[19:35:39.875] ------
[19:35:39.875] No hints found in the recent session.
Expected Behavior
connect success
Actual Behavior
Failed to parse remote port from server output
Steps To Reproduce
Using OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
Remote side is openSUSE Tumbleweed
result of ssh.exe -T -D 52630 -F "C:\Users\yhryf\.ssh\config" 192.168.80.146 is is good
C:\Users\yhryf>"C:\Windows\System32\OpenSSH\ssh.exe" -T -D 52630 -F "C:\Users\yhryf\.ssh\config" 192.168.80.146 ls
Desktop
Documents
Downloads
Music
Pictures
Public
Templates
Videos
bin
go
workspace
I have also tried downgrade the Remote - SSH, and I found some different result
- remote-ssh@0.109.0 can download and connect successfully, everything seems good
- remote-ssh@0.110.0 cannot download but can connect to the server download by @0.109.0
- remote-ssh@0.110.1 failed as the same as the latest version
I found that the struct of .vscode-server has been changed sinse 0.110.1 and use the .vscode-server/code-[commit] rather than use the .vscode-server/bin/[commit].
Dose it make some broken change?
Anything else?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied Remote-SSH log and the handleInstallOutput entry point shown in extension.js, focusing on the empty listeningOn value after the server starts on openSUSE Tumbleweed. Reproduce the connection with the listed OpenSSH command and compare Remote-SSH versions; done means the remote port is parsed and the connection succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- devtools, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100