Content
Creating Database Issues
Added by Jorge Rodarte almost 11 years ago
Hi,
I have come to the point in the openproject installation where I have to create the databases ( bundle exec rake db:create:all,bundle exec rake db:migrate and bundle exec rake db:seed), but I can’t get them to install correctly. I keep getting a rake aborted. I also tried using RAILS_ENV=“production” bundle exec but with no success.
jorge@ubuntu:~/openproject$ RAILS_ENV=“production” bundle exec rake db:migrate db:seed
require ‘rails/all’… 1.260s
Bundler.require… 3.180s
Application.initialize!… rake aborted!
(): could not find expected ‘:’ while scanning a simple key at line 36 column 3
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/application/configuration.rb:115:in `database_configuration’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/railtie.rb:84:in `block (2 levels) in class:Railtie’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:25:in `each’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:25:in `on_load’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/railtie.rb:80:in `block in class:Railtie’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing’
/home/jorge/openproject/config/environment.rb:34:in `block in <top (required)>’
/home/jorge/openproject/config/application.rb:42:in `block in bench’
/home/jorge/openproject/config/application.rb:41:in `bench’
/home/jorge/openproject/config/environment.rb:32:in `<top (required)>’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/application.rb:103:in `require_environment!’
/home/jorge/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks’
Tasks: TOP => db:migrate => environment
(See full trace by running task with —trace)
Replies (1)
Hello Jorge,
according to the error message there seems something wrong in the
database.yml
(maybe a typo). If you don’t find anything obvious you may post yourdatabase.yml
here but don’t forget to replace you credentials.Kind regards,
Hagen