-
-
Notifications
You must be signed in to change notification settings - Fork 59
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 #4
Comments
I'm not aware of this issue so I'll investigate and let you know if I find anything. |
Thanks Peter, for reference here is the PostgreSQL snippet from my postgres:
image: postgres:10.0
hostname: postgres
container_name: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 30s
timeout: 30s
retries: 3
env_file:
- prosody.env
volumes:
- ${PWD}/postgres/data/:/var/lib/postgresql/data/
restart: always |
I haven't confirmed it, but I think this comment could be the explanation. As you mentioned, if the PostgreSQL Docker image had a According to the linked issue it can be prevented by deleting the volume with |
@kawaii I spent half of yesterday trying to find out the cause of the
|
I notice the following error in my logs appearing every 5 minutes or so:
Whilst not harmful, and whilst the healthcheck is indeed working as intended (a
docker ps
displays a(healthy)
status) is there any way to suppress this message? I assume this happens because the official PostgreSQL Docker images do not have aUSER postgres
declaration at the end of their Dockerfiles?The text was updated successfully, but these errors were encountered: