Project

General

Profile

Bug #5394

Seed fails with nightly

Added by Lukas Zapletal about 5 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Steps to repro:

1. rm db/development.sqlite3
2. be rake db:migrate db:seed

** Execute db:abort_if_pending_migrations
Seeding /home/lzap/work/foreman/db/seeds.d/05-architectures.rb
Seeding /home/lzap/work/foreman/db/seeds.d/07-config_templates.rb
Seeding /home/lzap/work/foreman/db/seeds.d/08-partition_tables.rb
Seeding /home/lzap/work/foreman/db/seeds.d/10-installation_media.rb
Seeding /home/lzap/work/foreman/db/seeds.d/11-smart_proxy_features.rb
Seeding /home/lzap/work/foreman/db/seeds.d/12-auth_sources.rb
rake aborted!
undefined method `password_salt=' for #<User:0x007fa80062d720>
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activemodel-3.2.17/lib/active_model/attribute_methods.rb:407:in `method_missing'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/attribute_methods.rb:149:in `method_missing'
/home/lzap/work/foreman/app/models/user.rb:344:in `prepare_password'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:429:in `_run__3073120337653739746__validation__1620069013216718810__callbacks'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activemodel-3.2.17/lib/active_model/validations/callbacks.rb:53:in `run_validations!'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activemodel-3.2.17/lib/active_model/validations.rb:195:in `valid?'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/validations.rb:69:in `valid?'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/validations.rb:77:in `perform_validations'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/validations.rb:50:in `save'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/attribute_methods/dirty.rb:22:in `save'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/transactions.rb:259:in `block (2 levels) in save'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/transactions.rb:208:in `transaction'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/transactions.rb:259:in `block in save'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/transactions.rb:258:in `save'
/home/lzap/work/foreman/db/seeds.d/12-auth_sources.rb:14:in `block (2 levels) in <top (required)>'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/audited-3.0.0/lib/audited/auditor.rb:250:in `call'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/audited-3.0.0/lib/audited/auditor.rb:250:in `without_auditing'
/home/lzap/work/foreman/db/seeds.d/12-auth_sources.rb:8:in `block in <top (required)>'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/audited-3.0.0/lib/audited/auditor.rb:250:in `call'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/audited-3.0.0/lib/audited/auditor.rb:250:in `without_auditing'
/home/lzap/work/foreman/db/seeds.d/12-auth_sources.rb:1:in `<top (required)>'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `load'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `block in load'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `load'
/home/lzap/work/foreman/db/seeds.rb:53:in `block in <top (required)>'
/home/lzap/work/foreman/db/seeds.rb:51:in `each'
/home/lzap/work/foreman/db/seeds.rb:51:in `<top (required)>'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `load'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `block in load'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `load'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.17/lib/rails/engine.rb:525:in `load_seed'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.17/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in `each'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:149:in `invoke_task'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in `each'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in `block in top_level'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:115:in `run_with_threads'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:100:in `top_level'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:78:in `block in run'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
/home/lzap/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'
/home/lzap/.rbenv/versions/2.0.0-p247/bin/rake:23:in `load'
/home/lzap/.rbenv/versions/2.0.0-p247/bin/rake:23:in `<main>'

History

#1 Updated by Dominic Cleal about 5 years ago

  • Status changed from New to Rejected

Happens with or without bootdisk. Don't run both seed and migrations in one command, the models are in a mess after migrations.

Also available in: Atom PDF