question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash after WebSocket opened "Error: spawn ENOMEM"

See original GitHub issue
  • code-server version: 1.408-vsc1.32.0
  • OS Version: ubuntu 18.10 cloud // vulture - 1 CPU /1024MB Memory

Description

Error

root@node:~# code-server
INFO  code-server v1.408-vsc1.32.0
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/root/.local/share/code-server","working-dir":"/root","log-dir":"/root/.cache/code-server/logs/20190403071721342"}
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
INFO
INFO  Password: 1dc067aad902ac9e90fbadf0
INFO
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO
INFO  Starting shared process [1/5]...
INFO  Connected to shared process
ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, open '/root/.local/share/code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/root/.local/share/code-server/Backups/workspaces.json'\n    at Timeout.setTimeout [as _onTimeout] (/home/travis/build/codercom/code-server/packages/server/build/bootstrap-fork.js.gz:52540:31)\n    at ontimeout (timers.js:498:11)\n    at tryOnTimeout (timers.js:323:5)\n    at Timer.listOnTimeout (timers.js:290:5)\n"}
INFO  WebSocket opened / {"client":1,"ip":"37.237.144.27"}
internal/child_process.js:313
    throw errnoException(err, 'spawn');
    ^

Error: spawn ENOMEM
    at ChildProcess.spawn (internal/child_process.js:313:11)
    at Object.exports.spawn [as _spawn] (child_process.js:508:9)
    at t.async (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:34463)
    at e.exports (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:33964)
    at e (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:32689)
    at Timeout.u [as _onTimeout] (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:32982)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
Lin-boycommented, Apr 16, 2019

Thanks.I create a server .It has 4gb of RAM.Now it works well.

Michael Desantis notifications@github.com 于2019年4月16日周二 上午12:36写道:

ENOMEM = Error. No Memory.

You may need more RAM, some users have reported problems running the binary on machines with less than 1GB of RAM.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/codercom/code-server/issues/410#issuecomment-483326808, or mute the thread https://github.com/notifications/unsubscribe-auth/ApK1K4XpApMd3uJic93-shBtLlqVkLs3ks5vhKqigaJpZM4cZz_s .

1reaction
ksembacommented, Apr 4, 2019

cool, thanks for the hint - worked. I did:

sudo apt update sudo apt install net-tools

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash after WebSocket opened "Error: spawn ENOMEM" #410
code-server version: 1.408-vsc1.32.0 OS Version: ubuntu 18.10 cloud // vulture - 1 CPU /1024MB Memory Description Error root@node:~# ...
Read more >
Node.js catch ENOMEM error thrown after spawn
js script crashes because of a thrown ENOMEM (Out of memory) errnoException when using spawn. The error: child_process.js:935 throw errnoException(process.
Read more >
Node.js ChangeLog - Google Git
Known issues. When a server queues a large amount of data to send to a client over a pipelined HTTP connection, the underlying...
Read more >
Untitled
Resolves: Bug 1653163 - certmap fails when Issuer DN has comma in name ... Fix crash on repeated opening of presentations Resolves: #1444437...
Read more >
Changelog — Python 3.7.15 documentation
bpo-43660: Fix crash that happens when replacing sys.stderr with a callable that can remove the object while an exception is being printed. Patch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found