Skip to content

Cannot automatically reconnect when code-server restarts #2697

Description

@zapstar
  • Web Browser: Microsoft Edge/Chrome
  • Local OS: MacOS BigSur 11.
  • Remote OS: Ubuntu Linux (Linux dev-box 5.4.0-1037-oracle how to start this from google colab? #40-Ubuntu SMP Thu Jan 14 09:19:02 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux)
  • Remote Architecture: amd64
  • code-server --version: 3.8.1 41ad0c0

The service by itself starts up fine. Later on when I try to connect to the remote server I keep seeing this error over and over again in the systemd logs.

ubuntu@dev-box:~$ journalctl -u code-server@ubuntu | tail
Feb 08 22:14:58 dev-box code-server[2710]:     at Object.next (/usr/lib/code-server/out/node/vscode.js:44:53)
Feb 08 22:14:58 dev-box code-server[2710]:     at fulfilled (/usr/lib/code-server/out/node/vscode.js:35:58)
Feb 08 22:14:58 dev-box code-server[2710]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
Feb 08 22:15:08 dev-box code-server[2710]: [2021-02-08T16:45:08.475Z] error vscode is not running Error: vscode is not running
Feb 08 22:15:08 dev-box code-server[2710]:     at VscodeProvider.send (/usr/lib/code-server/out/node/vscode.js:206:19)
Feb 08 22:15:08 dev-box code-server[2710]:     at VscodeProvider.<anonymous> (/usr/lib/code-server/out/node/vscode.js:198:30)
Feb 08 22:15:08 dev-box code-server[2710]:     at step (/usr/lib/code-server/out/node/vscode.js:63:23)
Feb 08 22:15:08 dev-box code-server[2710]:     at Object.next (/usr/lib/code-server/out/node/vscode.js:44:53)
Feb 08 22:15:08 dev-box code-server[2710]:     at fulfilled (/usr/lib/code-server/out/node/vscode.js:35:58)
Feb 08 22:15:08 dev-box code-server[2710]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)

Let me know if you need any other logs/information, I'll be happy to provide them for you.

Updated Workaround: Essentially if code-server crashes and recovers you'll have to close your code-server browser window and restart it again in the background.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions