Added by Jacob A over 5 years ago
I'm using OpenProject via its Docker container (using the openproject/community:8
image). I'm trying to figure out what the password for the Postgres database is (e.g., for connecting using psql
).
Is there a default username and password for the Postgres database?
Replies (4)
Hi Jacob,
the postgres password is determined by
$PGPASSWORD
and defaults back topostgres
https://github.com/opf/openproject/blob/dev/docker/supervisord#L18
Best,
Oliver
Thank you very much for your response!
For anyone else reading this in the future, I haven't yet been able to get password-based authentication as described above working (with
psql -U postgres -W
using theroot
account of my Docker container). However, following this guide, I was able to connect by runningsu postgres; psql
.Hi Jacob A Oliver Günther,
When I migrating my packaged OpenProject installation (master on Windows Hyper-V virtual system Debian 12) to another environment (direct copy slave on Windows Hyper-V virtual system Debian 12):
Here is my steps:
upload four archive files from master backup to slave backup:
run restore commands for 3 kind of archives:
modify configure files:
then run database restore command:
But I get a error message, what can I do to fix this problem:
Hi Jacob A,
I can give the answer after testing, you can get the account and password of PostgreSQL openproject database like this:
The "openproject" is default account name, the "WwjMpsjVnWGMWB88AjVvq2GhQAiWYEsS" is the clear-text password.
In fact, you can use this command to log into the database as root account without the password entered: