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

Created on 13 Nov 2019  路  16Comments  路  Source: cdr/code-server

  • 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
extension

Most helpful comment

@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.

All 16 comments

CC @kylecarbs we have another registry bug apparently.

@sr229 can you reproduce?

@kylecarbs Extension should install fine by now. If they still don't install, then it's a ISP/Network issue.

@sr229 can I enable some kind of log to see if such an issue happens on ISP or network level

The same issue has occurred.

I'm also seeing this

I have solved this issue, which is caused by ISP network.

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.

I was also able to install through CLI get same error as @zigarn otherwise though

the same problem

When installing through the UI, I have this in the logs:

[2019-11-28 15:25:14.311] [remoteagent] [info] Installing extension: vscode-icons-team.vscode-icons
[2019-11-28 15:25:14.311] [remoteagent] [trace] Started scanning user extensions
[2019-11-28 15:25:14.314] [remoteagent] [trace] Scanned user extensions: 1
[2019-11-28 15:25:14.314] [remoteagent] [trace] Started downloading extension: vscode-icons-team.vscode-icons
[2019-11-28 15:25:14.314] [remoteagent] [trace] ExtensionGalleryService#download vscode-icons-team.vscode-icons
[2019-11-28 15:25:14.315] [remoteagent] [trace] RequestService#request https://storage.googleapis.com/coder-production-extensions/vscode-icons-team.vscode-icons/9.5.0/Microsoft.VisualStudio.Services.VSIXPackage?redirect=true&install=true
[2019-11-28 15:25:14.334] [remoteagent] [trace] RequestService#request https://storage.googleapis.com/coder-production-extensions/vscode-icons-team.vscode-icons/9.5.0/Microsoft.VisualStudio.Services.VSIXPackage?install=true
[2019-11-28 15:25:14.347] [remoteagent] [error] Failed to install extension: vscode-icons-team.vscode-icons unable to get local issuer certificate

Leads to #1007
The workaround of setting environment variable NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-bundle.crt fixes the problem for me.

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

@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.

Thanks @zigarn.

This is unfortunate, I used to sync all my settings via Settings Sync extension, now it keeps telling me no internet connection, now I have to install & config them manually, don't know if it relates to this problem.

image

The manual installation is definitely a problem, we forgot to implement the endpoint properly in the extension marketplace.

I'll make sure this is mentioned in #1299

Otherwise, if installation is still a problem, please feel free to reopen.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchecinski picture pchecinski  路  3Comments

infogulch picture infogulch  路  3Comments

rcarmo picture rcarmo  路  3Comments

Arsaev picture Arsaev  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments