simulot / immich-go

An alternative to the immich-CLI command that doesn't depend on nodejs installation. It tries its best for importing google photos takeout archives.
GNU Affero General Public License v3.0
1.9k stars 55 forks source link

Albums missing after Google Takeout import #482

Closed dschwen closed 2 months ago

dschwen commented 2 months ago

I have a large(ish) Google Takeout import dating back over 20 years (~80000 photos, 368GB zips).

After Importing a few albums are missing. I only saw this because I have one set of albums from a trip that are numbered consecutively. What I noticed is that the takeout folder for the one album in that series that is successfully created contains both the .jpg and .jpg.json sidecars. The albums that are skipped only contain the .jpg.json sidecars, and all the .jpg files for those albums are instead located in 'Takeout/Google Photos/Photos from 2003/.

immich-go import log excerpt - `New Zealand - 13 Return Trip` is successfully imported - `New Zealand - 12 North Island` is skipped ``` daniel@jubilee:~/Takeout/Google Photos$ grep "New Zealand - 1[23]" /home/daniel/.cache/immich-go/immich-go_2024-09-10_22-58-35.log INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515.JPG.json" type="asset metadata" title=IMG_4515.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517.JPG.json" type="asset metadata" title=IMG_4517.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518.JPG.json" type="asset metadata" title=IMG_4518.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4519.JPG.json" type="asset metadata" title=IMG_4519.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4521.JPG.json" type="asset metadata" title=IMG_4521.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4522.JPG.json" type="asset metadata" title=IMG_4522.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523.JPG.json" type="asset metadata" title=IMG_4523.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524.JPG.json" type="asset metadata" title=IMG_4524.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525.JPG.json" type="asset metadata" title=IMG_4525.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4527.JPG.json" type="asset metadata" title=IMG_4527.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4528.JPG.json" type="asset metadata" title=IMG_4528.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530.JPG.json" type="asset metadata" title=IMG_4530.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531.JPG.json" type="asset metadata" title=IMG_4531.JPG time="2024-09-10T10:59.39 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/metadata.json" type="album metadata" title="New Zealand / 13 Return Trip" time="2024-09-10T10:59.39 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515-edited.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517-edited.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518-edited.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4519.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4521.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4522.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523-edited.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524-edited.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525-edited.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4527.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4528.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530-edited.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531-edited.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned image file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531.JPG" time="2024-09-10T11:01.06 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4219.jpg.json" type="asset metadata" title=IMG_4219.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4228.jpg.json" type="asset metadata" title=IMG_4228.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4234.jpg.json" type="asset metadata" title=IMG_4234.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4241.jpg.json" type="asset metadata" title=IMG_4241.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4256.jpg.json" type="asset metadata" title=IMG_4256.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4258.jpg.json" type="asset metadata" title=IMG_4258.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4260.jpg.json" type="asset metadata" title=IMG_4260.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4268.jpg.json" type="asset metadata" title=IMG_4268.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4269.jpg.json" type="asset metadata" title=IMG_4269.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4271.jpg.json" type="asset metadata" title=IMG_4271.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4272.jpg.json" type="asset metadata" title=IMG_4272.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4274.jpg.json" type="asset metadata" title=IMG_4274.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4275.jpg.json" type="asset metadata" title=IMG_4275.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4277.jpg.json" type="asset metadata" title=IMG_4277.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4279.jpg.json" type="asset metadata" title=IMG_4279.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4285.jpg.json" type="asset metadata" title=IMG_4285.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4289.jpg.json" type="asset metadata" title=IMG_4289.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4292.jpg.json" type="asset metadata" title=IMG_4292.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4293.jpg.json" type="asset metadata" title=IMG_4293.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4296.jpg.json" type="asset metadata" title=IMG_4296.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4297.jpg.json" type="asset metadata" title=IMG_4297.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4300.jpg.json" type="asset metadata" title=IMG_4300.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4311.jpg.json" type="asset metadata" title=IMG_4311.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4318.jpg.json" type="asset metadata" title=IMG_4318.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4321.jpg.json" type="asset metadata" title=IMG_4321.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4322.jpg.json" type="asset metadata" title=IMG_4322.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4323.jpg.json" type="asset metadata" title=IMG_4323.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4324.jpg.json" type="asset metadata" title=IMG_4324.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4327.jpg.json" type="asset metadata" title=IMG_4327.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4328.jpg.json" type="asset metadata" title=IMG_4328.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4331.jpg.json" type="asset metadata" title=IMG_4331.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4334.jpg.json" type="asset metadata" title=IMG_4334.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4340.jpg.json" type="asset metadata" title=IMG_4340.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4347.jpg.json" type="asset metadata" title=IMG_4347.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4349.jpg.json" type="asset metadata" title=IMG_4349.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4356.jpg.json" type="asset metadata" title=IMG_4356.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4359.jpg.json" type="asset metadata" title=IMG_4359.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4361.jpg.json" type="asset metadata" title=IMG_4361.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4362.jpg.json" type="asset metadata" title=IMG_4362.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4365.jpg.json" type="asset metadata" title=IMG_4365.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4368.jpg.json" type="asset metadata" title=IMG_4368.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4371.jpg.json" type="asset metadata" title=IMG_4371.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4372.jpg.json" type="asset metadata" title=IMG_4372.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4388.jpg.json" type="asset metadata" title=IMG_4388.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4389.jpg.json" type="asset metadata" title=IMG_4389.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4390.jpg.json" type="asset metadata" title=IMG_4390.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4391.jpg.json" type="asset metadata" title=IMG_4391.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4395.jpg.json" type="asset metadata" title=IMG_4395.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4420.jpg.json" type="asset metadata" title=IMG_4420.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4423.jpg.json" type="asset metadata" title=IMG_4423.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4424.jpg.json" type="asset metadata" title=IMG_4424.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4438.jpg.json" type="asset metadata" title=IMG_4438.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4446.jpg.json" type="asset metadata" title=IMG_4446.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4476.jpg.json" type="asset metadata" title=IMG_4476.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4477.jpg.json" type="asset metadata" title=IMG_4477.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4485.jpg.json" type="asset metadata" title=IMG_4485.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4496.jpg.json" type="asset metadata" title=IMG_4496.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4500.jpg.json" type="asset metadata" title=IMG_4500.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4505.jpg.json" type="asset metadata" title=IMG_4505.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4508.jpg.json" type="asset metadata" title=IMG_4508.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4512.jpg.json" type="asset metadata" title=IMG_4512.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/IMG_4513.jpg.json" type="asset metadata" title=IMG_4513.jpg time="2024-09-10T11:08.01 MDT" INFO | scanned sidecar file | file="Takeout/Google Photos/New Zealand - 12 North Island/metadata.json" type="album metadata" title="New Zealand / 12 North Island" time="2024-09-10T11:08.01 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515.JPG" json=IMG_4515.JPG.json size=577272 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517.JPG" json=IMG_4517.JPG.json size=482495 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518.JPG" json=IMG_4518.JPG.json size=549709 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4519.JPG" json=IMG_4519.JPG.json size=730033 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4521.JPG" json=IMG_4521.JPG.json size=512579 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4522.JPG" json=IMG_4522.JPG.json size=632442 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523.JPG" json=IMG_4523.JPG.json size=509007 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524.JPG" json=IMG_4524.JPG.json size=766379 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525.JPG" json=IMG_4525.JPG.json size=550252 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4527.JPG" json=IMG_4527.JPG.json size=579504 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4528.JPG" json=IMG_4528.JPG.json size=566919 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530.JPG" json=IMG_4530.JPG.json size=545369 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531.JPG" json=IMG_4531.JPG.json size=568949 matcher=normalMatch time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515-edited.JPG" json=IMG_4515.JPG.json size=668307 matcher=matchEditedName time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517-edited.JPG" json=IMG_4517.JPG.json size=562080 matcher=matchEditedName time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518-edited.JPG" json=IMG_4518.JPG.json size=641306 matcher=matchEditedName time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523-edited.JPG" json=IMG_4523.JPG.json size=587660 matcher=matchEditedName time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524-edited.JPG" json=IMG_4524.JPG.json size=867169 matcher=matchEditedName time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525-edited.JPG" json=IMG_4525.JPG.json size=642264 matcher=matchEditedName time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530-edited.JPG" json=IMG_4530.JPG.json size=637881 matcher=matchEditedName time="2024-09-10T11:19.02 MDT" INFO | associated metadata file | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531-edited.JPG" json=IMG_4531.JPG.json size=650938 matcher=matchEditedName time="2024-09-10T11:19.02 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524-edited.JPG" reason="An asset with the same name:\"IMG_4524.JPG\", date:\"2003-11-21 15:08:32\" and size:846.8 KB exists on the server. No need to upload." time="2024-09-11T02:52.12 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524-edited.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.12 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523.JPG" reason="An asset with the same name:\"IMG_4523.JPG\", date:\"2003-11-21 15:07:33\" and size:497.1 KB exists on the server. No need to upload." time="2024-09-11T02:52.12 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.12 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525.JPG" reason="An asset with the same name:\"IMG_4525.JPG\", date:\"2003-11-21 15:09:06\" and size:537.4 KB exists on the server. No need to upload." time="2024-09-11T02:52.12 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.12 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530-edited.JPG" reason="An asset with the same name:\"IMG_4530.JPG\", date:\"2003-11-22 08:01:58\" and size:622.9 KB exists on the server. No need to upload." time="2024-09-11T02:52.12 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530-edited.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.12 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517.JPG" reason="An asset with the same name:\"IMG_4517.JPG\", date:\"2003-11-21 14:19:29\" and size:471.2 KB exists on the server. No need to upload." time="2024-09-11T02:52.12 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.12 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518.JPG" reason="An asset with the same name:\"IMG_4518.JPG\", date:\"2003-11-21 14:20:16\" and size:536.8 KB exists on the server. No need to upload." time="2024-09-11T02:52.12 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.12 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4528.JPG" reason="An asset with the same name:\"IMG_4528.JPG\", date:\"2003-11-22 08:00:37\" and size:553.6 KB exists on the server. No need to upload." time="2024-09-11T02:52.12 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4528.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.12 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523-edited.JPG" reason="An asset with the same name:\"IMG_4523.JPG\", date:\"2003-11-21 15:07:33\" and size:573.9 KB exists on the server. No need to upload." time="2024-09-11T02:52.12 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4523-edited.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.12 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524.JPG" reason="An asset with the same name:\"IMG_4524.JPG\", date:\"2003-11-21 15:08:32\" and size:748.4 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4524.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515.JPG" reason="An asset with the same name:\"IMG_4515.JPG\", date:\"2003-11-21 14:18:23\" and size:563.7 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4522.JPG" reason="An asset with the same name:\"IMG_4522.JPG\", date:\"2003-11-21 15:06:48\" and size:617.6 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4522.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4527.JPG" reason="An asset with the same name:\"IMG_4527.JPG\", date:\"2003-11-21 17:10:13\" and size:565.9 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4527.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517-edited.JPG" reason="An asset with the same name:\"IMG_4517.JPG\", date:\"2003-11-21 14:19:29\" and size:548.9 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4517-edited.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4519.JPG" reason="An asset with the same name:\"IMG_4519.JPG\", date:\"2003-11-21 15:05:03\" and size:712.9 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4519.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531-edited.JPG" reason="An asset with the same name:\"IMG_4531.JPG\", date:\"2003-11-22 08:03:33\" and size:635.7 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531-edited.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515-edited.JPG" reason="An asset with the same name:\"IMG_4515.JPG\", date:\"2003-11-21 14:18:23\" and size:652.6 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4515-edited.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525-edited.JPG" reason="An asset with the same name:\"IMG_4525.JPG\", date:\"2003-11-21 15:09:06\" and size:627.2 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4525-edited.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4521.JPG" reason="An asset with the same name:\"IMG_4521.JPG\", date:\"2003-11-21 15:05:29\" and size:500.6 KB exists on the server. No need to upload." time="2024-09-11T02:52.13 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4521.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.13 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518-edited.JPG" reason="An asset with the same name:\"IMG_4518.JPG\", date:\"2003-11-21 14:20:16\" and size:626.3 KB exists on the server. No need to upload." time="2024-09-11T02:52.14 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4518-edited.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.14 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530.JPG" reason="An asset with the same name:\"IMG_4530.JPG\", date:\"2003-11-22 08:01:58\" and size:532.6 KB exists on the server. No need to upload." time="2024-09-11T02:52.14 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4530.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.14 MDT" INFO | server has same asset | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531.JPG" reason="An asset with the same name:\"IMG_4531.JPG\", date:\"2003-11-22 08:03:33\" and size:555.6 KB exists on the server. No need to upload." time="2024-09-11T02:52.14 MDT" INFO | added to an album | file="Takeout/Google Photos/New Zealand - 13 Return Trip/IMG_4531.JPG" album="New Zealand / 13 Return Trip" time="2024-09-11T02:52.14 MDT" ```

These two json sidecars show that the image in the two different zip folders are the same. Note that there is no Google Photos/Photos from 2003 album in the Google photos webinterface...

`Takeout/Google Photos/New Zealand - 11 Nach Rotorua/IMG_3823.jpg.json` ``` { "title": "IMG_3823.jpg", "description": "", "imageViews": "19", "creationTime": { "timestamp": "1381444526", "formatted": "Oct 10, 2013, 10:35:26 PM UTC" }, "photoTakenTime": { "timestamp": "1068890813", "formatted": "Nov 15, 2003, 10:06:53 AM UTC" }, "geoData": { "latitude": 0.0, "longitude": 0.0, "altitude": 0.0, "latitudeSpan": 0.0, "longitudeSpan": 0.0 }, "geoDataExif": { "latitude": 0.0, "longitude": 0.0, "altitude": 0.0, "latitudeSpan": 0.0, "longitudeSpan": 0.0 }, "url": "https://photos.google.com/photo/AF1QipPSdCrbIHAVJRaGUYslvKpdkILYkslMUZztFoZl", "googlePhotosOrigin": { "picasa": { } } } ```
`Takeout/Google Photos/Photos from 2003/IMG_3823.jpg.json` ``` { "title": "IMG_3823.jpg", "description": "", "imageViews": "19", "creationTime": { "timestamp": "1381444526", "formatted": "Oct 10, 2013, 10:35:26 PM UTC" }, "photoTakenTime": { "timestamp": "1068890813", "formatted": "Nov 15, 2003, 10:06:53 AM UTC" }, "geoData": { "latitude": 0.0, "longitude": 0.0, "altitude": 0.0, "latitudeSpan": 0.0, "longitudeSpan": 0.0 }, "geoDataExif": { "latitude": 0.0, "longitude": 0.0, "altitude": 0.0, "latitudeSpan": 0.0, "longitudeSpan": 0.0 }, "url": "https://photos.google.com/photo/AF1QipPSdCrbIHAVJRaGUYslvKpdkILYkslMUZztFoZl", "googlePhotosOrigin": { "picasa": { } } } ```
simulot commented 2 months ago

I have a large(ish) Google Takeout import dating back over 20 years (~80000 photos, 368GB zips).

Same case here 😄

Google takeout archives aren't consistent, files can be duplicated or missing. Two consecutive takeout give different archive. IPhones name the photos IMG_XXXX adding to the confusion. Albums are folders with a json file different from the photos' json, in the user language 😱

In short, this isn't an easy job.

Immich-go expects to find album's images into the album's folder. As your images are found in a Year folder, they are uploaded, but not assigned to an album.

I have tried to search he files with the same name into the year folder. But the name confusion gives wrong Album assignations.

Anyway, you can redo a takeout limited to the missing albums. The resulting archive has a better chance to be correct. Then upload it with immich-go. Files will be recognized as duplicates, it will assign the existing immich file to the Album.

Let me know if have have a success with this method

dschwen commented 2 months ago

@simulot , you could use the url field in the JSON sidecar as a unique identifier. The assumption being that a within the same folder you could rely on the image/sidecar names to be consistent. But that would allow you to uniquely identify files across directories.

dschwen commented 2 months ago

This is all kinds of messed up :-D.

I exported just the missing albums again from Google Takeout. Only a fraction of them got exported in a way that had images and sidecars together enabling a correct import.

Next I thought I'll just unpack my Photos from 20XX and the missing album folders from the takeout zips. Then I went through all folders and hardlinked the corresponding images into the folders that only contained sidecars. I tested the import on a single album folder. The immich-go log has 31 lines with INFO | added to an album ... for all photos in the original album. But when I open the immich webinterface the imported album only contains 6 assets.

:-(

dschwen commented 2 months ago

IPhones name the photos IMG_XXXX adding to the confusion.

Is that a problem? My old problematic albums contain almost exclusively IMG_XXXX.jpg images. This was how my old Canon powerShot G3 named the images, too.

simulot commented 2 months ago

Is that a problem? My old problematic albums contain almost exclusively IMG_XXXX.jpg images.

Maybe after all. Compulsive photographers shot several thousand photos per year. The IMG_1234 may appear 3-4 times each year. Old versions of immich-go used to peek missing IMG_1234 in the Year folder. But this gave to much bad results.

@simulot , you could use the url field in the JSON sidecar as a unique identifier.

Have you verified your hypothesis about the URL? I can try to improve the matching to peek the photo in the year folder.

The immich-go log has 31 lines with INFO | added to an album ... for all photos in the original album. But when I open the immich webinterface the imported album only contains 6 assets.

:-< Share the log

dschwen commented 2 months ago

Check this log: immich-go_2024-09-12_15-21-46.log

Just look at the New Zealand - 04 Kelly Tarltons album. I see 21 lines with INFO | added to an album, but only one image (IMG_2955.jpg) shows up online.

Now that I'm writing this I notice that the album cover is a different image from the one I see in the album.... I looked at the sidecar files, but nothing stands out for the one file that shows up :-/

simulot commented 2 months ago

There isn't information about album cover in takeouts. Immich peek it randomly. The log show that server has already the assets. image

dschwen commented 2 months ago

Yeah, all images did get uploaded, but while immich-go states they were added to the album, they do not show up in the album on the web.

What's confusing though, is that immich picked an image as the cover that should have been in the album, but does not show up in the album.

simulot commented 2 months ago

Yeah, all images did get uploaded, but while immich-go states they were added to the album, they do not show up in the album on the web.

Um... like if the an api call failed but not reported? I need more logs

Could run it with the option -api-trace ?

dschwen commented 2 months ago

Ok, the plot thickens. Here is an excerpt of the trace log showing two attempts to add images to an album. Both fail with "error": "duplicate".

2024-09-14T11:47:28-06:00 QUERY 194 AddAssetToAlbum PUT http://127.0.0.1:2283/api/albums/51036d10-3843-4884-a31f-d8d84fb330e0/assets
   X-Api-Key redacted
   Accept [application/json]
   Content-Type [application/json]
-- request JSON Body --
{
 "ids": [
  "0ae962a6-d60a-4c22-9f62-7c7181f66bbb"
 ]
}
-- request body end --

2024-09-14T11:47:29-06:00 RESPONSE 194 AddAssetToAlbum PUT http://127.0.0.1:2283/api/albums/51036d10-3843-4884-a31f-d8d84fb330e0/assets
  Status: 200 OK
-- response body --
[
 {
  "id": "0ae962a6-d60a-4c22-9f62-7c7181f66bbb",
  "success": false,
  "error": "duplicate"
 }
]
-- response body end --

2024-09-14T11:47:29-06:00 QUERY 195 AddAssetToAlbum PUT http://127.0.0.1:2283/api/albums/51036d10-3843-4884-a31f-d8d84fb330e0/assets
   Content-Type [application/json]
   X-Api-Key redacted
   Accept [application/json]
-- request JSON Body --
{
 "ids": [
  "ea7a0483-015e-430b-9a24-8fae028883c9"
 ]
}
-- request body end --

2024-09-14T11:47:29-06:00 RESPONSE 195 AddAssetToAlbum PUT http://127.0.0.1:2283/api/albums/51036d10-3843-4884-a31f-d8d84fb330e0/assets
  Status: 200 OK
-- response body --
[
 {
  "id": "ea7a0483-015e-430b-9a24-8fae028883c9",
  "success": false,
  "error": "duplicate"
 }
]
-- response body end --

However if I look at the album content at http://127.0.0.1:2283/api/albums/51036d10-3843-4884-a31f-d8d84fb330e0 I get

{
  "albumName": "New Zealand / 04 Kelly Tarltons",
  "description": "",
  "albumThumbnailAssetId": "339b5618-a37e-4b82-a00b-d6d3f3cd4dc1",
  "createdAt": "2024-09-12T21:06:09.194Z",
  "updatedAt": "2024-09-12T21:06:10.861Z",
  "id": "51036d10-3843-4884-a31f-d8d84fb330e0",
  "ownerId": "96db2e28-cb96-4a90-bfb7-1fcd9e7a56c4",
  "owner": {
    "id": "96db2e28-cb96-4a90-bfb7-1fcd9e7a56c4",
    "email": "daniel@schwen.de",
    "name": "Daniel Schwen",
    "profileImagePath": "",
    "avatarColor": "primary"
  },
  "albumUsers": [],
  "shared": false,
  "hasSharedLink": false,
  "startDate": "2003-11-05T10:17:07.000Z",
  "endDate": "2003-11-05T10:17:07.000Z",
  "assets": [
    {
      "id": "07976571-c032-4095-9bf3-5e33281f49c1",
      "deviceAssetId": "IMG_2955.jpg-439261",
      "ownerId": "96db2e28-cb96-4a90-bfb7-1fcd9e7a56c4",
      "deviceId": "jubilee",
      "libraryId": null,
      "type": "IMAGE",
      "originalPath": "upload/upload/96db2e28-cb96-4a90-bfb7-1fcd9e7a56c4/fb/ba/fbbad43a-a391-44e8-b96b-068340a4b047.jpg",
      "originalFileName": "IMG_2955.jpg",
      "originalMimeType": "image/jpeg",
      "thumbhash": "1VkOJYZ4iXiPhIhohneGePaHES8J",
      "fileCreatedAt": "2003-11-05T10:17:07.000Z",
      "fileModifiedAt": "2003-11-05T10:17:07.000Z",
      "localDateTime": "2003-11-05T10:17:07.000Z",
      "updatedAt": "2024-09-07T10:04:05.155Z",
      "isFavorite": false,
      "isArchived": false,
      "isTrashed": false,
      "duration": "00:00:00.000000",
      "exifInfo": {
        "make": "Canon",
        "model": "Canon PowerShot G3",
        "exifImageWidth": 2048,
        "exifImageHeight": 1536,
        "fileSizeInByte": 439261,
        "orientation": "1",
        "dateTimeOriginal": "2003-11-05T10:17:07.000Z",
        "modifyDate": "2003-11-05T03:17:07.000Z",
        "timeZone": null,
        "lensModel": null,
        "fNumber": 2.8,
        "focalLength": 7.1875,
        "iso": 400,
        "exposureTime": "1/50",
        "latitude": null,
        "longitude": null,
        "city": null,
        "state": null,
        "country": null,
        "description": "",
        "projectionType": null,
        "rating": null
      },
      "livePhotoVideoId": null,
      "people": [],
      "checksum": "+jyRXp3cr1PHcw+KTVlvyw/NvwA=",
      "isOffline": false,
      "hasMetadata": true,
      "duplicateId": null,
      "resized": true
    }
  ],
  "assetCount": 1,
  "isActivityEnabled": true,
  "order": "desc"
}

which is only one image (and not one of the ones that are reported as "duplicate").

simulot commented 2 months ago

Ok, the plot thickens. Here is an excerpt of the trace log showing two attempts to add images to an album. Both fail with "error": "duplicate".

So the album contains the images already. It looks like something incoherent happens on the server. Could you delete the album and let immich-go to recreate it?

dschwen commented 2 months ago

Good idea. The trace show success:

2024-09-14T13:02:48-06:00 QUERY 193 AddAssetToAlbum PUT http://127.0.0.1:2283/api/albums/1477588f-1cdf-415a-be00-f6b7b0f02255/assets
   Accept [application/json]
   Content-Type [application/json]
   X-Api-Key redacted
-- request JSON Body --
{
 "ids": [
  "8a44f65f-0642-4677-a379-0892bc9f3f32"
 ]
}
-- request body end --

2024-09-14T13:02:48-06:00 RESPONSE 193 AddAssetToAlbum PUT http://127.0.0.1:2283/api/albums/1477588f-1cdf-415a-be00-f6b7b0f02255/assets
  Status: 200 OK
-- response body --
[
 {
  "id": "8a44f65f-0642-4677-a379-0892bc9f3f32",
  "success": true
 }
]
-- response body end --

2024-09-14T13:02:48-06:00 QUERY 194 AddAssetToAlbum PUT http://127.0.0.1:2283/api/albums/1477588f-1cdf-415a-be00-f6b7b0f02255/assets
   Accept [application/json]
   Content-Type [application/json]
   X-Api-Key redacted
-- request JSON Body --
{
 "ids": [
  "98c666bd-9c91-4980-a09b-680e9f5a36e2"
 ]
}
-- request body end --

2024-09-14T13:02:48-06:00 RESPONSE 194 AddAssetToAlbum PUT http://127.0.0.1:2283/api/albums/1477588f-1cdf-415a-be00-f6b7b0f02255/assets
  Status: 200 OK
-- response body --
[
 {
  "id": "98c666bd-9c91-4980-a09b-680e9f5a36e2",
  "success": true
 }
]
-- response body end --

...but the new album again only contains one image :(

At this point I'm wondering if this is more of an immich server issue.

simulot commented 2 months ago

Could search one of Album images, and check if the album in mentioned on the info page? image

dschwen commented 2 months ago

Nope, the image has no APPEARS IN.

simulot commented 2 months ago

Have you checked the trash and archives?

dschwen commented 2 months ago

Ahhh, at first glance it looks like all images that fail to get added to the album have a corresponding (lower file size) version in the trash. The one image that did get added to the album is conspicuously absent from the trash.

Does immich-go duplicate removal put images into the trash?

dschwen commented 2 months ago

Let me try and delete some of the images in the trash and see if that makes them get added to the album...

dschwen commented 2 months ago

Yep, that did!

dschwen commented 2 months ago

I'll go ahead and close this issue. Thanks a bunch @simulot for helping me figure out the issue here, and thanks for developing immich-go!!