Sign up Sign in Samples Blog contact support
Rake:Migrate failure

Support Ticket

answered
 
+issue

I did the bundle update to get 1.17. Then I tried to run the rake:migrate. This is a different error than previously.

 

== 20150610171702 AddDebuggerSessionCard: migrating ===========================

rake aborted!

StandardError: An error has occurred, all later migrations canceled:

 

undefined method `read_local' for #<Card::Cache:0xc239e14>/srv/www.teenwolfwiki.com/tmp/set/mod001-01_core/all/fetch.rb:146:in `fetch_from_cache'

/srv/www.teenwolfwiki.com/tmp/set/mod001-01_core/all/fetch.rb:188:in `fetch_from_cache_by_key'

/srv/www.teenwolfwiki.com/tmp/set/mod001-01_core/all/fetch.rb:167:in `fetch_existing'

/srv/www.teenwolfwiki.com/tmp/set/mod001-01_core/all/fetch.rb:32:in `fetch'

/srv/www.teenwolfwiki.com/tmp/set/mod001-01_core/all/fetch.rb:77:in `assign_or_initialize_by'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/subcards.rb:221:in `new_by_attributes'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/subcards.rb:84:in `block in add'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/subcards.rb:82:in `each_pair'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/subcards.rb:82:in `add'

/srv/www.teenwolfwiki.com/tmp/set/mod001-01_core/all/tracked_attributes.rb:23:in `assign_attributes'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/core.rb:566:in `init_attributes'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/core.rb:281:in `initialize'

/srv/www.teenwolfwiki.com/tmp/set/mod001-01_core/all/initialize.rb:23:in `initialize'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/inheritance.rb:61:in `new'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/inheritance.rb:61:in `new'

/srv/www.teenwolfwiki.com/tmp/set/mod001-01_core/all/initialize.rb:12:in `new'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/persistence.rb:50:in `create!'

/var/lib/gems/1.9.1/gems/card-1.17.0/db/migrate_core_cards/20150610171702_add_debugger_session_card.rb:5:in `up'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/migration.rb:116:in `block in exec_migration'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/migration.rb:71:in `block (3 levels) in contentedly'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/transactions.rb:220:in `transaction'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/migration.rb:69:in `block (2 levels) in contentedly'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/auth.rb:143:in `as'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/auth.rb:152:in `as_bot'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/migration.rb:68:in `block in contentedly'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/cardio.rb:170:in `schema_mode'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/migration.rb:67:in `contentedly'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/card/migration.rb:116:in `exec_migration'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:591:in `block in migrate'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:590:in `migrate'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:768:in `migrate'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:998:in `block in execute_migration_in_transaction'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:1046:in `ddl_transaction'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:997:in `execute_migration_in_transaction'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:959:in `block in migrate'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:955:in `each'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:955:in `migrate'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:823:in `up'

/var/lib/gems/1.9.1/gems/activerecord-4.2.5/lib/active_record/migration.rb:801:in `migrate'

/var/lib/gems/1.9.1/gems/wagn-1.17.0/lib/wagn/tasks/wagn.rake:178:in `block (4 levels) in <top (required)>'

/var/lib/gems/1.9.1/gems/card-1.17.0/lib/cardio.rb:170:in `schema_mode'

/var/lib/gems/1.9.1/gems/wagn-1.17.0/lib/wagn/tasks/wagn.rake:176:in `block (3 levels) in <top (required)>'

/var/lib/gems/1.9.1/gems/wagn-1.17.0/lib/wagn/tasks/wagn.rake:123:in `block (2 levels) in <top (required)>'

Tasks: TOP => wagn:migrate

(See full trace by running task with --trace)

 
+discussion

did you run `wagn update`? (see updating)

--Ethan McCutchen.....2016-01-24 00:23:59 UTC

(running `rake db:migrate` or `rake wagn:migrate` directly can cause problems

--Ethan McCutchen.....2016-01-24 00:24:57 UTC

I thought it was supposed to be bundle update, rake wagn:migrate, then wagn update. I had done just bundle update then wagn update, but that's how I ended up with no images, so I thought that was wrong. I can run wagn update now.

--Lora Friedenthal.....2016-01-24 00:35:39 UTC

Hurrah! Nearly everything is back where it should be!

--Lora Friedenthal.....2016-01-24 18:49:41 UTC