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

Unable to open remote tunnel access #9438

Closed
Ruan-bing opened this issue Jan 25, 2024 · 30 comments
Closed

Unable to open remote tunnel access #9438

Ruan-bing opened this issue Jan 25, 2024 · 30 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@Ruan-bing
Copy link

Type: Performance Issue

After opening VSCode, click on the user icon in the lower left corner, and then click "Open Remote Tunnel Access", which shows that the opening failed, and the remote tunnel service log is displayed:error failed to lookup tunnel: connection error: error sending request for url (https://usw3.rel.tunnels.api.visualstudio.com/api/v1/tunnels/3nxxzmct?includePorts=true&tokenScopes=host): error trying to connect: The remote host forcibly closes an existing connection. (os error 10054)

Extension version: 1.5.0
VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-12600KF (16 x 3686)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.86GB (24.81GB free)
Process Argv --crash-reporter-id 4011cab8-cdd9-492c-bdbf-22a9184ed84a
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	    98	 23444	code main
    0	    28	  1488	   crashpad-handler
    0	    94	  3992	window [2] (问题报告程序)
    0	   159	  7596	window [1] (欢迎 - Visual Studio Code)
    0	    70	  8152	fileWatcher [1]
    0	    94	 14084	shared-process
    0	   118	 14596	extensionHost [1]
    0	    77	  8276	     electron-nodejs ("F:\VSCode\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "f:\VSCode\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=14596)
    0	   101	 21016	   gpu-process
    0	    39	 23000	   utility-network-service
Workspace Info
;
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes627:30244334
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
2i9eh265:30646982
962ge761:30933248
pythongtdpath:30769146
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302

@connor4312
Copy link
Member

Can you please share the entire contents of the remote tunnel access log? Also, do you have any proxies configured on your device?

@connor4312 connor4312 added the info-needed Issue requires more information from poster label Jan 25, 2024
@Ruan-bing
Copy link
Author

2024-01-26 12:44:00.193 [info] tunnel exit(28288): + 1
2024-01-26 12:44:00.193 [info] tunnel process terminated
2024-01-26 12:45:22.116 [info] Session updated: 1421906856@qq.com (microsoft) (service=false)
2024-01-26 12:45:22.116 [info] Session token updated: 1421906856@qq.com (microsoft)
2024-01-26 12:45:22.255 [info] No other tunnel running
2024-01-26 12:45:22.283 [info] Running tunnel CLI

2024-01-26 12:45:22.283 [info] tunnel Spawning: f:\VSCode\Microsoft VS Code\bin\code-tunnel.exe tunnel --accept-server-license-terms --log info --name RobinsonPC --parent-process-id 20100

2024-01-26 12:45:22.303 [info] *

2024-01-26 12:45:22.303 [info] * Visual Studio Code Server

2024-01-26 12:45:22.303 [info] *

2024-01-26 12:45:22.303 [info] * By using the software, you agree to

2024-01-26 12:45:22.303 [info] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and

2024-01-26 12:45:22.303 [info] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).

2024-01-26 12:45:22.303 [info] *

2024-01-26 12:45:22.470 [info] [2024-01-26 12:45:22] error failed to lookup tunnel: connection error: error sending request for url (https://usw3.rel.tunnels.api.visualstudio.com/api/v1/tunnels/3nxxzmct?includePorts=true&tokenScopes=host): error trying to connect: The remote host forcibly closes an existing connection. (os error 10054)

2024-01-26 12:45:22.477 [info] tunnel exit(17168): + 1
2024-01-26 12:45:22.477 [info] tunnel process terminated

this is the entire contents of the remote tunnel access log,and i don‘t have any proxies configured.

@connor4312
Copy link
Member

This looks like it may be some service issue @derekbekoe

@derekbekoe
Copy link

Looks like there may be a proxy preventing the connection from succeeding.

Please verify that the domains listed in this document are accessible and do not generate SSL/TLS errors on your machine:
https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/security#domains

For instance, are you able to successfully access https://global.rel.tunnels.api.visualstudio.com/api/v1/clusters?

@trry-hub
Copy link

trry-hub commented Apr 8, 2024

Did you solve it? I had a similar problem

@trry-hub
Copy link

trry-hub commented Apr 8, 2024

2024-04-08 11:49:11.733 [info] Session updated: trry-github (github) (service=true)
2024-04-08 11:49:11.735 [info] Session token updated: trry-github (github)
2024-04-08 11:49:11.910 [info] No other tunnel running
2024-04-08 11:49:11.960 [info] Running tunnel CLI

2024-04-08 11:49:11.961 [info] serviceInstall Spawning: d:\Microsoft VS Code\bin\code-tunnel.exe tunnel service install --accept-server-license-terms --log info --name LAPTOP-M2GVJ4MO

2024-04-08 11:49:12.738 [info] [2024-04-08 11:49:12] error failed to lookup tunnel: connection error: error sending request for url (https://asse.rel.tunnels.api.visualstudio.com/tunnels/majestic-fog-3wszfqh?api-version=2023-09-27-preview): error trying to connect: 远程主机强迫关闭了一个现有的连接。 (os error 10054)

2024-04-08 11:49:12.751 [info] serviceInstall exit(6152): + 1
2024-04-08 11:49:12.751 [warning] 未能安装隧道即服务,从会话开始...
2024-04-08 11:49:12.751 [info] Running tunnel CLI

2024-04-08 11:49:12.751 [info] tunnel Spawning: d:\Microsoft VS Code\bin\code-tunnel.exe tunnel --accept-server-license-terms --log info --name LAPTOP-M2GVJ4MO --parent-process-id 24192

2024-04-08 11:49:12.792 [info] *

2024-04-08 11:49:12.792 [info] * Visual Studio Code Server

2024-04-08 11:49:12.792 [info] *

2024-04-08 11:49:12.792 [info] * By using the software, you agree to

2024-04-08 11:49:12.792 [info] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and

2024-04-08 11:49:12.792 [info] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).

2024-04-08 11:49:12.792 [info] *

2024-04-08 11:49:13.494 [info] [2024-04-08 11:49:13] error failed to lookup tunnel: connection error: error sending request for url (https://asse.rel.tunnels.api.visualstudio.com/tunnels/majestic-fog-3wszfqh?includePorts=true&tokenScopes=host&api-version=2023-09-27-preview): error trying to connect: 远程主机强迫关闭了一个现有的连接。 (os error 10054)

2024-04-08 11:49:13.520 [info] tunnel exit(4256): + 1
2024-04-08 11:49:13.520 [info] tunnel process terminated

This is my journal

@connor4312
Copy link
Member

You seem to have some network configuration or issue that prevents you from connecting to the tunnel service.

@trry-hub
Copy link

trry-hub commented Apr 9, 2024

You seem to have some network configuration or issue that prevents you from connecting to the tunnel service.您似乎有一些网络配置或问题阻止您连接到隧道服务。

I have changed several computers and have re-installed the latest version of vscode, but it is always the same problem

@trry-hub
Copy link

Is there a solution? Ask the boss for advice

@derekbekoe
Copy link

derekbekoe commented Apr 11, 2024

@trry-hub Please review this comment from Jan 26 - #9438 (comment).

@trry-hub
Copy link

@trry-hub Please review this comment from Jan 26 - #9438 (comment).

I've tried these domains and they're all working
image

@derekbekoe
Copy link

The "Dev Tunnels" domains also need to be accessible from the machine.

@trry-hub
Copy link

The "Dev Tunnels" domains also need to be accessible from the machine.

Visit to the 404, https://global.rel.tunnels.api.visualstudio.com/, I want to do

@connor4312
Copy link
Member

You will want to allow *.rel.tunnels.api.visualstudio.com

@VSCodeTriageBot
Copy link
Collaborator

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!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2024
@xinxing277
Copy link

The "Dev Tunnels" domains also need to be accessible from the machine.

Visit to the 404, https://global.rel.tunnels.api.visualstudio.com/, I want to do

Did you solve it? I had a similar problem

@xinxing277
Copy link

I have the same problem.
] debug Starting tunnel to server...
[2024-04-24 08:15:19] trace Found token in keyring
[2024-04-24 08:15:19] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/
[2024-04-24 08:15:40] trace Successfully refreshed access token
[2024-04-24 08:15:40] warn Error refreshing access token, will retry: failed to lookup tunnel for host token: connection error: error sending request for url (https://asse.rel.tunnels.api.visualstudio.com/tunnels/silent-cat-40lp3tl?tokenScopes=host&api-version=2023-09-27-preview): error trying to connect: tcp connect error: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 (os error 10060)
[2024-04-24 08:17:38] info closing tunnel and all clients after a shutdown request
[2024-04-24 08:17:38] info Shutting down: RPC client requested shutdown
[2024-04-24 08:17:38] trace Found token in keyring
[2024-04-24 08:17:38] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/
[2024-04-24 08:17:38] info closing tunnel and all clients after a shutdown request
[2024-04-24 08:17:40] debug Starting tunnel to server...
[2024-04-24 08:17:40] trace Found token in keyring
[2024-04-24 08:17:40] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/
[2024-04-24 08:17:59] debug Tunnel shut down

@trry-hub
Copy link

I have the same problem. ] debug Starting tunnel to server... [2024-04-24 08:15:19] trace Found token in keyring [2024-04-24 08:15:19] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/ [2024-04-24 08:15:40] trace Successfully refreshed access token [2024-04-24 08:15:40] warn Error refreshing access token, will retry: failed to lookup tunnel for host token: connection error: error sending request for url (https://asse.rel.tunnels.api.visualstudio.com/tunnels/silent-cat-40lp3tl?tokenScopes=host&api-version=2023-09-27-preview): error trying to connect: tcp connect error: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 (os error 10060) [2024-04-24 08:17:38] info closing tunnel and all clients after a shutdown request [2024-04-24 08:17:38] info Shutting down: RPC client requested shutdown [2024-04-24 08:17:38] trace Found token in keyring [2024-04-24 08:17:38] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/ [2024-04-24 08:17:38] info closing tunnel and all clients after a shutdown request [2024-04-24 08:17:40] debug Starting tunnel to server... [2024-04-24 08:17:40] trace Found token in keyring [2024-04-24 08:17:40] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/ [2024-04-24 08:17:59] debug Tunnel shut down

It hasn't been solved yet, and I don't know how to solve it. I've changed many network environments and multiple computers, and they all have the same problem

@xinxing277
Copy link

I have the same problem. ] debug Starting tunnel to server... [2024-04-24 08:15:19] trace Found token in keyring [2024-04-24 08:15:19] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/ [2024-04-24 08:15:40] trace Successfully refreshed access token [2024-04-24 08:15:40] warn Error refreshing access token, will retry: failed to lookup tunnel for host token: connection error: error sending request for url (https://asse.rel.tunnels.api.visualstudio.com/tunnels/silent-cat-40lp3tl?tokenScopes=host&api-version=2023-09-27-preview): error trying to connect: tcp connect error: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 (os error 10060) [2024-04-24 08:17:38] info closing tunnel and all clients after a shutdown request [2024-04-24 08:17:38] info Shutting down: RPC client requested shutdown [2024-04-24 08:17:38] trace Found token in keyring [2024-04-24 08:17:38] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/ [2024-04-24 08:17:38] info closing tunnel and all clients after a shutdown request [2024-04-24 08:17:40] debug Starting tunnel to server... [2024-04-24 08:17:40] trace Found token in keyring [2024-04-24 08:17:40] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/ [2024-04-24 08:17:59] debug Tunnel shut down

It hasn't been solved yet, and I don't know how to solve it. I've changed many network environments and multiple computers, and they all have the same problem

Me too.
I followed the suggestions regarding network connections mentioned above, and after referring to this document: https://learn.microsoft.com/zh-cn/azure/developer/dev-tunnels/get-started?tabs=windows, I can confirm that I can access Dev Tunnels. However, I still cannot connect to the remote tunnel.

@liudonghua123
Copy link

I have the similar problems when open github codespaces since yesterday approximately.

image

@derekbekoe
Copy link

@liudonghua123 please check the response headers. It's likely there's a proxy that's causing that request to fail.

@liudonghua123
Copy link

I can confirm I am not using proxy. And I also checked the response header from the devtools. But it's empty.

image

@derekbekoe
Copy link

@liudonghua123 for Codespaces, it may be best to review the items at https://github.com/community/community/discussions/categories/codespaces or post a new item there.

@adamlynn36
Copy link

@xinxing277 I have encountered the same problem, according to the meaning of the log: error sending request for url (https://asse.rel.tunnels.api.visualstudio.com/tunnels/silent-cat-40lp3tl?tokenScopes=host&api-version=2023-09-27-preview)
It is because the URL cannot be accessed. After trying to use the global proxy, the tunnel resumed normal use

@xinxing277
Copy link

@xinxing277 I have encountered the same problem, according to the meaning of the log: error sending request for url (https://asse.rel.tunnels.api.visualstudio.com/tunnels/silent-cat-40lp3tl?tokenScopes=host&api-version=2023-09-27-preview) It is because the URL cannot be accessed. After trying to use the global proxy, the tunnel resumed normal use

The output of my window is like this
image
When I open the requested linkhttps://asse.rel.tunnels.api.visualstudio.com/tunnels/silent-cat-40lp3tl?includePorts=true&tokenScopes=host&api-version=2023-09-27-preview, it returned 404 like this.
image
I really can't access the url. But I haven't used a proxy. When I view the system agent on the command line, it shows no.
1714196958982
Excuse me, after you solve this problem, can you access such a URL? What is its correct output? I don't know how to solve it.

@liudonghua123
Copy link

I just got ERR_CONNECTION_TIMED_OUT when I try to execute GET request to the failed request.

image

image

@yajiegithub
Copy link

China has blocked it,microsoft devtunnel,

you can access it by using some special means,

It was usable in the first few months

中国屏蔽了这些服务器,前几个月是可以使用的,这么好用的工具,太可惜了

@saberxt
Copy link

saberxt commented May 3, 2024

Same problem here. No matter which account I am using.

@shaoyf42
Copy link

China has blocked it,microsoft devtunnel,

you can access it by using some special means,

It was usable in the first few months

中国屏蔽了这些服务器,前几个月是可以使用的,这么好用的工具,太可惜了

I use a proxy to access https://asse.rel.tunnels.api.visualstudio.com/tunnels/silent-cat-40lp3tl?includePorts=true&tokenScopes=host&api-version=2023-09-27-preview but it still returns 404. Is there any other way to circumvent this problem?

    "type": "https://tools.ietf.org/html/rfc9110#section-15.5.5",
    "title": "Not Found",
    "status": 404,
    "traceId": "00-995b19020356ce8a4ba6d80b32005486-13e70321b7f6054b-00"
}```

@trry-hub
Copy link

trry-hub commented Jun 3, 2024

China has blocked it,microsoft devtunnel,

you can access it by using some special means,

It was usable in the first few months

中国屏蔽了这些服务器,前几个月是可以使用的,这么好用的工具,太可惜了

Is there any other way to avoid this problem?

@microsoft microsoft locked and limited conversation to collaborators Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests