railsyard / railsyardcms

Railsyard - One Ruby on Rails CMS to rule them all!
www.railsyardcms.org
Other
95 stars 7 forks source link

rake fails when i try to seed the database #25

Closed bogdanRada closed 12 years ago

bogdanRada commented 12 years ago

i runned rake db:migrate db:test:prepare....after doing a bundle install and then i tried to run rake db:seed ...and i got following error: Please let me know what am i doing wrong

[railsyardcms-master]$ rake db:seed --trace /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/bundler-1.2.1/lib/bundler/runtime.rb:197: warning: Insecure world writable dir /home/bogdan in PATH, mode 040777 DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActionView::Base instead. (called from <top (required)> at /home/bogdan/Desktop/railsyardcms-master/config/application.rb:8) DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ThemesForRails::AssetsController instead. (called from <top (required)> at /home/bogdan/Desktop/railsyardcms-master/config/application.rb:8) DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActionController::Base instead. (called from <top (required)> at /home/bogdan/Desktop/railsyardcms-master/config/application.rb:8) DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActionController::Base instead. (called from <top (required)> at /home/bogdan/Desktop/railsyardcms-master/config/application.rb:8) WARNING: Cucumber-rails required outside of env.rb. The rest of loading is being defered until env.rb is called. To avoid this warning, move 'gem cucumber-rails' under only group :test in your Gemfile * Invoke db:seed (first_time) * Execute db:seed * Invoke db:abort_if_pending_migrations (first_time) * Invoke environment (first_time) * Execute environment * Execute db:abort_if_pending_migrations ------------------------- Creating root language page 'it' ------------------------- ------------------------- Creating root language page 'en' ------------------------- ------------------------- Creating root language page 'de' ------------------------- ------------------------- Creating role 'admin' ------------------------------------ ------------------------- Creating role 'article_writer' ------------------------------------ ------------------------- Creating role 'premium_user' ------------------------------------ ------------------------- Creating role 'registered_user' ------------------------------------ rake aborted! couldn't parse YAML at line 358 column 14 /home/bogdan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in parse' /home/bogdan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:inparse_stream' /home/bogdan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:119:in parse' /home/bogdan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:106:inload' /home/bogdan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:205:in load_file' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n/backend/base.rb:171:inload_yml' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n/backend/base.rb:157:in load_file' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n/backend/base.rb:15:inblock in load_translations' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n/backend/base.rb:15:in each' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n/backend/base.rb:15:inload_translations' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n/backend/simple.rb:57:in init_translations' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n/backend/simple.rb:71:inlookup' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n/backend/base.rb:26:in translate' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n.rb:156:inblock in translate' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n.rb:152:in catch' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/i18n-0.6.0/lib/i18n.rb:152:intranslate' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/naming.rb:57:in human' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/errors.rb:346:ingenerate_message' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/errors.rb:359:in normalize_message' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/errors.rb:234:inadd' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/validations/uniqueness.rb:34:in validate_each' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/validator.rb:153:inblock in validate' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/validator.rb:150:in each' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/validator.rb:150:invalidate' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:310:in _callback_before_144' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:484:in_run535401963validate321778665callbacks' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in __run_callback' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in_run_validate_callbacks' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in run_callbacks' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/validations.rb:212:inrun_validations!' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/validations/callbacks.rb:53:in block in run_validations!' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:403:in_run535401963validation321778665callbacks' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in __run_callback' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in_run_validation_callbacks' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in run_callbacks' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/validations/callbacks.rb:53:inrun_validations!' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activemodel-3.2.1/lib/active_model/validations.rb:179:in valid?' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/validations.rb:69:invalid?' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/validations.rb:77:in perform_validations' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/validations.rb:50:insave' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/attribute_methods/dirty.rb:22:in save' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/transactions.rb:241:inblock (2 levels) in save' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/transactions.rb:295:in block in with_transaction_returning_status' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:190:intransaction' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/transactions.rb:208:in transaction' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/transactions.rb:293:inwith_transaction_returning_status' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/transactions.rb:241:in block in save' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/transactions.rb:252:inrollback_active_record_state!' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/transactions.rb:240:in save' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/persistence.rb:45:increate' /home/bogdan/Desktop/railsyardcms-master/db/seeds.rb:7:in block in <top (required)>' /home/bogdan/Desktop/railsyardcms-master/db/seeds.rb:5:ineach' /home/bogdan/Desktop/railsyardcms-master/db/seeds.rb:5:in <top (required)>' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:inload' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in block in load' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:inload_dependency' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in load' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/railties-3.2.1/lib/rails/engine.rb:520:inload_seed' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/activerecord-3.2.1/lib/active_record/railties/databases.rake:306:in block (2 levels) in <top (required)>' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/task.rb:205:incall' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/task.rb:205:in block in execute' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/task.rb:200:ineach' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/task.rb:200:in execute' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/task.rb:158:inblock in invoke_with_call_chain' /home/bogdan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/task.rb:151:ininvoke_with_call_chain' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/task.rb:144:in invoke' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:116:ininvoke_task' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block (2 levels) in top_level' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:94:ineach' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block in top_level' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:88:in top_level' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:66:inblock in run' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/lib/rake/application.rb:63:inrun' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/gems/rake-0.9.2.2/bin/rake:33:in <top (required)>' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/bin/rake:23:inload' /home/bogdan/.rvm/gems/ruby-1.9.2-p290@railsyard/bin/rake:23:in `

' Tasks: TOP => db:seed

nebirhos commented 12 years ago

It's an error due to the new YAML syntax, you should change the faulty line with

order: [ day, month, year ]
bogdanRada commented 12 years ago

thanks, that solved my problem :)