#83 ✓resolved
fitz

Initial Seed Throws Error

Reported by fitz | July 18th, 2009 @ 02:47 AM

[root powerdns-on-rails]# RAILS_ENV=development rake db:seed --trace (in /root/git-1.6.3.3/powerdns-on-rails) Invoke db:seed (first_time) Invoke environment (first_time) Execute environment Execute db:seed

== Seeding from example_dot_star.rb ======================== - Domain {:name=>"example.com"} - NS {:domain_id=>1, :content=>"ns1.example.com."} - NS {:domain_id=>1, :content=>"ns2.example.com."} - A {:name=>"ns1.example.com", :domain_id=>1} - A {:name=>"ns2.example.com", :domain_id=>1} - A {:name=>"@.example.com", :domain_id=>1} - MX {:name=>"@.example.com", :domain_id=>1}

- A {:name=>"mail.example.com", :domain_id=>1}

== Seeding from templates.rb =============================== - ZoneTemplate {:name=>"East Coast Data Center"} rake aborted!
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.name
/root/git-1.6.3.3/powerdns-on-rails/app/models/record.rb:101:in append_domain_name!' /root/git-1.6.3.3/powerdns-on-rails/app/models/record.rb:69:inbefore_validation_without_content' /root/git-1.6.3.3/powerdns-on-rails/app/models/soa.rb:111:in before_validation' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/callbacks.rb:347:insend' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/callbacks.rb:347:in callback' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/callbacks.rb:311:invalid?' /root/git-1.6.3.3/powerdns-on-rails/app/models/record_template.rb:96:in validate' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/validations.rb:1030:invalid_without_callbacks?' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/callbacks.rb:315:in valid?' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/validations.rb:1018:insave_without_dirty!' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/dirty.rb:87:in save_without_transactions!' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/transactions.rb:200:insave!' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in transaction' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/transactions.rb:182:intransaction' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in save!' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/transactions.rb:208:inrollback_active_record_state!' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in save!' /root/git-1.6.3.3/powerdns-on-rails/vendor/plugins/seed-fu/lib/seeder.rb:34:inplant!' /root/git-1.6.3.3/powerdns-on-rails/vendor/plugins/seed-fu/lib/seeder.rb:7:in plant' /root/git-1.6.3.3/powerdns-on-rails/vendor/plugins/seed-fu/lib/seeder.rb:71:inseed' /root/git-1.6.3.3/powerdns-on-rails/db/fixtures/templates.rb:6 /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in load_without_new_constant_marking' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:inload' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in new_constants_in' /root/git-1.6.3.3/powerdns-on-rails/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:inload' /root/git-1.6.3.3/powerdns-on-rails/vendor/plugins/seed-fu/tasks/seed_fu_tasks.rake:6 /root/git-1.6.3.3/powerdns-on-rails/vendor/plugins/seed-fu/tasks/seed_fu_tasks.rake:4:in each' /root/git-1.6.3.3/powerdns-on-rails/vendor/plugins/seed-fu/tasks/seed_fu_tasks.rake:4 /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/local/bin/rake:19:in load' /usr/local/bin/rake:19 [root powerdns-on-rails]#

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

This issue tracker has been deprecated. Please use the Github issue tracker at https://github.com/kennethkalmer/powerdns-on-rails/issues

Thank you

People watching this ticket

Pages