curl: (28) SSL connection timeout while trying to update RVM

1,633 views
Skip to first unread message

AmateurCoder

unread,
Mar 6, 2013, 10:03:02 AM3/6/13
to rubyversi...@googlegroups.com
Good Day:

I am getting a curl SSL connection error while trying to update RVM.  This is the first time I have ever experienced this error and am not sure what is happening.

I've tried rvm get stable, rvm get head,
\curl -L https://get.rvm.io | bash -s stable, and \curl -L https://get.rvm.io | bash -s head.  

I am running ubuntu 12.04 (ruby 1.9.3p362 (2012-12-25 revision 38607) [i686-linux]), and curl version

curl 7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

Anyone else experienced this issue lately or have any ideas as how to fix.

Thank you in advance for any replies.



mpapis

unread,
Mar 6, 2013, 11:05:10 AM3/6/13
to rubyversi...@googlegroups.com
try installing/ updating this packages first:

    bash curl bzip2 ca-certificates

AmateurCoder

unread,
Mar 6, 2013, 12:09:14 PM3/6/13
to rubyversi...@googlegroups.com
Thanks for the reply.  I checked bash curl bzip2 ca-certificates and I have all of the latest versions installed.

Here is the verbose output of the curl command:

scott@scott-VirtualBox:~$ \curl -v -L https://get.rvm.io | bash -s head
* About to connect() to get.rvm.io port 443 (#0)
*   Trying 208.85.148.213...   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0connected
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
* SSLv3, TLS handshake, CERT (11):
{ [data not shown]
* SSLv3, TLS handshake, Server key exchange (12):
{ [data not shown]
* SSLv3, TLS handshake, Server finished (14):
{ [data not shown]
* SSLv3, TLS handshake, Client key exchange (16):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Finished (20):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
* SSLv3, TLS handshake, Finished (20):
{ [data not shown]
* SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
*      subject: OU=Domain Control Validated; OU=EssentialSSL Wildcard; CN=*.rvm.io
*      start date: 2012-03-14 00:00:00 GMT
*      expire date: 2013-03-14 23:59:59 GMT
*      subjectAltName: get.rvm.io matched
*      issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=EssentialSSL CA
*      SSL certificate verify ok.
> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: get.rvm.io
> Accept: */*
>
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0< HTTP/1.1 301 Moved Permanently
< Server: nginx/1.0.14
< Date: Wed, 06 Mar 2013 17:07:01 GMT
< Content-Type: text/html
< Content-Length: 185
< Connection: keep-alive
< Location: https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
<
* Ignoring the response-body
{ [data not shown]
100   185  100   185    0     0    214      0 --:--:-- --:--:-- --:--:--   308
* Connection #0 to host get.rvm.io left intact
* Issue another request to this URL: 'https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer'
* About to connect() to raw.github.com port 443 (#1)
*   Trying 199.27.74.133... connected
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]


Any other thoughts?

Richard Michael

unread,
Mar 6, 2013, 12:20:19 PM3/6/13
to rubyversi...@googlegroups.com
That's the end of the output? The initial curl has connected and seen
the redirect, looks like it's all ok so far. What is the error?

Try:

1/ Verify your openssl connection: "openssl s_client -connect
raw.github.com:443 | less"

2/ Set all the curl calls to verbose: "echo verbose >> $HOME/.curlrc",
run the install again.

3/ Fully debug the installer (this is a lot of output): "\curl -v -L
http://get.rvm.io | bash -s stable --trace"
> --
> --
> Please visit http://rvm.io/ for documentation on rvm.
> Please visit https://www.pivotaltracker.com/projects/26822 to see what is
> being worked on currently.
>
> You received this message because you are subscribed to the Google
> Groups "rvm (Ruby Version Manager)" group.
> To post to this group, send email to rubyversi...@googlegroups.com
> To unsubscribe from this group, send email to
> rubyversionmana...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/rubyversionmanager?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "RVM (Ruby Version Manager)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyversionmana...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

AmateurCoder

unread,
Mar 6, 2013, 12:52:10 PM3/6/13
to rubyversi...@googlegroups.com
Thank you for the reply.  I tried what you suggested.  I am really starting to get confused with this problem.

Anything obvious?

Here are the results

(1)
$ openssl s_client -connect raw.github.com:443 | less

gethostbyname failure
connect:errno=110



(2) okay all set for verbose output

(3)

* About to connect() to get.rvm.io port 80 (#0)

*   Trying 208.85.148.213...   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0connected
> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: get.rvm.io
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Server: nginx/1.0.14
< Date: Wed, 06 Mar 2013 17:37:35 GMT

< Content-Type: text/html
< Content-Length: 185
< Connection: keep-alive
< Location: https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
<
* Ignoring the response-body
{ [data not shown]
100   185  100   185    0     0    468      0 --:--:-- --:--:-- --:--:--  1284

* Connection #0 to host get.rvm.io left intact
* Issue another request to this URL: 'https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer'
* About to connect() to raw.github.com port 443 (#1)
*   Trying 199.27.72.133... connected

* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSL connection timeout
* Closing connection #1
curl: (28) SSL connection timeout
* Closing connection #0

This is the entire output.





On Wednesday, March 6, 2013 11:20:19 AM UTC-6, Richard Michael wrote:
That's the end of the output?  The initial curl has connected and seen
the redirect, looks like it's all ok so far.  What is the error?

Try:

1/ Verify your openssl connection: "openssl s_client -connect
raw.github.com:443 | less"

2/ Set all the curl calls to verbose: "echo verbose >> $HOME/.curlrc",
run the install again.

3/ Fully debug the installer (this is a lot of output): "\curl -v -L
http://get.rvm.io | bash -s stable --trace"


On Wed, Mar 6, 2013 at 6:09 PM, AmateurCoder
> rubyversionmanager+unsub...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/rubyversionmanager?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "RVM (Ruby Version Manager)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyversionmanager+unsub...@googlegroups.com.

Richard Michael

unread,
Mar 6, 2013, 1:04:13 PM3/6/13
to rubyversi...@googlegroups.com
From the "gethostbyname failure" output from (1), and the timeout in
the long output, I suspect you have a DNS problem resolving
"raw.github.com" and I'd investigate that.

Get these working:

1) host -t a raw.github.com
2) ping raw.github.com

Then test the "openssl s_client ..." command again.

Once all that is working, re-run the RVM install command.

Good luck!

Cheers!
>> > rubyversionmana...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/rubyversionmanager?hl=en
>> >
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "RVM (Ruby Version Manager)" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to rubyversionmana...@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>
> --
> --
> Please visit http://rvm.io/ for documentation on rvm.
> Please visit https://www.pivotaltracker.com/projects/26822 to see what is
> being worked on currently.
>
> You received this message because you are subscribed to the Google
> Groups "rvm (Ruby Version Manager)" group.
> To post to this group, send email to rubyversi...@googlegroups.com
> To unsubscribe from this group, send email to
> rubyversionmana...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/rubyversionmanager?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "RVM (Ruby Version Manager)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyversionmana...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages