rclone icon indicating copy to clipboard operation
rclone copied to clipboard

iclouddrive (photos service): parallel fetch returns fewer photos than parallel cold listing

Open ilGaspa opened this issue 2 months ago • 1 comments

Before you start

  • [x] I have searched the forum and the existing issues for this problem.
  • [x] I have tested with the latest beta or stable release and can still reproduce the problem.
  • [x] This is a reproducible bug, not a usage question (questions belong on the forum).

Associated forum post URL

https://forum.rclone.org/t/backend-icloud-photos-not-listing-all-files-difference-between-cold-listing-and-parallel-fetch-count/54259

What is the problem you are having with rclone?

When listing album contents with the iclouddrive backend in photos service mode, some files are consistently missing from the result. In the log, parallel cold listing reports the correct number of photos, but parallel fetch complete returns fewer.

Library: ~10,000 photos, a couple hundred albums. Across the whole library about 15% of the files are missing, and it is always the same files.

Example album (1 partition, 1 worker), expected count: 68

NOTICE: iclouddrive photos: parallel cold listing 68 photos in 1 partitions (1 workers)
NOTICE: iclouddrive photos: parallel fetch complete, 66 photos

rclone tree then shows 66 files.

Details:

  • The missing files are regular photos (no bursts, no animated photos), with nothing obviously in common.
  • They are visible in the iCloud web UI, sync correctly between devices, are not corrupted and can be downloaded from the web and from the devices.
  • The cold listing count matches the real count, so the loss seems to happen in the parallel fetch stage, not in the API's initial count.
  • RcloneView (which uses rclone underneath) lists all the files of the same album correctly, so it may be a matter of a code path, a setting, or something in my icloud structure
  • Reproduced on two different machines (Linux arm64 on Home Assistant OS and a generic Windows install).

Already tried, without success:

  • Lowering --checkers, --transfers and --tpslimit (down to 1)
  • Deleting ~/.cache/rclone/ and the iclouddrive-photos cache
  • Re-authenticating / rclone config reconnect
  • A different rclone build on a different machine
  • The latest beta

rclone version

[core-ssh rclone]$ ./rclone version rclone v1.75.1

  • os/version: alpine 3.24.1 (64 bit)
  • os/kernel: 6.18.52-haos (aarch64)
  • os/type: linux
  • os/arch: arm64 (ARMv8 compatible)
  • go/version: go1.26.8
  • go/linking: static
  • go/tags: none

Operating system

Linux

Which cloud storage system are you using?

iCloud Photos or iCloud Drive in photos service mode

Output of rclone config redacted

[backblaze]
type = b2
account = XXX
key = XXX

[googledrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =

[iclouddrive]
type = iclouddrive
apple_id = XXX
password = XXX
_auth_session =
cookies = XXX
trust_token = XXX

[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

The command you were trying to run

[core-ssh rclone]$ ./rclone tree --iclouddrive-service photos -vv --checkers 1 --transfers 1 --tpslimit 1 --max-backlog 500000 "iclouddrive:/PrimarySync/2006/Cena di Natale RibesTecnologie (2006)" > out.txt 2>&1

A log from the command with the -vv flag

https://gist.github.com/ilGaspa/1699ee7cfa8db56956fc94ee512639ac

Anything else?

No response

ilGaspa avatar Sep 20 '26 12:09 ilGaspa

I confirm that the problem persists on my side. Waiting for #10010 to be solved to test again.

ilGaspa avatar Nov 02 '26 12:11 ilGaspa