code-server: Can't install extension(s)

  • code-server version: 2.1688-vsc1.39.2
  • OS Version: Ubuntu 19.10 eoan
  • Extension: multiple

Description

When trying to install extensions from the extension directory I receive “failed to install xyz” If I follow the link to the download I get another error “cannot get publisher …” in the browser.

Steps to Reproduce

  1. Open extensions

  2. select “java extension pack” or “go” or “gitlens”

  3. click “install”

  4. see error image

  5. click “download manually”

  6. see next error image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 16 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@zigarn How did you get the log? I have the same problem on macOS, but I see no detailed log from the OUTPUT panel.

Logs are not in STDOUT but in ~/.local/share/code-server/logs.

Can access the URL (so network is fine), but the path seams to be wrong and give 404:

$ curl -v https://v1.extapi.coder.com/publishers/vscode-icons-team/vsextensions/vscode-icons/9.5.0/vspackage
* About to connect() to v1.extapi.coder.com port 443 (#0)
*   Trying 216.58.204.115...
* Connected to v1.extapi.coder.com (216.58.204.115) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* 	subject: CN=v1.extapi.coder.com
* 	start date: Oct 25 14:41:37 2019 GMT
* 	expire date: Jan 23 14:41:37 2020 GMT
* 	common name: v1.extapi.coder.com
* 	issuer: CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US
> GET /publishers/vscode-icons-team/vsextensions/vscode-icons/9.5.0/vspackage HTTP/1.1
> User-Agent: curl/7.29.0
> Host: v1.extapi.coder.com
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Tue, 19 Nov 2019 00:03:41 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 209
< Vary: Accept-Encoding
< X-Powered-By: Express
< Access-Control-Allow-Origin: *
< Content-Security-Policy: default-src 'self'
< X-Content-Type-Options: nosniff
< Via: 1.1 google
< 
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /publishers/vscode-icons-team/vsextensions/vscode-icons/9.5.0/vspackage</pre>
</body>
</html>
* Connection #0 to host v1.extapi.coder.com left intact

Installing through CLI works fine, but not in UI:

$ code-server --install-extension vscode-icons-team.vscode-icons
Installing extensions...
Installing extension 'vscode-icons-team.vscode-icons' v9.5.0...
Extension 'vscode-icons-team.vscode-icons' v9.5.0 was successfully installed.