Skip to content

Can't install remote extensions #6781

@bdkuhman

Description

@bdkuhman

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Firefox 125.0.2

  • Local OS: Windows 10

  • Remote OS: Ubuntu

  • Remote Architecture: amd64

  • code-server --version:

    1.88.1
    9a28bc2
    x64

  • Running in Kubernetes k3s v1.28.7+k3s1

  • Node is Ubuntu 22.04.1 kernel 6.5.0-28

  • Image (latest) docker.io/codercom/code-server@sha256:897b358eed18114061b371f2b2f1416bc7acbed9442877428ecc0855523031ad

  • I do not have persistence setup

Steps to Reproduce

  1. Open code-server
  2. Attempt to install extensions (seems like most of them, Tried python and kubernetes, among others)

Expected

Extension installs

Actual

Install hangs indefinitely

Logs

coder@code-server-5f58c85dcc-gp7h4:~$ code-server --verbose --install-extension ms-python.python
{
  "type": "extensionManagement",
  "install": [
    "ms-python.python"
  ],
  "force": false
}
^C
coder@code-server-5f58c85dcc-gp7h4:~$ code-server --verbose --install-extension does-not-exist
{
  "type": "extensionManagement",
  "install": [
    "does-not-exist"
  ],
  "force": false
}
Installing extensions on code.cluster.local...
Extension 'does-not-exist' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
Failed Installing Extensions: does-not-exist

Tried installing through vsix, but also does not work (both cli and UI).
first try with verbose on and using the direct path got 503, but second try just hangs.

usr/bin/code-server --verbose --install-extension ms-python.python
[2024-05-02T15:41:17.626Z] debug parsed command line {"args":{"verbose":true,"install-extension":["ms-python.python"]}}
[2024-05-02T15:41:17.642Z] debug parsed config {"args":{"bind-addr":"127.0.0.1:8080","auth":"password","password":"<redacted>"}}
[2024-05-02T15:41:17.643Z] debug Found VS Code arguments; spawning VS Code CLI
[2024-05-02T15:41:17.644Z] debug Running Code CLI
Installing extensions...
Error while installing extensions: Server returned 503
Server returned 503
[2024-05-02T15:41:20.344Z] debug parent:3125 disposing {}
coder@code-server-86b59f55d-jk2z4:~$ /usr/bin/code-server --verbose --install-extension ms-python.python
[2024-05-02T15:42:04.160Z] debug parsed command line {"args":{"verbose":true,"install-extension":["ms-python.python"]}}
[2024-05-02T15:42:04.261Z] debug parsed config {"args":{"bind-addr":"127.0.0.1:8080","auth":"password","password":"<redacted>"}}
[2024-05-02T15:42:04.262Z] debug Found VS Code arguments; spawning VS Code CLI
[2024-05-02T15:42:04.263Z] debug Running Code CLI
Installing extensions...

^C[2024-05-02T15:43:51.542Z] debug parent:3250 disposing {"code":"SIGINT"}
coder@code-server-86b59f55d-jk2z4:~$ curl https://open-vsx.org/api/ms-python/python/2024.4.1/file/ms-python.python-2024.4.1.vsix
coder@code-server-86b59f55d-jk2z4:~$ ls
coder@code-server-86b59f55d-jk2z4:~$ wget https://open-vsx.org/api/ms-python/python/2024.4.1/file/ms-python.python-2024.4.1.vsix
--2024-05-02 15:44:04--  https://open-vsx.org/api/ms-python/python/2024.4.1/file/ms-python.python-2024.4.1.vsix
Resolving open-vsx.org (open-vsx.org)... 198.41.30.195
Connecting to open-vsx.org (open-vsx.org)|198.41.30.195|:443... connected.
HTTP request sent, awaiting response... 302 
Location: https://openvsxorg.blob.core.windows.net/resources/ms-python/python/2024.4.1/ms-python.python-2024.4.1.vsix [following]
--2024-05-02 15:44:06--  https://openvsxorg.blob.core.windows.net/resources/ms-python/python/2024.4.1/ms-python.python-2024.4.1.vsix
Resolving openvsxorg.blob.core.windows.net (openvsxorg.blob.core.windows.net)... 20.60.40.4
Connecting to openvsxorg.blob.core.windows.net (openvsxorg.blob.core.windows.net)|20.60.40.4|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15917438 (15M) [application/octet-stream]
Saving to: ‘ms-python.python-2024.4.1.vsix’

ms-python.python-2024.4.1.vsix                            100%[=====================================================================================================================================>]  15.18M  4.84MB/s    in 3.1s    

2024-05-02 15:44:11 (4.84 MB/s) - ‘ms-python.python-2024.4.1.vsix’ saved [15917438/15917438]

coder@code-server-86b59f55d-jk2z4:~$ /usr/bin/code-server --verbose --install-extension ./ms-python.python-2024.4.1.vsix 
[2024-05-02T15:44:19.363Z] debug parsed command line {"args":{"verbose":true,"install-extension":["./ms-python.python-2024.4.1.vsix"]}}
[2024-05-02T15:44:19.373Z] debug parsed config {"args":{"bind-addr":"127.0.0.1:8080","auth":"password","password":"<redacted>"}}
[2024-05-02T15:44:19.374Z] debug Found VS Code arguments; spawning VS Code CLI
[2024-05-02T15:44:19.374Z] debug Running Code CLI
Installing extensions...


Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

It seems that browser extensions do install. (k--kato.intellij-idea-keybindings works) but only by clicking install, not through the command line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions