1
我試圖把我的本地數據庫在Heroku我現有的應用程序,並收到此錯誤:Heroku的DB:推 - Heroku的客戶端內部錯誤
Sending schema
Schema: 100% |==========================================| Time: 00:00:07
Sending indexes
schema_migrat: 100% |==========================================| Time: 00:00:00
Sending data
3 tables, 3,621 records
schema_migrat: 100% |==========================================| Time: 00:00:00
! Heroku client internal error.=== | ETA: 00:01:04
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new
Error: undefined method `headers' for nil:NilClass (NoMethodError)
Backtrace: /Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/utils.rb:173:in `reraise_server_exception'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:522:in `rescue in block (2 levels) in push_data_from_table'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:507:in `block (2 levels) in push_data_from_table'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/utils.rb:102:in `calculate_chunksize'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:491:in `block in push_data_from_table'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:481:in `loop'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:481:in `push_data_from_table'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:476:in `block in push_data'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:471:in `each'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:471:in `push_data'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:412:in `block in run'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:203:in `call'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:203:in `catch_errors'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/operation.rb:405:in `run'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/taps-0.3.24/lib/taps/cli.rb:172:in `clientxfer'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.30.3/lib/heroku/command/db.rb:192:in `taps_client'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.30.3/lib/heroku/command/db.rb:30:in `push'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.30.3/lib/heroku/command.rb:193:in `run'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.30.3/lib/heroku/cli.rb:25:in `start'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.30.3/bin/heroku:16:in `<top (required)>'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `load'
/Users/adam/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `<main>'
Command: heroku db:push
Plugins: heroku-sql-console
Version: heroku-gem/2.30.3 (x86_64-darwin10.8.0) ruby/1.9.2
奇怪的是,昨天是一切就OK了,我能夠將我的本地數據庫推送到Heroku,沒有任何問題。 今天,我只是添加另一列到我的數據庫,並希望推它活 - 並得到這個錯誤。
我試圖推動數據庫直播3次,所有嘗試失敗。
哪裏可能有問題?
我記得有這樣一個問題,由於紅寶石版本本地和Heroku的不匹配:你碰巧使用1.9.3本地?如果你爲'db:push'切換到1.9.2,可能會有所幫助(假設你使用rvm,否則建議你使用rvm來做到這一點)。 – niels
我最終完成了修復工作,它可能是Heroku的一個呃逆。 – bcackerman