2025-11-17 22:02:09.281443 | info | SyncApiRepository | Remote Sync completed in 157ms | 2025-11-17 22:02:09.124200 | info | SyncStreamService | Remote sync request for user | 2025-11-17 22:02:09.111097 | severe | IsolateLogger | Error in runInIsolateGentle for linked-album-sync | ApiException 400: {"message":"Album not found","error":"Bad Request","statusCode":400,"correlationId":"an8k71h8"} | #0 AlbumsApi.addAssetsToAlbum (package:openapi/api/albums_api.dart:79) #1 ApiRepository.checkNull (package:immich_mobile/infrastructure/repositories/api.repository.dart:7) #2 DriftAlbumApiRepository.addAssets (package:immich_mobile/repositories/drift_album_api_repository.dart:39) #3 SyncLinkedAlbumService.syncLinkedAlbums. (package:immich_mobile/domain/services/sync_linked_album.service.dart:48) #4 Future.wait. (dart:async/future.dart:525) #5 SyncLinkedAlbumService.syncLinkedAlbums (package:immich_mobile/domain/services/sync_linked_album.service.dart:30) #6 runInIsolateGentle.. (package:immich_mobile/utils/isolate.dart:58) #7 runInIsolateGentle. (package:immich_mobile/utils/isolate.dart:37) #8 WorkerImpl._anotherIsolate. (package:worker_manager/src/worker/worker_io.dart:106) 2025-11-17 22:02:08.937394 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 22:02:08.937389 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 22:02:08.935409 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 22:02:08.590636 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 22:02:08.590633 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 22:02:08.589464 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 22:02:07.321172 | info | AppLifeCycleNotifier | Using server URL: null | 2025-11-17 22:02:06.933301 | info | HashService | Hashing took - 918ms | 2025-11-17 22:02:06.927466 | severe | IsolateLogger | Error in runInIsolateGentle for linked-album-sync | ApiException 400: {"message":"Album not found","error":"Bad Request","statusCode":400,"correlationId":"x2kvq6cf"} | #0 AlbumsApi.addAssetsToAlbum (package:openapi/api/albums_api.dart:79) #1 ApiRepository.checkNull (package:immich_mobile/infrastructure/repositories/api.repository.dart:7) #2 DriftAlbumApiRepository.addAssets (package:immich_mobile/repositories/drift_album_api_repository.dart:39) #3 SyncLinkedAlbumService.syncLinkedAlbums. (package:immich_mobile/domain/services/sync_linked_album.service.dart:48) #4 Future.wait. (dart:async/future.dart:525) #5 SyncLinkedAlbumService.syncLinkedAlbums (package:immich_mobile/domain/services/sync_linked_album.service.dart:30) #6 runInIsolateGentle.. (package:immich_mobile/utils/isolate.dart:58) #7 runInIsolateGentle. (package:immich_mobile/utils/isolate.dart:37) #8 WorkerImpl._anotherIsolate. (package:worker_manager/src/worker/worker_io.dart:106) 2025-11-17 22:02:06.587223 | info | SyncApiRepository | Remote Sync completed in 573ms | 2025-11-17 22:02:06.019937 | info | DeviceSyncService | Device sync took - 11ms | 2025-11-17 22:02:06.014454 | info | HashService | Starting hashing of assets | 2025-11-17 22:02:06.013850 | info | SyncStreamService | Remote sync request for user | 2025-11-17 22:02:05.446931 | info | AppLifeCycleNotifier | Using server URL: null | 2025-11-17 22:01:18.646651 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 22:01:18.646596 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 22:01:18.618226 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 22:01:18.618221 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 22:01:18.617143 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 22:01:16.614088 | info | HashService | Hashing took - 6ms | 2025-11-17 22:01:16.607407 | info | HashService | Starting hashing of assets | 2025-11-17 22:01:16.568121 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 22:01:16.568115 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 22:01:16.562143 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 22:01:14.559579 | info | SyncApiRepository | Remote Sync completed in 156ms | 2025-11-17 22:01:14.406217 | info | DeviceSyncService | Device sync took - 4ms | 2025-11-17 22:01:14.403039 | info | SyncStreamService | Remote sync request for user | 2025-11-17 22:01:13.838745 | info | AppLifeCycleNotifier | Using server URL: null | 2025-11-17 21:59:52.835621 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:59:52.835567 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:59:52.807885 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:59:52.807881 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:59:52.806218 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:59:50.804139 | info | HashService | Hashing took - 9ms | 2025-11-17 21:59:50.794744 | info | HashService | Starting hashing of assets | 2025-11-17 21:59:50.767372 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:59:50.767367 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:59:50.765438 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:59:48.763299 | info | DeviceSyncService | Device sync took - 402ms | 2025-11-17 21:59:48.165828 | info | SyncApiRepository | Remote Sync completed in 163ms | 2025-11-17 21:59:48.001860 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:59:47.790674 | info | AppLifeCycleNotifier | Using server URL: null | 2025-11-17 21:59:23.286094 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:59:23.286043 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:59:23.256723 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:59:23.256720 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:59:23.255671 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:59:21.253226 | info | HashService | Hashing took - 9ms | 2025-11-17 21:59:21.243771 | info | HashService | Starting hashing of assets | 2025-11-17 21:59:21.216951 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:59:21.216946 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:59:21.215572 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:59:19.213267 | info | SyncApiRepository | Remote Sync completed in 183ms | 2025-11-17 21:59:19.032183 | info | DeviceSyncService | Device sync took - 2ms | 2025-11-17 21:59:19.030163 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:59:18.475738 | info | AppLifeCycleNotifier | Using server URL: null | 2025-11-17 21:58:10.461803 | info | SyncApiRepository | Remote Sync completed in 177ms | 2025-11-17 21:58:10.284673 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:58:08.602563 | info | DeviceSyncService | Device sync took - 436ms | 2025-11-17 21:58:08.602524 | info | DeviceSyncService | Full device sync took - 436ms | 2025-11-17 21:57:59.438028 | severe | ImmichErrorLogger | PlatformDispatcher - Catch all | Bad state: Cannot use "ref" after the widget was disposed. | #0 ConsumerStatefulElement._assertNotDisposed (package:flutter_riverpod/src/consumer.dart:550) #1 ConsumerStatefulElement.read (package:flutter_riverpod/src/consumer.dart:619) #2 _DriftBackupPageState.initState. (package:immich_mobile/pages/backup/drift_backup.page.dart:52) 2025-11-17 21:57:57.435912 | info | SyncApiRepository | Remote Sync completed in 136ms | 2025-11-17 21:57:57.299168 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:57:42.787536 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:57:42.787475 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:57:42.763869 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:57:42.763862 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:57:42.762441 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:57:40.765390 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:57:40.765385 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:57:40.759561 | info | HashService | Hashing took - 9ms | 2025-11-17 21:57:40.750093 | info | HashService | Starting hashing of assets | 2025-11-17 21:57:40.747028 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:57:38.744211 | info | SyncApiRepository | Remote Sync completed in 410ms | 2025-11-17 21:57:38.395791 | info | DeviceSyncService | Device sync took - 62ms | 2025-11-17 21:57:38.333787 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:57:23.135429 | info | SyncApiRepository | Remote Sync completed in 180ms | 2025-11-17 21:57:22.954986 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:57:20.945812 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:57:20.945753 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:57:15.267285 | info | SyncApiRepository | Remote Sync completed in 203ms | 2025-11-17 21:57:15.064044 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:57:12.472910 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:57:12.472878 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:57:12.448809 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:57:12.448803 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:57:12.447737 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:57:10.445289 | info | HashService | Hashing took - 7ms | 2025-11-17 21:57:10.437380 | info | HashService | Starting hashing of assets | 2025-11-17 21:57:10.399504 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:57:10.399498 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:57:10.397644 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:57:08.395296 | info | SyncApiRepository | Remote Sync completed in 181ms | 2025-11-17 21:57:08.219244 | info | DeviceSyncService | Device sync took - 5ms | 2025-11-17 21:57:08.214049 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:57:07.650224 | info | AppLifeCycleNotifier | Using server URL: null | 2025-11-17 21:56:04.844030 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:56:04.843970 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:56:04.820037 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:56:04.820033 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:56:04.818406 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:56:02.815401 | info | HashService | Hashing took - 10ms | 2025-11-17 21:56:02.805172 | info | HashService | Starting hashing of assets | 2025-11-17 21:56:02.779976 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:56:02.779968 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:56:02.777715 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:56:00.773844 | info | SyncApiRepository | Remote Sync completed in 180ms | 2025-11-17 21:56:00.599272 | info | DeviceSyncService | Device sync took - 6ms | 2025-11-17 21:56:00.593086 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:56:00.054399 | info | AppLifeCycleNotifier | Using server URL: null | 2025-11-17 21:55:24.928117 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:55:24.928069 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:55:24.890226 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:55:24.890222 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:55:24.888447 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:55:22.888456 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:55:22.888448 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:55:22.886163 | info | HashService | Hashing took - 14ms | 2025-11-17 21:55:22.871183 | info | HashService | Starting hashing of assets | 2025-11-17 21:55:22.863983 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:55:20.861125 | info | SyncApiRepository | Remote Sync completed in 277ms | 2025-11-17 21:55:20.622540 | info | DeviceSyncService | Device sync took - 50ms | 2025-11-17 21:55:20.584001 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:55:17.613912 | info | SyncStreamService | Successfully processed 1 assets in batch | 2025-11-17 21:55:17.612779 | info | SyncStreamService | Processing batch of 1 AssetUploadReadyV1 events | 2025-11-17 21:55:00.506487 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:55:00.506419 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:54:59.419491 | info | SyncApiRepository | Remote Sync completed in 210ms | 2025-11-17 21:54:59.209088 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:54:58.496596 | info | SyncStreamService | Successfully processed 1 assets in batch | 2025-11-17 21:54:58.495435 | info | SyncStreamService | Processing batch of 1 AssetUploadReadyV1 events | 2025-11-17 21:54:51.944246 | info | SyncApiRepository | Remote Sync completed in 540ms | 2025-11-17 21:54:51.403701 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:54:46.305872 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:54:46.305821 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:54:44.299332 | info | SyncStreamService | Successfully processed 1 assets in batch | 2025-11-17 21:54:44.297118 | info | SyncStreamService | Processing batch of 1 AssetUploadReadyV1 events | 2025-11-17 21:54:35.659696 | info | SyncApiRepository | Remote Sync completed in 151ms | 2025-11-17 21:54:35.507900 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:54:34.822081 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:54:34.822018 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:54:34.817409 | info | DriftBackupNotifier | Tasks to resume: 3 | 2025-11-17 21:54:34.817404 | info | DriftBackupNotifier | Found 3 tasks | 2025-11-17 21:54:34.815595 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:54:32.812792 | info | HashService | Hashing took - 22ms | 2025-11-17 21:54:32.811285 | info | DriftBackupNotifier | Start a new backup queue | 2025-11-17 21:54:32.811277 | info | DriftBackupNotifier | Found 0 tasks | 2025-11-17 21:54:32.790027 | info | HashService | Starting hashing of assets | 2025-11-17 21:54:32.783996 | info | DriftBackupNotifier | Resuming backup tasks... | 2025-11-17 21:54:30.781084 | info | SyncApiRepository | Remote Sync completed in 4528ms | 2025-11-17 21:54:26.280239 | info | DeviceSyncService | Device sync took - 27ms | 2025-11-17 21:54:26.252842 | info | SyncStreamService | Remote sync request for user | 2025-11-17 21:20:01.933547 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Memes | 2025-11-17 21:20:01.933462 | warning | SyncLinkedAlbumService | No linked remote album ID found for local album: Recents | 2025-11-17 21:19:59.923620 | info | HashService | Hashing took - 18ms | 2025-11-17 21:19:59.905497 | info | HashService | Starting hashing of assets | 2025-11-17 21:19:57.892252 | severe | IsolateLogger | Error in runInIsolateGentle for remote-sync | SqliteException(787): while executing statement, FOREIGN KEY constraint failed, constraint failed (code 787) Causing statement: INSERT INTO "remote_album_asset_entity" ("asset_id", "album_id") VALUES (?, ?) ON CONFLICT("asset_id", "album_id") DO NOTHING, parameters: 6981e86a-a45b-4cda-bed3-62c179ea3c73, 78ffa5cf-3aec-4c42-9050-3317ea10a6ac | package:sqlite3/src/implementation/exception.dart 87 throwException package:sqlite3/src/implementation/statement.dart 109 StatementImplementation._execute package:sqlite3/src/implementation/statement.dart 289 StatementImplementation.executeWith package:sqlite3/src/statement.dart 81 CommonPreparedStatement.execute package:drift/src/sqlite3/database.dart 131 Sqlite3Delegate.runBatchSync package:drift/native.dart 373 _NativeDelegate.runBatched. dart:async/future.dart 315 new Future.sync package:drift/native.dart 373 _NativeDelegate.runBatched package:drift/src/runtime/executor/helpers/engines.dart 128 _BaseExecutor.runBatched. package:drift/src/runtime/executor/helpers/engines.dart 62 _BaseExecutor._synchronized package:drift/src/runtime/executor/helpers/engines.dart 122 _BaseExecutor.runBatched package:drift/src/remote/server_impl.dart 170 ServerImplementation._runBatched package:drift/src/remote/communication.dart 165 DriftCommunication.setRequestHandler. ===== asynchronous gap =========================== package:drift/src/remote/communication.dart 113 DriftCommunication.request package:drift/src/remote/client_impl.dart 84 _BaseExecutor.runBatched package:drift/src/runtime/api/batch.dart 215 Batch._runWith package:drift/src/runtime/api/batch.dart 199 Batch._commit package:immich_mobile/infrastructure/repositories/sync_stream.repository.dart 347 SyncStreamRepository.updateAlbumToAssetsV1 package:immich_mobile/domain/services/sync_stream.service.dart 67 SyncStreamService._processBatch package:immich_mobile/domain/services/sync_stream.service.dart 48 SyncStreamService._handleEvents package:immich_mobile/infrastructure/repositories/sync_api.repository.dart 105 SyncApiRepository.streamChanges package:immich_mobile/domain/services/sync_stream.service.dart 30 SyncStreamService.sync package:immich_mobile/utils/isolate.dart 58 runInIsolateGentle.. package:immich_mobile/utils/isolate.dart 37 runInIsolateGentle. package:worker_manager/src/worker/worker_io.dart 106 WorkerImpl._anotherIsolate. 2025-11-17 21:19:57.891277 | severe | DriftSyncStreamRepository | Error: updateAlbumToAssetsV1 - user | SqliteException(787): while executing statement, FOREIGN KEY constraint failed, constraint failed (code 787) Causing statement: INSERT INTO "remote_album_asset_entity" ("asset_id", "album_id") VALUES (?, ?) ON CONFLICT("asset_id", "album_id") DO NOTHING, parameters: 6981e86a-a45b-4cda-bed3-62c179ea3c73, 78ffa5cf-3aec-4c42-9050-3317ea10a6ac | package:sqlite3/src/implementation/exception.dart 87 throwException package:sqlite3/src/implementation/statement.dart 109 StatementImplementation._execute package:sqlite3/src/implementation/statement.dart 289 StatementImplementation.executeWith package:sqlite3/src/statement.dart 81 CommonPreparedStatement.execute package:drift/src/sqlite3/database.dart 131 Sqlite3Delegate.runBatchSync package:drift/native.dart 373 _NativeDelegate.runBatched. dart:async/future.dart 315 new Future.sync package:drift/native.dart 373 _NativeDelegate.runBatched package:drift/src/runtime/executor/helpers/engines.dart 128 _BaseExecutor.runBatched. package:drift/src/runtime/executor/helpers/engines.dart 62 _BaseExecutor._synchronized package:drift/src/runtime/executor/helpers/engines.dart 122 _BaseExecutor.runBatched package:drift/src/remote/server_impl.dart 170 ServerImplementation._runBatched package:drift/src/remote/communication.dart 165 DriftCommunication.setRequestHandler. ===== asynchronous gap =========================== package:drift/src/remote/communication.dart 113 DriftCommunication.request package:drift/src/remote/client_impl.dart 84 _BaseExecutor.runBatched package:drift/src/runtime/api/batch.dart 215 Batch._runWith package:drift/src/runtime/api/batch.dart 199 Batch._commit package:immich_mobile/infrastructure/repositories/sync_stream.repository.dart 347 SyncStreamRepository.updateAlbumToAssetsV1 package:immich_mobile/domain/services/sync_stream.service.dart 67 SyncStreamService._processBatch package:immich_mobile/domain/services/sync_stream.service.dart 48 SyncStreamService._handleEvents package:immich_mobile/infrastructure/repositories/sync_api.repository.dart 105 SyncApiRepository.streamChanges package:immich_mobile/domain/services/sync_stream.service.dart 30 SyncStreamService.sync package:immich_mobile/utils/isolate.dart 58 runInIsolateGentle.. package:immich_mobile/utils/isolate.dart 37 runInIsolateGentle. package:worker_manager/src/worker/worker_io.dart 106 WorkerImpl._anotherIsolate. 2025-11-17 21:19:56.488254 | info | DeviceSyncService | Device sync took - 30ms | 2025-11-17 21:19:56.457647 | info | SyncStreamService | Remote sync request for user |