404 from immich server container root
I'm trying to run
Immich
without docker-compose
(I'm on nixos
) so the issues I am having may be fairly unique.
I've got all the containers running with a docker bridge network:
No errors in the container logs.
Inside the proxy container I can I get a 404 on localhost:8080 and when curling the Immich Server container, but its ping endpoint succeeds:
38 Replies
So what is the issue you are facing?
i get
{"statusCode":404,"message":"Cannot GET /","error":"Not Found"}
when i try to access the servicethat is expected, there is no response from that route
you should be able to access the web from IP:8084
Have you tried to access the web browser from that port?
Did you build some images locally? Why are some prefix with ghcr.io but not the proxy?
yeah i have another reverse proxy ontop directing to that port and i get the same 404 from browser when hitting that proxy
the images that used entrypoint overrides had to be used as base images and modified because i'm not using docker-compose
Then you probably did that wrong
becaseu --entrypoint cant use an array
umm, all the logging from all the containers looks fine
Can you curl the web container directly?
sure, any specific path?
The root path should return a html page
port 3000 right?
I don't think so
the env example says
IMMICH_WEB_URL=http://immich-web:3000
Oh yes that is correct
ok so my immich-web ip is
172.18.0.4
so yes if that should return html then i have something wrongI tried on mine and it doesn't return an HTML either
this would be so much easier if the entrypoint scripts were either executables or were set in the dockerfiles
Open a PR
I don't think anyone is against changing them
try /auth/login
auth/login works:
yep that looks correct
so everything appear to be wired correctly
i can make a PR but that would just mean i dont need to rebuild the images, it wouldn't solve whatever is causing these 404s
From your host, can you curl the IP address of the proxy container with
/auth/login
path?
with the port of course
so curl localhost:8084/auth/login
What exactly have you changed with regards to the entry points?
All the proxy container does is forward did to the web and server containers
i set the
CMD
to match the entrypoint
from the docker compose, thats it
It is not forwarding stuff to the web at all
Can you look at the proxy logs?
i haven't changed the proxy at all
yeah it goes straight to the server
Something is misconfigured
yeah i believe it
Can you look at the proxy logs?
i copied the compose file which disables logs on the proxy?
There are some environment variables that are set which connect everything together
Yeah, remove that and then you should see logs
cool. I have to run to the grocery store but i'll do that when i get back. i have discord on my phone so i can answer questiosn while i'm out but not test anything. Thanks so much for the help. I know this isn't the typical immich setup and i appreciate the support
It is possible you just have a wrong env variable
Do you set the IMMICH_WEB_URL env?
If that was copy/pasted but the value is still set to the immich server then they could explain the proxy sending the requests to the wrong place. If no env is set it should default to the web container.
oh wow good catch
that solved it!