嗨,每次我尝试运行heroku命令ex。 heroku run rails c --app <appname>
我收到此错误:
! 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 returned=1 errno=0 state=SSLv3 read server hello A: sslv3 alert handshake failure (OpenSSL::SSL::SSLError)
(EXC ñ::错误:: SocketError) Backtrace:C:/ Program Files(x86)/Heroku/vendor/gems/excon-0.16.1/lib/excon/ssl_socket.rb:83:in
connect' C:/Program Files (x86)/Heroku/vendor/gems/excon-0.16.1/lib/excon/ssl_socket.rb:83:in
初始化&#39; C:/ Program Files(x86)/Heroku/vendor/gems/excon-0.16.1/lib/excon/connection.rb:344:innew' C:/Program Files (x86)/Heroku/vendor/gems/excon-0.16.1/lib/excon/connection.rb:344:in
插座&#39; C:/ Program Files(x86)/Heroku/vendor/gems/excon-0.16.1/lib/excon/connection.rb:175:inrequest_kernel' C:/Program Files (x86)/Heroku/vendor/gems/excon-0.16.1/lib/excon/connection.rb:101:in
请求&#39; C:/ Program Files(x86)/Heroku/vendor/gems/heroku-api-0.3.4/lib/heroku/api.rb:61:inrequest' C:/Program Files (x86)/Heroku/vendor/gems/heroku-api-0.3.4/lib/heroku/api/login.rb:9:in
post_login&#39; C:/ Program Files(x86)/Heroku/lib/heroku/auth.rb:76:inapi_key' C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:185:in
ask_for_credentials&#39; C:/ Program Files(x86)/Heroku/lib/heroku/auth.rb:217:inask_for_and_save_credentials' C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:80:in
get_credentials&#39; C:/ Program Files(x86)/Heroku/lib/heroku/auth.rb:70:inpassword' C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:17:in
api&#39; C:/ Program Files(x86)/Heroku/lib/heroku/command/base.rb:40:inapi' C:/Program Files (x86)/Heroku/lib/heroku/command/config.rb:26:in
index&#39; C:/ Program Files(x86)/Heroku/lib/heroku/command.rb:193:inrun' C:/Program Files (x86)/Heroku/lib/heroku/cli.rb:25:in
start&#39; C:/ Program Files(x86)/ Heroku / bin / heroku:25:in`&#39;Command: heroku config Version: heroku-toolbelt/2.30.3 (i386-mingw32) ruby/1.9.2
这有什么问题?
答案 0 :(得分:1)
我遇到了同样的问题,原因似乎是一样的:你的heroku工具带已经过时了。看看:https://github.com/heroku/heroku/issues/1235
答案 1 :(得分:0)
从您的命令看来,您似乎想要运行Console
而不是应用程序。如果您有多个环境(staging
/ production
/ etc),则需要以下命令:
heroku run -a app-name console
如果您只有一个环境而且从不设置暂存或其他环境,则可以运行:
heroku run console
有关详细信息,请查看此https://github.com/nemrow/rails_app_cheatsheet/blob/master/heroku.rdoc
Heroku一次只能在一个环境中运行which is configured by the RAILS_ENV and RACK_ENV environments variables。
注意:确保它不在您的.gitignore
文件中。提交然后将更改推送到Heroku。
答案 2 :(得分:0)
Heroku(以及许多其他负责任的API提供商)截至上周四已停用对SSLv3的支持:https://status.heroku.com/incidents/678