code-server icon indicating copy to clipboard operation
code-server copied to clipboard

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

Open ruitangwang opened this issue 3 years ago • 14 comments

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.

ruitangwang avatar Jan 14 '22 07:01 ruitangwang

Same here. Upgraded from 3.12.0.

jfolz avatar Jan 14 '22 20:01 jfolz

@code-asher any ideas on this? Maybe a regression with the cert logic

jsjoeio avatar Jan 14 '22 21:01 jsjoeio

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

wilcdr avatar Jan 15 '22 02:01 wilcdr

Same issue, upgraded from 3.12.X to 4.0.1

diegosucaria avatar Jan 18 '22 19:01 diegosucaria

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

fdddf avatar Jan 19 '22 11:01 fdddf

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

code-asher avatar Jan 19 '22 16:01 code-asher

Same problem.

wombatinua avatar Jan 31 '22 17:01 wombatinua

Same here.

ZhangTianrong avatar Feb 26 '22 05:02 ZhangTianrong

+1,upgrade from 3.12.

EaveLuo avatar Feb 26 '22 06:02 EaveLuo

Thanks for the comments all! Anyone else coming here experiencing this, give the original issue description a 👍

This is on our list of high-priority bugs to fix soon.

jsjoeio avatar Feb 28 '22 20:02 jsjoeio

Same here, latest version. Hope fixes it rapidly

Dev-wuhha avatar Jun 21 '22 11:06 Dev-wuhha

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

Tried to downgrade to 3.11.1, but styles seems to be broken to me. image After logging in it the page crashes with require is not defined.

So is there currently any way to use https?

zardoy avatar Jun 22 '22 14:06 zardoy

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

code-asher avatar Jun 28 '22 18:06 code-asher

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

I found that if I use auth none, it will have no bug. In contrast, if I use auth password after defining a var named password or default, it will stop after a while.

Dev-wuhha avatar Jun 29 '22 00:06 Dev-wuhha