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
Alex Tran
Alex Tran2y ago
What error are you seeing?
Tataukee
TataukeeOP2y ago
The Postgres container in Expired status it won’t start and others in Unhealthy state Not all of them Some are running
Alex Tran
Alex Tran2y ago
Portainer | Immich
Install Immich using Portainer's Stack feature.
Tataukee
TataukeeOP2y ago
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
Alex Tran
Alex Tran2y ago
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
Tataukee
TataukeeOP2y ago
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
Alex Tran
Alex Tran2y ago
What do you mean by proper volume, I believe if you follow the guide then you should have everything start up
Tataukee
TataukeeOP2y ago
The right path to volumes Where the files should be stored
Alex Tran
Alex Tran2y ago
Do you mean the UPLOAD_LOCATION value?
Tataukee
TataukeeOP2y ago
Exact For example this is my path to my docker files : /volume1/docker/immich/upload or cache or typesense..et. etc..
Alex Tran
Alex Tran2y ago
Well that path is internal to your VM that run portainer
Tataukee
TataukeeOP2y ago
Correct
Alex Tran
Alex Tran2y ago
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?
Tataukee
TataukeeOP2y ago
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
Tataukee
TataukeeOP2y ago
No description
Tataukee
TataukeeOP2y ago
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 ?
Alex Tran
Alex Tran2y ago
What do you mean by this? The changes values in the docs are all you will need
Tataukee
TataukeeOP2y ago
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
Alex Tran
Alex Tran2y ago
Http://ip:2283 ?
Tataukee
TataukeeOP2y ago
In my case that would be : 10.0.1.18:2283
Alex Tran
Alex Tran2y ago
And that doesn’t work? Can you get the log of immich_server container?
Alex Tran
Alex Tran2y ago
Look like an artifact issue with your previous setup Can you remove the stack and all volume then try again?
Tataukee
TataukeeOP2y ago
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
Alex Tran
Alex Tran2y ago
Did you remove the database volume and container?
Tataukee
TataukeeOP2y ago
yes I did remove everythings and started from scratch In container Manager i can see 2 containers stopped immich_postgres and immich_tupesense
Alex Tran
Alex Tran2y ago
Hmm do you mean they aren’t running?
Tataukee
TataukeeOP2y ago
no they aren't shall I grab the logs for each one ?
Tataukee
TataukeeOP2y ago
No description
Tataukee
TataukeeOP2y ago
u see them both in grey
Alex Tran
Alex Tran2y ago
Can you remove the stack and confirm all the containers and volumes have been removed? Please send in screenshot if possible for the confirmation
Tataukee
TataukeeOP2y ago
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
Alex Tran
Alex Tran2y ago
Thanks, let’s try again
Tataukee
TataukeeOP2y ago
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 ?
Tataukee
TataukeeOP2y ago
I still believe it could be from my setup wrongly executed
No description
Tataukee
TataukeeOP2y ago
some logs from docker/container manager
Tataukee
TataukeeOP2y ago
No description
Alex Tran
Alex Tran2y ago
Looks like the volume isn’t removed Hmm I don’t use portainer
Tataukee
TataukeeOP2y ago
I will try again and will let you know

Did you find this page helpful?