code-server
code-server copied to clipboard
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.
- modify
~/.config/code-server/config.yaml
:cert: true
- run
code-server --cert /etc/letsencrypt/live/www.wangruitang.xyz/fullchain.pem --cert-key /etc/letsencrypt/live/www.wangruitang.xyz/privkey.pem
in terminal - open
https://www.wangruitang.xyz:9999/?folder=/home/wrt
in the browser, after connected, wait a dozen of seconds, andCannot 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.
Same here. Upgraded from 3.12.0.
@code-asher any ideas on this? Maybe a regression with the cert logic
I get this same bug on 4.x. It is the same issue as reported here: https://github.com/coder/code-server/issues/4693
Same issue, upgraded from 3.12.X to 4.0.1
+1, upgrade from 3.11. temporally resolved by assign cert to false in config.yml
@jsjoeio Sounds like it is, yeah. Probably need to bring back the TLS socket proxy that was deleted.
Same problem.
Same here.
+1,upgrade from 3.12.
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.
Same here, latest version. Hope fixes it rapidly
+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.
After logging in it the page crashes with
require is not defined
.
So is there currently any way to use https?
I tried --cert
on v4.4.0 but it worked for me.
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.