Immich Web not accessible
I followed the guide posted for Portainer and every service seems to be running on the portainer side but when I try to access the Immich web, I can't seem access it. Can someone help resolve this issue?
42 Replies
Can you please post your docker-compose and .env file
as well as the server container logs
Here you go,
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=server_path/Immich/originals:/originals
TYPESENSE_API_KEY=some-random-text
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=http://server_ip:3000
IMMICH_SERVER_URL=http://server_ip:3001
IMMICH_MACHINE_LEARNING_URL=http://server_ip:3003
Not sure what is actually causing the service to not get start as I only just changed the installation and upload locations
I think there is a mistake in your upload_location variable
It should be an absolute path on your vm/machine
Gotcha, could you tell me how should it be? Should it be /server_path/Immich/originals:/originals or something different?
Just /server_path/immich/original
The mount is being done in docker-compose
So you don’t need to use the mount syntax here
Got it, thanks! I just did the changes and redeploying the container
Still facing same issue, I'm getting 502 error on immich proxy and connection refused on port 3000 (web)
Could you once check the compose file and let me know if I'm missing anything there?
Can you help post the log of the server container?
I just noticed that the server is unable to connect with postgres db
Error: getaddrinfo EAI_AGAIN immich_postgres
at GetAddrInfoReqWrap.onlookup [as oncomplete]
can you please post the full logs?
if this is a new installation, can you remove the stack and try again with a new one, using the updated .env file with the correct UPLOAD_LOCATION
I just redeployed the image but still facing same issue
Here are the logs for server,
It is now saying that the server is listing on Port 3001 but still when I try to connect to web it's not loading
Even the postgres db is also working correctly and accepting connections
Can you try again?
Ah hold on
Hehe
Please keep all the immich_web/server/machinelearning_url the same as default
It is the internal docker address for the container to communicate with each other
Gotcha, just give me a min
Going to make the changes and redeploy the containers
Made the changes but still same issue
Also, when I'm seeing the logs it's showing me the service is running on INFO: http://0.0.0.0:3000,3001 and 3003 port. Is it normal?
Or is it because of this IP allocation it's not letting me connect to the web/server instance?
can u post your most current docker-compose file and .env file
yes, those are internal port
Here is my latest compose file,
and here is my current env file
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/server_path/Immich/originals
TYPESENSE_API_KEY=some-random-text
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
bring down the stack and bring up
restart button won't work well in portainer I believe
Please make sure to use the exact value
Yup, that's correct but wanted to see if the IP was causing this issue
Okay
I am using these values as mentioned on website only
Done with all the changes but still facing same problem
All the services are showing as working in logs but when I try to access them on browser none of the services seems to be working
are you accessing with port 2283?
It finally worked
Awesome! What was the missing puzzle?
I just stopped the whole stack, removed all of the directories and redeployed the whole stack again
and finally it worked
Btw one last question, I created originals as a upload folder under .env but I just uploaded a test file and don't see it inside the directory
By any chance could you let me know where the uploaded file get's stored?
it should be what you have "upload_location" define
Actually your docker compose file is not pointing to $Upload_location
Okay, let me look at it
should be here if it's valid dir

I think that's a wrong path
I'm trying to put it here /server_path/Immich/originals
Should I stop the stack and make this change or do I need to remove everything and redeploy the whole stack?
I'd suggest reverting the highlighted to the default variable and define UPLOAD_LOCATION with the path u want
not too familiar with portainer but i'd prob stop it
Meaning, I should change it to /server_path/Immich/originals/:/usr/src/app/upload in compose file and /server_path/Immich/originals in .env file, right?
it should be something like this (underline in blue)

Understood now
Meaning keep the $(UPLOAD_LOCATION) and all other stuff as it is and just change the directory in .env file, right?
correct
Awesome, thanks a lot!
Also, curious to know if there is a plan to make this project support multiuser?
I guess that will be really good addition to this wonderful project
I think it does already. On the 'Administration' page -> users - Create user
You can create additional user after logining in as an admin
We have documented most of the features on the docs site
It should give you good information of what Immich can and cannot do 😀
Ohh...really. Didn't knew that. That's a really nice addition to this project. All hail goes to @Alex
Thanks a lot for your support as well for solving this issue!
No problem! Enjoy
It's a really great and powerful app you created. I'm thinking of this as a primary app for storing all of my photos
Curious to know if you have any timeline to make this app production ready?
There is not unfortunately