Skip to content

Extension server killed unexpectedly #267

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
stevefan1999-personal opened this issue Mar 16, 2019 · 6 comments
Closed

Extension server killed unexpectedly #267

stevefan1999-personal opened this issue Mar 16, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@stevefan1999-personal
Copy link

stevefan1999-personal commented Mar 16, 2019

  • code-server version: server/1.32.0-282 linux-x64 node-v8.15.0
  • OS Version: Debian 9, Linux Kernel 2.6.32 on OVZ

Steps to Reproduce

  1. Try to download an extension and stop it midway
  2. The extension host process will die eventually with SIGKILL
Mar 16 15:40:26 s code-server[2299]: INFO  Starting shared process [1/5]... {"error":"Exited with null"}
  1. Tried to run the extension host process manually and got this:
root@s:~# /usr/bin/code-server --bootstrap-fork vs/workbench/services/extensions/node/extensionHostProcess --args ["--type=extensionHost"] --data-dir /root/.local/share/code-server
SyntaxError: Unexpected number in JSON at position 2
    at JSON.parse (<anonymous>)
    at v.run (/usr/bin/code-server:549:49455)
    at <anonymous>
@stevefan1999-personal stevefan1999-personal added the bug Something isn't working label Mar 16, 2019
@NGTmeaty
Copy link
Contributor

Hey! I believe @foresthoffman may need a bit more information, do you know which extension (or extensions) this happened with? Are you running the Docker version or the executable? Also how much ram does the server have?

Thanks!

@stevefan1999-personal
Copy link
Author

stevefan1999-personal commented Mar 17, 2019

@NGTmeaty I believe this is not a extension specific issue, but I was trying to install Vetur at the time. I'm not running Docker, and the server has 1GB of RAM, is that not enough for code-server?

@sr229
Copy link
Contributor

sr229 commented Mar 17, 2019

@stevefan1999-personal I recommend something larger than 1GB because code-server eats that specific amount of RAM which is currently problematic to run where memory is prime estate (ala OpenShift).

@sr229
Copy link
Contributor

sr229 commented Mar 17, 2019

and looks like your extensions.json is broken as well, you might need to delete $HOME/.code-server and run it again.

@nol166
Copy link
Contributor

nol166 commented Mar 21, 2019

We have a new binary coming soon that should reduce memory consumption by at least 50%

@sr229
Copy link
Contributor

sr229 commented Sep 12, 2019

Fixed by GH-857.

@sr229 sr229 closed this as completed Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants