mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 11:21:03 +03:00
'Role "ghostly" does not exist' error during database initialization #142
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @egglessness on GitHub (Nov 22, 2021).
Hi folks! First and foremost, thank you for sharing this awesome project!
I'm trying to set up a development instance, but unfortunately I'm unable to get the database working.
I've started the postgres container using
docker-compose -f docker-compose.dev.yml, but when I run thenpm run server:db:initcommand, the app crashes saying:error: role "ghostly" does not exist.The same error message appears in the log from postgres:
FATAL: role "ghostly" does not exist.As far as I understand, the apps seems to be able to talk with the db container, but the authentication fails.
Is there anything that I'm missing?
@meltyshev commented on GitHub (Nov 22, 2021):
Hi! Oops, I forgot to change the user in the .env file after local development. I will fix it in the next commit.
@egglessness commented on GitHub (Nov 22, 2021):
Yes! Just found out that the
DATABASE_URLvariable in theserver/.envfile must be set as follows: