© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•4mo ago•
7 replies
yozzo_pan

Error in android app while syncing

Hi everyone,
I’m having a recurring issue on the Android app where remote sync keeps failing with this error:

SqliteException(787): FOREIGN KEY constraint failed
Causing statement:
INSERT INTO memory_asset_entity ("asset_id", "memory_id") VALUES (?, ?)
ON CONFLICT("asset_id", "memory_id") DO NOTHING
parameters:
cla5838f-ef10-405e-97f3-11dffe4d4360, b3ae0974-b1ac-4e5c-9cf9-77c720f937fd
FROM DriftSyncStreamRepository

When this happens, the entire remote sync stops working, uploads fail and nothing new gets synced.
I already tried updating the Immich server with docker compose pull && docker compose up -d, but the issue is still there. I haven’t rebuilt or reset the local database yet because I don’t want to re-sync everything from scratch.

I’m running the app version 2.2.0 (build 3023), with a server on version 2.2.1 The app also says “App update is available,” but there’s no update showing on the Play Store.

Has anyone run into this before or found a fix? Could it be caused by orphaned records or a mismatch between app and server versions? I’d really like to solve it without resetting or losing sync data.

Thanks!
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

not syncing from android app
ImmichIImmich / help-desk-support
3mo ago
No assets syncing on Android app
ImmichIImmich / help-desk-support
3y ago
user error in android app?
ImmichIImmich / help-desk-support
9mo ago
Android videos not syncing
ImmichIImmich / help-desk-support
14mo ago