Heroku客户端内部错误。无法验证证书

时间:2013-06-24 05:23:57

标签: heroku

Heroku键,heroku运行rake等似乎有问题 还有谁有相同的问题吗? /知道如何绕过它吗? 谢谢!

Trace-- ! Heroku客户端内部错误。  !在以下网址搜索帮助:https://help.heroku.com  !或者在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:   /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/ssl_socket.rb:69:in `connect'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/ssl_socket.rb:69:in `initialize'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/connection.rb:365:in `new'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/connection.rb:365:in `socket'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/connection.rb:105:in `request_call'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/middlewares/mock.rb:42:in `request_call'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/middlewares/instrumentor.rb:22:in `request_call'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/middlewares/base.rb:15:in `request_call'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/middlewares/base.rb:15:in `request_call'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/excon-0.25.0/lib/excon/connection.rb:244:in `request'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-api-0.3.13/lib/heroku/api.rb:76:in `request'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-api-0.3.13/lib/heroku/api/login.rb:9:in `post_login'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/auth.rb:80:in `api_key'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/auth.rb:189:in `ask_for_credentials'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/auth.rb:221:in `ask_for_and_save_credentials'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/auth.rb:84:in `get_credentials'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/auth.rb:74:in `password'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/auth.rb:17:in `api'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/command/base.rb:40:in `api'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/command/keys.rb:27:in `index'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/command.rb:206:in `run'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/lib/heroku/cli.rb:28:in `start'
             /usr/local/rvm/gems/ruby-1.9.3-p194/gems/heroku-2.39.4/bin/heroku:17:in `<top (required)>'
             /usr/local/rvm/gems/ruby-1.9.3-p194/bin/heroku:19:in `load'
             /usr/local/rvm/gems/ruby-1.9.3-p194/bin/heroku:19:in `<main>'
             /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
             /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

Command:     heroku keys
Version:     heroku-gem/2.39.4 (x86_64-darwin11.4.0) ruby/1.9.3

7 个答案:

答案 0 :(得分:9)

在终端中运行'heroku update'为我修复了这个问题。

答案 1 :(得分:5)

当我安装了heroku gem版本2.39.4时,我在Mac OS X上简要地遇到了这个问题。我卸载它并允许Heroku toolbelt再次成为我的heroku可执行文件的提供者,虽然我不得不经历“heroku auth:login”和“heroku keys:add”,但它现在可以正常工作了。

N.B。当然,我的Vagrant Heroku Ubuntu VM仍然需要heroku gem。

答案 2 :(得分:5)

需要手动删除openssl.cnf ...在您的计算机上找到该文件并将其重命名为其他内容....最新excon版本中的错误....

答案 3 :(得分:2)

我无法通过删除openssl.conf来解决此问题。

但是,我能够通过安装heroku工具带然后删除heroku gem的所有旧安装来解决这个问题。

macbook:~ johnnygoodman$ gem uninstall heroku

Select gem to uninstall:
 1. heroku-2.35.0
 2. heroku-2.39.4
 3. All versions
> 3
Successfully uninstalled heroku-2.35.0
Remove executables:
    heroku

macbook:~ johnnygoodman$ heroku login
Enter your Heroku credentials.
Email: 
Password (typing will be hidden):
Authentication successful.

答案 4 :(得分:1)

我遇到了同样的问题,并在我的机器上重命名了openssl.cnf文件,如上面的user2515011所推荐,并且它有效。

说实话,我不知道为什么这种方法有效,或者它是否让我在别处容易受到伤害。谁能解释一下?

答案 5 :(得分:0)

不幸的是我无法在macbook air上复制这个。我想知道它是否与rvm有关。你用的是什么版本?它看起来好像用于打包openssl:https://rvm.io/packages/openssl(但可能不应该再打包了,至少在我的机器上使用打包版本效果很好)。您是否可以尝试按照该页面中的建议运行rvm autolibs enable并再次尝试?

答案 6 :(得分:0)

我遇到了同样的问题,没有一个建议对我有用。

当试图解决另一个问题时,我设置了一个环境变量来将我的SSL证书位置设置在RailsInstaller目录中。

如果上述答案都没有帮助您,我建议检查是否有可疑的环境变量。

相关问题