Android backup on the backgroud doesn't work #9205
Replies: 14 comments 11 replies
-
Are there any errors in the Immich logs? In general We have no control over this. https://immich.app/docs/FAQ/#why-does-foreground-backup-stop-when-i-navigate-away-from-the-app-shouldnt-it-transfer-the-job-to-background-backup |
Beta Was this translation helpful? Give feedback.
-
There are a lot of errors in logs, but not from the time until the app was opened. It was 22:44-22:46 Immich_log_2024-05-01T22_47_29.404099.log So that probably mean the app was suspended, when was not visible. Can't you really do anything about it? Some apps are using wake lock - e.g termux and it works on background perfectly. It shows icon in upper panel, close to clock. |
Beta Was this translation helpful? Give feedback.
-
Have same issue in j710f android 8.1, disabled optimization of battery, like made for nextcloud and nextcloud sync is working but not immich... |
Beta Was this translation helpful? Give feedback.
-
Same issue here. I've disabled battery optimizations and disabled the ability for android to pause background activity. The app only backups up when the app is open and the backup screen is up. |
Beta Was this translation helpful? Give feedback.
-
Problem still persists with the newest app |
Beta Was this translation helpful? Give feedback.
-
update: my experiments show a result:
After that background syncing starts. Can someone reproduce? |
Beta Was this translation helpful? Give feedback.
-
Same problem on the latest version (1.132.3 build.197). Pixel 5a. Foreground backup off. Background backup on. Allow background usage on. Pause if unused off. After opening Immich. Background backup will run for a while. Maybe a few days. And at some point, it will stop working. For example today I noticed that the last upload was from a week ago even though I took pictures almost every day. Starting the Immich app awoken it, and now the background backup is working. Google photo doesn't have this issue. I also have Syncthing uploading the photos in the background as well. (Yes I know, I am uploading every thing 3 times. Ultimately I want to rely on Immich only). I don't have logs or actionable items to offer. Merely adding my observation to the list. |
Beta Was this translation helpful? Give feedback.
-
To add to it, I was on WiFi. Internet went down. Phone switched to cellular
temporarily. I took photos. When it was back on WiFi, Immich never resumed
backing up. Opening the application resumed the backup process right away.
…On Wed, May 14, 2025, 01:39 Thomas Calderon ***@***.***> wrote:
I also can confirm this is what I am seeing on my Pixel 6a (latest
Android/Immich app/server).
—
Reply to this email directly, view it on GitHub
<#9205 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUZDAYNBMQ5SNKTOJMC7T26L6MRAVCNFSM6AAAAAB35NY6LGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJUGIYTANQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am partially having the same issue I have my battery settings for Immich set to "do not optimize" and i allow full unrestricted background use but if the screen turns off, it stops immediately some people think google photos has "special" permission, as its Google |
Beta Was this translation helpful? Give feedback.
-
I wonder if this is because somehow immich doesn't get to see the new files
at all. On android 13, sync thing cannot see the files at all after the
initial scan. I haven't debugged far, but it literally do not see any new
files, it's like they do not exist. As if it is given an old view of the
filesystem. Adding new files manually via a shell did not change this view.
I could see them, see my new files. The file explorer on this flavor of
Android could seen my shell create files. But not synctning. Resetting the
state of sync thing and then going to the permission grant to access the
directory gave access to the files to syncthing. But any new files after
that were invisible.
Could it be some sort of android security somehow presenting a stale view
of the filesystem?
But after saying all that I am aware that Immich uses the photo API.
Not sure if helping but that's something.
…On Mon, May 26, 2025, 17:57 charettepa ***@***.***> wrote:
I am partially having the same issue
I have my battery settings for Immich set to "do not optimize" and i allow
full unrestricted background use
even if i am not in the app, it DOES backup in the background
but if the screen turns off, it stops immediately
some people think google photos has "special" permission, as its Google
and that's why it works
but.... there is 100% has to be a way to get around this
I am currently migrating from Synology photos
it functions at all times even with screen off
so there has to be a way to achieve this, be it special app permission in
the background or specific api calls, etc....
—
Reply to this email directly, view it on GitHub
<#9205 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUZDBQ4Z635SHOILLDDVL3AO2AZAVCNFSM6AAAAAB35NY6LGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMRXG4YTCMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Android 16, Pixel 9 Pro, still no changes. Everyday I just open the app to backup the data, otherwise it can be stale for weeks. |
Beta Was this translation helpful? Give feedback.
-
pixel5a. opening the app is enough to refresh and trigger the background
backup.
…On Sat, Aug 9, 2025, 12:11 Quemaqua ***@***.***> wrote:
Pixel 6 here, neither foreground or background automatic backups work for
me. Have to manually start the process. Usual suspects turned on/off on
phone (sleep, battery optimization, etc.).
—
Reply to this email directly, view it on GitHub
<#9205 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUZDE54OZZVOIMOPAQFF33MZBU3AVCNFSM6AAAAAB35NY6LGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMBVHEYDKNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, I Love Immich, but without a reliable Backup, I cannot use it. Any fix in sight? |
Beta Was this translation helpful? Give feedback.
-
With the new Beta it is way better for now. Beta is rolled out to everyone. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The bug
Android backup on the background doesn't work, I have to open the app to start synchronization.
Allow background usage in settings is allowed. Nothing else like "no optimization" is not available.
The OS that Immich Server is running on
Arlinux
Version of Immich Server
1.103
Version of Immich Mobile App
1.103
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
Android is 14, clean lineage os for whyred (xiaomi redmi note 5 pro)
Beta Was this translation helpful? Give feedback.
All reactions