Skip to content

nixos-install hang on https://cache.nixos.org/nix-cache-info (SSL issue ?) #9081

Closed

Description

@zimbatm

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 ?

Activity

  1. vcunat commented on Aug 2, 2015

    @vcunat
    Member

    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:

    SSLv3, TLS handshake, Client hello (1):
    [...]
    * SSLv3, TLS handshake, Finished (20):
    * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
    

    Could it be just some temporary problem? If not, your part of curl log doesn't show any error.

  2. zimbatm commented on Aug 2, 2015

    @zimbatm
    MemberAuthor

    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.

  3. zimbatm commented on Aug 2, 2015

    @zimbatm
    MemberAuthor

    It's definitely a routing problem. I changed the MTU from 1500 to 1000 and everything seem to be going fine now.

  4. zimbatm commented on Aug 2, 2015

    @zimbatm
    MemberAuthor

    thanks for listening :)

  5. zimbatm commented on Aug 2, 2015

    @zimbatm
    MemberAuthor

    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.

    > ping -n -M do -s 1448 cache.nixos.org
    PING d3m36hgdyp4koz.cloudfront.net (54.230.60.122) 1448(1476) bytes of data.
    1456 bytes from 54.230.60.122: icmp_seq=1 ttl=55 time=31.1 ms
    1456 bytes from 54.230.60.122: icmp_seq=2 ttl=55 time=30.2 ms
    > ping -n -M do -s 1449 cache.nixos.org
    ...
    
  6. vcunat commented on Aug 2, 2015

    @vcunat
    Member

    It might be a location-dependent cloudfront problem. I found a report of a MTU problem.

  7. zimbatm commented on Aug 2, 2015

    @zimbatm
    MemberAuthor

    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:

    It might be a location-dependent cloudfront problem. I found a report of a MTU
    problem https://forums.aws.amazon.com/thread.jspa?threadID=121976.

    —
    Reply to this email directly or view it on GitHub
    #9081 (comment).

  8. obadz commented on May 14, 2016

    @obadz
    Contributor

    @zimbatm, how do you change the MTU?

  9. zimbatm commented on May 14, 2016

    @zimbatm
    MemberAuthor

    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:

    @zimbatm https://github.com/zimbatm, how do you change the MTU?

    —
    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub
    #9081 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions