Skip to content
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

Database connection failed #108

Open
wiebereu opened this issue Jan 4, 2025 · 4 comments
Open

Database connection failed #108

wiebereu opened this issue Jan 4, 2025 · 4 comments

Comments

@wiebereu
Copy link

wiebereu commented Jan 4, 2025

I have tried all the suggested solutions but nothing helped

I embed Immich power tools in my docker compose of Immich server and the database.
I had a password for the database user with an underscore character. I remove it and as someone advise I change the database user password in something without special character.

Still I get the message that the database failed because of password authentication problems.

Database connection failed

@Giraffes19
Copy link

I'm getting a database connection error with an error of "connect ECONNREFUSED ::1:5432" it was working about a week ago, just updated to the latest version and now this:
image

@hulmgulm
Copy link

I had the same issue. I resolved it by adding DB_HOST: database to the immich-power-tools environment section of my immich docker-compose file.
Background: looks like something changed and localhost got resolved to IPv6 address. In default docker setup, only IPv4 works. The host "database" has only an IPv4 address and works therefore.

@calm108
Copy link

calm108 commented Jan 11, 2025

I had the same issue. I resolved it by adding DB_HOST: database to the immich-power-tools environment section of my immich docker-compose file. Background: looks like something changed and localhost got resolved to IPv6 address. In default docker setup, only IPv4 works. The host "database" has only an IPv4 address and works therefore.

exact same issue after pulling latest vesion. Adding DB_HOST= "database" to my .env file was the fix.

@Giraffes19
Copy link

I had the same issue. I resolved it by adding DB_HOST: database to the immich-power-tools environment section of my immich docker-compose file. Background: looks like something changed and localhost got resolved to IPv6 address. In default docker setup, only IPv4 works. The host "database" has only an IPv4 address and works therefore.

exact same issue after pulling latest vesion. Adding DB_HOST= "database" to my .env file was the fix.

Fixed it for me! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants