2010-06-30 43 views
-1

我試圖做一個錯誤,而試圖推動數據庫的Heroku

$heroku db:push 

這是錯誤我得到

C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138:in `union': can't convert Array into 
String (TypeError) 
     from C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138 
     from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' 
     from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' 
     from C:/Ruby/lib/ruby/gems/1.8/gems/taps-0.3.9/lib/taps/multipart.rb:2 
     from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' 
     from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' 
     from C:/Ruby/lib/ruby/gems/1.8/gems/taps-0.3.9/lib/taps/data_stream.rb:2 
     from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' 
     ... 8 levels... 
     from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.11/lib/heroku/command.rb:20:in `run' 
     from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.11/bin/heroku:13 
     from C:/Ruby/bin/heroku:19:in `load' 
     from C:/Ruby/bin/heroku:19 

這是一個全新的MySQL開發的數據庫,水龍頭寶石安裝。我已將這個相同的數據庫推送到多個其他heroku應用程序,這些應用程序都已被刪除。

+1

你能爲這個問題提供一些背景嗎?這是您之前從Heroku提取的數據庫,還是您開發環境中的全新數據庫?目前它的格式是什麼?你安裝了水龍頭寶石? – bjg 2010-06-30 22:03:38

+0

他似乎有水龍頭-0.3.9安裝(從堆棧跟蹤判斷) - 但是,它看起來像多一點信息將有助於 – stephenmurdoch 2010-07-01 01:23:05

回答

1

您是否檢查過機架寶石的version

嘗試使機架(1.0.1)

i.e gem uninstall rack <version number> 
then gem install rack 1.0.1 

希望這有助於

問候,

SAURABH