-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FATAL: role "root" does not exist #199
Comments
Sorry, I don't know what's causing that. I'd recommend using the official docker image from https://hub.docker.com/r/dius/pact-broker/ |
@signed could you please provide your exact setup? @bethesque it looks like they are using the official docker image, unless I'm missing something. One guess, is that the environment variables could be mismatched, so that something like |
Just confirmed this |
Sorry @signed, I misunderstood you. Thanks Matt. I'm still none the wiser! |
It could be the connection validator here: https://github.com/DiUS/pact_broker-docker/blob/master/pact_broker/database_connection.rb#L19 You could try disabling that and see what happens. |
I think it might actually be a healthcheck process, potentially run by Docker, as it happens regularly (every 30s) in the background, even if the app is not being used. |
OK, so it looks like the healthcheck on the database container. healthcheck:
test: psql postgres --command "select 1" I can reproduce the error if I execute the healthcheck command: matt ~/development/public/pact_broker-docker λ docker exec -it pactbrokerdocker_postgres_1 psql postgres --command "select 1"
psql: FATAL: role "root" does not exist I think we just need to update the healthcheck with a user that exists. |
Just pushed a fix. Hope that helps! |
Yes, this helped. |
You're welcome! |
* feat: handle RFC section links in md to html respec * chore: markdown formatting * chore: markdown format * chore: fix ToC generation in respec
I'm running a local pact_broker in docker as described here but without the nginx.
postgres: postgres:10.2
broker_app: dius/pact-broker:2.15.0-2
every ~40 seconds I get a log line like this
As far as I can tell the pact broker seems to be working fine.
The text was updated successfully, but these errors were encountered: