Where do i have to put my external url

Hi guys, it's been a while since I last used Immich. I've just set up a new "server" and unfortunately fail to make Immich accessible from the internet with traefik2. The documentation and Discord has not given me an answer yet 😦 Can someone help me on the hint? Greetings, Buddinski88
43 Replies
bo0tzz
bo0tzz2y ago
What have you tried, and what problems are you running in to?
Buddinski88
Buddinski88OP2y ago
On traefik2 the route is created correctly. But when i try to access it i get a "404 page not found".
Buddinski88
Buddinski88OP2y ago
This are the logs of immich-proxy: "nginx: [emerg] host not found in upstream "immich-server:3001" in /etc/nginx/conf.d/default.conf:15 2023/06/22 20:21:58 [emerg] 1#1: host not found in upstream "immich-server:3001" in /etc/nginx/conf.d/default.conf:15 /docker-entrypoint.sh: Configuration complete; ready for start up /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh 20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-set-env-variables.envsh 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration" I will check that! Thank you 🙂 Within the .env file i dont have to change some urls?
Alex Tran
Alex Tran2y ago
probably best to provide 1. All docker containers status 2. logs of server no you don't need to change anything within .env beside UPLOAD_LOCATION
Buddinski88
Buddinski88OP2y ago
The status of all containers is running.
No description
Alex Tran
Alex Tran2y ago
You can access locally, correct?
Buddinski88
Buddinski88OP2y ago
No i can't.
Alex Tran
Alex Tran2y ago
then it is not an issue with traefik but with your local setup, so posting your docker-compose and .env can help
Buddinski88
Buddinski88OP2y ago
Ah damn my daugther woke up -.- I will get back to you later
Alex Tran
Alex Tran2y ago
dad's life 😛
Buddinski88
Buddinski88OP2y ago
You have hit it on the point. Could then also unfortunately no longer continue 🙂 I just started again with a new docker-compose.yaml and .env. Only made the changes that are necessary according to the documentation so that I can at least run it locally. Unfortunately that doesn't work either.
bo0tzz
bo0tzz2y ago
In which way is it not working? The only problem I can -maybe- find in the logs is that it seems like immich_proxy is looping, but there's no errors or anything
Buddinski88
Buddinski88OP2y ago
The current issue is that i cant access the web application. When i have look at portainer it shows me, that after a few seconds? the published port 2283 disapears. Even i can see it and try to access the webapplication i got a error, that the side can not be loaded. Is there thought why the proxy is looping?
bo0tzz
bo0tzz2y ago
I have no idea tbh Does portainer show any errors on the container?
Buddinski88
Buddinski88OP2y ago
Unfortunately portainer show no errors "all immich containers are running".
Buddinski88
Buddinski88OP2y ago
When portainer stops publishing the port it looks like to immich_proxy do not have ip address:
No description
bo0tzz
bo0tzz2y ago
If you go into the detailed view of the container, does that say anything interesting?
bo0tzz
bo0tzz2y ago
Aha host not found in upstream "immich:3000" I feel like that wasn't in there earlier 🤔 From your .env: IMMICH_WEB_URL=http://immich:3000 Did you edit that line? You should leave it at the default
Buddinski88
Buddinski88OP2y ago
During my test i have changed that, yes, but now its original again 🙂
Buddinski88
Buddinski88OP2y ago
No description
bo0tzz
bo0tzz2y ago
It should be immich-web not immich
Buddinski88
Buddinski88OP2y ago
Ups If thats the issue than SHAME ON ME!
Buddinski88
Buddinski88OP2y ago
No description
Buddinski88
Buddinski88OP2y ago
Thank you very much @bo0tzz
bo0tzz
bo0tzz2y ago
😁
Buddinski88
Buddinski88OP2y ago
Im such an idiot ^^ Ok, then lets move to the tricky stuff... move the upload folder to my nas, use traefik2 as a proxy
bo0tzz
bo0tzz2y ago
You're not the only one who's done this. It's partly on us for leaving those in the default .env
Buddinski88
Buddinski88OP2y ago
Hehe, thats totally my fault 🙂 I should not change anything about im not sure what it is used for So move the upload folder to my nas was successful. So it nearly works. But i think in my traffic config something is not correct. I can go to login page, but and enter my credentials, but after a few seconds the message "Error unable to connect" appears.
Buddinski88
Buddinski88OP2y ago
Here the log from the chrome developer console.
Buddinski88
Buddinski88OP2y ago
And here my docker-compose and .env file.
Buddinski88
Buddinski88OP2y ago
Any ideas?
Alex Tran
Alex Tran2y ago
And you can login using local IP?
Buddinski88
Buddinski88OP2y ago
No thats not possible because the immich_proxy is commented out
bo0tzz
bo0tzz2y ago
I recommend keeping immich_proxy and just pointing traefik at that A lot less room for error that way
Buddinski88
Buddinski88OP2y ago
So i should point traefik to the port 2283?
bo0tzz
bo0tzz2y ago
It uses a different port internally I think, but whichever one that is
Buddinski88
Buddinski88OP2y ago
I definitly should have more knowledge about traefik With the proxy active i can connect internally. But as is sad with the traefik it is not possible right now. I will try if i can find a solution.
Buddinski88
Buddinski88OP2y ago
Pointing traefik directly to the proxy fixed it! Thank you for all you help, @Alex and @bo0tzz 🙂

Did you find this page helpful?