Code-server: Extension server killed unexpectedly

Created on 16 Mar 2019  路  6Comments  路  Source: cdr/code-server


  • 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>
bug

Most helpful comment

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

All 6 comments

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!

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

@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).

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

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

Fixed by GH-857.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchecinski picture pchecinski  路  3Comments

Arsaev picture Arsaev  路  3Comments

chrischabot picture chrischabot  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments

tecosaur picture tecosaur  路  3Comments