Skip to content

code-server continuously reconnecting #2520

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
mcmans opened this issue Dec 26, 2020 · 10 comments
Closed

code-server continuously reconnecting #2520

mcmans opened this issue Dec 26, 2020 · 10 comments
Labels
bug Something isn't working os-macos macOS related waiting-for-info Waiting for more information from submitter

Comments

@mcmans
Copy link

mcmans commented Dec 26, 2020

Web Browser: Safari
Local OS: Mac 11.1 or iPad 14.3
Remote OS: Mac 11.1
Remote Architecture: x64
code-server --version: 3.8.0

Debug logs:

[2020-12-26T23:06:06.294Z] debug forking vs code...
[2020-12-26T23:06:06.647Z] debug setting up vs code...
[2020-12-26T23:06:06.650Z] debug vscode got message from code-server {"type":"init"}
[2020-12-26T23:06:06.966Z] debug vscode got message from code-server {"type":"socket"}
[2020-12-26T23:06:06.970Z] debug vscode New connection {"token":"affb5b3e-74ac-4a42-8d76-936184e7d3e8"}
[2020-12-26T23:06:07.355Z] debug got latest version {"latest":"3.8.0"}
[2020-12-26T23:06:07.355Z] debug comparing versions {"current":"3.8.0","latest":"3.8.0"}
[2020-12-26T23:06:07.452Z] debug vscode got message from code-server {"type":"socket"}
[2020-12-26T23:06:07.578Z] debug vscode New connection {"token":"c93daf94-4cf9-4a48-8b94-f0599c2a2246"}
[2020-12-26T23:06:07.669Z] debug Creating terminal {"id":0,"terminals":0}
[2020-12-26T23:06:07.670Z] debug Resolved shell launch configuration {"id":0}
[2020-12-26T23:06:07.672Z] debug Resolved terminal environment {"id":0}
[2020-12-26T23:06:07.673Z] debug Created terminal {"id":0}
[2020-12-26T23:06:07.743Z] debug Terminal bound {"id":0}
[2020-12-26T23:06:07.743Z] debug Terminal replaying {"id":0}
node:internal/process/promises:227
triggerUncaughtException(err, true /* fromPromise */);
^

validating: Unexpected end of data
at A.downloadInstallableExtension (/usr/local/Cellar/code-server/3.8.0/libexec/lib/vscode/out/vs/server/entry.js:523:159)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at async A.doInstallFromGallery (/usr/local/Cellar/code-server/3.8.0/libexec/lib/vscode/out/vs/server/entry.js:520:369) {
code: 'validating'
}
[2020-12-26T23:06:10.649Z] error VS Code exited unexpectedly with code 1

I've attempted to restart and the issues persists

@CristianoYL
Copy link

I had the same issue previously, but i noticed in the documentation that the minimal specs for server is 2 cores 1G RAM, so i switched to a larger instance and it worked fine. This app will have surge in CPU usage during some edits, so if the server cannot handle it, it will freeze.

@nhooyr nhooyr added bug Something isn't working waiting-for-info Waiting for more information from submitter labels Jan 18, 2021
@nhooyr
Copy link
Contributor

nhooyr commented Jan 18, 2021

@mcmans does this occur every time you visit code-server?

@nhooyr nhooyr added the os-macos macOS related label Jan 18, 2021
@crytos
Copy link

crytos commented Feb 3, 2021

I am having the same issue, of memory overuse and reconnecting. I checked and saw as if extensions or node module and continuously checked and updated, something like that. Here is a shot from htop.

code

@dtsmith2001
Copy link

dtsmith2001 commented Mar 8, 2021

@nhooyr I have the same problem as others. The reconnection happens every 10 - 20 minutes, every day.

I've got 16 cores and 96 GB memory. Ubuntu 20.04. I'm running code-server 3.9.0.

(added) I upgraded to 3.9.1 Let's see what happens.

@crytos
Copy link

crytos commented Mar 9, 2021 via email

@dtsmith2001
Copy link

dtsmith2001 commented Mar 9, 2021 via email

@kaaax0815
Copy link

I had a really bad free Server with 1 Core 1 GB and only IPv6. Now I have 2 Cores 4 GB IPv4 and everything is working fine, I use cloudflare cdn to provide custom font functionality

@crytos
Copy link

crytos commented Mar 11, 2021 via email

@kaaax0815
Copy link

kaaax0815 commented Mar 11, 2021

@crytos I am talking about this #1374, but that has nothing to do with the reconnecting problem. because i dont have the problem aymore with or without cloudflare. cpu and ram seems good enough for code-server. maybe you only have ipv6. or there is any like extremly weird problem

@stale
Copy link

stale bot commented Sep 7, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

@stale stale bot added the stale label Sep 7, 2021
@stale stale bot closed this as completed Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os-macos macOS related waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

6 participants