Android client disconnects when screen goes off #25

Closed
opened 2026-02-04 16:38:47 +03:00 by OVERLORD · 10 comments
Owner

Originally created by @arminus on GitHub (Mar 20, 2022).

Client: v.0.6 Android 8.0
Server: Pi4

Backup stops as soon as the screen of my device turns off/locks.

Server reports

immich_server_1  | [Nest] 29  - 03/20/2022, 7:58:06 AM     LOG Client AEq3t1AYFKHKs2TeAAAN disconnected

I'd expect it to continue to run in the background?

When I turn on/unlock the device, backup will continue, there is the following message in the server's log:

immich_server_1  | [Nest] 29  - 03/20/2022, 7:49:00 AM   ERROR [ExceptionsHandler] The "path" argument must be of type string or an instance of Buffer or URL. Received null
immich_server_1  | TypeError: The "path" argument must be of type string or an instance of Buffer or URL. Received null
immich_server_1  |     at new ReadStream (node:internal/fs/streams:171:5)
immich_server_1  |     at createReadStream (node:fs:2873:10)
immich_server_1  |     at AssetService.serveFile (/usr/src/app/src/api-v1/asset/asset.service.ts:161:32)
immich_server_1  |     at runMicrotasks (<anonymous>)
immich_server_1  |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
immich_server_1  |     at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:46:28
immich_server_1  |     at /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17

Backup continues for a while until the screen turns off again.

Originally created by @arminus on GitHub (Mar 20, 2022). Client: v.0.6 Android 8.0 Server: Pi4 Backup stops as soon as the screen of my device turns off/locks. Server reports ``` immich_server_1 | [Nest] 29 - 03/20/2022, 7:58:06 AM LOG Client AEq3t1AYFKHKs2TeAAAN disconnected ``` I'd expect it to continue to run in the background? When I turn on/unlock the device, backup will continue, there is the following message in the server's log: ``` immich_server_1 | [Nest] 29 - 03/20/2022, 7:49:00 AM ERROR [ExceptionsHandler] The "path" argument must be of type string or an instance of Buffer or URL. Received null immich_server_1 | TypeError: The "path" argument must be of type string or an instance of Buffer or URL. Received null immich_server_1 | at new ReadStream (node:internal/fs/streams:171:5) immich_server_1 | at createReadStream (node:fs:2873:10) immich_server_1 | at AssetService.serveFile (/usr/src/app/src/api-v1/asset/asset.service.ts:161:32) immich_server_1 | at runMicrotasks (<anonymous>) immich_server_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5) immich_server_1 | at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:46:28 immich_server_1 | at /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17 ``` Backup continues for a while until the screen turns off again.
Author
Owner

@alextran1502 commented on GitHub (Mar 20, 2022):

This is expected behavior for the current version. I have plans to work on background backup in future releases.

@alextran1502 commented on GitHub (Mar 20, 2022): This is expected behavior for the current version. I have plans to work on background backup in future releases.
Author
Owner

@alextran1502 commented on GitHub (Apr 1, 2022):

A potential package that solves this problem flutter_uploader

@alextran1502 commented on GitHub (Apr 1, 2022): A potential package that solves this problem [flutter_uploader](https://github.com/fluttercommunity/flutter_uploader)
Author
Owner

@LouisFaure commented on GitHub (May 6, 2022):

Also, restricting backups to situations like battery charging and/or a non-metered wifi connection would be a must!

@LouisFaure commented on GitHub (May 6, 2022): Also, restricting backups to situations like battery charging and/or a non-metered wifi connection would be a must!
Author
Owner

@ma-karai commented on GitHub (May 16, 2022):

I'd already be happy, with a tick background upload enable at all costs. :D I'd upload my entire phone once when connected, and then untick that thing 🗡️

Btw: Alex, amazing work. I use immich with a photoprism, photolibre and photoview instance, and it just works perfectly.

@ma-karai commented on GitHub (May 16, 2022): I'd already be happy, with a tick background upload enable at all costs. :D I'd upload my entire phone once when connected, and then untick that thing 🗡️ Btw: Alex, amazing work. I use immich with a photoprism, photolibre and photoview instance, and it just works perfectly.
Author
Owner

@palitu commented on GitHub (May 27, 2022):

@ma-karai - what do you mean? how do you do that?

@palitu commented on GitHub (May 27, 2022): @ma-karai - what do you mean? how do you do that?
Author
Owner

@ma-karai commented on GitHub (May 27, 2022):

How do I do what?

@ma-karai commented on GitHub (May 27, 2022): How do I do what?
Author
Owner

@spupuz commented on GitHub (Jun 1, 2022):

Application logoff when is closed or the phone is restarted

@spupuz commented on GitHub (Jun 1, 2022): Application logoff when is closed or the phone is restarted
Author
Owner

@alextran1502 commented on GitHub (Jun 2, 2022):

@spupuz Let's open a new issue for that bug.

@alextran1502 commented on GitHub (Jun 2, 2022): @spupuz Let's open a new issue for that bug.
Author
Owner

@spupuz commented on GitHub (Jun 4, 2022):

@spupuz Let's open a new issue for that bug.

I did

@spupuz commented on GitHub (Jun 4, 2022): > @spupuz Let's open a new issue for that bug. I did
Author
Owner

@alextran1502 commented on GitHub (Jun 12, 2022):

Closing this issue as it is the expected behavior for the app at this stage.

@alextran1502 commented on GitHub (Jun 12, 2022): Closing this issue as it is the expected behavior for the app at this stage.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#25