I
Immich3y ago
fstrmn

Cannot connect to immich.

I had immich running for awhile but have not been able to get it to respond after a power loss (probably unrelated) it's up to date and i do not see any errors in the logs. I've made sure it's up to date and have not changed any of my configs
64 Replies
jrasm91
jrasm913y ago
Are you talking specifically about the mobile app, the web client, or both? Local network?
fstrmn
fstrmnOP3y ago
cannot connect in any way
jrasm91
jrasm913y ago
What does cannot connect mean? Are you running into a network error? Does it just spin forever?
fstrmn
fstrmnOP3y ago
app says to check the URL, browser says it can't connect. "Firefox can’t establish a connection to the server at 192.168.1.105:2283."
fstrmn
fstrmnOP3y ago
No description
jrasm91
jrasm913y ago
And docker ps shows all the containers running? From that machine can you curl port 2283/api/server-info?
fstrmn
fstrmnOP3y ago
refused
jrasm91
jrasm913y ago
Firewall?
fstrmn
fstrmnOP3y ago
No description
fstrmn
fstrmnOP3y ago
no firewall
jrasm91
jrasm913y ago
Can you remote into the server container and curl localhost:3001/server-info (i think)
fstrmn
fstrmnOP3y ago
oh that would do it. 3001 is uptime kuma.
jrasm91
jrasm913y ago
That's port isn't exposed If you execute it in the container we could verify the API is running correctly.
fstrmn
fstrmnOP3y ago
oh sorry i missed that bit
jrasm91
jrasm913y ago
The only exposed port is 2283 with a reverse proxy via the Nginx container to the API. You should be able to do docker exec -it containeName sh
fstrmn
fstrmnOP3y ago
curl not found lol
jrasm91
jrasm913y ago
Wget? Must have removed it to keep the image small lol
fstrmn
fstrmnOP3y ago
/usr/src/app # cat server-info {"diskAvailable":"586.7 GiB","diskSize":"3.6 TiB","diskUse":"2.9 TiB","diskAvailableRaw":629924110336,"diskSizeRaw":3934171283456,"diskUseRaw":3143238746112,"diskUsagePercentage":79.9}/usr/src/app #
jrasm91
jrasm913y ago
Sweet So that means API is up and running fine.
fstrmn
fstrmnOP3y ago
and that i have a good chunk of free disk space lol
jrasm91
jrasm913y ago
Lol yes So... Either something wrong with proxy container or networking issue. Can you share docker compose file? .env file?
fstrmn
fstrmnOP3y ago
i didn't modify the compose file afaik
jrasm91
jrasm913y ago
Ok.
fstrmn
fstrmnOP3y ago
and i only changed UPLOAD_LOCATION in the .env it WAS working with this config
jrasm91
jrasm913y ago
Have you tried stopping and starting the whole stack already?
fstrmn
fstrmnOP3y ago
yeah, i just set the box to reboot so i'll report back
jrasm91
jrasm913y ago
Hmmk. I think logging is turned off in the proxy container, but maybe I should ask if we can enable that, especially for troubleshooting connection issues between the proxy and the server containers.
fstrmn
fstrmnOP3y ago
im not against it
jrasm91
jrasm913y ago
The thing with a reboot is that some pending changes might have taken affect. (not specifically to immich, just in general)
fstrmn
fstrmnOP3y ago
im counting on one of them to make immich magically work no such luck this time though.
jrasm91
jrasm913y ago
Do you want to try exposing the port on the API container and hitting it directly?
fstrmn
fstrmnOP3y ago
i'd be okay with Working as Intended.
Alex Tran
Alex Tran3y ago
What happen if you put in yourip:2283/api/server-info on your web browser?
jrasm91
jrasm913y ago
Connection refused i think he said
fstrmn
fstrmnOP3y ago
"Firefox can’t establish a connection to the server at 192.168.1.105:2283."
Alex Tran
Alex Tran3y ago
🤔
jrasm91
jrasm913y ago
And http not https, right?
fstrmn
fstrmnOP3y ago
correct
jrasm91
jrasm913y ago
I meant just to troubleshoot the issue
fstrmn
fstrmnOP3y ago
we can try that
jrasm91
jrasm913y ago
It sounds a lot like a firewall issue imo still Do you know how to expose the port?
fstrmn
fstrmnOP3y ago
No description
Alex Tran
Alex Tran3y ago
Does anything change after that?
fstrmn
fstrmnOP3y ago
no such this machine isn't connected to the internet so i don't firewall it
Alex Tran
Alex Tran3y ago
Do you have other browser that you can try?
fstrmn
fstrmnOP3y ago
chrome :
No description
Alex Tran
Alex Tran3y ago
Can you ping it?
jrasm91
jrasm913y ago
Wait The proxy mapping in the docker ps It shows port 8080 is in use But 2283 maps to internal port 80 Is 2283 supposed to map to 8080?
Alex Tran
Alex Tran3y ago
Yes
fstrmn
fstrmnOP3y ago
INTERESTING
jrasm91
jrasm913y ago
Was that changed in docker compose at some point?
Alex Tran
Alex Tran3y ago
Hmm
jrasm91
jrasm913y ago
I mean maybe the old compose used a different pretty or something Or did Nginx conf change
Alex Tran
Alex Tran3y ago
It changed a long time ago
fstrmn
fstrmnOP3y ago
>_>
jrasm91
jrasm913y ago
Did you change that and test?
fstrmn
fstrmnOP3y ago
GOOD CATCH you are a good man
jrasm91
jrasm913y ago
It works?
fstrmn
fstrmnOP3y ago
yessir i would have never ever caught that
jrasm91
jrasm913y ago
Lol I surprise even myself sometimes
fstrmn
fstrmnOP3y ago
@Alex Tran give this man a raise.
Alex Tran
Alex Tran3y ago
For sure he deserves lotsaa beers
jrasm91
jrasm913y ago
Haha, i don't drink but I'll take some 🍕🍕🍕
fstrmn
fstrmnOP3y ago
Thanks both of you (: im up and running again

Did you find this page helpful?