code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Update failed

Open gregoryvanko opened this issue 6 years ago • 8 comments

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

gregoryvanko avatar Apr 10 '20 20:04 gregoryvanko

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?

code-asher avatar Apr 10 '20 22:04 code-asher

I got the same issue when running through docker:

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

gavinbd avatar Apr 11 '20 10:04 gavinbd

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

gregoryvanko avatar Apr 11 '20 11:04 gregoryvanko

same issue when running through docker: 3.0.2 e480f65

mlk3000 avatar Apr 11 '20 14:04 mlk3000

Same issue with DigitalOceans one click deployment.

juriadams avatar Apr 11 '20 18:04 juriadams

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
C-c 
$ ./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.

code-asher avatar Apr 13 '20 18:04 code-asher

Ok for me.

Thank you.

gregoryvanko avatar Apr 13 '20 19:04 gregoryvanko

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:~$

rholland avatar Jun 30 '20 17:06 rholland