Open link in a new tab

Content

Expand project menu

Installing plugin: Invalid DATABASE_URL

Disclaimer: My only previous experience with Ruby was writing a Vagrant file.

So I’ve installed Open Project on an Ubuntu 14.04 server and the core functionality works. Then I proceeded by installing the backlog and pdf-export plugins by adding it to the Gemfile.plugins in /opt/openproject. This poses to be more of a challenge.

More precisely: the database migrations fail, because the environment variable DATABASE_URL is not set. How can I find out what the database url should be? Should I set it myself, or should I run the statement below from a different context? I am already the openproject user.

openproject@puck548:/opt/openproject$ RAILS_ENV="production" rake db:migrate            
require 'rails/all'... 0.410s
Bundler.require... 1.180s
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/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/Rakefile:35)
Application.initialize!... rake aborted!
Invalid DATABASE_URL
(erb):9:in `rescue in <main>'
(erb):6:in `<main>'
/opt/openproject/config/environment.rb:36:in `block in <top (required)>'
/opt/openproject/config/application.rb:44:in `block in bench'
/opt/openproject/config/application.rb:43:in `bench'
/opt/openproject/config/environment.rb:34:in `<top (required)>'
URI::InvalidURIError: bad URI(is not URI?): 
(erb):7:in `<main>'
/opt/openproject/config/environment.rb:36:in `block in <top (required)>'
/opt/openproject/config/application.rb:44:in `block in bench'
/opt/openproject/config/application.rb:43:in `bench'
/opt/openproject/config/environment.rb:34:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Message actions

Hello Jeroen,

did you consider installing the packaged installation of OpenProject?
The packaged community edition includes the official plugins (including backlogs and pdf-export).