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.

VS Code exited unexpectedly with code 0

See original GitHub issue

This appears to be the same problem as #3198, but with a different version of code-server. I’m opening a new bug to avoid confusing that one, but I’m happy to have them merged together if you feel it’s the same underlying problem.

OS/Web Information

  • Web Browser: Chrome 91.0.4472.81
  • Local OS: ChromeOS 91.0.4472.81
  • Remote OS: Raspbian 10
  • Remote Architecture: armv7l
  • code-server --version: 3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005

Steps to Reproduce

  1. Launch code server with code-server ---auth none --bind-addr 0.0.0.0:8080 -vvv.
  2. Visit port 8080 on the server.

Expected

VS Code

Actual

500

Logs

Console output

[2021-06-13T22:37:30.197Z] trace child:18671 got message {"message":{"type":"handshake","args":{"_":[],"bind-addr":"0.0.0.0:8080","auth":"none","password":"d1a25a44f29fe7aabf39b4f2","config":"/home/pi/.config/code-server/config.yaml","verbose":true,"user-data-dir":"/home/pi/.local/share/code-server","extensions-dir":"/home/pi/.local/share/code-server/extensions","log":"trace","host":"0.0.0.0","port":8080,"proxy-domain":[],"usingEnvPassword":false,"usingEnvHashedPassword":false}}}
[2021-06-13T22:37:30.211Z] info  code-server 3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005
[2021-06-13T22:37:30.213Z] info  Using user-data-dir ~/.local/share/code-server
[2021-06-13T22:37:30.214Z] trace Using extensions-dir ~/.local/share/code-server/extensions
[2021-06-13T22:37:30.281Z] info  Using config file ~/.config/code-server/config.yaml
[2021-06-13T22:37:30.282Z] info  HTTP server listening on http://0.0.0.0:8080 
[2021-06-13T22:37:30.282Z] info    - Authentication is disabled 
[2021-06-13T22:37:30.283Z] info    - Not serving HTTPS 
[2021-06-13T22:38:38.836Z] trace heartbeat
[2021-06-13T22:38:38.888Z] debug forking vs code...
[2021-06-13T22:38:40.719Z] error VS Code exited unexpectedly with code 0

Refreshing the web browser results in

[2021-06-13T22:39:37.995Z] debug forking vs code...
[2021-06-13T22:39:38.842Z] debug 2 active connections
[2021-06-13T22:39:38.843Z] trace heartbeat
[2021-06-13T22:39:39.877Z] error VS Code exited unexpectedly with code 0

The most recent files from ~/.local/share/code-server/coder-logs.

Both the stderr and stdout files are empty.

The browser console.

raspberrypi.local/:1 GET http://raspberrypi.local:8080/ 500 (Internal Server Error)
logger.ts:173 error [Service Worker] navigator is undefined

The browser network tab.

I have the .har file, but Github won’t let me upload it. It shows what you would expect, though: a 500 from the server followed by 200s for the various resources used by the 500 page.

Screenshot

It’s a 500 page.

Notes

This issue can be reproduced in VS Code: No (I cannot run VS Code headless.)

I had previously been running code-server 3.7.4, but often running into problems with the Jupyter extension not loading properly (#2341). Upgrading code server (npm update -g code-server) resulted in a broken install, so I uninstalled and reinstalled (npm install -g code-server), resulting in this problem.

I’ve moved ~/.local/share/code-server from the previous installation to another location, and the problem persists.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rschrollcommented, Aug 6, 2021

I just tried installing code-server 3.11.0, and it seems to be working. Perhaps this issue should be closed?

1reaction
F-Unctioncommented, Jun 20, 2021

Same error on termux, requires help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

500 VS Code failed to load · Issue #3325 · coder/code-server
I enter my password, then I get the 500 error, VS Code failed to load. exited unexpectedly with code 0. Logs. code-server --log...
Read more >
The editor cannot be opened due to an unexpected error - ...
This can be solved by restarting the WSL container's network. Open Powershell from in Windows and type the following command:.
Read more >
GDB exited unexpectedly with exit code 0
Hi, while debugging with Visual Studio 2019 with a CMake project on a linux target, I get “GDB exited unexpectedly with exit code...
Read more >
Container exited unexpectedly with code 0xc0000409
Workbook Package Info: 1* - ru-RU, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: False. Telemetry Enabled: True. Model Default ...
Read more >
The XAML Designer has exited unexpectedly. (Exit code
For the quickly troubleshooting please delete project bin and obj folder and build again. 0 Votes 0 ·.
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