Content
[Solved] Fresh Packaged Install 4.2.6 Error on sudo openproject-ce run rake db:seed - RHEL
Added by naveen vjnn over 9 years ago
Hello
OS : RHEL 6.4 64 Bit
Followed Packaged Installation as in
https://www.openproject.org/open-source/packaged-installation/packaged-installation-community/
I was not able to Login as ADMIN user ..
Figured out that … and ran as below …
[root@po-pms ~]# export RAILS_ENV=production
[root@po-pms ~]# sudo openproject-ce run rake db:seed
But I keep receiving the error ..
# sudo openproject-ce run rake db:seed —trace
require ‘rails/all’… 0.360s
Bundler.require… 1.400s
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /opt/openproject-ce/Rakefile:35)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /opt/openproject-ce/Rakefile:35)
**** Invoke db:seed (first_time)
**** Execute db:seed
**** Invoke db:abort_if_pending_migrations (first_time)
**** Invoke environment (first_time)
**** Execute environment
Application.initialize!… [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
fatal: Not a git repository (or any of the parent directories): .git
3.130s
**** Invoke db:load_config (first_time)
**** Execute db:load_config
**** Execute db:abort_if_pending_migrations
***** Seeding for locale: ‘en’
***** Loading all seed data
**** builtin_roles
**** admin_user
rake aborted!*
ActiveRecord::RecordInvalid: Validation failed: Email is invalid*
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/validations.rb:56:in `save!’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/attribute_methods/dirty.rb:33:in `save!’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:264:in `block in save!’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in `transaction’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:311:in `with_transaction_returning_status’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:264:in `save!’
/opt/openproject-ce/db/seeds/admin_user.rb:42:in `<top (required)>’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject-ce/db/seeds/all.rb:36:in `block in <top (required)>’
/opt/openproject-ce/db/seeds/all.rb:33:in `each’
/opt/openproject-ce/db/seeds/all.rb:33:in `<top (required)>’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject-ce/db/seeds.rb:71:in `block in <top (required)>’
/opt/openproject-ce/db/seeds.rb:67:in `each’
/opt/openproject-ce/db/seeds.rb:67:in `<top (required)>’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:245:in `load’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:245:in `block in load’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:245:in `load’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/railties-3.2.22/lib/rails/engine.rb:525:in `load_seed’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.22/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `call’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain’
/opt/openproject-ce/vendor/ruby-2.1.6/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/bin/rake:23:in `load’
/opt/openproject-ce/vendor/bundle/ruby/2.1.0/bin/rake:23:in `
’
Tasks: TOP => db:seed
Replies (1)
Managed to get it working .. I did a reconfigure and ensured the values entered are right
Thanks