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. key not found: "DATABASE_URL" (KeyError)

key not found: "DATABASE_URL" (KeyError)

Added by Nikos Frangakis about 6 years ago

Hello,

my openproject installation reports on the website:

Web application could not be started

Cannot load database configuration: key not found: "DATABASE_URL" (KeyError)

running in a shell:

$ openproject config:get DATABASE_URL
postgres://openproject:xxxxxxxxxx@127.0.0.1:45432/openproject

which is right. If i had to guess, i would say that the installation is not reading the environmental variables. Can it be so?

Environment:
Debian 9 stable,
Openproject installation through the official procedure.


Replies (1)

RE: key not found: "DATABASE_URL" (KeyError) - Added by dd 0815 about 5 years ago

Hi,

I have the same problem:

[ E 2020-05-14 13:29:25.3260 14065/Tj age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application/opt/openproject: The application encountered the following error: Cannot load database configuration:
key not found: "DATABASE_URL" (KeyError)

Tried manually to set DATABASE_URL (this and many more variants):

sudo openproject config:set DATABASE_URL="postgresql://openproject:test@127.0.0.1:5432/openproject"

Trying to install openproject for days now (Redmine btw for weeks), it´s so frustrating with this ruby/rails/passenger/rmv/bundle/... stuff. Why is so complicated installing this? All is always described as easy/clear/fantastic... Clicked through 1000 pages, not one of these hacks work... Did I meantioned that I´m frustrated ;-)

Hope somebody has a hint,
dd0815

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