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

Can't forward ports via VSCodium GUI #139

Open
jogobeny opened this issue Feb 7, 2024 · 7 comments
Open

Can't forward ports via VSCodium GUI #139

jogobeny opened this issue Feb 7, 2024 · 7 comments

Comments

@jogobeny
Copy link

jogobeny commented Feb 7, 2024

Hi.

I've tried the official Remote - SSH extension, and it works.

Screencast from 2024-02-07 12-38-12.webm
In the video, I've tried: mouse click to the following input field, tab key, and enter key.

[22099:0207/123543.096159:INFO:CONSOLE(643)] "%cTRACE color: #888 CommandService#executeCommand remote.tunnel.forwardInline", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123544.883606:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad5 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123545.050134:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad2 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123545.330798:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad2 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123545.834841:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad5 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123547.263521:INFO:CONSOLE(643)] "%cDEBUG background: #eee; color: #888 Comments: URIs of continue on comments to add to storage .", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123547.682390:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad5 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123549.058836:INFO:CONSOLE(643)] "%cTRACE color: #888 onWillActivateByEvent:  onTunnel", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.490414:INFO:CONSOLE(643)] "%c INFO color: #33f [remote-connection][ExtensionHost][71a2e…][reconnect] received socket timeout event (unacknowledgedMsgCount: 181, timeSinceOldestUnacknowledgedMsg: 20000, timeSinceLastReceivedSomeData: 20001).", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.491033:INFO:CONSOLE(643)] "%c INFO color: #33f [remote-connection][ExtensionHost][71a2e…][reconnect] starting reconnecting loop. You can get more information with the trace log level.", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.491381:INFO:CONSOLE(643)] "%c INFO color: #33f [remote-connection][ExtensionHost][71a2e…][reconnect] resolving connection...", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.491664:INFO:CONSOLE(643)] "%c INFO color: #33f [remote-connection][ExtensionHost][71a2e…][reconnect] connecting to WebSocket(127.0.0.1:42311)...", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.491932:INFO:CONSOLE(643)] "%cTRACE color: #888 [remote-connection][ExtensionHost][71a2e…][reconnect][WebSocket(127.0.0.1:42311)] 1/6. invoking socketFactory.connect().", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.492265:INFO:CONSOLE(643)] "%c INFO color: #33f Creating a socket (renderer-ExtensionHost-71a2ea74-52b9-445a-b011-db842c373f70)...", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.689332:INFO:CONSOLE(643)] "%c INFO color: #33f Creating a socket (renderer-ExtensionHost-71a2ea74-52b9-445a-b011-db842c373f70) was successful after 196 ms.", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.690462:INFO:CONSOLE(643)] "%cTRACE color: #888 [remote-connection][ExtensionHost][71a2e…][reconnect][WebSocket(127.0.0.1:42311)] 2/6. socketFactory.connect() was successful.", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.691420:INFO:CONSOLE(643)] "%cTRACE color: #888 [remote-connection][ExtensionHost][71a2e…][reconnect][WebSocket(127.0.0.1:42311)] 3/6. sending AuthRequest control message.", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.758052:INFO:CONSOLE(643)] "%cTRACE color: #888 [remote-connection][ExtensionHost][71a2e…][reconnect][WebSocket(127.0.0.1:42311)] 4/6. received SignRequest control message.", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.761132:INFO:CONSOLE(643)] "%cTRACE color: #888 [remote-connection][ExtensionHost][71a2e…][reconnect][WebSocket(127.0.0.1:42311)] 5/6. sending ConnectionTypeRequest control message.", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.829763:INFO:CONSOLE(643)] "%cTRACE color: #888 [remote-connection][ExtensionHost][71a2e…][reconnect][WebSocket(127.0.0.1:42311)] 6/6. handshake finished, connection is up and running after 338 ms!", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123552.830351:INFO:CONSOLE(643)] "%c INFO color: #33f [remote-connection][ExtensionHost][71a2e…][reconnect] reconnected!", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123554.240414:INFO:CONSOLE(643)] "%cTRACE color: #888 CommandService#executeCommand remote.tunnel.forwardInline", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123555.090450:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad5 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123556.658890:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad2 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123556.978256:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad2 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123557.306111:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad5 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123557.554674:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch NumPad5 [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[22099:0207/123558.322163:INFO:CONSOLE(643)] "%cTRACE color: #888 KeybindingService#dispatch Tab [ No matching keybinding ]", source: vscode-file://vscode-app/opt/vscodium-bin/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
@jeanp413
Copy link
Owner

jeanp413 commented Feb 9, 2024

@jogobeny Could you share remote-ssh logs?

@jogobeny
Copy link
Author

jogobeny commented Feb 9, 2024

@jeanp413 Did you mean the official Microsoft extension? I am trying it right now, and to my bad luck, it isn't working either. Nevertheless, the port forwarding is working in the official Visual Studio Code. I thought the log would be relevant because of the received socket timeout event, but I don't get those prints sometimes. How can I provide you with more logs about that issue?

@jeanp413
Copy link
Owner

jeanp413 commented Feb 9, 2024

Logs from this extension, you can get them in output panel and select Remote - SSH, if you already connected successfully to your remote machine then port forwarding should work too
image

@jogobeny
Copy link
Author

jogobeny commented Feb 10, 2024

There are no logs after creating the forwarding server.
[Trace - 15:07:59.626] Creating forwarding server 41403(local) => 36373(socks) => 43685(remote)

I've tried the port forwarding on localhost, and it isn't working either. It looks like it's VSCodium's error.

Edit: It may be this error VSCodium/vscodium#1793.

@jeanp413
Copy link
Owner

It may be this error VSCodium/vscodium#1793.

that's meant for local ports you want to expose publicly, in your case you are connecting to a remote machine and want to access the remote ports locally.

There are no logs after creating the forwarding server.

That last line is fine then, could you look for any other error in other logs like server or window?

@jogobeny
Copy link
Author

I've looked at all outputs, and there are no more logs. Except for Window output that is still spamming:

2024-02-15 14:25:32.655 [info] [remote-connection][ExtensionHost][fde3e…][reconnect] resolving connection...
2024-02-15 14:25:32.657 [info] [remote-connection][ExtensionHost][fde3e…][reconnect] connecting to WebSocket(127.0.0.1:45459)...
2024-02-15 14:25:32.657 [info] Creating a socket (renderer-ExtensionHost-fde3e2f3-57cd-4816-8f1b-719fe3326127)...
2024-02-15 14:25:32.811 [info] Creating a socket (renderer-ExtensionHost-fde3e2f3-57cd-4816-8f1b-719fe3326127) was successful after 156 ms.
2024-02-15 14:25:32.980 [info] [remote-connection][ExtensionHost][fde3e…][reconnect] reconnected!
2024-02-15 14:25:52.980 [info] [remote-connection][ExtensionHost][fde3e…][reconnect] received socket timeout event (unacknowledgedMsgCount: 164, timeSinceOldestUnacknowledgedMsg: 20000, timeSinceLastReceivedSomeData: 20000).
2024-02-15 14:25:53.018 [info] [remote-connection][ExtensionHost][fde3e…][reconnect] starting reconnecting loop. You can get more information with the trace log level.

but that happens even if I don't try to use port forwarding.

@daiyam
Copy link
Contributor

daiyam commented Aug 18, 2024

Here a requirement for the extension to work correctly:

  • On the server, in the sshd config, AllowTcpForwarding need to be set to yes.

I've added it to VSCodium's doc

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

No branches or pull requests

3 participants