Skip to content

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

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

Closed
wangruitang opened this issue Jan 14, 2022 · 15 comments
Closed

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

wangruitang opened this issue Jan 14, 2022 · 15 comments
Labels
bug Something isn't working high-priority This issue needs to be resolved ASAP

Comments

@wangruitang
Copy link

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.
@jfolz
Copy link

jfolz commented Jan 14, 2022

Same here. Upgraded from 3.12.0.

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 14, 2022

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

@jsjoeio jsjoeio added the needs-investigation This issue needs to be further investigated label Jan 14, 2022
@wilcdr
Copy link

wilcdr commented Jan 15, 2022

I get this same bug on 4.x. It is the same issue as reported here: #4693

@diegosucaria
Copy link

Same issue, upgraded from 3.12.X to 4.0.1

@fdddf
Copy link

fdddf commented Jan 19, 2022

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

@code-asher
Copy link
Member

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

@jsjoeio jsjoeio added bug Something isn't working and removed needs-investigation This issue needs to be further investigated labels Jan 19, 2022
@jsjoeio jsjoeio added this to the 4.1.0 - improve iPad UX milestone Jan 19, 2022
@wombatinua
Copy link

Same problem.

@ZhangTianrong
Copy link

Same here.

@EaveLuo
Copy link

EaveLuo commented Feb 26, 2022

+1,upgrade from 3.12.

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 28, 2022

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 jsjoeio added the high-priority This issue needs to be resolved ASAP label Feb 28, 2022
@Dev-wuhha
Copy link

Same here, latest version. Hope fixes it rapidly

@zardoy
Copy link

zardoy commented Jun 22, 2022

+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?

@code-asher
Copy link
Member

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

@Dev-wuhha
Copy link

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.

@code-asher
Copy link
Member

Closing for now but please let me know if it still happens on the latest version and how I can reproduce.

@code-asher code-asher closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority This issue needs to be resolved ASAP
Projects
None yet
Development

No branches or pull requests