code-server 3.2.0 starting but can't access the website
Code server does not work
Code-Server on Ubuntu 18.04 not working.
VS Code Remote-SSH: The vscode server failed to start SSH - Stack Overflow
My issue is the following:I run code-server on a port (I have allowed the port with ufw) and when I try to access it, it doesn't reach it.
Above is a photo of what It looks like. How can I fix this issue? I'm running the latest version:3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259
EDIT: Apparently when I don't have code-server it says ''it can't be reached", when I start code-server it says "refused to connect".
After a while, I found a solution that can be useful to others.
In VS Code press:
CTRL + SHIFT + P
Type or select the option:
Remote-SSH: kill VS Code Server on Host...

Select the host name:

And after this procedure, try connecting again to the host.
That worked for me.
The release notes of the new VS-Code 1.86 (Jan 2024) reads:
From this release onwards, VS Code desktop is only compatible with Linux distributions based on glibc 2.28 or later, and glibcxx 3.4.25 or later, such as Debian 10, RHEL 8, or Ubuntu 20.04.
If you don't have the required version of the mentioned programs on the server side, you better revert to the previous version of VS-Code (v1.85). To do so, uninstall your current (v1.86) VS-Code, download v1.85 from the link below, and install it. https://code.visualstudio.com/updates/v1_85
Linux users can easily run the following command until the next release; run it after you uninstall the current (v1.86) VS-Code:
sudo apt install code-exploration
solution :Kill VS code Server on host and reconnect maybe work
- show Command Palette : ctrl + shift +p
- input keyword : Remote-SSH
- select target : Remote-SSH: Kill VS Code Server on Host...
- reconnect target serer will work
Another solution: Remote-SSH: Uninstall VS Code Server from Host work
You can find Remote-SSH: Uninstall VS Code Server from Host... via the command palette (ctrl/cmd + shift + p).

And if you select or enter the host IP, the vscode installed on that server will be uninstalled.

Then, if you connect to the server again through vscode-ssh, vscode will work well. After several attempts, I also succeeded in connecting this way.
I installed Studio Code Server and set all the options to ON (start on boot, watchdog, auto update and show in sidebar).
When I choose Studio Code Server from the sidebar, I'm presented with the following pop-up:
Studio Code Server "The ad-on is not running. Do you want to start it now?"
NO or START ADD-ON
When I choose START ADD-ON, It says: "The add-on is starting, this can take some time."
The little rotating circle continues as though it's trying to load for approximately 1 minute and then it reverts back to: "The add-on is not running. Do you want to start it now?"
I've tried restarting home assistant and trying to start again but I'm presented with the same result each time I've attempted to start it.
Any idea what's going on or something that I've missed?
Many thanks!
TLDR: just rename or delete the .vscode-server/ folder in your wsl distro, it must be in the root, otherwise when connecting to wsl, vscode would attempt to install itself on you wsl distro.
I came across a similar situation, I did have the .vscode-server/ folder in the root though.
ATENTION: What I did made me lose my vscode extensions installed in wsl, wasn't a big deal for me but may be for your case.
To solve my issue:
- I opened the terminal in the wsl distro I was using for vscode;
- Checked if i had the folder by running the command
cd ~/.vscode-server; - I did have it, so I just renamed it (non destructive) to ".old_vscode-server";
- Then just opened a new vscode instance and connected to wsl, it installed vscode server again, but without my previous extensions;
Simply delete ~/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685, then reopen VS code. This fixed the same error in my pc without losing the installed extensions.
Good morning Carlos,
I am trying to run Code-Server on Blink Build and I'm using the instructions on your video. I am stuck. When I try to to run code-server i get the following error newline' /root/bin/code-server: line 1: '
Many thanks
Sidney
Crossposting from r/selfhosted for better visibility.
I installed VS Code Server using this proxmox helper script and the installation does go through. But when accessing the service on given address, I just see blank page.
For Context:
I have tried every different option available on the web to install code-server but all of them are giving me the same result. The services give me either blank page or the password page and then blank page. The LXC Container I use is Ubuntu LTS with 4 GB RAM and 10 GB storage.
At this point, I'm 2 days out and still haven't gotten a code server instant working. This sounds like there's something wrong with the code-server implementation or I'm missing some major step.
My question to everyone here is: Has anybody else faced this issue with code-server or I'm the only one? OR can someone give the above script a try and do a test run to see if you're facing the same error?