Heroku Logs Failing in 2.21.1 #245

Closed
jamesward opened this Issue Mar 2, 2012 · 25 comments

Projects

None yet
@jamesward
Heroku member
jamesw@T420s:~/projects/shareheroku-java$ heroku logs
/usr/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /usr/lib/ruby/1.9.1/net/http.rb:799:in `block in connect'
from /usr/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
from /usr/lib/ruby/1.9.1/net/http.rb:799:in `connect'
from /usr/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
from /usr/lib/ruby/1.9.1/net/http.rb:744:in `start'
from /usr/local/heroku/lib/heroku/client.rb:409:in `read_logs'
from /usr/local/heroku/lib/heroku/command/logs.rb:31:in `index'
from /usr/local/heroku/lib/heroku/command.rb:135:in `run'
from /usr/local/heroku/lib/heroku/cli.rb:9:in `start'
from /usr/bin/heroku:30:in `<main>'
@geemus
Heroku member

Yeah, sorry about that. I worked on a fix today but haven't quite finished yet. In the mean time there is a work around though, you can use HEROKU_SSL_VERIFY=disable. This will cause it to skip the problematic verification, which is to say it will have the old behavior. Sorry again for the trouble, I'm going to try to get a fix out for it tomorrow.

@defaye

Thanks for this jjb

@anjain

It is not working :(

@defaye

Anjain: try

[sudo] gem install certified

add to gemfile : gem 'certified'

bundle install

@anjain

I am using gem 'paypal_adaptive',"0.2.7" and it is working fine at local.
It is not working on heroku and getting following error:
C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `connect': SSL_connect returned=1 e
rrno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL
::SSL::SSLError)

@defaye

try adding the /certs folder to your /lib directory from https://github.com/stevegraham/certified

@anjain

not working :(

@defaye

I was also advised to do $ HEROKU_SSL_VERIFY=disable heroku logs but, the method I used as prescribed in my replies here - heroku logs directly related to certificate issue. If you ensured that all other tweaks you made in trying to resolve are reverted then the method above worked for me and I had the exact same problem. They said to have a fix in a day or so.

@geemus
Heroku member

Crap. Epic fails throughout on my part. Sorry for everybody this effected, I was trying to fix it toward the end of an already brain burning day and it just didn't work. This morning I wanted to take care of it first thing though, so the fix is in the gem release 2.21.2 which I just pushed out. Sorry again for the trouble and let me know if you need anything else.

@geemus geemus closed this Mar 2, 2012
@gpike

Thanks for the fix.

@styleofglobal

i am facing certificate verification issue .. please help me

OS: Windows XP

F:\Fb-Apps>heroku login
Enter your Heroku credentials.
Email: *****@live.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:       Unable to verify certificate, please set `Excon.defaults[:ssl_c

a_path] = path_to_certs,Excon.defaults[:ssl_ca_file] = path_to_file, orExc
on.defaults[:ssl_verify_peer] = false(less secure). (Excon::Errors::SocketErro
r)
Backtrace: C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14
.3/lib/excon/ssl_socket.rb:74:in
connect'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14
.3/lib/excon/ssl_socket.rb:74:in initialize'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14
.3/lib/excon/connection.rb:344:in
new'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14
.3/lib/excon/connection.rb:344:in socket'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14
.3/lib/excon/connection.rb:175:in
request_kernel'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14
.3/lib/excon/connection.rb:101:in request'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-api
-0.2.8/lib/heroku/api.rb:60:in
request'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-api
-0.2.8/lib/heroku/api/login.rb:9:in post_login'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/lib/heroku/auth.rb:76:in
api_key'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/lib/heroku/auth.rb:185:in ask_for_credentials'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/lib/heroku/auth.rb:217:in
ask_for_and_save_credentials'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/lib/heroku/auth.rb:80:in get_credentials'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/lib/heroku/auth.rb:41:in
login'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/lib/heroku/command/auth.rb:22:in login'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/lib/heroku/command.rb:178:in
run'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/lib/heroku/cli.rb:25:in start'
C:/Program Files/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.2
8.12/bin/heroku:16:in
'
C:/Program Files/ruby-1.9.3/bin/heroku:19:in load'
C:/Program Files/ruby-1.9.3/bin/heroku:19:in

'

Command:     heroku login
Version:     heroku-gem/2.28.12 (i386-mingw32) ruby/1.9.2
@geemus
Heroku member

@styleofglobal - Windows machines should skip this verification I believe. Could you find out what the output of this command is? ruby -e "require('rbconfig'); puts(RbConfig::CONFIG['host_os'])

@styleofglobal

C:>heroku update
Updating from 2.28.12... done, updated to 2.28.12

C:>ruby -e "require('rbconfig'); puts(RbConfig::CONFIG['host_os'])
mingw32

C:>

@geemus
Heroku member

@styleofglobal - could you try uninstalling the gem, and instead downloading/installing the toolbelt from https://toolbelt.heroku.com ? I think that should get you on track and is what we generally recommend. If that doesn't help out let me know though and I'll be happy to continue troubleshooting.

@styleofglobal

C:>ruby -e "require('rbconfig'); puts(RbConfig::CONFIG['host_os'])
mingw32

C:>heroku update
Updating from 2.28.15... 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:       Invalid argument - connect(2) (Errno::EINVAL) (Excon::Errors::SocketError)
Backtrace:   C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/socket.rb:48:in `connect_nonblock'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/socket.rb:48:in `rescue in block in connect'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/socket.rb:31:in `block in connect'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/socket.rb:29:in `each'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/socket.rb:29:in `connect'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/socket.rb:16:in `initialize'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/connection.rb:350:in `new'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/connection.rb:350:in `socket'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/connection.rb:179:in `request_kernel'
             C:/Program Files/Heroku/vendor/gems/excon-0.15.3/lib/excon/connection.rb:105:in `request'
             (eval):2:in `get'
             C:/Program Files/Heroku/lib/heroku/updater.rb:69:in `block (2 levels) in update'
             C:/Program Files/Heroku/lib/heroku/updater.rb:68:in `open'
             C:/Program Files/Heroku/lib/heroku/updater.rb:68:in `block in update'
             C:/Program Files/ruby-1.9.3/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
             C:/Program Files/Heroku/lib/heroku/updater.rb:55:in `update'
             C:/Program Files/Heroku/lib/heroku/command/update.rb:39:in `block in update_from_url'
             C:/Program Files/Heroku/lib/heroku/helpers.rb:232:in `action'
             C:/Program Files/Heroku/lib/heroku/command/update.rb:38:in `update_from_url'
             C:/Program Files/Heroku/lib/heroku/command/update.rb:19:in `index'
             C:/Program Files/Heroku/lib/heroku/command.rb:179:in `run'
             C:/Program Files/Heroku/lib/heroku/cli.rb:25:in `start'
             C:/Program Files/Heroku/bin/heroku:25:in `<main>'

Command:     heroku update
Version:     heroku-toolbelt/2.28.15 (i386-mingw32) ruby/1.9.2

C:>

@securay

I have the same issue, I reinstall all and even that, this is not working. I tried with heroku Toolbelt and i get the same error message, this is the message that i get:

C:\Windows\system32>heroku login
Enter your Heroku credentials.
Email: xxxx@yyyy.zzz
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: Unable to verify certificate, please set Excon.defaults[:ssl_ca_path] = path_to_certs, Excon.defaults[:ssl_ca_file] = path_to_file, or Excon.defaults[:ssl_verify_peer] = false (less secure). (Excon::Errors::SocketError)
Backtrace: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/ssl_socket.rb:60:in connect'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/ssl_socket.rb:60:in
initialize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:364:in new'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:364:in
socket'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:192:in request_kernel'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.16.10/lib/excon/connection.rb:103:in
request'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-api-0.3.7/lib/heroku/api.rb:74:in request'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-api-0.3.7/lib/heroku/api/login.rb:9:in
post_login'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/lib/heroku/auth.rb:80:in api_key'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/lib/heroku/auth.rb:189:in
ask_for_credentials'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/lib/heroku/auth.rb:221:in ask_for_and_save_credentials'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/lib/heroku/auth.rb:84:in
get_credentials'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/lib/heroku/auth.rb:41:in login'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/lib/heroku/command/auth.rb:31:in
login'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/lib/heroku/command.rb:207:in run'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/lib/heroku/cli.rb:28:in
start'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.34.0/bin/heroku:17:in <top (required)>'
C:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in
load'
C:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in `

'

Command:     heroku login
Version:     heroku-gem/2.34.0 (i386-mingw32) ruby/1.9.3
@praveep7

i am also getting same error. please provide solution.

@catsby

This issue is quite old with no activity for months until recent. The Heroku gem itself is not recommended, and you should upgrade to the Heroku Toolbelt. Can you tell me what version you're on? The latest version of the toolbelt is 3.2.2:

$ heroku version
heroku-toolbelt/3.2.2 (x86_64-darwin10.8.0) ruby/1.9.3
@praveep7
@catsby

Can you provide me the version information you get from heroku version as well as the output you get from attempting to login (obfuscating email):

$ heroku version
heroku-toolbelt/3.2.2 (x86_64-darwin10.8.0) ruby/1.9.3

$ heroku login
Enter your Heroku credentials.
Email: clint@xxx
Authentication successful.

@LibertysYarn

Any progress on this fix? I've tried every option google has to offer with no success.

@Enelar

Still have this issue. How i could develop app without logs?

@dickeyxxx
Heroku member

What version are you on?

@Enelar

dickeyxxx, i am so sorry. it was my fault, here i found post where guy say do not use heroku from rubygems. So i downloaded original binary from site. (I do not like binary without repotracking)
Current version supplied with official fedora repository

Name        : rubygem-heroku
Arch        : noarch
Epoch       : 0
Version     : 3.8.2
Release     : 1.fc21 (<---- !!!! )
Size        : 74 k
Repo        : fedora
Summary     : Client library and CLI to deploy Rails apps on Heroku
URL         : http://heroku.com/
License     : MIT
Description : Client library and command-line tool to manage and deploy Rails apps on
            : Heroku.

But

[kberezin@kberezin ~]$ uname -r
4.0.5-300.fc22.x86_64

Now i use heroku-toolbelt/3.39.1 (x86_64-linux) ruby/2.2.2 and there no problems.

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