Created
April 4, 2013 19:04
-
-
Save danhorst/5313191 to your computer and use it in GitHub Desktop.
Sufia load error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TEMPORARY SOLUTION | |
| `rm spec/factories/senior_thesis_factory.rb` | |
| `bundle exec rake db:drop db:create db:migrate` | |
| `git co -- spec/factories/senior_thesis_factory.rb` | |
| PROBLEM | |
| When the factory for senior thesis loads without the database table 'local_authorities' present it fails: | |
| spec/factories/senior_thesis_factory.rb | |
| It appears to stem from how the RDF datastreams registers local authorities. | |
| sufia/app/models/datastreams/generic_file_rdf_datastream.rb | |
| sufia/app/models/local_authority.rb | |
| The full stack trace is attached. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/Workspace/curate_nd javascript-sanity * $ r db:drop db:create db:migrate --trace | |
| ** Invoke db:drop (first_time) | |
| ** Invoke db:load_config (first_time) | |
| ** Execute db:load_config | |
| ** Invoke rails_env (first_time) | |
| ** Execute rails_env | |
| ** Execute db:drop | |
| ** Invoke db:create (first_time) | |
| ** Invoke db:load_config | |
| ** Invoke rails_env | |
| ** Execute db:create | |
| ** Invoke db:migrate (first_time) | |
| ** Invoke environment (first_time) | |
| ** Execute environment | |
| rake aborted! | |
| Mysql2::Error: Table 'curate_nd_development.local_authorities' doesn't exist: SHOW FULL FIELDS FROM `local_authorities` | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/mysql2_adapter.rb:211:in `execute' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:259:in `execute_and_free' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:426:in `columns' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/model_schema.rb:228:in `yield' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/model_schema.rb:228:in `default' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/model_schema.rb:228:in `columns' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/model_schema.rb:248:in `column_names' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/model_schema.rb:261:in `column_methods_hash' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/dynamic_matchers.rb:74:in `all_attributes_exists?' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activerecord-3.2.11/lib/active_record/dynamic_matchers.rb:27:in `method_missing' | |
| /opt/rvm/gems/ruby-1.9.3-p194@curate_nd/bundler/gems/sufia-bce6587bdc73/app/models/local_authority.rb:62:in `register_vocabulary' | |
| /opt/rvm/gems/ruby-1.9.3-p194@curate_nd/bundler/gems/sufia-bce6587bdc73/app/models/datastreams/generic_file_rdf_datastream.rb:68:in `<class:GenericFileRdfDatastream>' | |
| /opt/rvm/gems/ruby-1.9.3-p194@curate_nd/bundler/gems/sufia-bce6587bdc73/app/models/datastreams/generic_file_rdf_datastream.rb:15:in `<top (required)>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:234:in `block in load_dependency' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:639:in `new_constants_in' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:234:in `load_dependency' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require' | |
| /opt/rvm/gems/ruby-1.9.3-p194@curate_nd/bundler/gems/sufia-bce6587bdc73/lib/sufia/generic_file.rb:1:in `<top (required)>' | |
| /opt/rvm/gems/ruby-1.9.3-p194@curate_nd/bundler/gems/sufia-bce6587bdc73/app/models/generic_file.rb:15:in `<class:GenericFile>' | |
| /opt/rvm/gems/ruby-1.9.3-p194@curate_nd/bundler/gems/sufia-bce6587bdc73/app/models/generic_file.rb:14:in `<top (required)>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:234:in `block in load_dependency' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:639:in `new_constants_in' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:234:in `load_dependency' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require' | |
| /home/dbrubak1/Workspace/curate_nd/app/repository_models/generic_file.rb:1:in `<top (required)>' | |
| /home/dbrubak1/Workspace/curate_nd/app/repository_models/senior_thesis.rb:2:in `require_relative' | |
| /home/dbrubak1/Workspace/curate_nd/app/repository_models/senior_thesis.rb:2:in `<top (required)>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:469:in `load' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:469:in `block in load_file' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:639:in `new_constants_in' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:468:in `load_file' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:353:in `require_or_load' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:502:in `load_missing_constant' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:192:in `block in const_missing' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:190:in `each' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:190:in `const_missing' | |
| /home/dbrubak1/Workspace/curate_nd/spec/factories/senior_thesis_factory.rb:2:in `block in <top (required)>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl-4.2.0/lib/factory_girl/syntax/default.rb:49:in `instance_eval' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl-4.2.0/lib/factory_girl/syntax/default.rb:49:in `run' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl-4.2.0/lib/factory_girl/syntax/default.rb:7:in `define' | |
| /home/dbrubak1/Workspace/curate_nd/spec/factories/senior_thesis_factory.rb:1:in `<top (required)>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl-4.2.0/lib/factory_girl/find_definitions.rb:20:in `block (2 levels) in find_definitions' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl-4.2.0/lib/factory_girl/find_definitions.rb:19:in `each' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl-4.2.0/lib/factory_girl/find_definitions.rb:19:in `block in find_definitions' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl-4.2.0/lib/factory_girl/find_definitions.rb:15:in `each' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl-4.2.0/lib/factory_girl/find_definitions.rb:15:in `find_definitions' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/factory_girl_rails-4.2.0/lib/factory_girl_rails/railtie.rb:29:in `block in <class:Railtie>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:34:in `call' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:42:in `each' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing' | |
| /home/dbrubak1/Workspace/curate_nd/config/environment.rb:5:in `<top (required)>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/application.rb:103:in `require_environment!' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/gems/railties-3.2.11/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:228:in `call' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:228:in `block in execute' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:223:in `each' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:223:in `execute' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:166:in `block in invoke_with_call_chain' | |
| /opt/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:187:in `block in invoke_prerequisites' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:185:in `each' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:185:in `invoke_prerequisites' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:165:in `block in invoke_with_call_chain' | |
| /opt/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/task.rb:152:in `invoke' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:143:in `invoke_task' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:101:in `block (2 levels) in top_level' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:101:in `each' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:101:in `block in top_level' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:110:in `run_with_threads' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:95:in `top_level' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:73:in `block in run' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/lib/rake/application.rb:70:in `run' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-10.0.3/bin/rake:33:in `<top (required)>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `load' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `<main>' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/bin/ruby_noexec_wrapper:14:in `eval' | |
| /home/dbrubak1/.rvm/gems/ruby-1.9.3-p194@curate_nd/bin/ruby_noexec_wrapper:14:in `<main>' | |
| Tasks: TOP => db:migrate => environment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment