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
{{ message }}
Repository navigation
nixos-install hang on https://cache.nixos.org/nix-cache-info (SSL issue ?) #9081
Using the nixos-minimal-14.12.496.5f7d374-x86_64-linux.iso I am trying to install on vultr
[root@nixos:~]# nixos-install
building the system configuration...
download-from-binary-cache.pl: still waiting for ‘https://cache.nixos.org/nix-cache-info’ after 5 seconds...
curl hangs during the SSL handshake:
[root@nixos:~]# curl -vvvv https://cache.nixos.org/nix-cache-info
* Hostname was NOT found in DNS cache
* Trying 54.192.195.147...
* Connected to cache.nixos.org (54.192.195.147) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-bundle.crt
CApath: none
* SSLv3, TLS handshake, Client hello (1):
the same command without SSL works just fine. It it possible that SSLv3 is not supported by CloudFront anymore ?
My curl succeeds with TLSv1.2. IIRC SSLv3 is deprecated and currently being disallowed on various places, though I don't see if that would cause this problem. Your version of curl succeeds for me with a slightly different log:
Thanks for taking the time to test it with the same curl version. I have a different-one on my machine that initiates the connection with TLSv1.2 so I assumed that was the issue.
I don't understand why CloudFront would work using HTTP but not HTTPS unless it was a software error. I have seen situations where the responses get lost but then the TCP handshake wouldn't complete and plain HTTP wouldn't work.
After running the same command a lot of time I had one instance where the response would hang after the HTTP headers being returned.
Thanks again for your help. I've raised an issue with Vultr, let's see what
else they can find out.
Most of these issues seem so mechanical to find, I'm surprised there is not
a tool that checks everything (DNS, routing, MTU path discovery, SSL
negociation, HTTP protocol, ...) and make a report that points to the most
likely error.
Activity
vcunat commentedon Aug 2, 2015
My curl succeeds with
TLSv1.2. IIRC SSLv3 is deprecated and currently being disallowed on various places, though I don't see if that would cause this problem. Your version of curl succeeds for me with a slightly different log:Could it be just some temporary problem? If not, your part of curl log doesn't show any error.
zimbatm commentedon Aug 2, 2015
Thanks for taking the time to test it with the same curl version. I have a different-one on my machine that initiates the connection with TLSv1.2 so I assumed that was the issue.
I don't understand why CloudFront would work using HTTP but not HTTPS unless it was a software error. I have seen situations where the responses get lost but then the TCP handshake wouldn't complete and plain HTTP wouldn't work.
After running the same command a lot of time I had one instance where the response would hang after the HTTP headers being returned.
zimbatm commentedon Aug 2, 2015
It's definitely a routing problem. I changed the MTU from 1500 to 1000 and everything seem to be going fine now.
zimbatm commentedon Aug 2, 2015
thanks for listening :)
zimbatm commentedon Aug 2, 2015
https://en.wikipedia.org/wiki/Path_MTU_Discovery#Problems
It seems like someone is blocking Path MTU Discovery. Ping messages bigger than 1448 don't seem to work.
vcunat commentedon Aug 2, 2015
It might be a location-dependent cloudfront problem. I found a report of a MTU problem.
zimbatm commentedon Aug 2, 2015
Thanks again for your help. I've raised an issue with Vultr, let's see what
else they can find out.
Most of these issues seem so mechanical to find, I'm surprised there is not
a tool that checks everything (DNS, routing, MTU path discovery, SSL
negociation, HTTP protocol, ...) and make a report that points to the most
likely error.
On Sun, 2 Aug 2015 at 13:11 Vladimír Čunát [email protected] wrote:
obadz commentedon May 14, 2016
@zimbatm, how do you change the MTU?
zimbatm commentedon May 14, 2016
for testing use ifconfig enp0s3 mtu 1450 (wherer enp0s3 is your network
interface name and 1450 the new MTU)
if you want to set it for the next reboot you can set it in your
/etc/nixos/configuration.nix file
{
networking.interfaces.enp0s3.mtu = 1450;
}
On Sat, 14 May 2016 at 20:58 obadz [email protected] wrote: