Repository navigation
Open
Labels
containersIssue in vscode-remote containersfeature-requestRequest for new features or functionalityproxyIssues regarding network proxies
Milestone
Description
- VSCode Version: 1.53.1
- Local OS Version: Windows 10
- Remote OS Version: Ubuntu:focal - official Microsoft container
- Remote Extension/Connection Type: Docker
- Logs:
During the built phase:
53980 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true
[53986 ms]
[53986 ms]
[53987 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[53990 ms]
[53991 ms]
[53992 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[54085 ms] Start: Starting VS Code Server
[54086 ms] Start: Run in container: /home/vscode/.vscode-server/bin/5d424b828ada08e1eb9f95d6cb41120234ef57c7/server.sh --force-disable-user-env --use-host-proxy --port 0 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --install-extension ms-vscode.azure-account --install-extension ms-kubernetes-tools.vscode-aks-tools --install-extension ms-azure-devops.azure-pipelines --install-extension tomaustin.azure-devops-yaml-pipeline-validator --install-extension ms-azuretools.vscode-azureterraform --install-extension rogalmic.bash-debug --install-extension mindaro.mindaro --install-extension adamvoss.vscode-languagetool-en --install-extension waderyan.gitblame --install-extension donjayamanne.git-extension-pack --install-extension donjayamanne.githistory --install-extension codezombiech.gitignore --install-extension eamodio.gitlens --install-extension hashicorp.terraform --install-extension ms-kubernetes-tools.vscode-kubernetes-tools --install-extension ipedrazas.kubernetes-snippets --install-extension adamvoss.vscode-languagetool --install-extension yzhang.markdown-all-in-one --install-extension bierner.markdown-mermaid --install-extension timonwong.shellcheck --start-server
[55031 ms]
So apparently no error occurs, but no extension is installed. I checked Inside the container
$ ls -al /home/vscode/.vscode-server/extensions/
total 8
drwxr-xr-x 2 vscode vscode 4096 Sep 22 07:31 .
drwxr-xr-x 5 vscode vscode 4096 Sep 22 07:31 ..
But from the logs I see that a different dir is checked /home/vscode/.vscode-server/extensionsCache or /vscode/vscode-server/extensionsCache. Neither of them exists
Steps to Reproduce:
- Rebuild the container
- The extension are not installed
- But manually I can install them inside the container
ls -al /home/vscode/.vscode-server/extensions/
total 12
drwxr-xr-x 3 vscode vscode 4096 Sep 22 07:38 .
drwxr-xr-x 5 vscode vscode 4096 Sep 22 07:31 ..
drwxr-xr-x 6 vscode vscode 4096 Sep 22 07:38 ms-vscode.azure-account-0.9.8
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: Yes
Reacted by JackCaster, Sascha Wirges and Lucas Pottersky
Metadata
Metadata
Assignees
Labels
containersIssue in vscode-remote containersfeature-requestRequest for new features or functionalityproxyIssues regarding network proxies
Activity
zioalex commentedon Sep 22, 2021
I found the problem.
Looking into the Log (Extension Host)
I see a lot of "unable to get local issuer certificate" errors.
Weird enough no errors are logged in the Build container process.
The script server.sh use node to download the extensions and by default node doesn't use the ssl configured certificates.
I found two ways to solve it:
The first is to export the variable
NODE_EXTRA_CA_CERTS=$PATH_TO_YOUR_CUSTOM_CA_FILE.pempointing to your custom CA_FILEThe second update the server.sh to run node with the option
--use-openssl-ca.This assumes that you already configured your ssl certificate with something like:
After either one of the above the extensions are installed correctly:
chrmarti commentedon Sep 27, 2021
Related: #986
Kiolali commentedon Oct 1, 2021
I have the same problem with VS Code 1.60.2 (Remote - Containers v0.194.3), Windows 10.
But I do not get any certifcate errors. Instead I see in the extension host logs the following:
It happens for me and some of my students using Windows 10 when connected to eduroam Wifi. In my Wifi at home after rebuilding the container it works as expected: all the extensions defined in devcontainer.sjon are installed.
So it must have something to do with eduroam (enterprise wifi?).
Any ideas what we could do?
edit: the problem only appears for some Windows 10 Laptops, not every Windows 10 Laptop is affected. We didn't notice those problems with Ubuntu Laptops.
Kiolali commentedon Oct 4, 2021
I'll open a new issue, because maybee my issue has nothing to do with self signed certificates
JackCaster commentedon Feb 2, 2022
I encountered the same issue. Extensions are not installed during the build process but I can install them without problems via the GUI afterwards. Running the
server.shscript as in the log raises the errorunable to get local issuer certificate(not reported in the remote logs as OP mentioned).