Skip to content

Cannot attach to running container via remote tunnel #10264

Open

Description

Type: Bug

  1. In VSCode on the host machine (Windows), connect to Remote: WSL
  2. On the host, in WSL, open a repo in a devcontainer
  3. On the host, turn on Remote Runnel
  4. In a Windows client machine connect to the Remote Tunnel.
  5. Run "Attach to Running Container" and choose the container from step 2
  6. VSCode on client machine is stuck

Extension version: 0.384.0
VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Windows_NT x64 10.0.20348
Connection to 'attached-container+7b22636f6e7461696e65724e616d65223a222f737573706963696f75735f7475222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d7d@tunnel+ilabs-gpuwin004' could not be established

Client log
[3856 ms] Dev Containers 0.384.0 over Remote - Tunnels 1.5.2 in VS Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3).
[3855 ms] Start: Resolving Remote
[3857 ms] Setting up container: /suspicious_tu
[3857 ms] Host authority: tunnel+ilabs-gpuwin004
[3857 ms] Context: desktop-linux
[3858 ms] Start: Loading environment from ExecServer
[3992 ms] Host OS: win32 10.0.20348
[3992 ms] Host CWD: undefined
[3992 ms] USERPROFILE: C:\Users\styagev
[3992 ms] PATH: undefined
[4659 ms] Start: Run: docker inspect --type container /suspicious_tu
[5096 ms] Start: Run: wsl -l -v
Host log
2024-09-12 16:04:47.842 [info] Session reset
2024-09-12 16:04:48.089 [info] No other tunnel running
2024-09-12 16:05:24.178 [info] Session updated: syagev (github) (service=true)
2024-09-12 16:05:24.179 [info] Session token updated: syagev (github)
2024-09-12 16:05:24.353 [info] No other tunnel running
2024-09-12 16:05:24.458 [info] Running tunnel CLI

2024-09-12 16:05:24.458 [info] serviceInstall Spawning: c:\Users\styagev\AppData\Local\Programs\Microsoft VS Code\bin\code-tunnel.exe tunnel service install --accept-server-license-terms --log info --name ilabs-gpuwin004

2024-09-12 16:05:25.724 [info] *

2024-09-12 16:05:25.725 [info] * Visual Studio Code Server

2024-09-12 16:05:25.725 [info] *

2024-09-12 16:05:25.725 [info] * By using the software, you agree to

2024-09-12 16:05:25.726 [info] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and

2024-09-12 16:05:25.726 [info] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).

2024-09-12 16:05:25.726 [info] *

2024-09-12 16:05:25.727 [info] [2024-09-12 16:05:25] info Successfully registered service...

2024-09-12 16:05:25.738 [info] [2024-09-12 16:05:25] info Tunnel service successfully started

2024-09-12 16:05:25.738 [info] Service successfully installed! You can use `code tunnel service log` to monitor it, and `code tunnel service uninstall` to remove it.

2024-09-12 16:05:25.750 [info] serviceInstall exit(16088): + 0 
2024-09-12 16:05:25.751 [info] Running tunnel CLI

2024-09-12 16:05:25.751 [info] tunnel Spawning: c:\Users\styagev\AppData\Local\Programs\Microsoft VS Code\bin\code-tunnel.exe tunnel --accept-server-license-terms --log info --name ilabs-gpuwin004 --parent-process-id 16628

2024-09-12 16:05:25.790 [info] *

2024-09-12 16:05:25.790 [info] * Visual Studio Code Server

2024-09-12 16:05:25.790 [info] *

2024-09-12 16:05:25.790 [info] * By using the software, you agree to

2024-09-12 16:05:25.790 [info] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and

2024-09-12 16:05:25.790 [info] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).

2024-09-12 16:05:25.791 [info] *

2024-09-12 16:05:25.797 [info] [2024-09-12 16:05:25] warn Command-line options will not be applied until the existing tunnel exits.

2024-09-12 16:05:25.798 [info] Connected to an existing tunnel process running on this machine.

2024-09-12 16:05:28.322 [info] [2024-09-12 16:05:28] info 

2024-09-12 16:05:28.322 [info] Open this link in your browser https://vscode.dev/tunnel/ilabs-gpuwin004

2024-09-12 16:05:28.322 [info] 

2024-09-12 16:05:28.382 [info] [2024-09-12 16:05:28] info [tunnels::connections::relay_tunnel_host] Opened new client on channel 2

2024-09-12 16:05:28.383 [info] [2024-09-12 16:05:28] info [russh::server] wrote id

2024-09-12 16:05:28.505 [info] [2024-09-12 16:05:28] info [russh::server] read other id

2024-09-12 16:05:28.506 [info] [2024-09-12 16:05:28] info [russh::server] session is running

2024-09-12 16:05:29.755 [info] [2024-09-12 16:05:29] info [rpc.0] Checking C:\Users\styagev\.vscode\cli\servers\Stable-4849ca9bdf9666755eb463db297b69e5385090e3\log.txt and C:\Users\styagev\.vscode\cli\servers\Stable-4849ca9bdf9666755eb463db297b69e5385090e3\pid.txt for a running server...

2024-09-12 16:05:29.765 [info] [2024-09-12 16:05:29] info [rpc.0] Starting server...

2024-09-12 16:05:30.152 [info] [2024-09-12 16:05:30] info [rpc.0] Server started

2024-09-12 16:05:35.700 [info] [2024-09-12 16:05:35] info [rpc.0] Disposed of connection to running server.

2024-09-12 16:05:39.465 [info] [2024-09-12 16:05:39] info [tunnels::connections::relay_tunnel_host] Opened new client on channel 3

2024-09-12 16:05:39.466 [info] [2024-09-12 16:05:39] info [russh::server] wrote id

2024-09-12 16:05:39.634 [info] [2024-09-12 16:05:39] info [russh::server] read other id

2024-09-12 16:05:39.634 [info] [2024-09-12 16:05:39] info [russh::server] session is running

2024-09-12 16:05:40.679 [info] [2024-09-12 16:05:40] info [rpc.2] Checking C:\Users\styagev\.vscode\cli\servers\Stable-4849ca9bdf9666755eb463db297b69e5385090e3\log.txt and C:\Users\styagev\.vscode\cli\servers\Stable-4849ca9bdf9666755eb463db297b69e5385090e3\pid.txt for a running server...

2024-09-12 16:05:40.697 [info] [2024-09-12 16:05:40] info [rpc.2] Found running server (pid=17360)

2024-09-12 16:05:50.866 [info] [2024-09-12 16:05:50] info [tunnels::connections::relay_tunnel_host] Opened new client on channel 4

2024-09-12 16:05:50.866 [info] [2024-09-12 16:05:50] info [russh::server] wrote id

2024-09-12 16:05:50.893 [info] [2024-09-12 16:05:50] info [tunnels::connections::relay_tunnel_host] Opened new client on channel 5

2024-09-12 16:05:50.894 [info] [2024-09-12 16:05:50] info [russh::server] wrote id

2024-09-12 16:05:50.937 [info] [2024-09-12 16:05:50] info [russh::server] read other id

2024-09-12 16:05:50.937 [info] [2024-09-12 16:05:50] info [russh::server] session is running

2024-09-12 16:05:50.966 [info] [2024-09-12 16:05:50] info [tunnels::connections::relay_tunnel_host] Opened new client on channel 6

2024-09-12 16:05:50.966 [info] [2024-09-12 16:05:50] info [russh::server] wrote id

2024-09-12 16:05:51.050 [info] [2024-09-12 16:05:51] info [russh::server] read other id

2024-09-12 16:05:51.050 [info] [2024-09-12 16:05:51] info [russh::server] session is running

2024-09-12 16:05:51.053 [info] [2024-09-12 16:05:51] info [russh::server] read other id

2024-09-12 16:05:51.053 [info] [2024-09-12 16:05:51] info [russh::server] session is running

2024-09-12 16:06:00.272 [info] [2024-09-12 16:06:00] info [tunnels::connections::relay_tunnel_host] Opened new client on channel 7

2024-09-12 16:06:00.272 [info] [2024-09-12 16:06:00] info [russh::server] wrote id

2024-09-12 16:06:00.344 [info] [2024-09-12 16:06:00] info [russh::server] read other id

2024-09-12 16:06:00.345 [info] [2024-09-12 16:06:00] info [russh::server] session is running
System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i9-12950HX (24 x 2496)
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 127.67GB (96.18GB free)
Process Argv -n --crash-reporter-id 7a683ffe-ed86-4a3e-874f-e3e57dfd3491
Screen Reader no
VM 0%
Item Value
Remote ilabs-gpuwin004
OS Windows_NT x64 10.0.20348
CPUs Intel(R) Xeon(R) Gold 6246 CPU @ 3.30GHz (48 x 3292)
Memory (System) 1534.71GB (1471.51GB free)
VM 0%

Connection to 'attached-container+7b22636f6e7461696e65724e616d65223a222f737573706963696f75735f7475222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d7d@tunnel+ilabs-gpuwin004' could not be established

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
9c06g630:31013171
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
flightc:31134773
wkspc-onlycs-t:31132770
wkspc-ranged-c:31125598
ei213698:31121563

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

containersIssue in vscode-remote containers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions