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.

Losing connection with error

See original GitHub issue
  • code-server v1.939-vsc1.33.1
  • OS Version: ubuntu 18.04 x64

Vultr server: 1 CPU 1024MB Memory 1000GB Bandwidth

Description

I am able to start code-server and connect through the browser but after less than 1 minute the server disconnects and error’s with log below.

Steps to Reproduce

root@appdev:~/myapp# root@appdev:~/myapp# code-server (node:16060) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. INFO code-server v1.939-vsc1.33.1 INFO Additional documentation: http://github.com/codercom/code-server INFO Initializing {“data-dir”:“/root/.local/share/code-server”,“extensions-dir”:“/root/.local/share/code-server/extensions”,“working-dir”:“/root/myapp”,“log-dir”:“/root/.cache/code-server/logs/20190508145306551”} 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://github.com/codercom/code-server/blob/master/doc/security/ssl.md INFO INFO Password: 3df65cd56cer8c327a789aa5 INFO INFO Started (click the link below to open): INFO http://localhost:8443/ INFO INFO Starting shared process [1/5]… internal/child_process.js:366 throw errnoException(err, ‘spawn’); ^

Error: spawn ENOMEM at ChildProcess.spawn (internal/child_process.js:366:11) at Object.spawn [as _spawn] (child_process.js:538:9) at t.async (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:34598) at e.exports (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:34099) at e (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:32722) at Timeout.u [as _onTimeout] (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:33015) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10) root@appdev:~/myapp#

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
meozcommented, May 9, 2019

The server is dying because it ran out of memory.

You could try adding more memory to your VPS or adding swap

Thanks adding swap did the trick

1reaction
coadlercommented, May 8, 2019

The server is dying because it ran out of memory.

You could try adding more memory to your VPS or adding swap

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolving the "Connection to the server was lost" Error.
Since this error can appear with even a brief connection outage, simply restarting Acctivate often resolves the error and re-establishes the application's ...
Read more >
How to Fix "Connection Lost" Error in Multiversus - Appuals.com
How to Fix “Connection Lost” Error in Multiversus · 1. Check the Status of your Internet Connection · 2. Check Multiversus Server Status...
Read more >
How do I fix the "Network Connection Lost" error message?
Exit Fortnite. Open the Epic Games Launcher. Click on Library. Click on the three dots next to Fortnite. Click the three dots next...
Read more >
MultiVersus: How to Fix Connection Lost | The Nerd Stash
A good first step to fixing the “Connection Lost” issue in MultiVersus is to restart your PC or console. If that doesn't resolve...
Read more >
MultiVersus: Server Downtime, Connection Lost Error
MultiVersus: Connection Lost Error – Fixes · UPDATE: Server Maintenance starts at 9:00 am PT. · Fix #1 – Reboot Your System (All...
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