zammad / zammad-docker-compose

Zammad Docker images for docker-compose
https://hub.docker.com/r/zammad/zammad-docker-compose/
GNU Affero General Public License v3.0
268 stars 207 forks source link

zammad-init keeps restarting with DB connection error #375

Closed distributev closed 1 year ago

distributev commented 1 year ago

I searched the previous issues and I know that there were some fixes to correctly pass the DB/Memcached/Redis env variables to containers.

Basically I use the latest version of docker-compose.yml and I also filled the .env with correct values.

After I apply the latest changes, zammad-init keeps restarting with the error

Caused by: PG::ConnectionBad: FATAL: password authentication failed for user

I have passed the following env variables to zammad-init

environment:

Zammad postgre-sql has the following env variables passed

environment: POSTGRES_DB: ${POSTGRES_DB} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASS}

mgruner commented 1 year ago

@distributev thanks for your report. I just verified that with the default files of zammad-docker-compose, it works correctly, even with a custom PG username and password. Can you give us more information about your setup, to bring us into a position to reproduce the problem?

For support requests, please head over to https://community.zammad.org/

kale1d0code commented 1 year ago

it may be related to a problem I had. at some stage zammad switched to using a url connection for the database.

you may want to try urlencoding your password environment variable

mgruner commented 1 year ago

This is not enough information for us to reproduce the issue, sorry.