Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

SSL_Connect Error #503

Closed
anilshanbhag opened this Issue · 25 comments
@anilshanbhag

I had a look through the previous threads regarding the same but then my version is updated and I still get the error .

anil-Studio-1558 ~ # heroku login
Enter your Heroku credentials.
Email: anilashanbhag@gmail.com
Password (typing will be hidden):
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       SSL_connect SYSCALL returned=5 errno=0 state=unknown state (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/ssl_socket.rb:82:in `connect'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/ssl_socket.rb:82:in `initialize'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/connection.rb:344:in `new'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/connection.rb:344:in `socket'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/connection.rb:175:in `request_kernel'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/connection.rb:101:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.2/lib/heroku/api.rb:60:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.2/lib/heroku/api/login.rb:9:in `post_login'
             /usr/local/heroku/lib/heroku/auth.rb:76:in `api_key'
             /usr/local/heroku/lib/heroku/auth.rb:185:in `ask_for_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:217:in `ask_for_and_save_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:80:in `get_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:41:in `login'
             /usr/local/heroku/lib/heroku/command/auth.rb:22:in `login'
             /usr/local/heroku/lib/heroku/command.rb:179:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:25:in `start'
             /usr/bin/heroku:26:in `<main>'

Command:     heroku login
HTTP Proxy:  http://username:passwd@proxy:port
HTTPS Proxy: http://username:passwd@proxy:port
Version:     heroku-toolbelt/2.30.2 (x86_64-linux) ruby/1.9.2

anil-Studio-1558 ~ # wget https://encrypted.google.com
--2012-08-05 10:44:09-- https://encrypted.google.com/
Resolving netmon.iitb.ac.in... 10.201.13.50
Connecting to netmon.iitb.ac.in|10.201.13.50|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'

[ <=>                                   ] 12,927      --.-K/s   in 0.001s  

2012-08-05 10:44:24 (18.0 MB/s) - `index.html' saved [12927]

anil-Studio-1558 ~ # wget http://google.com
--2012-08-05 10:44:32-- http://google.com/
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: http://www.google.com/ [following]
--2012-08-05 10:44:32-- http://www.google.com/
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: http://www.google.co.in/ [following]
--2012-08-05 10:44:32-- http://www.google.co.in/
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.1'

[ <=>                                   ] 14,230      --.-K/s   in 0.003s  

2012-08-05 10:44:32 (4.71 MB/s) - `index.html.1' saved [14230]

anil-Studio-1558 ~ # heroku version
heroku-toolbelt/2.30.2 (x86_64-linux) ruby/1.9.2

@geemus
Owner

@anilshanbhag - I haven't seen this particular issue before, though other heroku users have had issues with openssl. Is it possible you have a broken ssl install? Could you perhaps try updating to the latest openssl to see if that helps out?

@nterry

I am also experiencing this issue. I am behind a proxy and I have set the https_proxy env variable to the correct url. I am running the latest CLI gem and running in ruby 1.9.2. Ive tried all the suggestions in #463 including running in detached mode.

Does anyone have any other suggestions?

@geemus
Owner

@nterry - could you post your particular error so I can cross reference?

@nterry

Running login detached... Enter your Heroku credentials.
Email:
Password (typing will be hidden):
verify off
failed
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/ssl_socket.rb:86:in `connect'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/ssl_socket.rb:86:in `initialize'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/connection.rb:345:in `new'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/connection.rb:345:in `socket'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/connection.rb:175:in `request_kernel'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/connection.rb:101:in `request'
             /var/lib/gems/1.9.1/gems/heroku-api-0.3.2/lib/heroku/api.rb:60:in `request'
             /var/lib/gems/1.9.1/gems/heroku-api-0.3.2/lib/heroku/api/login.rb:9:in `post_login'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:76:in `api_key'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:185:in `ask_for_credentials'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:217:in `ask_for_and_save_credentials'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:80:in `get_credentials'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:70:in `password'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:17:in `api'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/command/base.rb:40:in `api'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/command/run.rb:39:in `block in detached'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/helpers.rb:232:in `action'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/command/run.rb:38:in `detached'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/command.rb:179:in `run'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/cli.rb:25:in `start'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/bin/heroku:16:in `<top (required)>'
             /var/lib/gems/1.9.1/bin/heroku:19:in `load'
             /var/lib/gems/1.9.1/bin/heroku:19:in `<main>'

Command:     heroku run:detached login
HTTP Proxy:  http://myproxy:80
HTTPS Proxy: http://myproxy:80
Version:     heroku-gem/2.30.2 (x86_64-linux) ruby/1.9.2

Just as a note, the 'verify off' stuff is just some debug output we added to try to locate the issue.

@geemus
Owner

Thanks. Could you try running with HEROKU_SSL_VERIFY=disable? Looks like the proxy + cert verification is perhaps the problem.

@nterry

Is that an environment variable?

@geemus
Owner

@nterry - yes. Setting it will disable the cert verification (which is the part that seems to be failing). I think that should at least get you to a different error (if nothing else).

@nterry

It doesn't get me a different error:

heroku login
Enter your Heroku credentials.
Email:
Password (typing will be hidden):
verify off
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/ssl_socket.rb:86:in `connect'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/ssl_socket.rb:86:in `initialize'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/connection.rb:345:in `new'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/connection.rb:345:in `socket'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/connection.rb:175:in `request_kernel'
             /var/lib/gems/1.9.1/gems/excon-0.15.5/lib/excon/connection.rb:101:in `request'
             /var/lib/gems/1.9.1/gems/heroku-api-0.3.2/lib/heroku/api.rb:60:in `request'
             /var/lib/gems/1.9.1/gems/heroku-api-0.3.2/lib/heroku/api/login.rb:9:in `post_login'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:76:in `api_key'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:185:in `ask_for_credentials'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:217:in `ask_for_and_save_credentials'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:80:in `get_credentials'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/auth.rb:41:in `login'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/command/auth.rb:22:in `login'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/command.rb:179:in `run'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/lib/heroku/cli.rb:25:in `start'
             /var/lib/gems/1.9.1/gems/heroku-2.30.2/bin/heroku:16:in `<top (required)>'
             /var/lib/gems/1.9.1/bin/heroku:19:in `load'
             /var/lib/gems/1.9.1/bin/heroku:19:in `<main>'

Command:     heroku login
HTTP Proxy:  http://my.proxy.com
HTTPS Proxy: http://my.proxy.com
Version:     heroku-gem/2.30.2 (x86_64-linux) ruby/1.9.2

Just as a side note, we have also tried several different security models. We tried TLS and SSL v1, 2 and 3

@fcanela

I am getting the same error, being through a proxy too:

! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       SSL_connect SYSCALL returned=5 errno=0 state=unknown state (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/ssl_socket.rb:82:in `connect'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/ssl_socket.rb:82:in `initialize'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/connection.rb:344:in `new'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/connection.rb:344:in `socket'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/connection.rb:175:in `request_kernel'
             /usr/local/heroku/vendor/gems/excon-0.15.5/lib/excon/connection.rb:101:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.2/lib/heroku/api.rb:60:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.2/lib/heroku/api/login.rb:9:in `post_login'
             /usr/local/heroku/lib/heroku/auth.rb:76:in `api_key'
             /usr/local/heroku/lib/heroku/auth.rb:185:in `ask_for_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:217:in `ask_for_and_save_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:80:in `get_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:41:in `login'
             /usr/local/heroku/lib/heroku/command/auth.rb:22:in `login'
             /usr/local/heroku/lib/heroku/command.rb:179:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:25:in `start'
             /usr/bin/heroku:26:in `<main>'

Command:     heroku auth:login
HTTP Proxy:  http://172.16.4.37:8080
HTTPS Proxy: http://172.16.4.37:8080
Version:     heroku-toolbelt/2.30.2 (i686-linux) ruby/1.9.3
@fcanela

@geemus I tried after:

$ export HEROKU_SSL_VERIFY=disable

Same result than @nterry here too.

@geemus
Owner

Thanks for the updates. I actually am in progress on some proxy related fixes for a different issue, so perhaps that will help here as well. Hoping to release those, probably tomorrow, but have a couple more things I need to finish up first.

@geemus
Owner

I have made some changes that I think should help with this, though I was unable to reproduce it locally so it is hard for me to say. Please update to v2.30.3 and let me know if you still have issues.

@otaviocc

Same here with heroku-gem/2.30.3 (i686-linux) ruby/1.9.3. It's running on a Ubuntu 10.04 LTS.

@nterry

Ok, so some additional information. I tried using JRuby instead of vanilla Ruby. I got the following:

Running login detached... Enter your Heroku credentials.
Email:
Password (typing will be hidden): stty: standard input: Invalid argument

stty: standard input: Invalid argument

failed
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       Socket closed (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   org/jruby/ext/openssl/SSLSocket.java:158:in `connect'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/excon-0.16.1/lib/excon/ssl_socket.rb:83:in `initialize'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/excon-0.16.1/lib/excon/connection.rb:344:in `socket'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/excon-0.16.1/lib/excon/connection.rb:175:in `request_kernel'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/excon-0.16.1/lib/excon/connection.rb:101:in `request'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-api-0.3.4/lib/heroku/api.rb:61:in `request'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-api-0.3.4/lib/heroku/api/login.rb:5:in `post_login'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/auth.rb:76:in `api_key'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/auth.rb:185:in `ask_for_credentials'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/auth.rb:217:in `ask_for_and_save_credentials'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/auth.rb:80:in `get_credentials'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/auth.rb:70:in `password'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/auth.rb:17:in `api'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/command/base.rb:40:in `api'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/command/run.rb:39:in `detached'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/helpers.rb:232:in `action'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/command/run.rb:38:in `detached'
             org/jruby/RubyBasicObject.java:1667:in `__send__'
             org/jruby/RubyKernel.java:2060:in `send'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/command.rb:193:in `run'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/lib/heroku/cli.rb:25:in `start'
             /home/nterry/jruby-1.7.0.preview2/lib/ruby/gems/shared/gems/heroku-2.30.3/bin/heroku:16:in `(root)'
             org/jruby/RubyKernel.java:1050:in `load'
             /home/nterry/jruby-1.7.0.preview2/bin/heroku:23:in `(root)'

Command:     heroku run:detached login
HTTP Proxy:  http://myproxy:80/
HTTPS Proxy: http://myproxy:80/
Version:     heroku-gem/2.30.3 (java) ruby/1.9.3

Still appears to be no good.

@santhoshthepro

Even I face the same Issue. Kindly post a solution to this. Iam working behind a proxy. I have configured the proxy env variables properly. Still not working and getting the same error.

@pvencill

same problem as above, same error and environmentals are set correctly. heroku v2.31.2

@geemus geemus referenced this issue in excon/excon
Closed

HTTPS proxy failures #148

@lc3t35

Same for me on Ubuntu 11.04 Natty : no proxy

Password (typing will be hidden):
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/ssl_socket.rb:60:in `connect'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/ssl_socket.rb:60:in `initialize'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/connection.rb:357:in `new'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/connection.rb:357:in `socket'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/connection.rb:188:in `request_kernel'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/connection.rb:101:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.4/lib/heroku/api.rb:61:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.4/lib/heroku/api/login.rb:9:in `post_login'
             /usr/local/heroku/lib/heroku/auth.rb:80:in `api_key'
             /usr/local/heroku/lib/heroku/auth.rb:189:in `ask_for_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:221:in `ask_for_and_save_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:84:in `get_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:41:in `login'
             /usr/local/heroku/lib/heroku/command/auth.rb:31:in `login'
             /usr/local/heroku/lib/heroku/command.rb:191:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:24:in `<main>'

Command:     heroku login
HTTP Proxy:  http://localhost:3128
Version:     heroku-toolbelt/2.31.2 (i686-linux) ruby/1.9.2
@siovene

Same for me on Ubuntu 12.04, using a proxy that doesn't require authentication:

 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
    Backtrace:   /var/lib/gems/1.8/gems/excon-0.16.2/lib/excon/ssl_socket.rb:60:in `connect'
                 /var/lib/gems/1.8/gems/excon-0.16.2/lib/excon/ssl_socket.rb:60:in `initialize'
                 /var/lib/gems/1.8/gems/excon-0.16.2/lib/excon/connection.rb:357:in `new'
                 /var/lib/gems/1.8/gems/excon-0.16.2/lib/excon/connection.rb:357:in `socket'
                 /var/lib/gems/1.8/gems/excon-0.16.2/lib/excon/connection.rb:188:in `request_kernel'
                 /var/lib/gems/1.8/gems/excon-0.16.2/lib/excon/connection.rb:101:in `request'
                 /var/lib/gems/1.8/gems/heroku-api-0.3.4/lib/heroku/api.rb:61:in `request'
                 /var/lib/gems/1.8/gems/heroku-api-0.3.4/lib/heroku/api/login.rb:9:in `post_login'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/auth.rb:80:in `api_key'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/auth.rb:189:in `ask_for_credentials'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/auth.rb:221:in `ask_for_and_save_credentials'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/auth.rb:84:in `get_credentials'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/auth.rb:74:in `password'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/auth.rb:17:in `api'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/command/base.rb:40:in `api'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/command/run.rb:108:in `run_attached'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/helpers.rb:232:in `action'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/command/run.rb:107:in `run_attached'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/command/run.rb:21:in `index'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/command.rb:191:in `send'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/command.rb:191:in `run'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/lib/heroku/cli.rb:28:in `start'
                 /var/lib/gems/1.8/gems/heroku-2.31.2/bin/heroku:16
                 /usr/local/bin/heroku:19:in `load'
                 /usr/local/bin/heroku:19

    Command:     heroku run python manage compress
    HTTP Proxy:  (hidden)
    Version:     heroku-toolbelt/2.31.2 (i686-linux) ruby/1.8.7
@fishinitself

The same:

$ uname -a
Linux r2-d2 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ heroku --version
heroku-toolbelt/2.32.4 (x86_64-linux) ruby/1.9.3 autoupdate
$ heroku logs --tail
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/ssl_socket.rb:60:in `connect'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/ssl_socket.rb:60:in `initialize'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/connection.rb:357:in `new'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/connection.rb:357:in `socket'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/connection.rb:188:in `request_kernel'
             /usr/local/heroku/vendor/gems/excon-0.16.2/lib/excon/connection.rb:101:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.5/lib/heroku/api.rb:62:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.5/lib/heroku/api/login.rb:9:in `post_login'
             /usr/local/heroku/lib/heroku/auth.rb:80:in `api_key'
             /usr/local/heroku/lib/heroku/auth.rb:189:in `ask_for_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:221:in `ask_for_and_save_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:84:in `get_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:70:in `user'
             /usr/local/heroku/lib/heroku/auth.rb:33:in `client'
             /usr/local/heroku/lib/heroku/command/base.rb:44:in `heroku'
             /usr/local/heroku/lib/heroku/command/logs.rb:35:in `index'
             /usr/local/heroku/lib/heroku/command.rb:206:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:24:in `<main>'

Command:     heroku logs --tail
HTTP Proxy:  ***
HTTPS Proxy: ***
Version:     heroku-toolbelt/2.32.4 (x86_64-linux) ruby/1.9.3 autoupdate
@sirwan-mualla

Same issue here

! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/excon-0.16.4/lib/excon/ssl_socket.rb:60:in `connect'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/excon-0.16.4/lib/excon/ssl_socket.rb:60:in `initialize'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/excon-0.16.4/lib/excon/connection.rb:362:in `new'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/excon-0.16.4/lib/excon/connection.rb:362:in `socket'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/excon-0.16.4/lib/excon/connection.rb:193:in `request_kernel'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/excon-0.16.4/lib/excon/connection.rb:101:in `request'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-api-0.3.5/lib/heroku/api.rb:62:in `request'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-api-0.3.5/lib/heroku/api/login.rb:9:in `post_login'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/lib/heroku/auth.rb:80:in `api_key'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/lib/heroku/auth.rb:189:in `ask_for_credentials'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/lib/heroku/auth.rb:221:in `ask_for_and_save_credentials'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/lib/heroku/auth.rb:84:in `get_credentials'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/lib/heroku/auth.rb:41:in `login'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/lib/heroku/command/auth.rb:31:in `login'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/lib/heroku/command.rb:206:in `run'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/lib/heroku/cli.rb:28:in `start'
             /home/test/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.8/bin/heroku:16:in `<top (required)>'
             /home/test/.rvm/gems/ruby-1.9.3-p194/bin/heroku:19:in `load'
             /home/test/.rvm/gems/ruby-1.9.3-p194/bin/heroku:19:in `<main>'
             /home/test/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
             /home/test/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

Command:     heroku login
HTTP Proxy:  http://10.1.1.20:8090/
Version:     heroku-gem/2.32.8 (i686-linux) ruby/1.9.3 autoupdate
@tanookiben

Also running into this error in a setting where I do need a proxy to connect to the internet, even though all other internet-related connections are okay.

Enter your Heroku credentials.
Email: ######
Password (typing will be hidden):
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   /usr/local/heroku/vendor/gems/excon-0.16.4/lib/excon/ssl_socket.rb:60:in `connect'
             /usr/local/heroku/vendor/gems/excon-0.16.4/lib/excon/ssl_socket.rb:60:in `initialize'
             /usr/local/heroku/vendor/gems/excon-0.16.4/lib/excon/connection.rb:362:in `new'
             /usr/local/heroku/vendor/gems/excon-0.16.4/lib/excon/connection.rb:362:in `socket'
             /usr/local/heroku/vendor/gems/excon-0.16.4/lib/excon/connection.rb:193:in `request_kernel'
             /usr/local/heroku/vendor/gems/excon-0.16.4/lib/excon/connection.rb:101:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.5/lib/heroku/api.rb:62:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.5/lib/heroku/api/login.rb:9:in `post_login'
             /usr/local/heroku/lib/heroku/auth.rb:80:in `api_key'
             /usr/local/heroku/lib/heroku/auth.rb:189:in `ask_for_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:221:in `ask_for_and_save_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:84:in `get_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:41:in `login'
             /usr/local/heroku/lib/heroku/command/auth.rb:31:in `login'
             /usr/local/heroku/lib/heroku/command.rb:206:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:25:in `<main>'

Command:     heroku login
HTTP Proxy:  http://proxy:8080
HTTPS Proxy: http://proxy:8080
Version:     heroku-toolbelt/2.33.0 (i686-linux) ruby/1.9.2
@ndrluis

+ 1

Error:       SSL_connect returned=1 errno=0 state=unknown state: unknown protocol (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
Backtrace:   /usr/local/heroku/vendor/gems/excon-0.16.8/lib/excon/ssl_socket.rb:57:in `connect'
             /usr/local/heroku/vendor/gems/excon-0.16.8/lib/excon/ssl_socket.rb:57:in `initialize'
             /usr/local/heroku/vendor/gems/excon-0.16.8/lib/excon/connection.rb:364:in `new'
             /usr/local/heroku/vendor/gems/excon-0.16.8/lib/excon/connection.rb:364:in `socket'
             /usr/local/heroku/vendor/gems/excon-0.16.8/lib/excon/connection.rb:192:in `request_kernel'
             /usr/local/heroku/vendor/gems/excon-0.16.8/lib/excon/connection.rb:103:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.6/lib/heroku/api.rb:74:in `request'
             /usr/local/heroku/vendor/gems/heroku-api-0.3.6/lib/heroku/api/login.rb:9:in `post_login'
             /usr/local/heroku/lib/heroku/auth.rb:80:in `api_key'
             /usr/local/heroku/lib/heroku/auth.rb:189:in `ask_for_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:221:in `ask_for_and_save_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:84:in `get_credentials'
             /usr/local/heroku/lib/heroku/auth.rb:74:in `password'
             /usr/local/heroku/lib/heroku/auth.rb:17:in `api'
             /usr/local/heroku/lib/heroku/command/base.rb:40:in `api'
             /usr/local/heroku/lib/heroku/command/apps.rb:181:in `create'
             /usr/local/heroku/lib/heroku/command.rb:206:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:25:in `<main>'

Command:     heroku create andregem
HTTP Proxy:  http://localhost:3128/
HTTPS Proxy: https://localhost:3128/
Version:     heroku-toolbelt/2.33.1 (x86_64-linux) ruby/1.9.3
@shekarmuniven

This post has the solution for this issue - excon/excon#148 apparently we need to install the latest gem of excon (0.16.10). I did the same and am able to login to heroku.

@rinrinne

excon is already bumped by #641

@geemus
Owner

Yep @rinrinne helped me fix the issue in excon, I think some versions of the heroku gem and/or toolbelt may not have the latest excon with the fix though, which would mean that an update to the fixed version would fix the issue.

I'm going to close this as I believe it should be fixed with the afore-mentioned patches. If you update to latest and still see issues around this do let us know. Thanks!

@geemus geemus closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.