[BUG] App logs out the user on a HTTP 502 #1277

Closed
opened 2026-02-05 01:09:23 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @bt90 on GitHub (Aug 26, 2023).

The bug

I quickly opened the app after updating immich today and was promptly logged out of because the server hadn't finished its startup yet.

My proxy answered with a HTTP 502 - Bad gateway and the app killed my existing session.

I don't think there's a point to force a relogin in such a case. Even worse, a restart of Immich could lead to a silent logout of the user while the app is running in background.

The OS that Immich Server is running on

Ubuntu 22.04

Version of Immich Server

v1.75.0

Version of Immich Mobile App

v1.74.0 build.97

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

not related

Your .env content

not related

Reproduction steps

1. Login to the app
2. Close the app
3. Stop the server but not the reverse proxy
4. Reopen the app
5. You're logged out now

Additional information

No response

Originally created by @bt90 on GitHub (Aug 26, 2023). ### The bug I quickly opened the app after updating immich today and was promptly logged out of because the server hadn't finished its startup yet. My proxy answered with a HTTP 502 - Bad gateway and the app killed my existing session. I don't think there's a point to force a relogin in such a case. Even worse, a restart of Immich could lead to a silent logout of the user while the app is running in background. ### The OS that Immich Server is running on Ubuntu 22.04 ### Version of Immich Server v1.75.0 ### Version of Immich Mobile App v1.74.0 build.97 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML not related ``` ### Your .env content ```Shell not related ``` ### Reproduction steps ```bash 1. Login to the app 2. Close the app 3. Stop the server but not the reverse proxy 4. Reopen the app 5. You're logged out now ``` ### Additional information _No response_
OVERLORD added the 📱mobile label 2026-02-05 01:09:23 +03:00
Author
Owner

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

I have the same problem
docker server and iOS app

@traktuner commented on GitHub (Oct 6, 2023): I have the same problem docker server and iOS app
Author
Owner

@uhthomas commented on GitHub (Oct 6, 2023):

Duplicate of https://github.com/immich-app/immich/issues/2980

@uhthomas commented on GitHub (Oct 6, 2023): Duplicate of https://github.com/immich-app/immich/issues/2980
Author
Owner

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

Are you using domain or IP address?

@ddshd commented on GitHub (Oct 6, 2023): Are you using domain or IP address?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1277