Mobile app (Android) still shows login screen when server unreachable, even after #7383 #2307

Closed
opened 2026-02-05 05:57:16 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @bdr99 on GitHub (Feb 28, 2024).

The bug

Similarly to the user in https://github.com/immich-app/immich/issues/4850, I'm using Immich behind a VPN (Tailscale). When the phone is not connected to the VPN, the server will be unreachable. This is causing the app to redirect me back to the login screen, and I am unable to browse my photos offline. The fix in https://github.com/immich-app/immich/pull/7383 unfortunately did not work for me.

I'm using Immich behind a Caddy reverse proxy. The reverse proxy is configured to only allow requests to the Immich server if they originate from the internal network (VPN). When the reverse proxy receives a request from the public internet, it will close the connection and not forward the request to the Immich server.

I'm attaching a CSV log below, but it doesn't contain much info. In addition to the info in the CSV log, the in-app log viewer shows the following details.

From: SplashScreenPage
Message: Failed to resolve endpoint
Details: Connection closed before full header was received

Please let me know if there is any more info I can provide to help troubleshoot this issue.

Immich_log_2024-02-28T141937.253411.csv

The OS that Immich Server is running on

Unraid 6.12.8

Version of Immich Server

v1.96.0

Version of Immich Mobile App

v1.96.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A - not using docker compose. Instead, I manually created the Docker containers in Unraid, using the docker-compose.yml from the repo as a guide.

Your .env content

N/A - using Unraid.

Reproduction steps

1. On the phone, disconnect from the Tailscale VPN.
2. Force stop the Immich app.
3. Open the Immich app.

Expected behavior: App should open in offline mode and should be able to browse photos.
Actual behavior: Redirected back to the login screen.

Additional information

No response

Originally created by @bdr99 on GitHub (Feb 28, 2024). ### The bug Similarly to the user in https://github.com/immich-app/immich/issues/4850, I'm using Immich behind a VPN (Tailscale). When the phone is not connected to the VPN, the server will be unreachable. This is causing the app to redirect me back to the login screen, and I am unable to browse my photos offline. The fix in https://github.com/immich-app/immich/pull/7383 unfortunately did not work for me. I'm using Immich behind a Caddy reverse proxy. The reverse proxy is configured to only allow requests to the Immich server if they originate from the internal network (VPN). When the reverse proxy receives a request from the public internet, it will close the connection and not forward the request to the Immich server. I'm attaching a CSV log below, but it doesn't contain much info. In addition to the info in the CSV log, the in-app log viewer shows the following details. ``` From: SplashScreenPage Message: Failed to resolve endpoint Details: Connection closed before full header was received ``` Please let me know if there is any more info I can provide to help troubleshoot this issue. [Immich_log_2024-02-28T141937.253411.csv](https://github.com/immich-app/immich/files/14439162/Immich_log_2024-02-28T141937.253411.csv) ### The OS that Immich Server is running on Unraid 6.12.8 ### Version of Immich Server v1.96.0 ### Version of Immich Mobile App v1.96.0 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML N/A - not using docker compose. Instead, I manually created the Docker containers in Unraid, using the docker-compose.yml from the repo as a guide. ``` ### Your .env content ```Shell N/A - using Unraid. ``` ### Reproduction steps ```bash 1. On the phone, disconnect from the Tailscale VPN. 2. Force stop the Immich app. 3. Open the Immich app. Expected behavior: App should open in offline mode and should be able to browse photos. Actual behavior: Redirected back to the login screen. ``` ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2307