Repository navigation
Description
Issue Type: Bug
Hello,
On the latest version (1.62.0) when I try to install an extension on WSL:Ubuntu 20.04 I get an error saying that:
unable to get local issuer certificate.
On the version (1.61.2) I'm able to install the extension, even though the log show a similar error.
Pls note that this behaviour happens behind an enterprise proxy (ZScaller). I haven't tested it on a machine without it.
log for 1.61.2:
[2021-11-09 01:28:52.963] [renderer1] [error] Error while installing 'ms-python.vscode-pylance' extension in the remote server. unable to get local issuer certificate
[2021-11-09 01:28:52.963] [renderer1] [info] Downloading the 'ms-python.vscode-pylance' extension locally and install
VS Code version: Code 1.61.2 (6cba118, 2021-10-19T14:57:20.575Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-10400H CPU @ 2.60GHz (8 x 2592) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.61GB (2.33GB free) |
| Process Argv | --crash-reporter-id 4db86faf-d3b6-44d1-874d-99c578500e53 --crash-reporter-id 4db86faf-d3b6-44d1-874d-99c578500e53 |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | WSL: Ubuntu-20.04 |
| OS | Linux x64 5.10.60.1-microsoft-standard-WSL2 |
| CPUs | Intel(R) Core(TM) i5-10400H CPU @ 2.60GHz (8 x 2592) |
| Memory (System) | 12.17GB (9.94GB free) |
| VM | 0% |
Extensions (15)
| Extension | Author (truncated) | Version |
|---|---|---|
| cloudformation-yaml-snippets | dst | 3.38.0 |
| jupyter-keymap | ms- | 1.0.0 |
| remote-containers | ms- | 0.202.5 |
| remote-wsl | ms- | 0.58.5 |
| aws-toolkit-vscode | ama | 1.33.0 |
| cform | aws | 0.0.24 |
| gitlens | eam | 11.6.1 |
| go | gol | 0.29.0 |
| vscode-cfn-lint | kdd | 0.20.1 |
| vscode-docker | ms- | 1.17.0 |
| python | ms- | 2021.11.1422169775 |
| vscode-pylance | ms- | 2021.11.0 |
| jupyter | ms- | 2021.9.1101343141 |
| jupyter-renderers | ms- | 1.0.3 |
| vscode-yaml | red | 1.1.1 |
Activity
chrmarti commentedon Nov 9, 2021
Sandeep Somavarapu (@sandy081) Nothing changed on the certificates support side. Is there anything that has changed on the extension installation's side?
sandy081 commentedon Nov 9, 2021
Yes, I changed the fallback on the local side
In 1.62.0, I have made retry downloading (fallback) from local bit more strict and is triggered only when we see specific errors as it does not makes sense to retry if it failed for some obvious reasons.
vscode/src/vs/workbench/services/extensionManagement/electron-sandbox/remoteExtensionManagementService.ts
Lines 61 to 72 in 5e0d7da
I would be interested to know what error (name) is thrown in your case. So I added a debug statement for that. Can you please try with tomorrow's insiders and let me know that.
For those users, who have connectivity issues on remote, there is a setting you can use to always download the extension locally -
remote.downloadExtensionsLocally. I would recommend to set this setting instead of relying on fallback we have.sandy081 commentedon Nov 10, 2021
Workaround is to set
remote.downloadExtensionsLocallysetting totruesandy081 commentedon Nov 10, 2021
Reopened for candidate discussion
Fix #136710
sandy081 commentedon Nov 11, 2021
To verify:
Downloading the '${id}' extension locally and install. This verifies that extension is attempted to download locally and install in remote.joaomoreno commentedon Nov 11, 2021
All good.