-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Immich iOS keeps logging out after a day or so #8146
Comments
Do you think CF was playing a part in this? In my prod setup, I use VPN and never get logged out |
I don't think so. Cloudflare doesn't report any downtime in the dashboard, and all my other services seem to work fine with no downtime reported. I've installed Uptime Kuma just in case. But I think this has to do with connectivity between mobile devices and server for some time, maybe in a no service area etc and it gives up on reconnecting |
FWIW i've updated to 1.99.0 now. In case the app difference was causing an issue. |
Do you have background backup enabled? Maybe we haven't handled that case gracefully |
Thank you, I think it might be the cause. Let me see if I can handle the case it cannot connect to the server gracefully |
Sounds good. Let me know if I can provide any additional information or logs
|
I'm still having this issue with 1.99.0. I am running Immich behind Nginx (publically accessible). No VPN or CF tunnels. Happy to provide logs if helpful. |
@mmomjian Do you also use background backup as well? |
Yes, I do @alextran1502 |
Sorry for the bump but do we have any update on this? It is really hurting the wife-approval factor :/ Happy to provide any logs. It happens about 3-4 times / week, when it happens I get a I am not using tailscale or anything like that. so I don't anticipate that the server is actually unreachable for any reason. The first error seen reads as below:
|
You know what, I kinda forgot about this because it hasn’t happened in a while. actually I moved to a new server, same setup on Unraid and running behind CF Tunnel still but I guess I am not overloading the server so it’s fine? |
Glad to hear it hasn't been happening! I don't suspect an overload being the issue here, I don't have any big imports or anything going on and the server is pretty beefy. |
I think the issue is somewhere in I don't see anything in the nginx logs indicating any failed backend requests around this time, so I'm pretty stumped. I enabled |
@mmomjian What do you use for your wife to access the instance while not on the local WIFI network? |
@alextran1502 sort of a complex deployment, but I run nginx on an Oracle VPS which proxies traffic to my home server over an internal tailscale network. From the perspective of the end user/app, Immich is never "local" - we connect to a public domain name with a real (LetsEncrypt) SSL cert. I run Uptime Kuma to monitor my services, it checks Immich every 10 minutes - I just dropped that to q1min in case there's some kind of weird nginx failure taking place, but all the other services I run have been rock solid. |
Thank you for the input, let me try remove that logout condition on the splash_screen to see if it helps |
It looks like it is checking at the root instead of at /api. The prior returns html for the website. |
@jrasm91 where are you seeing this? |
That sort of makes sense, because for my |
I have the same issue, for me it logs out about every day or so. i am hosting it behind an proxy but randomly it logs out. If you woud want logs, i can check for those :) |
+1 For me, it happens too. And it’s really annoying. Even my grandma complains that she can’t open photos without entering credentials. 😅 |
Just had it happen again today. Here's a summary of the logs. The time of 09:41 is the time at which I opened the app and it was logged out.
I switched my login URL to add the |
Not intending to reopen this, but it happened to me today again while using the |
@alextran1502 unfortunately the same thing happened again this morning. If you prefer this as a new issue let me know. Access: public-facing domain name Server version: 1.102.3 |
@mmomjian Do you still have the log above that you can share? I would like to see the stack trace of "Unable to get user information from the server" |
@alextran1502 cant post a screenshot RN but no stack. Just that message and “from: AuthenticationNotifier” The only one of those 3 red messages that had a stack is the one I posted. |
This thread has been going for a while, but I think it's a duplicate of #2980? |
At first glance I don’t think so - #2980 reports relating to Tailscale use. This issue is pretty much exclusively people using a real public domain name. Additionally, there is a wealth of logs and affected users subscribed to this issue, so I believe it should stay open. |
The circumstances are different, but the effect - Immich logging out because it failed to connect to the server - is the same. |
This is happening to me as well. I'm on 1.104. |
I might add that the logging out stopped for some time and then has started to happen again. Perhaps one of the fixes has adverse effects? |
This is happening to one of our iPhones on a regular basis as well which is annoying said user to the point they almost won't use the app anymore. As I'm trying to dump the other "not named" app I would love to see the app not force logout. |
@truncsphere The current workout for this iOS issue is disabling background backup. I will have to rework the entire authentication flow to fix this issue since none of the remediation works |
Thanks, @alextran1502 |
Hey, I have the same problem, yesterday with v1.107.2 on my ios device and server : When the request |
Ok, great to know that backing up manually is a viable workaround. I'm having exact same issue with a very vanilla setup, server is behind a public IP with Google OAuth auth only. Looking forward to the fix ❤️ |
Same issue on app 1.108.0 build.163 and server 1.108.0 |
Same issue on iOS App 1.108.0 build.163. |
Same here for what it's worth. |
The bug
I recently switched from exposing a port on my network to using Cloudflare tunnels to access Immich over the web. Works great, however I’ve noticed that I keep getting logged out after some time.
Sometimes it’s a day, other times a couple. Seems to be when I’m off local internet for some time. I read that some network resiliency was added a while back but not sure if it’s entirely functional. Cloudflare tunnel doesn’t report to be unreachable at any given time.
The OS that Immich Server is running on
unRAID 6.12 - Docker
Version of Immich Server
1.98.1
Version of Immich Mobile App
1.99.0 b 145
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response
The text was updated successfully, but these errors were encountered: