Unable to login

So last night I deleted my immich containers and re-composed them. When I first launched the containers last night, I was able to setup my Admin account, and logged in and setup my normal user account. I then went to bed. this morning, I went to go back and setup the API key for my user account and start importing pictures again and I couldn't get to the login page. When I look at the logs for immich_web I am seeing this
09/16/2023 12:08:19 PM
[hooks.server.ts] Unable to get my user {
09/16/2023 12:08:19 PM
message: 'Invalid user token',
09/16/2023 12:08:19 PM
code: '401 - Unauthorized',
09/16/2023 12:08:19 PM
stack: undefined
09/16/2023 12:08:19 PM
}
09/16/2023 12:08:19 PM
[hooks.server.ts] Unable to get my user {
09/16/2023 12:08:19 PM
message: 'Invalid user token',
09/16/2023 12:08:19 PM
code: '401 - Unauthorized',
09/16/2023 12:08:19 PM
stack: undefined
09/16/2023 12:08:19 PM
}
And when i look at immich_proxy I see this
09/16/2023 12:02:59 PM
2023/09/16 16:02:59 [error] 44#44: *2 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.0.150, server: , request: "GET /api/server-info/features HTTP/1.1", upstream: "http://172.18.0.45:3001/server-info/features", host: "192.168.0.6:2283", referrer: "http://192.168.0.6:2283/auth/login"
09/16/2023 12:02:59 PM
2023/09/16 16:02:59 [error] 48#48: *14 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.0.150, server: , request: "GET /api/server-info/config HTTP/1.1", upstream: "http://172.18.0.45:3001/server-info/config", host: "192.168.0.6:2283", referrer: "http://192.168.0.6:2283/auth/login"
09/16/2023 12:02:59 PM
2023/09/16 16:02:59 [error] 44#44: *2 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.0.150, server: , request: "GET /api/server-info/features HTTP/1.1", upstream: "http://172.18.0.45:3001/server-info/features", host: "192.168.0.6:2283", referrer: "http://192.168.0.6:2283/auth/login"
09/16/2023 12:02:59 PM
2023/09/16 16:02:59 [error] 48#48: *14 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.0.150, server: , request: "GET /api/server-info/config HTTP/1.1", upstream: "http://172.18.0.45:3001/server-info/config", host: "192.168.0.6:2283", referrer: "http://192.168.0.6:2283/auth/login"
Oh, and I can't get to the login page either locally or via external address. Any thoughts? thanks
27 Replies
jrasm91
jrasm912y ago
I mean, it says the host is unreachable. Is that the right IP of the immich server container? Is it running? Maybe restart the proxy container if everything else is working fine
apperrault
apperraultOP2y ago
everything is being referenced by container name. here is the relevent portions of my compose
apperrault
apperraultOP2y ago
Pastebin
immich-server: container_name: immich_server image: ghcr.io...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
jrasm91
jrasm912y ago
Can you send the immich server logs
jrasm91
jrasm912y ago
Im not going to untar a file on my phone lol. I can look at it Monday or you can send me a text file instead
apperrault
apperraultOP2y ago
Sorry, yeah. I'll send the text shortly. Like or file? Link
apperrault
apperraultOP2y ago
Pastebin
2023-09-16T15:59:16.608986593Z [Nest] 6 - 09/16/2023, 3:...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
apperrault
apperraultOP2y ago
how about both options
jrasm91
jrasm912y ago
Looks like it is up just fine. Did you try restarting the proxy? Did you verify the IP in the message is correct? Nginx resolves domain to IP on start up and then cache it. Is it still correct?
apperrault
apperraultOP2y ago
yeah, the external IP is correct. I even rebooted the entire system (am a Windows admin by trade) and now I can get to it internally by IP:port but not externally, but I can get to every other SWAG hosted system
09/16/2023 2:05:11 PM
{
09/16/2023 2:05:11 PM
status: 401,
09/16/2023 2:05:11 PM
url: 'GET /user/me',
09/16/2023 2:05:11 PM
response: {
09/16/2023 2:05:11 PM
message: 'Invalid user token',
09/16/2023 2:05:11 PM
error: 'Unauthorized',
09/16/2023 2:05:11 PM
statusCode: 401
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
[hooks.server.ts] Unable to get my user {
09/16/2023 2:05:11 PM
message: 'Invalid user token',
09/16/2023 2:05:11 PM
code: '401 - Unauthorized',
09/16/2023 2:05:11 PM
stack: undefined
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
{
09/16/2023 2:05:11 PM
status: 401,
09/16/2023 2:05:11 PM
url: 'GET /user/me',
09/16/2023 2:05:11 PM
response: {
09/16/2023 2:05:11 PM
message: 'Invalid user token',
09/16/2023 2:05:11 PM
error: 'Unauthorized',
09/16/2023 2:05:11 PM
statusCode: 401
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
[hooks.server.ts] Unable to get my user {
09/16/2023 2:05:11 PM
message: 'Invalid user token',
09/16/2023 2:05:11 PM
code: '401 - Unauthorized',
09/16/2023 2:05:11 PM
stack: undefined
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
{
09/16/2023 2:05:11 PM
status: 401,
09/16/2023 2:05:11 PM
url: 'GET /user/me',
09/16/2023 2:05:11 PM
response: {
09/16/2023 2:05:11 PM
message: 'Invalid user token',
09/16/2023 2:05:11 PM
error: 'Unauthorized',
09/16/2023 2:05:11 PM
statusCode: 401
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
[hooks.server.ts] Unable to get my user {
09/16/2023 2:05:11 PM
message: 'Invalid user token',
09/16/2023 2:05:11 PM
code: '401 - Unauthorized',
09/16/2023 2:05:11 PM
stack: undefined
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
{
09/16/2023 2:05:11 PM
status: 401,
09/16/2023 2:05:11 PM
url: 'GET /user/me',
09/16/2023 2:05:11 PM
response: {
09/16/2023 2:05:11 PM
message: 'Invalid user token',
09/16/2023 2:05:11 PM
error: 'Unauthorized',
09/16/2023 2:05:11 PM
statusCode: 401
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
}
09/16/2023 2:05:11 PM
[hooks.server.ts] Unable to get my user {
09/16/2023 2:05:11 PM
message: 'Invalid user token',
09/16/2023 2:05:11 PM
code: '401 - Unauthorized',
09/16/2023 2:05:11 PM
stack: undefined
09/16/2023 2:05:11 PM
}
this is in the immich_web logs. when I try and go to external site, I don't even get the login screen
bo0tzz
bo0tzz2y ago
Have you tried clearing your browser cache/cookies/etc?
apperrault
apperraultOP2y ago
Yeah, tried using a system I have never accessed it from and from in-private browsing sessions
jrasm91
jrasm912y ago
Did it work fine on Chrome or Firefox?
apperrault
apperraultOP2y ago
Before the rebuild, chrome and the mobile app.
jrasm91
jrasm912y ago
If the error only here or does nothing work now?
apperrault
apperraultOP2y ago
the error is only external now. i can get to it from any browser and the android app using the IP:2283
bo0tzz
bo0tzz2y ago
Then the issue must be with your reverse proxy
apperrault
apperraultOP2y ago
i thought the same thing, but nothing changed
apperrault
apperraultOP2y ago
Pastebin
server { listen 443 ssl; listen [::]:443 ssl; server_name ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Alex Tran
Alex Tran2y ago
Can you help posting your docker-compose and .env file?
apperrault
apperraultOP2y ago
so this is odd. I went to bed last night with the intention of doing whatever it took to get this to work today. Nothing updated or restarted overnight, but when I woke up this morning, i was able to login to everything and my pictures are now uploading. I have been in technology long enough to know when not to question things. Just perform a backup, don't change anything and move on as if nothing happened
Alex Tran
Alex Tran2y ago
what are you running Immich on? I assume this might be related to CPU/resource hogging
apperrault
apperraultOP2y ago
it shouldn't be resource issue. I am running it on a Dell SFF system with 32GB of Ram and plenty of CPU.
Alex Tran
Alex Tran2y ago
How many assets do you have in the instance? If you have lots of assets , typesense make take a few minutes to start up
apperrault
apperraultOP2y ago
not that many. actually when I was having the issue, i had an empty database.
jrasm91
jrasm912y ago
The only thing that it could be as far as I can see is this: include /config/nginx/resolver.conf;

Did you find this page helpful?