Could not connect to db: parse "postgres://vikunja:s": invalid port ":s" after host. Weird error when using with Postgresql #1303
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1303
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
docker-compose.yml:
sudo docker logs vikunja_api:
Things I tried: Removing the colon and port number from the db host env variable. Same errors
I don't understand what I am doing wrong. I am pulling my hair out for an hour because of this
The only thing is, I didn't generate a JWT token because I can't figure out how. And the docs said it will be automatically generated on startup
Regarding Postgres: It works fine for my other containers wired in a similar fashion. I created the vikunja database and user with the proper password. And allowed the particular docker network to access the vikunja database. This shouldn't matter here, because it couldn't figure out the port in the first place
Tried with a JWT secret generated with
openssl rand 256 | base64
. No successAre there any special characters in the db password?
The jwt secret is irrelevant for this problem. It will be generated on startup if you don't provide one. You can provide any string as a secret.
Yes. Regenerated a password without special characters. It's all working now! Thanks. Please close the issue