microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.64k stars 285 forks source link

[Remote-SSH Bug]: Not able to forward to some ports. #8213

Closed FroggyPanda closed 1 year ago

FroggyPanda commented 1 year ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

Currently running into an issue with the Forward Port feature does not work on some projects. I so far have tried using Astro, React, Vite, and DiscordX with the feature only working on my React and DiscordX projects.

Expected Behavior

Some sever ports are not being forwarded correctly. I am SSHing into a Raspberry Pi 4B and 2 out of the 4 project I have tried that run a local web server do not get forwarded correctly. I have tried Astro , a Vanilla Typescript Vite project, a React project, and a DiscordX project. The two that I am currently have luck with forwarding the ports is React and DiscordX with both manually entering their ports and VSCode automatically recognizing that there are ports to be forwarded.

Steps To Reproduce

// creating astro project npm create astro@latest npm i npm run dev

// creating vite project npm create vite@latest // selection 'Vanilla' as framework and 'Typescript' as variant npm i npm run dev

// creating discordx project npx create-discordx // select template named 'started-with-API' npm i npm run watch

// creating react project npx create-react-app my-app cd my-app npm start

Remote-SSH Log

Remote-SSH Log

``` [09:39:35.087] Log Level: 2 [09:39:35.102] SSH Resolver called for "ssh-remote+raspberrypi", attempt 1 [09:39:35.104] "remote.SSH.useLocalServer": true [09:39:35.107] "remote.SSH.path": undefined [09:39:35.107] "remote.SSH.configFile": undefined [09:39:35.107] "remote.SSH.useFlock": true [09:39:35.107] "remote.SSH.lockfilesInTmp": false [09:39:35.108] "remote.SSH.localServerDownload": auto [09:39:35.108] "remote.SSH.remoteServerListenOnSocket": false [09:39:35.108] "remote.SSH.showLoginTerminal": false [09:39:35.108] "remote.SSH.defaultExtensions": [] [09:39:35.108] "remote.SSH.loglevel": 2 [09:39:35.109] "remote.SSH.enableDynamicForwarding": true [09:39:35.109] "remote.SSH.enableRemoteCommand": false [09:39:35.109] "remote.SSH.serverPickPortsFromRange": {} [09:39:35.109] "remote.SSH.serverInstallPath": {} [09:39:35.120] VS Code version: 1.76.2 [09:39:35.120] Remote-SSH version: remote-ssh@0.98.0 [09:39:35.120] win32 x64 [09:39:35.121] SSH Resolver called for host: raspberrypi [09:39:35.121] Setting up SSH remote "raspberrypi" [09:39:35.124] Acquiring local install lock: C:\Users\adm\AppData\Local\Temp\vscode-remote-ssh-b39d881e-install.lock [09:39:35.126] Looking for existing server data file at c:\Users\adm\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-b39d881e-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-0.98.0\data.json [09:39:35.126] Using commit id "ee2b180d582a7f601fa6ecfdad8d9fd269ab1884" and quality "stable" for server [09:39:35.130] Install and start server if needed [09:39:35.132] Checking ssh with "C:\VulkanSDK\1.2.189.2\Bin\ssh.exe -V" [09:39:35.135] Got error from ssh: spawn C:\VulkanSDK\1.2.189.2\Bin\ssh.exe ENOENT [09:39:35.135] Checking ssh with "C:\Program Files\Oculus\Support\oculus-runtime\ssh.exe -V" [09:39:35.137] Got error from ssh: spawn C:\Program Files\Oculus\Support\oculus-runtime\ssh.exe ENOENT [09:39:35.137] Checking ssh with "C:\Program Files (x86)\Razer\ChromaBroadcast\bin\ssh.exe -V" [09:39:35.138] Got error from ssh: spawn C:\Program Files (x86)\Razer\ChromaBroadcast\bin\ssh.exe ENOENT [09:39:35.138] Checking ssh with "C:\Program Files\Razer\ChromaBroadcast\bin\ssh.exe -V" [09:39:35.140] Got error from ssh: spawn C:\Program Files\Razer\ChromaBroadcast\bin\ssh.exe ENOENT [09:39:35.140] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe -V" [09:39:35.141] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe ENOENT [09:39:35.142] Checking ssh with "C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler\ssh.exe -V" [09:39:35.143] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler\ssh.exe ENOENT [09:39:35.143] Checking ssh with "C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe -V" [09:39:35.144] Got error from ssh: spawn C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe ENOENT [09:39:35.145] Checking ssh with "C:\Program Files\Razer Chroma SDK\bin\ssh.exe -V" [09:39:35.146] Got error from ssh: spawn C:\Program Files\Razer Chroma SDK\bin\ssh.exe ENOENT [09:39:35.146] Checking ssh with "C:\ProgramData\Oracle\Java\javapath\ssh.exe -V" [09:39:35.147] Got error from ssh: spawn C:\ProgramData\Oracle\Java\javapath\ssh.exe ENOENT [09:39:35.148] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V" [09:39:35.149] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT [09:39:35.149] Checking ssh with "C:\WINDOWS\ssh.exe -V" [09:39:35.150] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT [09:39:35.151] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V" [09:39:35.152] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT [09:39:35.152] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V" [09:39:35.153] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [09:39:35.154] Checking ssh with "C:\Program Files (x86)\GtkSharp\2.12\bin\ssh.exe -V" [09:39:35.155] Got error from ssh: spawn C:\Program Files (x86)\GtkSharp\2.12\bin\ssh.exe ENOENT [09:39:35.155] Checking ssh with "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps\ssh.exe -V" [09:39:35.156] Got error from ssh: spawn C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT [09:39:35.156] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [09:39:35.183] > OpenSSH_for_Windows_8. [09:39:35.183] > 1p1, LibreSSL 3.0.2 [09:39:35.185] Checking ssh with "C:\Program Files\dotnet\ssh.exe -V" [09:39:35.186] Got error from ssh: spawn C:\Program Files\dotnet\ssh.exe ENOENT [09:39:35.186] Checking ssh with "C:\Program Files\Microsoft SQL Server\130\Tools\Binn\ssh.exe -V" [09:39:35.187] Got error from ssh: spawn C:\Program Files\Microsoft SQL Server\130\Tools\Binn\ssh.exe ENOENT [09:39:35.188] Checking ssh with "C:\Users\adm\AppData\Local\Microsoft\WindowsApps\ssh.exe -V" [09:39:35.188] Got error from ssh: spawn C:\Users\adm\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT [09:39:35.189] Checking ssh with "C:\Users\adm\AppData\Local\atom\bin\ssh.exe -V" [09:39:35.189] Got error from ssh: spawn C:\Users\adm\AppData\Local\atom\bin\ssh.exe ENOENT [09:39:35.190] Checking ssh with "C:\Users\adm\AppData\Local\GitHubDesktop\bin\ssh.exe -V" [09:39:35.191] Got error from ssh: spawn C:\Users\adm\AppData\Local\GitHubDesktop\bin\ssh.exe ENOENT [09:39:35.191] Checking ssh with "C:\Program Files\Git LFS\ssh.exe -V" [09:39:35.192] Got error from ssh: spawn C:\Program Files\Git LFS\ssh.exe ENOENT [09:39:35.192] Checking ssh with "V:\Program Files\Git LFS\ssh.exe -V" [09:39:35.193] Got error from ssh: spawn V:\Program Files\Git LFS\ssh.exe ENOENT [09:39:35.193] Checking ssh with "C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\ssh.exe -V" [09:39:35.194] Got error from ssh: spawn C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\ssh.exe ENOENT [09:39:35.195] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V" [09:39:35.196] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT [09:39:35.196] Checking ssh with "C:\WINDOWS\ssh.exe -V" [09:39:35.197] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT [09:39:35.197] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V" [09:39:35.198] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT [09:39:35.198] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V" [09:39:35.200] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [09:39:35.200] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [09:39:35.228] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2 [09:39:35.230] Checking ssh with "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe -V" [09:39:35.231] Got error from ssh: spawn C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe ENOENT [09:39:35.231] Checking ssh with "C:\Program Files\Git\cmd\ssh.exe -V" [09:39:35.232] Got error from ssh: spawn C:\Program Files\Git\cmd\ssh.exe ENOENT [09:39:35.233] Checking ssh with "C:\ffmpeg\ssh.exe -V" [09:39:35.233] Got error from ssh: spawn C:\ffmpeg\ssh.exe ENOENT [09:39:35.234] Checking ssh with "C:\Program Files\starship\bin\ssh.exe -V" [09:39:35.235] Got error from ssh: spawn C:\Program Files\starship\bin\ssh.exe ENOENT [09:39:35.235] Checking ssh with "C:\Users\adm\AppData\Local\Programs\Python\Python311\ssh.exe -V" [09:39:35.236] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\Python\Python311\ssh.exe ENOENT [09:39:35.236] Checking ssh with "C:\Users\adm\AppData\Local\Programs\Python\Python311\Scripts\ssh.exe -V" [09:39:35.237] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\Python\Python311\Scripts\ssh.exe ENOENT [09:39:35.237] Checking ssh with "C:\Users\adm\AppData\Local\pnpm\ssh.exe -V" [09:39:35.238] Got error from ssh: spawn C:\Users\adm\AppData\Local\pnpm\ssh.exe ENOENT [09:39:35.238] Checking ssh with "C:\Program Files\nodejs\ssh.exe -V" [09:39:35.239] Got error from ssh: spawn C:\Program Files\nodejs\ssh.exe ENOENT [09:39:35.240] Checking ssh with "C:\Users\adm\AppData\Local\pnpm\ssh.exe -V" [09:39:35.240] Got error from ssh: spawn C:\Users\adm\AppData\Local\pnpm\ssh.exe ENOENT [09:39:35.241] Checking ssh with "C:\Users\adm\scoop\shims\ssh.exe -V" [09:39:35.242] Got error from ssh: spawn C:\Users\adm\scoop\shims\ssh.exe ENOENT [09:39:35.242] Checking ssh with "C:\Users\adm\AppData\Local\Programs\Python\Python311\Scripts\ssh.exe -V" [09:39:35.243] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\Python\Python311\Scripts\ssh.exe ENOENT [09:39:35.244] Checking ssh with "C:\Users\adm\AppData\Local\Programs\Python\Python311\ssh.exe -V" [09:39:35.245] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\Python\Python311\ssh.exe ENOENT [09:39:35.245] Checking ssh with "C:\Users\adm\AppData\Local\pnpm\ssh.exe -V" [09:39:35.246] Got error from ssh: spawn C:\Users\adm\AppData\Local\pnpm\ssh.exe ENOENT [09:39:35.247] Checking ssh with "C:\Users\adm\AppData\Local\Programs\Python\Python310\Scripts\ssh.exe -V" [09:39:35.248] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\Python\Python310\Scripts\ssh.exe ENOENT [09:39:35.248] Checking ssh with "C:\Users\adm\AppData\Local\Programs\Python\Python310\ssh.exe -V" [09:39:35.249] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\Python\Python310\ssh.exe ENOENT [09:39:35.250] Checking ssh with "C:\Users\adm\AppData\Local\Microsoft\WindowsApps\ssh.exe -V" [09:39:35.251] Got error from ssh: spawn C:\Users\adm\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT [09:39:35.251] Checking ssh with "C:\Users\adm\AppData\Local\Microsoft\WindowsApps\ssh.exe -V" [09:39:35.252] Got error from ssh: spawn C:\Users\adm\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT [09:39:35.252] Checking ssh with "C:\Users\adm\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe -V" [09:39:35.254] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe ENOENT [09:39:35.254] Checking ssh with "C:\Program Files (x86)\GitHub CLI\ssh.exe -V" [09:39:35.255] Got error from ssh: spawn C:\Program Files (x86)\GitHub CLI\ssh.exe ENOENT [09:39:35.255] Checking ssh with "C:\Users\adm\Documents\flutter\bin\ssh.exe -V" [09:39:35.256] Got error from ssh: spawn C:\Users\adm\Documents\flutter\bin\ssh.exe ENOENT [09:39:35.256] Checking ssh with "C:\Users\adm\spicetify-cli\ssh.exe -V" [09:39:35.258] Got error from ssh: spawn C:\Users\adm\spicetify-cli\ssh.exe ENOENT [09:39:35.258] Checking ssh with "C:\Users\adm\AppData\Local\Programs\oh-my-posh\bin\ssh.exe -V" [09:39:35.259] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\oh-my-posh\bin\ssh.exe ENOENT [09:39:35.260] Checking ssh with "C:\Users\adm\AppData\Local\Programs\Hyper\resources\bin\ssh.exe -V" [09:39:35.261] Got error from ssh: spawn C:\Users\adm\AppData\Local\Programs\Hyper\resources\bin\ssh.exe ENOENT [09:39:35.261] Checking ssh with "C:\Users\adm\AppData\Roaming\npm\ssh.exe -V" [09:39:35.262] Got error from ssh: spawn C:\Users\adm\AppData\Roaming\npm\ssh.exe ENOENT [09:39:35.262] Checking ssh with "C:\Users\adm\AppData\Local\spicetify\ssh.exe -V" [09:39:35.264] Got error from ssh: spawn C:\Users\adm\AppData\Local\spicetify\ssh.exe ENOENT [09:39:35.264] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [09:39:35.286] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2 [09:39:35.288] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V" [09:39:35.316] > OpenSSH_8.8p1, OpenSSL 1.1.1l 24 Aug 2021 [09:39:35.336] Using SSH config file "C:\Users\adm\.ssh\config" [09:39:35.337] askpass server listening on \\.\pipe\vscode-ssh-askpass-53dbc1cab9c9cc23f601f137d51637581e2e3505-sock [09:39:35.337] Spawning local server with {"serverId":1,"ipcHandlePath":"\\\\.\\pipe\\vscode-ssh-askpass-be66636db82e16fb61faa210dd665d0bb38981ff-sock","sshCommand":"C:\\Program Files\\Git\\usr\\bin\\ssh.exe","sshArgs":["-v","-T","-D","14916","-F","C:\\Users\\adm\\.ssh\\config","raspberrypi"],"serverDataFolderName":".vscode-server","dataFilePath":"c:\\Users\\adm\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote-ssh\\vscode-ssh-host-b39d881e-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-0.98.0\\data.json"} [09:39:35.337] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\adm\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.98.0\\out\\local-server\\askpass.bat","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\adm\\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\\adm\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.98.0\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\vscode-ssh-askpass-53dbc1cab9c9cc23f601f137d51637581e2e3505-sock"} [09:39:35.344] Spawned 12224 [09:39:35.421] > local-server-1> Running ssh connection command: "-v -T -D 14916 -F C:\\Users\\adm\\.ssh\\config raspberrypi" [09:39:35.426] > local-server-1> Spawned ssh, pid=11792 [09:39:35.482] stderr> OpenSSH_8.8p1, OpenSSL 1.1.1l 24 Aug 2021 [09:39:35.691] stderr> debug1: Server host key: ssh-ed25519 SHA256:+Sa95X6GpskwX1eLTzQWVG0JiLlqLAwXv1kgGLWkEiM [09:39:35.771] stderr> Authenticated to 75.198.235.173 ([75.198.235.173]:22) using "publickey". [09:39:36.000] > Linux raspberrypi 5.15.84-v7l+ #1613 SMP Thu Jan 5 12:01:26 GMT 2023 armv7l [09:39:36.025] > ready: a139527edc1f [09:39:36.044] > Linux 5.15.84-v7l+ #1613 SMP Thu Jan 5 12:01:26 GMT 2023 [09:39:36.044] Platform: linux [09:39:36.058] > /bin/bash [09:39:36.058] Shell: bash [09:39:36.058] Creating bash subshell inside "bash" [09:39:36.080] > bash version: 5.1.4(1)-release [09:39:36.134] > a139527edc1f: running [09:39:36.191] > Acquiring lock on /home/pi/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/vscode-remote-lock.pi.ee2b180d582a7f601fa6ecfdad8d9fd269ab1884 [09:39:36.201] > Found existing installation at /home/pi/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884... > Checking /home/pi/.vscode-server/.ee2b180d582a7f601fa6ecfdad8d9fd269ab1884.log and /home/pi/.vscode-server/.ee2b180d582a7f601fa6ecfdad8d9fd269ab1884.pid for a running server [09:39:36.205] > Looking for server with pid: 19090 [09:39:36.236] > Found running server... [09:39:36.239] > > * > * Visual Studio Code Server > * > * By using the software, you agree to [09:39:36.239] > * 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). > * > [09:39:36.266] > Checking server status on port 40917 with wget [09:39:36.280] > a139527edc1f: start > SSH_AUTH_SOCK==== > DISPLAY==== > webUiAccessToken==== [09:39:36.280] > listeningOn==40917== > osReleaseId==raspbian== > arch==armv7l== > tmpDir==/run/user/1000== > platform==linux== [09:39:36.280] > unpackResult==== > didLocalDownload==0== [09:39:36.280] > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== [09:39:36.281] > connectionToken==111a11a1-a11a-1aaa-a111-aa1111111a1a== > a139527edc1f: end [09:39:36.281] Received install output: SSH_AUTH_SOCK==== DISPLAY==== webUiAccessToken====listeningOn==40917== osReleaseId==raspbian== arch==armv7l== tmpDir==/run/user/1000== platform==linux==unpackResult==== didLocalDownload==0==downloadTime==== installTime==== extInstallTime==== serverStartTime====connectionToken==111a11a1-a11a-1aaa-a111-aa1111111a1a== [09:39:36.282] Remote server is listening on 40917 [09:39:36.282] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":40917},"osReleaseId":"raspbian","arch":"armv7l","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/1000","platform":"linux","connectionToken":"111a11a1-a11a-1aaa-a111-aa1111111a1a"},"installUnpackCode":""} [09:39:36.283] Persisting server connection details to c:\Users\adm\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-b39d881e-ee2b180d582a7f601fa6ecfdad8d9fd269ab1884-0.98.0\data.json [09:39:36.286] Starting forwarding server. localPort 14919 -> socksPort 14916 -> remotePort 40917 [09:39:36.286] Forwarding server listening on 14919 [09:39:36.287] Waiting for ssh tunnel to be ready [09:39:36.287] Tunneled 40917 to local port 14919 [09:39:36.288] Resolved "ssh-remote+raspberrypi" to "127.0.0.1:14919" [09:39:36.289] [Forwarding server 14919] Got connection 0 [09:39:36.297] ------ [09:39:36.348] [Forwarding server 14919] Got connection 1 [09:39:36.370] [Forwarding server 14919] Got connection 2 [09:39:37.451] [Forwarding server 14919] Got connection 3 [09:40:14.090] [Forwarding server 14919] Got connection 4 [09:40:15.511] [Forwarding server 14919] Got connection 5 [09:40:15.544] [Forwarding server 14919] Got connection 6 ```

Anything else?

I am connecting to a Raspberry Pi 4B. VSCode Extention Version: v0.98.0 Having this issue both on Windows 10 and MacOS Monterey 12.6.3 with the M1 Pro Chip

FroggyPanda commented 1 year ago

Just tried with a Svelte project too but that does not seem to work either. But a pattern that I have found is that all the frameworks that are based off of Vite do not work with the port forwarding feature. Hope this bit of information helps pinpoint the issue.

taeuscherpferd commented 1 year ago

May or may not be related, but I've noticed that projects where I am hosting localhost using https (self signed certificate) also do not forward correctly. They forward fine using ssh manually, but not when I forward them through the tunnel

eleanorjboyd commented 1 year ago

Are the logs attached from a successful connection? It looks like the connection worked fine. Are you able to send logs of where it fails to forward the port?

I am not very familiar with Vite- are there any features of it related to port access / forwarding that might interfere?

FroggyPanda commented 1 year ago

Are the logs attached from a successful connection? It looks like the connection worked fine. Are you able to send logs of where it fails to forward the port?

I am not very familiar with Vite- are there any features of it related to port access / forwarding that might interfere?

Im pretty sure, but heres one that does get forwarded correctly and correctly for comparison:

Non Working - With normal Vite project selected as Vanilla and Typescript: https://pastebin.com/Z2RTCPrH

Working - With Create React: https://pastebin.com/P74h9jjS

eleanorjboyd commented 1 year ago

great thank you! So it looks like it is failing after getting a connection. Can you get the windows logs for an unsuccessful connection? Go to the dropdown on the right and select window instead of remote-ssh for the logs. thanks

FroggyPanda commented 1 year ago

great thank you! So it looks like it is failing after getting a connection. Can you get the windows logs for an unsuccessful connection? Go to the dropdown on the right and select window instead of remote-ssh for the logs. thanks

Non Working - With normal Vite project selected as Vanilla and Typescript: https://pastebin.com/JgnzuntY

Working - With Create React: https://pastebin.com/rNQWTjQ3

eleanorjboyd commented 1 year ago

Could you set your log level to trace and then resend the non-working logs. It seems to be an issue related to "Could not find pty on pty host".

FroggyPanda commented 1 year ago

Could you set your log level to trace and then resend the non-working logs. It seems to be an issue related to "Could not find pty on pty host".

Non Working - With normal Vite project selected as Vanilla and Typescript: https://pastebin.com/GXGpF9RT

alexr00 commented 1 year ago

@FroggyPanda what is the value of the setting remote.autoForwardPortsSource when you are connected to your remote?

FroggyPanda commented 1 year ago

@FroggyPanda what is the value of the setting remote.autoForwardPortsSource when you are connected to your remote?

@alexr00 if you are talking about the one in user settings/settings.json it is set to true.

alexr00 commented 1 year ago

true isn't a valid value for remote.autoForwardPortsSource. Any chance that it's set to something else?

FroggyPanda commented 1 year ago

true isn't a valid value for remote.autoForwardPortsSource. Any chance that it's set to something else?

Oh sorry I was looking at the remote.autoForwardPorts setting. remote.autoForwardPortsSource is set to process.

FroggyPanda commented 1 year ago

Forgot to say that with having remote.autoForwardPortsSource set to output it now picks automatically picks up the Vite project but i cannot view it in my browser, firefox and google chrome. I put the logs that you guys had me get previously with the new option selected, hope these help.

Logs from Remote - SSH in Output

Logs from Window in Output

alexr00 commented 1 year ago

Auto port forwarding not working with process is very likely https://github.com/microsoft/vscode/issues/175805.

With output and not being able to view in your browser, what do you see in your browser?

FroggyPanda commented 1 year ago

It detects that there is something running on the port, but when i try to open the website in my browser it just infinity loads.

FroggyPanda commented 1 year ago

Just tried out the pre-release version of the Remote - SSH seeing that you mentioned it in microsoft/vscode#7559 but it didn't work.

alexr00 commented 1 year ago

@FroggyPanda I think I was probably referring to VS Code insiders.

github-actions[bot] commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!