-
Notifications
You must be signed in to change notification settings - Fork 16
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 #93
Comments
I'm having the same issue. I have successfully connected to the immich DB using PGAdmin with the same credentials as in the immich-power-tools container. Based on my limited understanding of the scenario, the issue seems to be on the power-tools side. |
Have you tried setting DB_HOST="" to the name of your database container? Looking at your 'depends' section if your immich database container is called 'database try adding DB_HOST='database' to .env |
I'm facing the same issue. DB_HOST in .env did not solve the issue. |
Can you run a docker inspect followed by the name of your Immich database container? You will need to ensure the database container has a network in common with the power tools container to ensure reachability. |
Please ensure you have set the below environmental variables on the immich_power_tools container and that they match the immich_postgres database settings DB_USERNAME= If you view your immich_postgres container on portainer you can copy and paste the values from there for username, password and database name. |
Sure. These are all my env variables: UPLOAD_LOCATION=medianas_immich and my full composer:
|
This is my .env File:
The Full compose file is:
|
The latest update solved the issue in my case! Thx |
I have followed the directions for the docker version, however did not work:
I placed this at the end of the docker compose file
power-tools:
container_name: immich_power_tools
image: ghcr.io/varun-raj/immich-power-tools:latest
ports:
- "2284:3000"
env_file:
- .env
depends_on:
- redis
- database
got the API key and placed this in the .env file at the end
REQUIRED For IMMICH TOOL
IMMICH_API_KEY=CI*****************************EBIo # your_immich_api_key (Key hidden obviously)
IMMICH_URL = "http://192.168.1.60:2283" # Your immich instace ip address and port
EXTERNAL_IMMICH_URL = "https://photos*************" # External address of immich
The text was updated successfully, but these errors were encountered: