Project

General

Profile

Actions

Bug #10095

closed

db:seed failure

Added by Ohad Levy about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

when using nightly and foreman-tasks, after db seed the following is visible:

Seeding /home/foreman/git/foreman/db/seeds.d/03-auth_sources.rb
Seeding /home/foreman/git/foreman/db/seeds.d/03-permissions.rb
Seeding /home/foreman/git/foreman/db/seeds.d/03-roles.rb
Seeding /home/foreman/git/foreman/db/seeds.d/04-admin.rb
Seeding /home/foreman/git/foreman/db/seeds.d/05-taxonomies.rb
Seeding /home/foreman/git/foreman/db/seeds.d/06-architectures.rb
Seeding /home/foreman/git/foreman/db/seeds.d/07-config_templates.rb
Seeding /home/foreman/git/foreman/db/seeds.d/08-partition_tables.rb
Seeding /home/foreman/git/foreman/db/seeds.d/10-installation_media.rb
Seeding /home/foreman/git/foreman/db/seeds.d/11-smart_proxy_features.rb
Seeding /home/foreman/git/foreman/db/seeds.d/13-compute_profiles.rb
Seeding /home/foreman/git/foreman/db/seeds.d/15-bookmarks.rb
Seeding /home/foreman/git/foreman/db/seeds.d/16-mail_notifications.rb
Seeding /home/foreman/gems/foreman-tasks-0.6.13/db/seeds.d/20-foreman_tasks_permissions.rb
2015-04-08 16:19:11 [E] unknown klass , ignoring
2015-04-08 16:19:11 [E] undefined method `constantize' for nil:NilClass
2015-04-08 16:19:11 [E] /home/foreman/git/foreman/app/models/filter.rb:65:in `get_resource_class'
/home/foreman/git/foreman/app/models/filter.rb:91:in `resource_class'
/home/foreman/git/foreman/app/models/filter.rb:98:in `granular?'
/home/foreman/git/foreman/app/models/filter.rb:129:in `build_taxonomy_search'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:418:in `_run__4601721694709775706__validation__3276075363502049701__callbacks'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/foreman/gems/activemodel-3.2.21/lib/active_model/validations/callbacks.rb:53:in `run_validations!'
/home/foreman/gems/activemodel-3.2.21/lib/active_model/validations.rb:195:in `valid?'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/validations.rb:69:in `valid?'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/validations.rb:77:in `perform_validations'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/validations.rb:50:in `save'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/attribute_methods/dirty.rb:22:in `save'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/transactions.rb:259:in `block (2 levels) in save'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/transactions.rb:208:in `transaction'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/transactions.rb:259:in `block in save'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/transactions.rb:258:in `save'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/has_many_association.rb:17:in `insert_record'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/collection_association.rb:436:in `block (2 levels) in create_record'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/collection_association.rb:344:in `add_to_target'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/collection_association.rb:434:in `block in create_record'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/collection_association.rb:149:in `block in transaction'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/transactions.rb:208:in `transaction'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/collection_association.rb:148:in `transaction'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/collection_association.rb:433:in `create_record'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/collection_association.rb:119:in `create'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/associations/collection_proxy.rb:46:in `create'
/home/foreman/gems/foreman-tasks-0.6.13/db/seeds.d/20-foreman_tasks_permissions.rb:5:in `<top (required)>'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `block in load'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load'
/home/foreman/git/foreman/db/seeds.rb:69:in `block in <top (required)>'
/home/foreman/git/foreman/db/seeds.rb:67:in `each'
/home/foreman/git/foreman/db/seeds.rb:67:in `<top (required)>'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `block in load'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/foreman/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load'
/home/foreman/gems/railties-3.2.21/lib/rails/engine.rb:525:in `load_seed'
/home/foreman/gems/activerecord-3.2.21/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/home/foreman/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/home/foreman/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/home/foreman/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/home/foreman/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/home/foreman/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/opt/rh/ruby200/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
/home/foreman/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/foreman/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/foreman/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/home/foreman/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/home/foreman/bin/rake:23:in `load'
/home/foreman/bin/rake:23:in `<main>'
2015-04-08 16:19:11 [E] unknown klass , ignoring
2015-04-08 16:19:11 [E] undefined method `constantize' for nil:NilClass
2015-04-08 16:19:11 [E] /home/foreman/git/foreman/app/models/filter.rb:65:in `get_resource_class'

Actions #1

Updated by Marek Hulán over 6 years ago

  • Status changed from New to Closed

I suppose this is no longer reproducible, please reopen if you still encounter this.

Actions

Also available in: Atom PDF