Code-server: [v2] auto updater tries to install v1

Created on 28 Sep 2019  路  8Comments  路  Source: cdr/code-server


  • code-server version: 2.1523-vsc1.38.1
  • OS Version: linuxserver docker, ubuntu bionic based

Description

Auto updater in the gui keeps finding an update with the pop-up message: There is an available update.
Clicking Update tries to install the v1 version with the message: code-server 1.1156-vsc1.33.1 is being installed in the background; we'll let you know when it's done.
Of course the process fails because code-server is not running as root.

I also tried turning off all updates in the gui by setting Update: Mode to none. It makes no difference

Steps to Reproduce

  1. Create the docker container with the sample docker run from https://github.com/linuxserver/docker-code-server#docker with the image tag development
  2. Open the gui and look for the pop up
bug

Most helpful comment

@aptalca There definitely seems to be a bug with Update: Mode. I can't get it to work either.

You could pass --disable-updates to the code-server invocation if that works for you. That disables the update mechanism entirely, even manual checks.

All 8 comments

Already a known issue. This is something to deal with our auto-updater still treating v2 as a outdated version. This should be fixed once v2 is GA.

Is there at least a way to turn off the notifications? The gui setting does not seem to make a difference

For now, you cannot disable it

Thanks

@aptalca There definitely seems to be a bug with Update: Mode. I can't get it to work either.

You could pass --disable-updates to the code-server invocation if that works for you. That disables the update mechanism entirely, even manual checks.

@code-asher Hi, the update popup from the bottom right keeps coming up even though I passed in --disable-updates. Any ideas?

@bobhob314 Maybe the flag isn't actually making it to code-server somehow? How are you running code-server?

Also if you could post the output when you run code-server --disable-updates --log debug --version it could help narrow down the problem.

@bobhob314 Latest releases have it disabled by default so that you don't even need the flag.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nol166 picture nol166  路  3Comments

korzq picture korzq  路  3Comments

rcarmo picture rcarmo  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments

pchecinski picture pchecinski  路  3Comments