Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update failed #1513

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
gregoryvanko opened this issue Apr 10, 2020 · 8 comments
Closed

Update failed #1513

gregoryvanko opened this issue Apr 10, 2020 · 8 comments

Comments

@gregoryvanko
Copy link

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

@code-asher
Copy link
Member

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?

@gavinbd
Copy link

gavinbd commented Apr 11, 2020

I got the same issue when running through docker:

6356ebe4a4d3:~$ code-server --version
3.0.2 e480f65

@gregoryvanko
Copy link
Author

gregoryvanko commented Apr 11, 2020

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 e480f65

with about link in code-server:
Version: 1.43.2
Commit: e480f65
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

@mlk3000
Copy link

mlk3000 commented Apr 11, 2020

same issue when running through docker:
3.0.2 e480f65

@juriadams
Copy link

Same issue with DigitalOceans one click deployment.

@code-asher
Copy link
Member

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.

@gregoryvanko
Copy link
Author

Ok for me.

Thank you.

@rholland
Copy link

rholland commented Jun 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants