Help needed to setup immich
I tried several times following the instructions but with no success .
I use mainly Portainer to deploy all my hosted applications through Stack .
Any help is highly appreciative .
Please have a look at my docker compose in the PDF file attached .
Below is the Environment Variables : the content of the example.env ( modified )
UPLOAD_LOCATION=/volume1/docker/immich/upload
IMMICH_VERSION=release
TYPESENSE_API_KEY=randomapikey
DB_PASSWORD=postgres
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
39 Replies
What error are you seeing?
The Postgres container in Expired status it won’t start and others in Unhealthy state
Not all of them
Some are running
Have you followed this guide? https://documentation.immich.app/docs/install/portainer
Portainer | Immich
Install Immich using Portainer's Stack feature.
This is the one I have been following ..
Have u seen the docker compose I posted in the file ?
I’m not sure if it is properly done
Why don’t you tried the compose file and the method described in the docs first, then after verifying the system starts up and behave properly then start modifying to your needs with incremental changes for minimal chance of running into error
I could try that but the problem with Portainer , if it ca t find the proper volumes it won’t let you proceed . I can modify all volumes path Only and will see
What do you mean by proper volume, I believe if you follow the guide then you should have everything start up
The right path to volumes
Where the files should be stored
Do you mean the UPLOAD_LOCATION value?
Exact
For example this is my path to my docker files : /volume1/docker/immich/upload or cache or typesense..et.
etc..
Well that path is internal to your VM that run portainer
Correct
If you mount the path on your vm, portainer should be able to access it
Why don’t you follow the guide exactly and then we will see if it can start up?
The compose I have sent in the file is the result after I have followed the guide
I came up with that
After following the instructions in the guide
Ok Alex I have some news
All green

I have follows ur instructions I just changed the UPLOAD LOCATION VALUE
Everything’s seems working but I need for sure changing some stuff accordingly right ?
What do you mean by this? The changes values in the docs are all you will need
All right then
But still not able to access the web interface
With my NAS IP and the port 2283
I get an error message
connect ECONNREFUSED
500
192.168.192.3;3001
Http://ip:2283 ?
In my case that would be : 10.0.1.18:2283
And that doesn’t work?
Can you get the log of immich_server container?
Look like an artifact issue with your previous setup
Can you remove the stack and all volume then try again?
ok
Error: connect ECONNREFUSED 172.28.0.3:5432
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
[Nest] 7 - 09/03/2023, 11:21:05 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)...
Error: Connection terminated due to connection timeout
at Connection.<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:132:73)
at Object.onceWrapper (node:events:628:28)
at Connection.emit (node:events:514:28)
at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:63:12)
at Socket.emit (node:events:514:28)
at TCP.<anonymous> (node:net:323:12)
[Nest] 7 - 09/03/2023, 11:21:08 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (3)...
Error: getaddrinfo ENOTFOUND immich_postgres
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)
[Nest] 7 - 09/03/2023, 11:21:11 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...
Error: getaddrinfo ENOTFOUND immich_postgres
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)
[Nest] 7 - 09/03/2023, 11:21:14 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
Error: getaddrinfo ENOTFOUND immich_postgres
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)
[Nest] 7 - 09/03/2023, 11:21:18 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (6)...
logs from immich_server
Did you remove the database volume and container?
yes I did remove everythings and started from scratch
In container Manager i can see 2 containers stopped
immich_postgres and immich_tupesense
Hmm do you mean they aren’t running?
no they aren't
shall I grab the logs for each one ?

u see them both in grey
Can you remove the stack and confirm all the containers and volumes have been removed? Please send in screenshot if possible for the confirmation
ok
Done .
everything is removed
containers , volumes , images ..
files generated from previous install also
location upload value are empty
no residus
no immich in here
alphabetically
Thanks, let’s try again
Im trying right now
sorry for my absence had to go to bed it was too late for me
trying a fresh install
Can't have it working 😦
a new error : 500
connect ECONNREFUSED 172.24.0.7:3001
Postgress not being able to run , whats happening ?
I still believe it could be from my setup wrongly executed

some logs from docker/container manager

Looks like the volume isn’t removed
Hmm
I don’t use portainer
I will try again and will let you know