I
Immich2y ago
Kn0x

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
Alex Tran
Alex Tran2y ago
Can you please post your docker-compose and .env file as well as the server container logs
Kn0x
Kn0xOP2y ago
Here you go,
Kn0x
Kn0xOP2y ago
Kn0x
Kn0xOP2y ago
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
Alex Tran
Alex Tran2y ago
I think there is a mistake in your upload_location variable It should be an absolute path on your vm/machine
Kn0x
Kn0xOP2y ago
Gotcha, could you tell me how should it be? Should it be /server_path/Immich/originals:/originals or something different?
Alex Tran
Alex Tran2y ago
Just /server_path/immich/original The mount is being done in docker-compose So you don’t need to use the mount syntax here
Kn0x
Kn0xOP2y ago
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?
Alex Tran
Alex Tran2y ago
Can you help post the log of the server container?
Kn0x
Kn0xOP2y ago
I just noticed that the server is unable to connect with postgres db Error: getaddrinfo EAI_AGAIN immich_postgres at GetAddrInfoReqWrap.onlookup [as oncomplete]
Alex Tran
Alex Tran2y ago
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
Kn0x
Kn0xOP2y ago
I just redeployed the image but still facing same issue
Kn0x
Kn0xOP2y ago
Here are the logs for server,
Kn0x
Kn0xOP2y ago
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
Alex Tran
Alex Tran2y ago
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
Kn0x
Kn0xOP2y ago
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?
Nuggia
Nuggia2y ago
can u post your most current docker-compose file and .env file
Alex Tran
Alex Tran2y ago
yes, those are internal port
Kn0x
Kn0xOP2y ago
Here is my latest compose file,
Kn0x
Kn0xOP2y ago
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
Alex Tran
Alex Tran2y ago
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
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
Kn0x
Kn0xOP2y ago
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
Nuggia
Nuggia2y ago
are you accessing with port 2283?
Kn0x
Kn0xOP2y ago
It finally worked
Nuggia
Nuggia2y ago
Awesome! What was the missing puzzle?
Kn0x
Kn0xOP2y ago
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?
Nuggia
Nuggia2y ago
it should be what you have "upload_location" define Actually your docker compose file is not pointing to $Upload_location
Kn0x
Kn0xOP2y ago
Okay, let me look at it
Nuggia
Nuggia2y ago
should be here if it's valid dir
No description
Kn0x
Kn0xOP2y ago
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?
Nuggia
Nuggia2y ago
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
Kn0x
Kn0xOP2y ago
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?
Nuggia
Nuggia2y ago
it should be something like this (underline in blue)
No description
Kn0x
Kn0xOP2y ago
Understood now Meaning keep the $(UPLOAD_LOCATION) and all other stuff as it is and just change the directory in .env file, right?
Nuggia
Nuggia2y ago
correct
Kn0x
Kn0xOP2y ago
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
Nuggia
Nuggia2y ago
I think it does already. On the 'Administration' page -> users - Create user
Alex Tran
Alex Tran2y ago
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 😀
Kn0x
Kn0xOP2y ago
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!
Alex Tran
Alex Tran2y ago
No problem! Enjoy
Kn0x
Kn0xOP2y ago
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?
Alex Tran
Alex Tran2y ago
There is not unfortunately

Did you find this page helpful?