code-server: Extension Host Process exited with code: 0, signal: null.

OS/Web Information

  • Web Browser: Microsoft Edge 97.0.1072.55
  • Local OS: Windows 11 21H2
  • Remote OS: Ubuntu 20.04
  • code-server --version: 4.0.0

Steps to Reproduce

When NOT serving HTTPS, everything is OK. (except preview of markdown and PDF) But when serving HTTPS, a dozen of seconds after connected, Extension Host Process exited with code: 0, signal: null. will be reported and connection will be lost every time.

  1. modify ~/.config/code-server/config.yaml: cert: true
  2. run code-server --cert /etc/letsencrypt/live/www.wangruitang.xyz/fullchain.pem --cert-key /etc/letsencrypt/live/www.wangruitang.xyz/privkey.pem in terminal
  3. open https://www.wangruitang.xyz:9999/?folder=/home/wrt in the browser, after connected, wait a dozen of seconds, and Cannot Reconnect. Please reload the window. will appear in the browser. Then I have to reload the window every dozen of seconds.

Logs

[2022-01-14T06:36:11.137Z] info  code-server 4.0.0 0f395955515207f9b461ffdd2a595f35311dd05f
[2022-01-14T06:36:11.141Z] info  Using user-data-dir ~/.local/share/code-server
[2022-01-14T06:36:11.175Z] info  Using config file ~/.config/code-server/config.yaml
[2022-01-14T06:36:11.176Z] info  HTTPS server listening on https://0.0.0.0:8080/
[2022-01-14T06:36:11.177Z] info    - Authentication is enabled
[2022-01-14T06:36:11.178Z] info      - Using password from ~/.config/code-server/config.yaml
[2022-01-14T06:36:11.178Z] info    - Using certificate for HTTPS: /etc/letsencrypt/live/www.wangruitang.xyz/fullchain.pem
[14:36:17] Extension host agent started.
[14:36:20] [117.136.50.134][7ad15e85][ManagementConnection] New connection established.
[14:36:20] [117.136.50.134][96dde835][ExtensionHostConnection] New connection established.
[14:36:21] [117.136.50.134][96dde835][ExtensionHostConnection] <3119> Launched Extension Host Process.
[14:36:41] [117.136.50.134][96dde835][ExtensionHostConnection] The client has reconnected.
[14:37:02] [117.136.50.134][96dde835][ExtensionHostConnection] The client has reconnected.
[14:37:21] [117.136.50.134][96dde835][ExtensionHostConnection] <3119> Extension Host Process exited with code: 0, signal: null.
[14:37:23] [117.136.50.134][96dde835][ExtensionHostConnection] Unknown reconnection token (seen before).
[14:37:23] [117.136.50.134][7ad15e85][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 14
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Same problem.

I get this same bug on 4.x. It is the same issue as reported here: https://github.com/coder/code-server/issues/4693

+1, upgrade from 3.11. temporally resolved by assign cert to false in config.yml

Same issue, upgraded from 3.12.X to 4.0.1

I tried --cert on v4.4.0 but it worked for me.

@jsjoeio Sounds like it is, yeah. Probably need to bring back the TLS socket proxy that was deleted.

Same here. Upgraded from 3.12.0.