Open link in a new tab

Content

Expand project menu

key not found: "DATABASE_URL" (KeyError)

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.

Message actions

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