mobile: should be more resilient to temporary communication issues #1014

Closed
opened 2026-02-04 23:58:13 +03:00 by OVERLORD · 10 comments
Owner

Originally created by @uhthomas on GitHub (Jun 27, 2023).

The bug

I use Tailscale to access Immich, and have an iOS automation which connects to Tailscale when I open the app. I found that Immich will try to resolve the host, fail, and then assume I'm actually unauthenticated and ask me to login again. It would be nice to:

  1. Not make that assumption.
  2. Handle transient connection failures more gracefully.

The OS that Immich Server is running on

N/A

Version of Immich Server

N/A

Version of Immich Mobile App

1.63.0 build.103

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

N/A

Additional information

No response

Originally created by @uhthomas on GitHub (Jun 27, 2023). ### The bug I use Tailscale to access Immich, and have an iOS automation which connects to Tailscale when I open the app. I found that Immich will try to resolve the host, fail, and then assume I'm actually unauthenticated and ask me to login again. It would be nice to: 1. Not make that assumption. 2. Handle transient connection failures more gracefully. ### The OS that Immich Server is running on N/A ### Version of Immich Server N/A ### Version of Immich Mobile App 1.63.0 build.103 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML N/A ``` ### Your .env content ```Shell N/A ``` ### Reproduction steps ```bash N/A ``` ### Additional information _No response_
OVERLORD added the 📱mobile label 2026-02-04 23:58:13 +03:00
Author
Owner

@awonglk commented on GitHub (Sep 27, 2023):

Curious if there is any plans to fix this issue?
It does impact background jobs whenever it's logged out, thus no photos are backed up until I open the app to login again.

@awonglk commented on GitHub (Sep 27, 2023): Curious if there is any plans to fix this issue? It does impact background jobs whenever it's logged out, thus no photos are backed up until I open the app to login again.
Author
Owner

@ddshd commented on GitHub (Oct 7, 2023):

Curious if there is any plans to fix this issue? It does impact background jobs whenever it's logged out, thus no photos are backed up until I open the app to login again.

Some of the changes I’ve made should have helped with this.

Could you help me with if you’re using a domain or direct IP in the app?

@ddshd commented on GitHub (Oct 7, 2023): > Curious if there is any plans to fix this issue? It does impact background jobs whenever it's logged out, thus no photos are backed up until I open the app to login again. Some of the changes I’ve made should have helped with this. Could you help me with if you’re using a domain or direct IP in the app?
Author
Owner

@awonglk commented on GitHub (Oct 7, 2023):

I am using a domain name

@awonglk commented on GitHub (Oct 7, 2023): I am using a domain name
Author
Owner

@traktuner commented on GitHub (Oct 7, 2023):

Same problem here. Not using Tailscale. Domain name (subdomain) with Let's Encrypt cert.
It happens every time I update the docker image. When the server is "not ready yet" and someone opens immich, it logs out. User has to log in again. Seems like that happens when you get a 502 back.
Maybe implement a "server not reachable" screen and retry in the background?
All my users are on iOS, all have the same problem including me.

@traktuner commented on GitHub (Oct 7, 2023): Same problem here. Not using Tailscale. Domain name (subdomain) with Let's Encrypt cert. It happens every time I update the docker image. When the server is "not ready yet" and someone opens immich, it logs out. User has to log in again. Seems like that happens when you get a 502 back. Maybe implement a "server not reachable" screen and retry in the background? All my users are on iOS, all have the same problem including me.
Author
Owner

@bt90 commented on GitHub (Feb 28, 2024):

Fixed by #7383

@bt90 commented on GitHub (Feb 28, 2024): Fixed by #7383
Author
Owner

@rawcomposition commented on GitHub (Apr 23, 2024):

Just started using the app a couple days ago and I've already been logged out 3 or 4 times for no apparent reason. Server is on v1.102.2

@rawcomposition commented on GitHub (Apr 23, 2024): Just started using the app a couple days ago and I've already been logged out 3 or 4 times for no apparent reason. Server is on v1.102.2
Author
Owner

@rawcomposition commented on GitHub (Apr 23, 2024):

Screenshot 2024-04-23 at 7 07 27 AM

The Immich instance was online the whole time, and logging in manually worked fine, so presumably it was a temporary outage I guess, hard to say what caused that. But would be great if it wouldn't log out every time there's a temporary outage.

@rawcomposition commented on GitHub (Apr 23, 2024): ![Screenshot 2024-04-23 at 7 07 27 AM](https://github.com/immich-app/immich/assets/740090/7ca9dcd2-6f8f-44a9-a352-14ca63a79e45) The Immich instance was online the whole time, and logging in manually worked fine, so presumably it was a temporary outage I guess, hard to say what caused that. But would be great if it wouldn't log out every time there's a temporary outage.
Author
Owner

@itaintgonnawell commented on GitHub (May 4, 2024):

In my case, free ddns service(duckdns) is sometimes down, server unreachable for some minutes or about an hour, and then iOS immich app automatically logged out when immich tries to background task or ping I guess. (Not happened with my iPad app which logged in but background backup not enabled)

Please consider to add 'retry access with delay'
since I think most of users can't notice such background logout and keep considering background backup works.

@itaintgonnawell commented on GitHub (May 4, 2024): In my case, free ddns service(duckdns) is sometimes down, server unreachable for some minutes or about an hour, and then iOS immich app automatically logged out when immich tries to background task or ping I guess. (Not happened with my iPad app which logged in but background backup not enabled) Please consider to add 'retry access with delay' since I think most of users can't notice such background logout and keep considering background backup works.
Author
Owner

@lasdem commented on GitHub (Jul 11, 2024):

My wife experiences the same issues on iOS, now twice within 7 days. On Android I did not have this issue yet.
Last instance correlates with me updating the server, after that she was logged out.

@lasdem commented on GitHub (Jul 11, 2024): My wife experiences the same issues on iOS, now twice within 7 days. On Android I did not have this issue yet. Last instance correlates with me updating the server, after that she was logged out.
Author
Owner

@bt90 commented on GitHub (Jul 11, 2024):

While it doesn't solve the underlying problem, the suggestion in #11034 may at least improve usability.

@bt90 commented on GitHub (Jul 11, 2024): While it doesn't solve the underlying problem, the suggestion in #11034 may at least improve usability.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1014