mirror of
https://github.com/plankanban/planka.git
synced 2025-12-15 17:23:19 +03:00
Escaping characters in database url variable #358
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 @kalxasus on GitHub.
I trying run planka with variable:
And on start get this error:
I was confusing by this message, why his try connect to internal container IP address. And in a same time on every try starting container, in postgresql created db structure and seen error in postgresql log:
ERROR: conflicting key value violates exclusion constraint "user_email_unique"when service try to create admin user in DB.
I spent a lot of time, to try run service via helm or docker-compose before I understood that problem in character
\in connection password.@gelomon commented on GitHub:
I have been experiencing this issue and what I have done is to adjust the postgres healthcheck from 10s to 20s to give additional time.
With original values, my instance is logging this same issue ECONNREFUSED , but the difference is I am using docker
@meltyshev commented on GitHub:
Hi! Thanks for reporting this.
I don't understand how to fix this yet, it seems that the adapter doesn't connect if there is a backslash in
DATABASE_URL(even if escaped), for some reason it automatically replaces it with a normal slash when connecting. The only way to get around this quickly is to not use them inDATABASE_URL.This is the correct behavior, it tries to create an administrator on startup every time (in case it's suddenly deleted). Seems like we should hide this message because it's confusing.