heroku db:拉错误

时间:2011-04-05 23:58:21

标签: ruby-on-rails postgresql heroku

好吧,我曾经能够使用heroku pushpull,但它只是让我升级水龙头,所以我做到了。一旦我这样做,当我尝试db:pull

时,我开始收到类似这样的错误
Receiving schema
    /Library/Ruby/Gems/1.8/gems/taps-0.3.21/bin/schema:3:
    in `require': no such file to load -- rubygems (LoadError)

    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/bin/schema:3
    /Library/Ruby/Gems/1.8/gems/taps-0.3.21/bin/schema:3:
    in `require': no such file to load -- rubygems (LoadError)

    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/bin/schema:3
    /Library/Ruby/Gems/1.8/gems/taps-0.3.21/bin/schema:3:
    in `require': no such file to load -- rubygems (LoadError)

    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/bin/schema:3

Schema:        100% |==========================================| Time: 00:00:07
Receiving indexes
/Library/Ruby/Gems/1.8/gems/taps-0.3.21/bin/schema:3:
in `require': no such file to load -- rubygems (LoadError)
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/bin/schema:3
schema_migrat: 100% |==========================================| Time: 00:00:00
Receiving data
3 tables, 600 records
/Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/errors.rb:62:
in `check': SQLite3::SQLException: PRIMARY KEY must be unique (Sequel::DatabaseError)
    from /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/resultset.rb:56:in `check'
    from /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/resultset.rb:48:in `commence'
    from /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/resultset.rb:38:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/statement.rb:136:in `new'
    from /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/statement.rb:136:in `execute'
    from /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/database.rb:232:in `execute_batch'
    from /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/database.rb:163:in `prepare'
    from /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3/database.rb:231:in `execute_batch'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/adapters/sqlite.rb:130:in `_execute'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/database/logging.rb:28:in `log_yield'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/adapters/sqlite.rb:130:in `_execute'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/connection_pool/threaded.rb:71:in `hold'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/database/connecting.rb:226:in `synchronize'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/adapters/sqlite.rb:117:in `_execute'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/adapters/sqlite.rb:87:in `execute_dui'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/dataset/actions.rb:552:in `execute_dui'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/dataset/actions.rb:243:in `import'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/dataset/actions.rb:243:in `each'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/dataset/actions.rb:243:in `import'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/database/query.rb:223:in `_transaction'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/database/query.rb:209:in `transaction'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/connection_pool/threaded.rb:84:in `hold'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/database/connecting.rb:226:in `synchronize'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/database/query.rb:207:in `transaction'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.20.0/lib/sequel/dataset/actions.rb:243:in `import'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/data_stream.rb:315:in `import_rows'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/data_stream.rb:142:in `fetch_remote'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:308:in `pull_data_from_table'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:301:in `loop'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:301:in `pull_data_from_table'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:284:in `pull_data'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:278:in `each'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:278:in `pull_data'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:253:in `run'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:203:in `call'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:203:in `catch_errors'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/operation.rb:246:in `run'
    from /Library/Ruby/Gems/1.8/gems/taps-0.3.21/lib/taps/cli.rb:171:in `clientxfer'
    from /Library/Ruby/Gems/1.8/gems/heroku-1.19.1/lib/heroku/commands/db.rb:152:in `taps_client'
    from /Library/Ruby/Gems/1.8/gems/heroku-1.19.1/lib/heroku/commands/db.rb:25:in `pull'
    from /Library/Ruby/Gems/1.8/gems/heroku-1.19.1/lib/heroku/command.rb:49:in `send'
    from /Library/Ruby/Gems/1.8/gems/heroku-1.19.1/lib/heroku/command.rb:49:in `run_internal'
    from /Library/Ruby/Gems/1.8/gems/heroku-1.19.1/lib/heroku/command.rb:21:in `run'
    from /Library/Ruby/Gems/1.8/gems/heroku-1.19.1/bin/heroku:13
    from /usr/bin/heroku:19:in `load'
    from /usr/bin/heroku:19

最终我最终尝试升级所有内容,包括:
续集
Heroku的
RubyGems的
当然还有水龙头

1 个答案:

答案 0 :(得分:0)

答案是重启我的webrick服务器,天哪,我感到愚蠢。