Skip to content

Can't install extension(s) #1173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mar1ged opened this issue Nov 13, 2019 · 16 comments
Closed

Can't install extension(s) #1173

mar1ged opened this issue Nov 13, 2019 · 16 comments
Assignees
Labels
extension The issue needs to be fixed in the extension

Comments

@mar1ged
Copy link

mar1ged commented Nov 13, 2019

  • 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

@sr229 sr229 added the bug Something isn't working label Nov 14, 2019
@sr229
Copy link
Contributor

sr229 commented Nov 14, 2019

CC @kylecarbs we have another registry bug apparently.

@kylecarbs
Copy link
Member

@sr229 can you reproduce?

@sr229
Copy link
Contributor

sr229 commented Nov 15, 2019

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

@mar1ged
Copy link
Author

mar1ged commented Nov 15, 2019

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

@lonng
Copy link

lonng commented Nov 16, 2019

The same issue has occurred.

@go1dfish
Copy link

I'm also seeing this

@lonng
Copy link

lonng commented Nov 18, 2019

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

@go1dfish
Copy link

Still failing for me:

https://v1.extapi.coder.com/publishers/esbenp/vsextensions/prettier-vscode/2.0.0/vspackage

@zigarn
Copy link

zigarn commented Nov 19, 2019

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.

@go1dfish
Copy link

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

@6234456
Copy link

6234456 commented Nov 19, 2019

the same problem

@code-asher code-asher added extension The issue needs to be fixed in the extension and removed bug Something isn't working labels Nov 20, 2019
@zigarn
Copy link

zigarn commented Nov 28, 2019

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.

@HouCoder
Copy link

@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
Copy link

zigarn commented Nov 28, 2019

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

@HouCoder
Copy link

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

@nhooyr
Copy link
Contributor

nhooyr commented Jan 30, 2020

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.

@nhooyr nhooyr closed this as completed Jan 30, 2020
zigarn added a commit to Zenika-Training/infra4lab that referenced this issue Feb 7, 2020
- Latest release of code-server use a tag name different from release name
- Use NODE_EXTRA_CA_CERTS to install extensions even on CLI (coder/code-server#1173)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension The issue needs to be fixed in the extension
Projects
None yet
Development

No branches or pull requests

10 participants