heroku键:添加错误:“无法完成非阻塞套接字操作”

时间:2012-06-15 19:13:35

标签: heroku

我是Ruby on Rails,Git和Heroku的初学者。我正在遵循公司代理背后的Rails指南。到目前为止,我能够安装RailsInstaller,帮助我相当顺利地设置Ruby,Rails和Git(也是GitHub)。但我真的被困在章节(http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:1.4.1),我试图将我的公钥链接到我的新Heroku帐户将存储库推送到Heroku。

我在公司代理后面的Windows 7盒子上。我设置了HTTP_PROXY env变量,它正在推送到GitHub。我无法通过以下错误。它似乎没有达到抱怨ssh公钥和其他关于heroku密钥的帖子:添加错误有不同的输出..而且我没有在help.heroku.com找到相关信息。任何见解都将非常感谢!

c:\Sites\testproj\thirdapp>heroku keys:add
 Enter your Heroku credentials.
 Email: my.email@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:     A non-blocking socket operation could not be completed immediately. (Excon::Errors::SocketError)
Backtrace: C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:53:in `sysread'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:53:in `sysread'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:53:in `fill_rbuff'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:293:in `eof?'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:246:in `readline'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/ssl_socket.rb:68:in `initialize'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/connection.rb:330:in `new'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/connection.rb:330:in `socket'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/connection.rb:175:in `request_kernel'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/connection.rb:101:in `request'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-api-0.2.5/lib/heroku/api.rb:60:in `request'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-api-0.2.5/lib/heroku/api/login.rb:9:in `post_login'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/auth.rb:74:in `api_key'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/auth.rb:183:in `ask_for_credentials'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/auth.rb:214:in `ask_for_and_save_credentials'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/auth.rb:78:in `get_credentials'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/command/keys.rb:66:in `add'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/command.rb:176:in `run'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/cli.rb:10:in `start'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/bin/heroku:16:in `<top (required)>'
           C:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in `load'
           C:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in `<main>'

Command:   heroku keys:add
Version:   heroku-gem/2.27.1 (i386-mingw32) ruby/1.9.3

2 个答案:

答案 0 :(得分:1)

我也遇到了同样的错误。我卸载它并从Toolbelt安装最新版本的Heroku并得到解决....

答案 1 :(得分:0)

在以下方面提出了类似的问题: https://github.com/heroku/heroku/issues/441

调用“heroku keys:add”时,我也遇到了同样的错误。 不幸的是,在代理服务器后面工作时仍然没有找到任何变通方法。

根据问题,该命令在不在代理后面时有效。