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

      OpenProject ID 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. Installing plugin: Invalid DATABASE_URL

Installing plugin: Invalid DATABASE_URL

Added by Jeroen Vlek over 10 years ago

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)

Replies (1)

RE: Installing plugin: Invalid DATABASE_URL - Added by Robin Wagner over 10 years ago

Hello Jeroen,

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

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