psql: error: could not connect to server: FATAL: role does not exist #665
Replies: 2 comments 3 replies
-
I got it to somehow work by manually adding the user but now when I try to create my account it says the email isn't valid and the confirmation email doesn't arrive and when I try to resend it I get a screen that says We are notified and will look at this issue asap!" |
Beta Was this translation helpful? Give feedback.
-
It's an old question, but I ran into the same issue recently. If the docker command is straight copy-pasted and run ever, then The fix is nearly a full reset. |
Beta Was this translation helpful? Give feedback.
-
After creating the Postgres database container with
sudo docker run -d \ --name sl-db \ -e POSTGRES_PASSWORD=custompass\ -e POSTGRES_USER=customuser \ -e POSTGRES_DB=simplelogin \ -p 127.0.0.1:5432:5432 \ -v $(pwd)/sl/db:/var/lib/postgresql/data \ --restart always \ --network="sl-network" \ postgres:12.1
and then running
sudo docker exec -it sl-db psql -U customuser simplelogin
I get this error
psql: error: could not connect to server: FATAL: role "customuser" does not exist
However if I run
sudo docker exec -it sl-db psql -U myuser simplelogin
it works. What's the problem here?
Beta Was this translation helpful? Give feedback.
All reactions