#Issues Adding Existing Photos to iCloud Synced Albums from iOS

1 messages · Page 1 of 1 (latest)

topaz compass
#

I am using version 1.129.0 build.197 of the iOS app, version 1.129.0 of the Immich server. The server runs using the docker-compose setup detailed in the setup guide.

Yesterday, I used the mobile app to upload my entire iCloud photo stream to Immich. I was quite impressed with how well it went! 45GiB of photos and videos uploaded in about 2 hours, and all of the background jobs processing completed about an hour after the upload finished.

My initial backup contained only the "favorites" album and the "recent" (all photos/videos) album. These two backed up without incident yesterday. This morning I decided that I wanted to move over the remaining albums so that the structure I had created within the iCloud photos app could be mirrored in Immich. I selected all of the albums that I wanted to bring over, hit "start backup" and found that all of my albums were created in Immich... without any photos/videos in them. Only the "shared" (iCloud shared) album that I backed up to Immich seems to have files in it, and it appears that this is because Immich duplicates files in Shared albums (see #16296. All of the "normal" iCloud albums are entirely empty. I've attached a screenshot of what this looks like.

I've checked the logs and I do notice a number of "duplicate key value violates unique constraint" errors, but spot checking a few of those leads me to believe this is related to files which I deleted from Immich yesterday and did not delete from iCloud failing to be re-uploaded (some of the deleted files appear to have successfully re-uploaded), also the timestamps do not line up with the empty album issue. I do not see any error logs from Immich at the time I attempted to sync these albums, nor do I see any INFO logs that appear to be related to these albums. I also deleted an album from Immich and attempted to re-sync from iOS, it was not recreated. Has anyone else experienced this?

slow plinthBOT
#

:wave: Hey @topaz compass,

Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich immich.

References

slow plinthBOT
#

Checklist

I have...

  1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: read applicable release notes.
  3. :ballot_box_with_check: reviewed the FAQs for known issues.
  4. :ballot_box_with_check: reviewed Github for known issues.
  5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: uploaded the relevant information (see below).
  7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

Information

In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:

  • Your docker-compose.yml and .env files.
  • Logs from all the containers and their status (see above).
  • All the troubleshooting steps you've tried so far.
  • Any recent changes you've made to Immich or your system.
  • Details about your system (both software/OS and hardware).
  • Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h).
  • The version of the Immich server, mobile app, and other relevant pieces.
  • Any other information that you think might be relevant.

Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

restive pecan
#

Can you try pressing this button

topaz compass
#

Thanks Alex, I have tried pressing that button to no effect

restive pecan
#

Can you show the albums that you are selected for backup?

#

Or the backup screen please

topaz compass
#

sure, this is what I'm seeing. Unsure why the "number of things backed up" is higher than "total number of things on your device," but that's what it looks like

restive pecan
#

Are all those albums get created on the web as empty album?

#

after pressing the sync button, did you check the web again or the mobile app again?

topaz compass
#

Yes, all albums have been created on the web app and all are empty. I have also just verified that this only effects photos which were previously uploaded by taking a new picture and immediately adding it to an iOS album in this group of "empty" albums, and the new photo was successfully added to the existing album. The issue appears to only affect photos which were previously synced from iOS

restive pecan
#

in your albums selection, let select 2-3 albums and then try pressing the Sync button again, then check on the web to see if the assets from those albums are populated in them correctly

topaz compass
#

Ok, I marked only two small albums for backup and the behavior seems to be persisting. The backup completed, but the "share with parents" album remains empty, and the "hmm testing not shared" album contains only the photo which I took this morning during my testing, none of the photos previously synced, newly added to the iOS album are present.

restive pecan
#

how many assets do you have in "share with parents" album?

topaz compass
#

It should contain 12 assets

restive pecan
#

is it the Shared Album of iCloud?

topaz compass
#

No, it is a normal iCloud album, not a "shared" album. The "iCloud Shared" albums appear to have uploaded to Immich without issue due to asset duplication

restive pecan
#

do you mean normal album from the native Photos app?

topaz compass
#

It appears that I can repeat this with my smaller asset set.

  • Create iOS Album (A1)
  • Take a photo (P1)
  • Add P1 to A1
  • Backup A1 to Immich, observe A1 and P1 in Immich
  • Create iOS Album (A2)
  • Add P1 to A2
  • Backup A2 to Immich, observe A2 in Immich is empty
topaz compass
restive pecan
#

Add P1 to A2
Backup A2 to Immich, observe A2 in Immich is empty
After you add P1 to A2, then you select A2 as the target album for backup. There shouldn't be any new photos to be uploaded

#

since it was uploaded with album A1

topaz compass
#

Right, there's no new photos to upload, but there is new metadata to upload no?

restive pecan
#

have you tried that?

topaz compass
#

Oh, that actually did appear to fix it with my smaller set of images! I wonder why it didn't appear to work when I hit it for all of my images, let me retry

#

By slowly adding albums into the backup set, I've been able to get all of my desired albums into Immich. Thanks Alex! I am curious why this button didn't work the first time I tried it, but for now satisfied to have my photos uploaded.

restive pecan
#

it might be good to peek into the mobile app log

topaz compass
#

I don't see anything in the logs that looks like a timeout. There is this log

2025-03-11 11:22:14.047290 | severe   | AssetService         | Error while syncing uploaded asset to albums | ApiException 400: {"message":"Album not found","error":"Bad Request","statusCode":400,"correlationId":"54lbg709"} |
#0      AlbumsApi.addAssetsToAlbum (package:openapi/api/albums_api.dart:67)
<asynchronous suspension>
#1      ApiRepository.checkNull (package:immich_mobile/repositories/api.repository.dart:5)
<asynchronous suspension>
#2      AlbumApiRepository.addAssets (package:immich_mobile/repositories/album_api.repository.dart:93)
<asynchronous suspension>
#3      AlbumService.syncUploadAlbums (package:immich_mobile/services/album.service.dart:444)
<asynchronous suspension>
#4      AssetService.syncUploadedAssetToAlbums (package:immich_mobile/services/asset.service.dart:339)
<asynchronous suspension>
#5      BackupSettings.build.syncAlbums (package:immich_mobile/widgets/settings/backup_settings/backup_settings.dart:36)
<asynchronous suspension>

I did delete one album from Immich without deleting on iOS, after syncing the album from iOS, possibly before hitting the "Sync all albums" button. I wonder if that put the local DB into some kind of invalid state. Let me test this theory

restive pecan
#

| Error while syncing uploaded asset to albums | ApiException 400: {"message":"Album not found"

#

yeah probably you haven't refresh those albums in the local database