-
Notifications
You must be signed in to change notification settings - Fork 531
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
Connecting to generic v2 registry is failing #4245
Comments
Try removing the |
still failing with the same error |
Can you tell me more about your registry provider? It may not be supported by the generic V2 registry connection. |
What type of information do you need? Although i dont think this is an issue with the registry because I'm able to connect to it normally with version 1.28. |
That's helpful to know. I think the most likely change that could have caused this is microsoft/vscode-docker-extensibility@24e2d35, we changed from using |
yes i am |
Are you able to test without the proxy in place? It would be helpful to know for sure if the issue is something to do with the proxy. |
i cannot access the registry without the proxy but i can try using a different proxy |
I'm getting the same issue. It was working with a previous version of the extension, and now it's not. The certificate is installed as a trusted CA on the machine, and I can browse to it fine in a web browser. Is there any logging for the extension that I can look at perhaps? Cheers |
That's very helpful to know. @pWoLiAn does your registry also use a self-signed certificate? |
yes |
Our current workaround is to use version v1.28.0. Otherwise getting the fetch failed message. Tried v1.29.1 this morning. Same issue as found with v1.29.0. What we have seen is that with the newer versions it doesn't seem to reach out to the remote server. We don't see any new logs in the registry container. With v1.28.0 we see the GET transaction. After more diagnosis, the fetch actually isn't being done on a consistent basis. No packets across the network and the plugin just declares the fetch failed. We are not using self-signed certificates. |
I confirm that 1.28.0 working fine and 1.29.1 doesn't |
another confirmation. Glad to have found this work-around, downgrading to 1.28 works. |
1.29.2 that was just pushed to the marketplace yesterday contains fixes to the |
Hi, Good to hear updates are being made. Unfortunately this does not solve the self-certificate issue for it, so have had to revert to 1.28.0 Cheers |
Thanks for the update, but as mentioned above as well, it does not fix the issue with connecting to a docker with self-signed certificate. Reverted to 1.28 |
So, it's not a good security practice, but you might be able to work around it by setting the environment variable A better solution would be to get "real" certificates for the registries, but of course that likely will cost money. EDIT: see @danegsta's comment just below for a better possible workaround. |
It looks like node also supports trusting a specific certificate by setting the |
@danegsta @bwateratmsft Can i set this ENV variable(NODE_EXTRA_CA_CERTS) as part of ~/.bashrc? Will the extension be able to pick it up from there? |
I'm not familiar enough with Unix to know for sure, you'd have to try it out. |
I hit this with my private registry and found a setting in VSCode -
I think that basically fixes the odd default behaviour where it trusts a bundle of certs that ship with NodeJS Also, it would be nice if the real TLS errors appeared somewhere. |
using latest extension version.


When connecting to registry, get the message "fetch failed"
im able to pull using CLI
EDIT:
the extension works properly with the previous version(1.28). issue is seen only with the latest version(1.29)
vscode details:
Version: 1.86.2 (user setup)
Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:40:56.878Z
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22631
running on ubuntu 20.4 with remote SSH
The text was updated successfully, but these errors were encountered: