Closed ilfrich closed 1 year ago
This is unexplained. Yes, it should be set during container build. Also, pg_restore doesn't override the database password.
Please check this using the 202302 container i just re-released as linux/amd64. I've tested with pgAdmin 4 and it connects as expected.
Just downloaded the latest minus34/gnafloader:latest-gda2020
and it worked straight out of the box :+1:
Must have been an issue with the Nov22 image :man_shrugging:
Hi again, trying out the Nov22 docker image, I ran into another issue.
TLDR; after running the database and trying to connect (from outside the container), I got:
Steps
docker run --publish=5433:5432 --name=gnafloader minus34/gnafloader:202211-gda2020
psycopg2
User "postgres" has no password assigned.
docker exec -it gnafloader /bin/bash
and ranpsql --port=5433
and executeALTER USER postgres PASSWORD "password";
Potential Issue
It's weird, because setting the password is in the
Dockerfile
. My best guess would be that maybe thepg_restore
command overwrites the previously set password and sets it back to nothing, if your dump contained no password for thepostgres
user.