You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have deployed marketplace following the deployment guide. The service is up and I am able to add a collection of extensions (vsix files) to the marketplace. But I failed to download extension from the marketplace, following the Usage in code-server guide, the following error occurs.
/app/code-server/bin/code-server --verbose --install-extension formulahendry.auto-close-tag
#> [2024-06-06T00:47:48.148Z] debug Found VS Code arguments; spawning VS Code CLI#> [2024-06-06T00:47:48.150Z] debug Running Code CLI#> Installing extensions...#> Error while installing extensions: unable to verify the first certificate#> unable to verify the first certificate
In addition, if I try to install extension without launching code-service service when building image, the same error occurs. I think the code-service service is not related to extension installation. Is that right?
After launching the coder-server, I can see all the extensions I have added to the marketplace from the extensions management page and the extension page, if I click one of the extensions.
If I click the title on the extension detail page, I can see the extension's URL, like
where the domain is indeed my own host. But if I try to click "install" on the page, it still fails with the following log in the "Output" window of Code.
2024-06-06 08:58:27.074 [error] Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1600:34)
at TLSSocket.emit (node:events:517:28)
at TLSSocket._finishInit (node:_tls_wrap:1017:8)
at ssl.onhandshakedone (node:_tls_wrap:803:12)
2024-06-06 08:58:27.104 [error] unable to verify the first certificate: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1600:34)
at TLSSocket.emit (node:events:517:28)
at TLSSocket._finishInit (node:_tls_wrap:1017:8)
at ssl.onhandshakedone (node:_tls_wrap:803:12)
which complains the same about "unable to verify the first certificate" as that of using code-server to install from terminal.
Potential Issue
The certificate of the deploy domain is not trusted by code-server CLI, and adding self-signed certificate/root CA certificate to the system's trust store has no effect.
I have added the root CA certificate to the code-server's host system (build into the container image), which can be verified by perform the following querying in code-server's terminal:
Could you try setting NODE_EXTRA_CA_CERTS and point it to the certificate bundle? I think there might be a bug upstream in VS Code web where it does not read the system-installed certificates.
Problem Description
I have deployed marketplace following the deployment guide. The service is up and I am able to add a collection of extensions (vsix files) to the marketplace. But I failed to download extension from the marketplace, following the Usage in code-server guide, the following error occurs.
Error Details
Install with
code-server
CLI (/app/code-server/lib/vscode/bin/remote-cli/code-server
):Install with
code-server
:After launching the coder-server, I can see all the extensions I have added to the marketplace from the extensions management page and the extension page, if I click one of the extensions.
If I click the title on the extension detail page, I can see the extension's URL, like
where the domain is indeed my own host. But if I try to click "install" on the page, it still fails with the following log in the "Output" window of Code.
which complains the same about "unable to verify the first certificate" as that of using
code-server
to install from terminal.Potential Issue
The certificate of the deploy domain is not trusted by code-server CLI, and adding self-signed certificate/root CA certificate to the system's trust store has no effect.
I have added the root CA certificate to the code-server's host system (build into the container image), which can be verified by perform the following querying in code-server's terminal:
So, why
code-server
CLI cannot trust the certificate of my domainmarketplace.coderdev.com
?Deployment details
images:
customized code-server image based on
linuxserver/code-server:4.89.1
.customized code-server image based on
codercom/code-server:4.89.1
.customized code-marketplace image based on
debian/bookworm
.code-marketplace
is installed and started following the official guide.The text was updated successfully, but these errors were encountered: