Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Creating Database Issues

Creating Database Issues

Added by Jorge Rodarte about 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)

RE: Creating Database Issues - Added by Hagen Schink about 11 years ago

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 your database.yml here but don’t forget to replace you credentials.

Kind regards,
Hagen

  • (1 - 1/1)
Loading...