Code-server: Update failed

Created on 10 Apr 2020  ·  8Comments  ·  Source: cdr/code-server

if a would like to do "apply update" (code-server has an update: 3.1.0) I received the message "Update failed".
Where can I find logs to understand the problem?
how could I avoid this error?
Capture d’écran 2020-04-10 à 22 22 57

Most helpful comment

Same issue with DigitalOceans one click deployment.

All 8 comments

This is probably the bug in 3.0.2 where it would report the update failed even though it actually succeeded. Could you run code-server --version to verify the current version it's running?

I got the same issue when running through docker:

coder@6356ebe4a4d3:~$ code-server --version
3.0.2 e480f6527e11344a7c69b7cd024bce9379cea7f0

Hi, thank you for the quick answer.

with code-server --version
gregoryweb@deb1:~/code-server/code-server-3.0.2-linux-x86_64$ ./code-server --version
3.0.2 e480f6527e11344a7c69b7cd024bce9379cea7f0

with about link in code-server:
Version: 1.43.2
Commit: e480f6527e11344a7c69b7cd024bce9379cea7f0
Date: 2020-04-01T23:37:57.354Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36

with systemctl status code-server:
gregoryweb@deb1:~$ systemctl status code-server
● code-server.service - code-server
Loaded: loaded (/lib/systemd/system/code-server.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-04-10 22:13:28 CEST; 15h ago
Main PID: 18649 (node)
Tasks: 30 (limit: 4915)
CGroup: /system.slice/code-server.service
├─18649 /var/www/code-server/code-server-3.0.2-linux-x86_64/node /var/www/code-server/code-server-3.0.2-linux-x86_64/out/node/entry.js --auth password
├─18659 /var/www/code-server/code-server-3.0.2-linux-x86_64/node /var/www/code-server/code-server-3.0.2-linux-x86_64/out/node/entry.js --auth password
└─18670 /var/www/code-server/code-server-3.0.2-linux-x86_64/node /var/www/code-server/code-server-3.0.2-linux-x86_64/lib/vscode/out/vs/server/fork

I follow this tutorial to install code-server: https://www.digitalocean.com/community/tutorials/how-to-set-up-the-code-server-cloud-ide-platform-on-ubuntu-18-04-quickstart

here is my code-server.service file
[Unit]
Description=code-server
After=nginx.service

[Service]
Type=simple
Environment=PASSWORD=xxx
ExecStart=/var/www/code-server/code-server-3.0.2-linux-x86_64/code-server --auth password
Restart=always
User=gregoryweb

[Install]
WantedBy=multi-user.target
------end

Some informations maybe useful:

  • I use code-server trough HTTP (not yet trough HTTPS...)
  • I had a lot of problems to install Extensions because of folder permission problems...

Thank you for your help

same issue when running through docker:
3.0.2 e480f65

Same issue with DigitalOceans one click deployment.

Interesting, so far I haven't been able to replicate. Here's what I've done (I'm running in a Docker container):

  1. Download then run 3.0.2:
$ curl -fsSL https://github.com/cdr/code-server/releases/download/3.0.2/code-server-3.0.2-linux-x86_64.tar.gz | tar -xz
$ ./code-server-3.0.2-linux-x86_64/code-server --host 0.0.0.0
info  code-server 3.0.2 e480f6527e11344a7c69b7cd024bce9379cea7f0
info  HTTP server listening on http://0.0.0.0:8080
info    - Using custom password for authentication
info    - Not serving HTTPS
info  Automatic updates are enabled
info  SSH server listening on localhost:38193
  1. Go to localhost:8080
  2. Press "Apply Update"
  3. Got "Update failed" (the bug I mentioned)
  4. Go back to shell and check output
info  Relaunching: 3.0.2 -> 3.1.0
info  code-server 3.1.0 5aded14b87e017d32d080b686515f6a26be455f1
info  HTTP server listening on http://0.0.0.0:8080
info    - Using custom password for authentication
info    - Not serving HTTPS
info  Automatic updates are enabled
info  SSH server listening on localhost:34997
info    - To disable use `--disable-ssh`
  1. Kill code-server and double-check the version
$ ./code-server-3.0.2-linux-x86_64/code-server --version
3.1.0 5aded14b87e017d32d080b686515f6a26be455f1

As an aside, keep in mind 3.0.2 will delete the old directory so be careful if you have your own files in there. Starting from 3.1.0 code-server will move the directory instead of deleting it.

Ok for me.

Thank you.

same problem for me running one-click code-server on digital ocean. I will try the fix above and start a new issue because of the error.

coder@rivetcalc-server01:~$ code-server --version info code-server 3.0.2 e480f6527e11344a7c69b7cd024bce9379cea7f0 error listen EADDRINUSE: address already in use 0.0.0.0:443 coder@rivetcalc-server01:~$

Was this page helpful?
0 / 5 - 0 ratings

Related issues

broady picture broady  ·  3Comments

pchecinski picture pchecinski  ·  3Comments

sa7mon picture sa7mon  ·  3Comments

tecosaur picture tecosaur  ·  3Comments

balazssoltesz picture balazssoltesz  ·  3Comments