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]: The remote-tunnels in local vscode client cannot connect to the remote server. #10113

Closed
3 tasks done
Magi2B0y opened this issue Jul 30, 2024 · 6 comments
Closed
3 tasks done
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH

Comments

@Magi2B0y
Copy link

Magi2B0y commented Jul 30, 2024

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

->

No response

Expected Behavior

Hello,
I could use the remote-tunnel in local vscode client to connect to the remote server normally yesterday, but it failed today.
屏幕截图 2024-07-30 165922

However, I can still connect it with the link https://vscode.dev/tunnel/XXX provided by ./code tunnel which I run in the remote server.
I really don't know why remote-tunnel in vscode client is invalid.

Steps To Reproduce

  1. In remote server, I run ./code tunnel
  2. In local host, I use the remote-tunnel in vscode client to connnect remote server.
  3. Remote-tunnel could detect the tunnel is online. However, it failed to connect to the remote extension host server (Error: Connection closed)

Remote-SSH Log

Remote-SSH Log

2024-07-30 17:25:14.742 [info] Resolving tunnel+zjy...
2024-07-30 17:25:14.742 [info] Creating new tunnel proxy server
2024-07-30 17:25:39.689 [error] [proxy] ECONNABORTED: (signal aborted) canceled
2024-07-30 17:25:40.175 [info] Resolving tunnel+zjy...
2024-07-30 17:25:40.278 [info] Resolving tunnel+zjy...
2024-07-30 17:25:42.602 [info] Found tunnel (ID=happy-chair-klrk1rl, Cluster=usw2)
2024-07-30 17:25:42.770 [info] Found tunnel (ID=happy-chair-klrk1rl, Cluster=usw2)

Anything else?

The developer tools information is following:

屏幕截图 2024-07-30 171825

屏幕截图 2024-07-30 171956

@Magi2B0y Magi2B0y added the ssh Issue in vscode-remote SSH label Jul 30, 2024
@Magi2B0y
Copy link
Author

Visual Studio Code Version: 1.91.1
Remote - Tunnels: v1.5.2

@Magi2B0y Magi2B0y changed the title [Remote-SSH Bug]: The remote-tunnel in local vscode client cannot connect to the remote server. [Remote-SSH Bug]: The remote-tunnels in local vscode client cannot connect to the remote server. Jul 30, 2024
@Barcavin
Copy link

Barcavin commented Aug 8, 2024

Same issue here!

@roblourens roblourens assigned connor4312 and unassigned roblourens Aug 9, 2024
@connor4312
Copy link
Member

Please update the version of VS code you're using to host the tunnel (on the remote side) to 1.92

@connor4312 connor4312 added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 9, 2024
@Magi2B0y
Copy link
Author

Magi2B0y commented Sep 6, 2024

Hi, I have updated my vscode to 1.93.0, this problem appeared again (before is ok). I can only connect remote-server through website and the client will fail. It's so weired.

The error log as following:
2024-09-06 22:15:03.668 [info] Resolving tunnel+jingyu...
2024-09-06 22:15:03.682 [info] Creating new tunnel proxy server
2024-09-06 22:15:24.231 [error] [proxy] ECONNABORTED: (signal aborted) canceled
2024-09-06 22:15:24.738 [info] Resolving tunnel+jingyu...
2024-09-06 22:15:24.809 [info] Resolving tunnel+jingyu...
2024-09-06 22:15:29.593 [info] Found tunnel (ID=fun-mountain-1n1p64b, Cluster=usw2)
2024-09-06 22:15:31.130 [info] Found tunnel (ID=fun-mountain-1n1p64b, Cluster=usw2)

Is this problem related to my clash proxy?

@Magi2B0y
Copy link
Author

Magi2B0y commented Sep 7, 2024

This problrm seems to belong to vscode itself, maybe it is related to remote-tunnel processing the tunnel proxy server. I need your answer eagerly, thaks.

@Magi2B0y
Copy link
Author

Magi2B0y commented Sep 7, 2024

Not always able to connect to remote server. Occasionally it's ok, but not in most cases

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

4 participants