The db is not starting.
cAstraea opened this issue · 2 comments
** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE EXAMPLE VOTING APP **
- If you have a bug working with Docker itself, not related to these labs, please file the bug on the Docker repo *
- If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you're not on that channel, sign up for the Docker Community and you'll get an invite. *
- Or go to the Docker Forums *
Please provide the following information so we can assess the issue you're having
Description
Steps to reproduce the issue, if relevant:
- ran docker init
- ran docker stack deploy --compose-file docker-stack.yml vote
Describe the results you received:
Since other parts depend on the db they don't work either. In the log for db container in DockStation I see this spammed
FATAL: password authentication failed for user "postgres"
DETAIL: Connection matched pg_hba.conf line 95: "host all all all md5"
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
Client: Docker Engine - Community
Version: 20.10.1
API version: 1.41
Go version: go1.13.15
Git commit: 831ebea
Built: Tue Dec 15 04:34:58 2020
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.1
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: f001486
Built: Tue Dec 15 04:32:52 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.3
GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc:
Version: 1.0.0-rc92
GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Output of docker info:
(paste your output here)
Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
I had the same issue, it's a duplicate of #162.
I've found a temporary fix.
This is NOT recommended for production deployments: https://www.postgresql.org/docs/current/auth-trust.html
- delete your stack + related volume
- in
docker-stack.yml, add thePOSTGRES_HOST_AUTH_METHODenv variable to thedbservice.
db:
image: postgres:9.4
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
- db-data:/var/lib/postgresql/data
- redeploy
We're sorry for the late response. Linux images have been refreshed, cleaned up, and are now multi-platform. If you're still having issues with the latest images, feel free to reopen this ticket.