coder / code-server

VS Code in the browser
https://coder.com
MIT License
66.51k stars 5.45k forks source link

4.23.1 breaks within selfhosted coder instance #6767

Closed TheZoker closed 1 month ago

TheZoker commented 2 months ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

  1. Update code-server version from 4.23.0 to 4.23.1

Expected

Working

Actual

Not working

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

This cannot be tested in native VS Code

Does this bug reproduce in GitHub Codespaces?

No, this works as expected in GitHub Codespaces

Are you accessing code-server over a secure context?

Notes

I upgraded code-server from 4.23.0 to 4.23.1 within my coder.com instance (using this module: https://registry.coder.com/modules/code-server).

When I now start my workspace, I get this error:

gzip: stdin: invalid compressed data--crc error
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Failed to install code-server: Ubuntu 23.10
Installing v4.23.1 of the amd64 release from GitHub.
+ Reusing ~/.cache/code-server/code-server-4.23.1-linux-amd64.tar.gz
+ mkdir -p /tmp/code-server
+ mkdir -p /tmp/code-server/lib /tmp/code-server/bin
+ tar -C /tmp/code-server/lib -xzf ~/.cache/code-server/code-server-4.23.1-linux-amd64.tar.gz

When I downgrade again to 4.23.0 everything works fine.

matifali commented 2 months ago

This looks related to https://github.com/coder/coder/issues/12790#issuecomment-2038037832. We fixed it by explicitly setting --host 127.0.0.1 in https://github.com/coder/modules/pull/216

TheZoker commented 2 months ago

Hmm I'm using version 1.0.12 of that module, which should already contain that fix, right?

code-asher commented 2 months ago

Are you able to download and extract https://github.com/coder/code-server/releases/download/v4.23.1/code-server-4.23.1-linux-amd64.tar.gz on that remote machine? And does it happen consistently? I wonder if it was some network blip that corrupted the file.

code-asher commented 2 months ago

Since it is installing from cache you might have to delete ~/.cache/code-server/code-server-4.23.1-linux-amd64.tar.gz before trying again. Possibly we need to add a checksum to the install script.

TheZoker commented 1 month ago

Yes removing the cache solved the issue. Thanks!