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 Extension host terminated unexpectedly 3 times within the last 5 minutes. #306

Open
jurykor opened this issue Sep 6, 2024 · 2 comments

Comments

@jurykor
Copy link

jurykor commented Sep 6, 2024

Describe the bug
When working in "Dev Container" or "Remote connection" via ssh, the installation of the extension ends with an error:
Remote Extension host terminated unexpectedly 3 times within the last 5 minutes.

To Reproduce
Install extension, connect to remote, enable extension in remote environment

Logging

[2024-09-06T10:52:24.750Z] [10:52:24] Getting Manifest... rjmacarthy.twinny
[2024-09-06T10:52:24.913Z] [10:52:25] Installing extension: rjmacarthy.twinny {
  context: { clientTargetPlatform: 'win32-x64' },
  installOnlyNewlyAddedFromExtensionPack: true,
  isApplicationScoped: false,
  profileLocation: v {
    scheme: 'file',
    authority: '',
    path: '/home/node/.vscode-server/extensions/extensions.json',
    query: '',
    fragment: '',
    _formatted: 'file:///home/node/.vscode-server/extensions/extensions.json',
    _fsPath: '/home/node/.vscode-server/extensions/extensions.json'
  },
  productVersion: { version: '1.92.2', date: '2024-08-14T17:29:30.058Z' }
}
[2024-09-06T10:52:35.558Z] [10:52:35] Extension signature verification result for rjmacarthy.twinny: Success. Executed: true. Duration: 2027ms.
[2024-09-06T10:52:38.963Z] [10:52:39] Extracted extension to file:///home/node/.vscode-server/extensions/rjmacarthy.twinny-3.15.13-linux-x64: rjmacarthy.twinny
[2024-09-06T10:52:38.974Z] [10:52:39] Renamed to /home/node/.vscode-server/extensions/rjmacarthy.twinny-3.15.13-linux-x64
[2024-09-06T10:52:38.991Z] [10:52:39] Extension installed successfully: rjmacarthy.twinny file:///home/node/.vscode-server/extensions/extensions.json
[2024-09-06T10:52:52.620Z] Port forwarding connection from 16266 > 42801 > 42801 in the container.
[2024-09-06T10:52:52.621Z] Start: Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:52.768Z] Port forwarding 16266 > 42801 > 42801 stderr: Connection established
[2024-09-06T10:52:53.060Z] [10:52:53] [127.0.0.1][d1bda003][ExtensionHostConnection] <412> Extension Host Process exited with code: null, signal: SIGILL.
[2024-09-06T10:52:53.105Z] Port forwarding 16204 > 42801 > 42801 stderr: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:218:20)
[2024-09-06T10:52:53.106Z] Port forwarding 16204 > 42801 > 42801 stderr: Remote close with error
[2024-09-06T10:52:53.106Z] Stop (106837 ms): Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:53.107Z] Port forwarding 16204 > 42801 > 42801 terminated with code 1 and signal null.
[2024-09-06T10:52:53.109Z] Port forwarding 16204 > 42801 > 42801: Local close
[2024-09-06T10:52:53.122Z] Port forwarding connection from 16269 > 42801 > 42801 in the container.
[2024-09-06T10:52:53.122Z] Start: Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:53.261Z] Port forwarding 16269 > 42801 > 42801 stderr: Connection established
[2024-09-06T10:52:53.323Z] [10:52:53] [127.0.0.1][d1bda003][ExtensionHostConnection] Unknown reconnection token (seen before).
[2024-09-06T10:52:53.366Z] Port forwarding 16269 > 42801 > 42801 stderr: Remote close
[2024-09-06T10:52:53.367Z] Stop (245 ms): Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:53.368Z] Port forwarding 16269 > 42801 > 42801 terminated with code 0 and signal null.
[2024-09-06T10:52:53.371Z] Port forwarding 16269 > 42801 > 42801: Local close
[2024-09-06T10:52:53.410Z] Port forwarding connection from 16270 > 42801 > 42801 in the container.
[2024-09-06T10:52:53.411Z] Start: Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:53.538Z] Port forwarding 16270 > 42801 > 42801 stderr: Connection established
[2024-09-06T10:52:53.605Z] [10:52:53] [127.0.0.1][0705cdf2][ExtensionHostConnection] New connection established.
[2024-09-06T10:52:53.649Z] [10:52:53] [127.0.0.1][0705cdf2][ExtensionHostConnection] <1020> Launched Extension Host Process.
[2024-09-06T10:52:55.878Z] [10:52:55] [127.0.0.1][0705cdf2][ExtensionHostConnection] <1020> Extension Host Process exited with code: null, signal: SIGILL.
[2024-09-06T10:52:55.921Z] Port forwarding 16270 > 42801 > 42801 stderr: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:218:20)
[2024-09-06T10:52:55.921Z] Port forwarding 16270 > 42801 > 42801 stderr: Remote close with error
[2024-09-06T10:52:55.922Z] Stop (2511 ms): Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:55.922Z] Port forwarding 16270 > 42801 > 42801 terminated with code 1 and signal null.
[2024-09-06T10:52:55.924Z] Port forwarding 16270 > 42801 > 42801: Local close
[2024-09-06T10:52:55.928Z] Port forwarding connection from 16272 > 42801 > 42801 in the container.
[2024-09-06T10:52:55.929Z] Start: Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:56.053Z] Port forwarding 16272 > 42801 > 42801 stderr: Connection established
[2024-09-06T10:52:56.107Z] [10:52:56] [127.0.0.1][0705cdf2][ExtensionHostConnection] Unknown reconnection token (seen before).
[2024-09-06T10:52:56.149Z] Port forwarding 16272 > 42801 > 42801 stderr: Remote close
[2024-09-06T10:52:56.150Z] Stop (221 ms): Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:56.151Z] Port forwarding 16272 > 42801 > 42801 terminated with code 0 and signal null.
[2024-09-06T10:52:56.152Z] Port forwarding 16272 > 42801 > 42801: Local close
[2024-09-06T10:52:56.188Z] Port forwarding connection from 16273 > 42801 > 42801 in the container.
[2024-09-06T10:52:56.189Z] Start: Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:56.330Z] Port forwarding 16273 > 42801 > 42801 stderr: Connection established
[2024-09-06T10:52:56.388Z] [10:52:56] [127.0.0.1][8ab1e03b][ExtensionHostConnection] New connection established.
[2024-09-06T10:52:56.433Z] [10:52:56] [127.0.0.1][8ab1e03b][ExtensionHostConnection] <1117> Launched Extension Host Process.
[2024-09-06T10:52:57.774Z] Port forwarding 16266 > 42801 > 42801 stderr: Remote close
[2024-09-06T10:52:57.818Z] Stop (5197 ms): Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:57.819Z] Port forwarding 16266 > 42801 > 42801 terminated with code 0 and signal null.
[2024-09-06T10:52:58.917Z] [10:52:59] [127.0.0.1][8ab1e03b][ExtensionHostConnection] <1117> Extension Host Process exited with code: null, signal: SIGILL.
[2024-09-06T10:52:58.961Z] Port forwarding 16273 > 42801 > 42801 stderr: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:218:20)
[2024-09-06T10:52:58.961Z] Port forwarding 16273 > 42801 > 42801 stderr: Remote close with error
[2024-09-06T10:52:58.962Z] Stop (2773 ms): Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:58.962Z] Port forwarding 16273 > 42801 > 42801 terminated with code 1 and signal null.
[2024-09-06T10:52:58.964Z] Port forwarding 16273 > 42801 > 42801: Local close
[2024-09-06T10:52:58.974Z] Port forwarding connection from 16274 > 42801 > 42801 in the container.
[2024-09-06T10:52:58.975Z] Start: Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:59.103Z] Port forwarding 16274 > 42801 > 42801 stderr: Connection established
[2024-09-06T10:52:59.163Z] [10:52:59] [127.0.0.1][8ab1e03b][ExtensionHostConnection] Unknown reconnection token (seen before).
[2024-09-06T10:52:59.206Z] Port forwarding 16274 > 42801 > 42801 stderr: Remote close
[2024-09-06T10:52:59.206Z] Stop (231 ms): Run in container: /home/node/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/node -e 
[2024-09-06T10:52:59.207Z] Port forwarding 16274 > 42801 > 42801 terminated with code 0 and signal null.
[2024-09-06T10:52:59.208Z] Port forwarding 16274 > 42801 > 42801: Local close

Desktop (please complete the following information):

  • OS (local): windows 10 22h2 19045.4780
  • Browser [Edge 128.0.2739.54]
  • OS (remote): debian 12 (console only), docker 24.0.9
  • DevContainer: "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm"
@rjmacarthy
Copy link
Collaborator

Hey it seems you're client target is windows context: { clientTargetPlatform: 'win32-x64' } but the container is using linux but the profileLocation is using linux x64?.

@jurykor
Copy link
Author

jurykor commented Sep 9, 2024

Well, I work on windows, so probably win32-x64 comes from there. And the remote machine on debian 12 x64...
The extension works locally on Windows, but when I use "Open Remote Window" via "Remote - SSH" and install the local extension in 'SSH:remotehost', the extension host process on the remote machine crashes.
All logs from the windows user profile and the debian user's home directory are attached:
codelogs.zip

P.S.: The same thing happens when I use "Dev Container"

P.P.S.: But everything works in WSL2:
remoteagent.wsl.log

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

2 participants