App offline Takes Too Long to Load timeline #4069

Closed
opened 2026-02-05 09:40:27 +03:00 by OVERLORD · 15 comments
Owner

Originally created by @DaanHend on GitHub (Aug 14, 2024).

The bug

When I open the app on Android without a connection to the server (offline mode), the app becomes unusable. It takes an excessively long time to load anything, often around 1 minute, with the app remaining stuck on the loading screen displaying the logo. Even in cases where it is slightly faster, the minimum wait time is still around 10 seconds.

This delay is significant enough that I most of the time resort to using Google Photos for quickly accessing my photos. For Immich, I need to use Tailscale to achieve a usable experience. Waiting 10 seconds or more just to view a recently taken photo or another existing one feels too long and inconvenient.

The OS that Immich Server is running on

Latest

Version of Immich Server

Latest

Version of Immich Mobile App

Latest

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

I dont think this is related to the problem.

Your .env content

I dont think this is related to the problem.

Reproduction steps

1. Ensure No Server Connection. Disconnect any traffic to the server.
2. Launch the app while the device is offline or without access to the server.
3. Observe the Behavior:

Use Android. Cant relate to IOS

Relevant log output

No response

Additional information

No response

Originally created by @DaanHend on GitHub (Aug 14, 2024). ### The bug When I open the app on Android without a connection to the server (offline mode), the app becomes unusable. It takes an excessively long time to load anything, often around 1 minute, with the app remaining stuck on the loading screen displaying the logo. Even in cases where it is slightly faster, the minimum wait time is still around 10 seconds. This delay is significant enough that I most of the time resort to using Google Photos for quickly accessing my photos. For Immich, I need to use Tailscale to achieve a usable experience. Waiting 10 seconds or more just to view a recently taken photo or another existing one feels too long and inconvenient. ### The OS that Immich Server is running on Latest ### Version of Immich Server Latest ### Version of Immich Mobile App Latest ### Platform with the issue - [ ] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML I dont think this is related to the problem. ``` ### Your .env content ```Shell I dont think this is related to the problem. ``` ### Reproduction steps ```bash 1. Ensure No Server Connection. Disconnect any traffic to the server. 2. Launch the app while the device is offline or without access to the server. 3. Observe the Behavior: Use Android. Cant relate to IOS ``` ### Relevant log output _No response_ ### Additional information _No response_
Author
Owner

@alextran1502 commented on GitHub (Aug 14, 2024):

Can you help me connect to the local IP when you are at home, then disconnect the server, kill the app, and open it again? I am trying to figure out if this is Tailscale timeout issue or the app itself since I cannot reproduce this scenario on my end

@alextran1502 commented on GitHub (Aug 14, 2024): Can you help me connect to the local IP when you are at home, then disconnect the server, kill the app, and open it again? I am trying to figure out if this is Tailscale timeout issue or the app itself since I cannot reproduce this scenario on my end
Author
Owner

@DaanHend commented on GitHub (Aug 14, 2024):

Yes. I did:

  • logout of current Immich adress
  • Connect to local IP of server
  • "Timeline build"
  • Disconnect wifi and kill Immich Task
  • with no internet reopen Immich
  • opens immediately...

Tried it then again with an Tailscale IP same way as above.
It did the same as described in the issue again.

Seems indeed Tailscale related.

You think this is resolveable?

@DaanHend commented on GitHub (Aug 14, 2024): Yes. I did: - logout of current Immich adress - Connect to local IP of server - "Timeline build" - Disconnect wifi and kill Immich Task - with no internet reopen Immich - opens immediately... Tried it then again with an Tailscale IP same way as above. It did the same as described in the issue again. Seems indeed Tailscale related. You think this is resolveable?
Author
Owner

@alextran1502 commented on GitHub (Aug 14, 2024):

Do you know if there are any settings to help reduce the timeout check for Tailscale?

@alextran1502 commented on GitHub (Aug 14, 2024): Do you know if there are any settings to help reduce the timeout check for Tailscale?
Author
Owner

@DaanHend commented on GitHub (Aug 14, 2024):

Not that I know of. Did some reading and can't find anything related yet.

Would Immich not check the connection, if not after x seconds open the timeline anyway? It seems there is something in place, but it takes a lot of time.

@DaanHend commented on GitHub (Aug 14, 2024): Not that I know of. Did some reading and can't find anything related yet. Would Immich not check the connection, if not after x seconds open the timeline anyway? It seems there is something in place, but it takes a lot of time.
Author
Owner

@vinyasns commented on GitHub (Aug 15, 2024):

I see a similar behaviour when the server is offline. I use tailscale IP to connect to the server.

@vinyasns commented on GitHub (Aug 15, 2024): I see a similar behaviour when the server is offline. I use tailscale IP to connect to the server.
Author
Owner

@ChiNoel-osu commented on GitHub (Aug 23, 2024):

I can confirm this on iOS, done some testing:

  • It will take a long time to load when my phone has access to network but can't reach to Immich server.
    • For example, when I connect to a different Wi-Fi and the Immich server just don't exist on that network.
  • The App launches instantly when:
    • Server is up and reachable.
    • My phone has no connection to any network whatsoever.
@ChiNoel-osu commented on GitHub (Aug 23, 2024): I can confirm this on iOS, done some testing: - It will take a long time to load when my phone has access to network **but** can't reach to Immich server. - For example, when I connect to a different Wi-Fi and the Immich server just don't exist on that network. - The App launches instantly when: - Server is up and reachable. - My phone has no connection to any network whatsoever.
Author
Owner

@alextran1502 commented on GitHub (Aug 23, 2024):

@zackpollard would you like to look at this behavior?

@alextran1502 commented on GitHub (Aug 23, 2024): @zackpollard would you like to look at this behavior?
Author
Owner

@DanielChydz commented on GitHub (Aug 28, 2024):

Same issue, just to bump the thread.

@DanielChydz commented on GitHub (Aug 28, 2024): Same issue, just to bump the thread.
Author
Owner

@vinyasns commented on GitHub (Aug 30, 2024):

Thank you @alextran1502 !

@vinyasns commented on GitHub (Aug 30, 2024): Thank you @alextran1502 !
Author
Owner

@DaanHend commented on GitHub (Aug 31, 2024):

Thanks @alextran1502! It works

But I have to say. It seems a bit of a simple work around. To timeout getuser when it takes to long. It is still 7 seconds. If I quickly need a photo from my phone to show, then I'm still not opening Immich. I know its a backup tool first. But GP opens instantly without a connection.

Wouldn't it be better to make Immich start directly and parallel to it establish the connection to the server?

@DaanHend commented on GitHub (Aug 31, 2024): Thanks @alextran1502! It works But I have to say. It seems a bit of a simple work around. To timeout getuser when it takes to long. It is still 7 seconds. If I quickly need a photo from my phone to show, then I'm still not opening Immich. I know its a backup tool first. But GP opens instantly without a connection. Wouldn't it be better to make Immich start directly and parallel to it establish the connection to the server?
Author
Owner

@zackpollard commented on GitHub (Aug 31, 2024):

That's essentially our long term goal but right now this is the best we can do. There needs to be a bunch of changes in the app before that will be an easy change to make without a bunch of other issues 🙂

@zackpollard commented on GitHub (Aug 31, 2024): That's essentially our long term goal but right now this is the best we can do. There needs to be a bunch of changes in the app before that will be an easy change to make without a bunch of other issues 🙂
Author
Owner

@alextran1502 commented on GitHub (Aug 31, 2024):

@DaanHend this is a workaround for now, we will take a look into this to proper fixing it in the doming weeks. Is your connection to your server not available that often?

@alextran1502 commented on GitHub (Aug 31, 2024): @DaanHend this is a workaround for now, we will take a look into this to proper fixing it in the doming weeks. Is your connection to your server not available that often?
Author
Owner

@DaanHend commented on GitHub (Sep 2, 2024):

Hi! Thanks for the reply.

Glad to hear that a better solution is in the works. I can totally see how it could affect more of the app once it’s properly implemented. For now, this workaround does the job. Before, I couldn’t use the app if Tailscale would have been disconnected, but now it’s at least functional, even if it’s a bit of a wait. I know there are other features that need attention, so I’m cool with waiting for the final fix.

Thanks again for all the effort you’re putting in!

@DaanHend commented on GitHub (Sep 2, 2024): Hi! Thanks for the reply. Glad to hear that a better solution is in the works. I can totally see how it could affect more of the app once it’s properly implemented. For now, this workaround does the job. Before, I couldn’t use the app if Tailscale would have been disconnected, but now it’s at least functional, even if it’s a bit of a wait. I know there are other features that need attention, so I’m cool with waiting for the final fix. Thanks again for all the effort you’re putting in!
Author
Owner

@DaanHend commented on GitHub (Jan 6, 2025):

I am still experiencing slow opening times for local files when there is no internet connection. The application seems to be attempting to retrieve thumbnails or other data, which results in a delay of about 5 seconds before I can access my files. Since I have a small data plan, I would prefer the application to open local files immediately without waiting.

Please let me know if you would prefer me to reopen the existing issue or if I should create a new one for this specific concern.

@DaanHend commented on GitHub (Jan 6, 2025): I am still experiencing slow opening times for local files when there is no internet connection. The application seems to be attempting to retrieve thumbnails or other data, which results in a delay of about 5 seconds before I can access my files. Since I have a small data plan, I would prefer the application to open local files immediately without waiting. Please let me know if you would prefer me to reopen the existing issue or if I should create a new one for this specific concern.
Author
Owner

@DaanHend commented on GitHub (Jan 6, 2025):

I will open new issue*

@DaanHend commented on GitHub (Jan 6, 2025): I will open new issue*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#4069