Mobile app keeps logging me out #2983

Closed
opened 2026-02-05 07:18:01 +03:00 by OVERLORD · 32 comments
Owner

Originally created by @simon-vajda on GitHub (Apr 20, 2024).

Originally assigned to: @alextran1502 on GitHub.

The bug

Since the last update (1.102.0) the app keeps logging me out every few hours.

Phone: Samsung Galaxy S22+ (Android 14)

The OS that Immich Server is running on

Unraid (Docker)

Version of Immich Server

v1.102.0

Version of Immich Mobile App

v1.102.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

-

Your .env content

-

Reproduction steps

1. When updated the mobile app it requested me to log in so i did (the server was already running v1.102.0)
2. After a few hours when I opened the app it wanted me to login again. This keeps happening.

Relevant log output

Unable to get user information from the server.

Unable to login through offline or online methods - logging out completely

Additional information

No response

Originally created by @simon-vajda on GitHub (Apr 20, 2024). Originally assigned to: @alextran1502 on GitHub. ### The bug Since the last update (1.102.0) the app keeps logging me out every few hours. Phone: Samsung Galaxy S22+ (Android 14) ### The OS that Immich Server is running on Unraid (Docker) ### Version of Immich Server v1.102.0 ### Version of Immich Mobile App v1.102.0 ### Platform with the issue - [x] Server - [ ] Web - [x] Mobile ### Your docker-compose.yml content ```YAML - ``` ### Your .env content ```Shell - ``` ### Reproduction steps ```bash 1. When updated the mobile app it requested me to log in so i did (the server was already running v1.102.0) 2. After a few hours when I opened the app it wanted me to login again. This keeps happening. ``` ### Relevant log output ```shell Unable to get user information from the server. Unable to login through offline or online methods - logging out completely ``` ### Additional information _No response_
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

I also encountered this today. It only happened once though. Will update this message when it happens again

Edit: it happened again

Btw in not on unRAID but Ubuntu Server with docker

@JordyEGNL commented on GitHub (Apr 20, 2024): I also encountered this today. It only happened once though. Will update this message when it happens again Edit: it happened again Btw in not on unRAID but Ubuntu Server with docker
Author
Owner

@smogger commented on GitHub (Apr 20, 2024):

Same here (also hosted from unraid)

@smogger commented on GitHub (Apr 20, 2024): Same here (also hosted from unraid)
Author
Owner

@simon-vajda commented on GitHub (Apr 20, 2024):

Just noticed this in the server logs:

ERROR [TypeError: Cannot read properties of undefined (reading 'id')
    at UserService.getMe (/usr/src/app/dist/services/user.service.js:70:42)
    at UserController.getMyUserInfo (/usr/src/app/dist/controllers/user.controller.js:39:29)
    at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:38:29
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)] TypeError: Cannot read properties of undefined (reading 'id')
@simon-vajda commented on GitHub (Apr 20, 2024): Just noticed this in the server logs: ``` ERROR [TypeError: Cannot read properties of undefined (reading 'id') at UserService.getMe (/usr/src/app/dist/services/user.service.js:70:42) at UserController.getMyUserInfo (/usr/src/app/dist/controllers/user.controller.js:39:29) at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:38:29 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)] TypeError: Cannot read properties of undefined (reading 'id') ```
Author
Owner

@clayauld commented on GitHub (Apr 20, 2024):

I'm seeing this issue too, and also running it in docker on UnRAID. I also noticed that the web client has logged me out when previously my computer would stay logged in via the web client without requiring me to authenticate again.

@clayauld commented on GitHub (Apr 20, 2024): I'm seeing this issue too, and also running it in docker on UnRAID. I also noticed that the web client has logged me out when previously my computer would stay logged in via the web client without requiring me to authenticate again.
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

I will put in a hot fix in a few hours

@alextran1502 commented on GitHub (Apr 20, 2024): I will put in a hot fix in a few hours
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

Just for a data point, are you guys all use background backup?

@alextran1502 commented on GitHub (Apr 20, 2024): Just for a data point, are you guys all use background backup?
Author
Owner

@simon-vajda commented on GitHub (Apr 20, 2024):

Yes I do

@simon-vajda commented on GitHub (Apr 20, 2024): Yes I do
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

Just for a data point, are you guys all use background backup?

Yes I am

@JordyEGNL commented on GitHub (Apr 20, 2024): > Just for a data point, are you guys all use background backup? Yes I am
Author
Owner

@smogger commented on GitHub (Apr 20, 2024):

Yes, altho I always has to open up the app to start the process. (i do have background backup set, and no battery save / restriction on the app at all)

@smogger commented on GitHub (Apr 20, 2024): Yes, altho I always has to open up the app to start the process. (i do have background backup set, and no battery save / restriction on the app at all)
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

I just merged #8594 which is a proper fix for Android. I will push out a release soon. If that doesn't work then I will merge this #8954

@alextran1502 commented on GitHub (Apr 20, 2024): I just merged #8594 which is a proper fix for Android. I will push out a release soon. If that doesn't work then I will merge this #8954
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

Screenshot_20240420-151229_Immich.png

This is the error I get when logged out randomly

@JordyEGNL commented on GitHub (Apr 20, 2024): ![Screenshot_20240420-151229_Immich.png](https://github.com/immich-app/immich/assets/65036298/941c62df-4678-4844-85fa-c0d2c38b3265) This is the error I get when logged out randomly
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

Okay, I pushed out the new release and submitted it to the app store. Hopefully, it will be available soon since it is the weekend.

Please let me know if it keeps happening on v1.102.1; otherwise, I will use another fix mentioned above.

Thank you all

@alextran1502 commented on GitHub (Apr 20, 2024): Okay, I pushed out the new release and submitted it to the app store. Hopefully, it will be available soon since it is the weekend. Please let me know if it keeps happening on `v1.102.1`; otherwise, I will use another fix mentioned above. Thank you all
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

Okay, I pushed out the new release and submitted it to the app store. Hopefully, it will be available soon since it is the weekend.

Please let me know if it keeps happening on v1.102.1; otherwise, I will use another fix mentioned above.

Thank you all

Thank you for the quick fix! It seems to be working fine, it hasn't logged me out yet :)

@JordyEGNL commented on GitHub (Apr 20, 2024): > Okay, I pushed out the new release and submitted it to the app store. Hopefully, it will be available soon since it is the weekend. > > Please let me know if it keeps happening on `v1.102.1`; otherwise, I will use another fix mentioned above. > > Thank you all Thank you for the quick fix! ~~It seems to be working fine, it hasn't logged me out yet :)~~
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

Unfortunately I got logged out again...

On the 1.102.1 update
Screenshot_20240420-174124_Immich.png

@JordyEGNL commented on GitHub (Apr 20, 2024): Unfortunately I got logged out again... On the 1.102.1 update ![Screenshot_20240420-174124_Immich.png](https://github.com/immich-app/immich/assets/65036298/8caab977-6416-4ccc-b843-555fbc4309c3)
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

Okay, another hotfix incoming

@alextran1502 commented on GitHub (Apr 20, 2024): Okay, another hotfix incoming
Author
Owner

@simon-vajda commented on GitHub (Apr 20, 2024):

It hasn't done it for me since the update, that being said it needed some time to happen before the fix too.

@simon-vajda commented on GitHub (Apr 20, 2024): It hasn't done it for me since the update, that being said it needed some time to happen before the fix too.
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

New release is submitted v1.102.2 let me know if it ultimately solves this issue

@alextran1502 commented on GitHub (Apr 20, 2024): New release is submitted `v1.102.2` let me know if it ultimately solves this issue
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

v1.102.2 is out on the PlayStore; please let me know if it fixes this for you guys.

@alextran1502 commented on GitHub (Apr 20, 2024): `v1.102.2` is out on the PlayStore; please let me know if it fixes this for you guys.
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

v1.102.2 is out on the PlayStore; please let me know if it fixes this for you guys.

I updated an hour ago and just got logged out again, the url is set to https://url/api is that correct? I first used the url without /api and that also worked fine

Screenshot_20240420-200541_Immich.png

@JordyEGNL commented on GitHub (Apr 20, 2024): > `v1.102.2` is out on the PlayStore; please let me know if it fixes this for you guys. I updated an hour ago and just got logged out again, the url is set to https://url/api is that correct? I first used the url without /api and that also worked fine ![Screenshot_20240420-200541_Immich.png](https://github.com/immich-app/immich/assets/65036298/b00b6cf6-5042-46a0-b849-ec38091d9bb4)
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

@JordyEGNL it was released like 10-15 minutes ago. You can try with /api

@alextran1502 commented on GitHub (Apr 20, 2024): @JordyEGNL it was released like 10-15 minutes ago. You can try with `/api`
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

@JordyEGNL it was released like 10-15 minutes ago. You can try with /api

I'm using apk from GitHub directly :)

@JordyEGNL commented on GitHub (Apr 20, 2024): > @JordyEGNL it was released like 10-15 minutes ago. You can try with `/api` I'm using apk from GitHub directly :)
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

@JordyEGNL I see, perfect. Now try with /api to see if it help

@alextran1502 commented on GitHub (Apr 20, 2024): @JordyEGNL I see, perfect. Now try with `/api` to see if it help
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

@JordyEGNL I see, perfect. Now try with /api to see if it help

That's what I'm doing since the first time it logged me out (1.102.0), will keep you updated when it happens again

@JordyEGNL commented on GitHub (Apr 20, 2024): > @JordyEGNL I see, perfect. Now try with `/api` to see if it help That's what I'm doing since the first time it logged me out (1.102.0), will keep you updated when it happens again
Author
Owner

@simon-vajda commented on GitHub (Apr 20, 2024):

I also updated my server and the app to 1.102.2 just now. Will get back to you after some time has passed and managed to test it.

@simon-vajda commented on GitHub (Apr 20, 2024): I also updated my server and the app to 1.102.2 just now. Will get back to you after some time has passed and managed to test it.
Author
Owner

@simon-vajda commented on GitHub (Apr 20, 2024):

I also updated my server and the app to 1.102.2 just now. Will get back to you after some time has passed and managed to test it.

I've got logged out on my phone using 1.102.2

@simon-vajda commented on GitHub (Apr 20, 2024): > I also updated my server and the app to 1.102.2 just now. Will get back to you after some time has passed and managed to test it. I've got logged out on my phone using 1.102.2
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

I also updated my server and the app to 1.102.2 just now. Will get back to you after some time has passed and managed to test it.

I've got logged out on my phone using 1.102.2

Same for me twice

@JordyEGNL commented on GitHub (Apr 20, 2024): > > I also updated my server and the app to 1.102.2 just now. Will get back to you after some time has passed and managed to test it. > > I've got logged out on my phone using 1.102.2 Same for me twice
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

Ok, looks like a bigger problem. I will have to do a throughly check to spot the issue. Do can you guys export your logs and post it here?

@alextran1502 commented on GitHub (Apr 20, 2024): Ok, looks like a bigger problem. I will have to do a throughly check to spot the issue. Do can you guys export your logs and post it here?
Author
Owner

@simon-vajda commented on GitHub (Apr 20, 2024):

/api/user/me gives a 500 error simetimes with "Failed to get my user info".

And as I wrote in an earlier comment:

ERROR [TypeError: Cannot read properties of undefined (reading 'id')
    at UserService.getMe (/usr/src/app/dist/services/user.service.js:70:42)
    at UserController.getMyUserInfo (/usr/src/app/dist/controllers/user.controller.js:39:29)
    at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:38:29
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)] TypeError: Cannot read properties of undefined (reading 'id')

The id is null but am not sure why.

@simon-vajda commented on GitHub (Apr 20, 2024): `/api/user/me` gives a 500 error simetimes with "Failed to get my user info". And as I wrote in an earlier comment: ``` ERROR [TypeError: Cannot read properties of undefined (reading 'id') at UserService.getMe (/usr/src/app/dist/services/user.service.js:70:42) at UserController.getMyUserInfo (/usr/src/app/dist/controllers/user.controller.js:39:29) at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:38:29 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)] TypeError: Cannot read properties of undefined (reading 'id') ``` The `id` is null but am not sure why.
Author
Owner

@JordyEGNL commented on GitHub (Apr 20, 2024):

Ok, looks like a bigger problem. I will have to do a throughly check to spot the issue. Do can you guys export your logs and post it here?

https://hastebin.nl/yumJgIa

@JordyEGNL commented on GitHub (Apr 20, 2024): > Ok, looks like a bigger problem. I will have to do a throughly check to spot the issue. Do can you guys export your logs and post it here? https://hastebin.nl/yumJgIa
Author
Owner

@alextran1502 commented on GitHub (Apr 20, 2024):

This looks like a bug from the server, the web also got logged out after a while. We are looking into this

@alextran1502 commented on GitHub (Apr 20, 2024): This looks like a bug from the server, the web also got logged out after a while. We are looking into this
Author
Owner

@simon-vajda commented on GitHub (Apr 20, 2024):

Ok, looks like a bigger problem. I will have to do a throughly check to spot the issue. Do can you guys export your logs and post it here?

immich_server.log

@simon-vajda commented on GitHub (Apr 20, 2024): > Ok, looks like a bigger problem. I will have to do a throughly check to spot the issue. Do can you guys export your logs and post it here? [immich_server.log](https://github.com/immich-app/immich/files/15049523/immich_server.log)
Author
Owner

@simon-vajda commented on GitHub (Apr 20, 2024):

Thank you guys for the weekend work

@simon-vajda commented on GitHub (Apr 20, 2024): Thank you guys for the weekend work
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2983