You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove /externalLibrary2 from the external library paths.
Tell immich to scan libraries.
Tell immich to refresh the library jobs.
Wait for the jobs to complete.
Use immich-go to import the original zip as a google takeout.
Outcome:
No files are ever uploaded.
Log is filled with this line for all images:
INFO | server has same asset | file="Takeout/Google Photos/05/IMG_9802-1.JPG" reason="An asset with the same name:\"IMG_9802-1.JPG\", date:\"2009-04-05 22:19:30\" and size:1.0 MB exists on the server. No need to upload." time="2025-01-07T03:50.13 PST"
INFO | added to an album | file="Takeout/Google Photos/05/IMG_9802-1.JPG" album=05 time="2025-01-07T03:50.13 PST"
Older versions of Immich had a feature to remove the offline assets. It doesn't appear to be in the latest versions. To immediately mitigate this issue, I ran the following queries to remove the offline assets and related data.
Disclaimer: You should not do this unless you know what you are doing!
DELETE FROM albums_assets_assets WHERE "assetsId" IN (SELECT id FROM assets WHERE "isOffline"='t');
DELETE FROM asset_faces WHERE "assetId" IN (SELECT id FROM assets WHERE "isOffline"='t');
DELETE FROM asset_files WHERE "assetId" IN (SELECT id FROM assets WHERE "isOffline"='t');
DELETE FROM asset_stack WHERE "primaryAssetId" IN (SELECT id FROM assets WHERE "isOffline"='t');
DELETE FROM memories_assets_assets WHERE "assetsId" IN (SELECT id FROM assets WHERE "isOffline"='t');
DELETE FROM shared_link__asset WHERE "assetsId" IN (SELECT id FROM assets WHERE "isOffline"='t');
DELETE FROM tag_asset WHERE "assetsId" IN (SELECT id FROM assets WHERE "isOffline"='t');
DELETE FROM assets WHERE "isOffline"='t';
immich-go checks the list of photos available on the server before uploading. Apparently, immich still have a reference to them after having de-referenced the external library.
I think there is a way to force immich to re-scan the library, and remove off line assets
I'm not familiar with extetnal libraries. I think that the immich API indicates where the asset is stored, and I can exclude external ones from the duplication check.
Reproduction:
Outcome:
Log is filled with this line for all images:
Even though the immich db shows it was deleted:
Expected result:
The text was updated successfully, but these errors were encountered: