геройку дб: вытащить ошибки - PullRequest
0 голосов
/ 06 апреля 2011

Ну, я имел обыкновение иметь возможность push и pull с герою, но он просто попросил меня обновить метчики, так что я сделал.Как только я сделал это, я начал получать ошибки, которые выглядят так, когда я пытаюсь 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
рубинов
и, конечно, отводов

1 Ответ

0 голосов
/ 21 сентября 2011

Ответ состоял в том, чтобы перезапустить мой сервер Webrick, черт возьми, я чувствую себя глупым.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...