-
Notifications
You must be signed in to change notification settings - Fork 243
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
Volta error: Could not download [email protected] #1506
Comments
I am noticing the same issue. |
+1 |
2 similar comments
+1 |
+1 |
Same for me |
I'm getting the same thing but with yarn |
+1, any workaround? reinstall nvm? |
I just ran into this as well and I discovered that volta is not workin at all when I'm connected to work over VPN. When I turn off VPN, I can install anything except node. These two problem may be unrelated. Any ideas when y'all might get to look at this? I have several CI builds at work that are now broken and I'm probably going to have to ditch volta which makes me very sad. |
Same for me |
I am also seeing this. Strangely if I access the binaries directly it seems to work fine. So:
|
For me, the issue only exists when I have a VPN active. If so, also calling the URL directly results in an Internal Server Error (https://nodejs.org/dist/v20.2.0/node-v20.2.0-darwin-arm64.tar.gz), which indicates that the error is not from volta. |
Can it be related to node itself? Sometimes I can download the given URL (in my case https://nodejs.org/dist/v12.22.12/node-v12.22.12-win-x64.zip) directly through the browser and sometimes I have to retry it, because the first try does not seem to register. |
I am also getting same issue on macOS
|
It's because there is no built Node version for your platform. Just tried to install |
Same issue with volta install node (which defaults to the previously mentioned 18.6.1)/node@latest/[email protected]/[email protected] All return
EDIT: |
Sorry for the long delay on response here – it’s not wholly clear to me that all of these are the same issue, but if it's related to not having the right architecture (as it is in at least some of these cases!) then maybe we could at least provide a better error message (if we can somehow figure out that that's the issue from within the Volta run). |
facing the exact same issue |
We experienced the same issue, any time we did
We found that if we run the command And then
It will then work |
Downgrading to v1.0.8 seems to resolve the issue us. Which suggests the error could be related to #1214 and #1375. Which matches the We are able to recreate the issue frequently so happy to provide more debug info. |
Sadly, not a universal fix:
Tried your exact command (though I'm on mac) as well:
|
Errr, that means you can't reach nodejs at all. Totally different problem.
…On Mon, 30 Oct 2023, 23:12 Jordan Hawker, ***@***.***> wrote:
We experienced the same issue, any time we did volta install ***@***.***
we would experience the same error.
Volta v1.1.1
Could not download ***@***.***
from https://nodejs.org/dist/v18.18.0/node-v18.18.0-win-x64.zip
Please verify your internet connection and ensure the correct version is specified.
Error cause: Io Error: invalid peer certificate contents: invalid peer certificate: UnknownIssuer
Error cause: Io Error: invalid peer certificate contents: invalid peer certificate: UnknownIssuer
We found that if we run the command curl --head
https://nodejs.org/dist/v18.18.0/node-v18.18.0-win-x64.zip
And then
volta install ***@***.***
It will then work
Sadly, not a universal fix:
curl --head https://nodejs.org/dist/v18.18.2/node-v18.18.2-darwin-x64.tar.gz
curl: (6) Could not resolve host: nodejs.org
—
Reply to this email directly, view it on GitHub
<#1506 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAORQWXMSXVYD2NBEKUD543YCAX67AVCNFSM6AAAAAAXS5VEHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBWGE4DQNBZG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I'm working on osx and experiencing exact the same issue as @zsoltvad. Using volta v1.1.1. Error in the log: It works without any issue when the VPN is not used, but since we are always working within the VPN, this is a bit cumbersome. Any news on the topic? |
+1 . This issue is still persistent in OSX when working with VPN's.
|
I think this might relate to DNS lookup in some way. Even when I set my I happen to have Squid proxy running in a Docker container (on the same machine, on the VPN) for other purposes. I ran the following command: I am not certain if Volta (specifically, its (I got a certificate error at first, because I still had my |
Update - it's IPv6. (NB: I have edited this post a bit to reflect my new discoveries after I originally posted this.) It seems like Volta or its dependency If IPv6 link-local is available (i.e. when not on VPN), then IPv4 wins and the IPv6 connection will get It is also unclear under what circumstances IPv6 would not be available for even link-local purposes, and it may simply be a limitation of or defect in the VPN client (in my case, the Cisco SecureClient). My Testing Methodology (expand)I've been using I ran a Wireshark packet capture and found that it makes a DNS lookup and gets both I did not use Local DNSBased on my previous comment in this issue, I set up a
Then, I added the file
I verified the system was using my local IPv4 DNS (Only
|
/etc/hosts IPv4 |
/etc/hosts IPv6 |
dnsmasq Queries |
IPv6 | Volta Result |
---|---|---|---|---|
None | None | A , AAAA |
🚫 | ✅ |
127.0.0.1 |
::1 |
None | 🚫 | 🔒 Cert Error (localhost) |
127.0.0.1 |
None | AAAA |
🚫 | 🔒 Cert Error (localhost IPv4 wins, no IPv6 route) |
None | ::1 |
A |
🚫 | 🔒 Cert Error (localhost IPv6 wins) |
169.254.99.99 |
None | AAAA |
🚫 | ❌ (no route to host, os error 65 ) |
169.254.99.99 |
None | AAAA |
🔗 | ✅ (IPv6 wins) |
My Phone 📱 | None | AAAA |
🚫 | ❌ (no route to host, os error 65 ) |
My Phone 📱 | None | AAAA |
🔗 | ✅ (IPv6 wins) |
My Phone 📱 | My Phone 📱 | None | 🚫 | ❌ (no route to host) |
My Phone 📱 | My Phone 📱 | None | 🔗 | ❌ (connection refused, os error 61 ) |
169.254.99.99 |
My Phone 📱 | None | 🔗 | ❌ (connection refused, os error 61 ) |
None | My Phone 📱 | A |
🔗 | ✅ (IPv4 wins) |
169.254.99.99 |
100:: |
None | 🔗 | ❌ (connection timed out) |
169.254.99.99 |
100:: |
None | 🚫 | ❌ (no route to host, os error 65 ) |
Note: In certain circumstances, I found Volta (or more correctly, the macOS system resolver) continued making queries for A
or AAAA
and ignored the corresponding /etc/hosts
entry, but when I changed the entries, this resolved (pun not intended) itself, and I couldn't reproduce the issue (despite seeing it 2 or 3 times). I suspect macOS may have been unable to read the updated /etc/hosts
entries correctly for some reason.
Conclusions
- Queries for
A
andAAAA
read/etc/hosts
independently - you need both an IPv4 and an IPv6 entry to suppress any upstream queries. - On the VPN, something about the
os error 57
(socket is not connected) via IPv6 throws an unhandled exception and immediately terminates Happy Eyeballs. - Conversely,
os error 65
(no route to host) is silently handled as part of Happy Eyeballs. - Excluding the
os error 57
(socket is not connected) situation, if both connections fail, then the error from the IPv6 connection is shown, regardless of which finishes first.
Set up ProxyRun the following commands in the terminal, replacing them with your own proxy address: $env:HTTP_PROXY="your_proxy_address"
$env:HTTPS_PROXY="your_proxy_address"
Then restart the terminal:
Windows users need to open the terminal as Administrator.
Mac users only need to restart the terminal.
This ensures that network requests in the terminal go through the proxy. |
I read that other friends said that it can be configured like this, and then I used this configuration to successfully download.
{
"node": {
"index": {
"template": "https://mirrors.cloud.tencent.com/nodejs-release/index.json"
},
"distro": {
"template": "https://mirrors.cloud.tencent.com/nodejs-release/v{{version}}/node-v{{version}}-{{os}}-x64.zip"
}
}
} |
Can't install node with volta, but every other tool (native, nvm, etc.) works.
Is it a cert issue?
SYSTEM
NPM INSTALL
ERROR LOG
Volta v1.1.1
Could not download [email protected]
from https://nodejs.org/dist/v16.13.0/node-v16.13.0-darwin-x64.tar.gz
Please verify your internet connection and ensure the correct version is specified.
Error cause: Io Error: Socket is not connected (os error 57)
MacOS CONSOLE LOG (filtering with "volta" keyword)
CURL
(works perfectly!)
NVM
(works perfectly!)
The text was updated successfully, but these errors were encountered: