rclone: Rclone 1.69 icloud issue: http error 423 “Missing PCS cookies from the request”
I’ve configured icloud as new remote in rclone 1.69. The configuration with rclone config is pretty straightforward, MFA worked, and everything seems configured right.
However rclone ls <icloud remote name> fails with error listing: HTTP error 423 (423 Locked) returned body[…] errorReason":"Missing PCS cookies from the request","errorCode":423}"
rclone v1.69.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.148-tegra (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.23.4
- go/linking: static
- go/tags: none
With respect to asdffdsa and ncw in https://forum.rclone.org/t/rclone-1-69-icloud-issue-http-error-423-missing-pcs-cookies-from-the-request/49494, I’ve opened the issue case.
rclone config reconnect yourremote finishes successfully, but rclone ls yourremote still ends with the identical error message.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (8 by maintainers)
Commits related to this issue
- iclouddrive: add notes on ADP and Missing PCS cookies - fixes #8310 — committed to rclone/rclone by ncw 2 years ago
- iclouddrive: add notes on ADP and Missing PCS cookies - fixes #8310 — committed to rclone/rclone by ncw 2 years ago
- iclouddrive: add notes on ADP and Missing PCS cookies - fixes #8310 — committed to rclone/rclone by ncw 2 years ago
- iclouddrive: add notes on ADP and Missing PCS cookies - fixes #8310 — committed to rclone/rclone by ncw 2 years ago
There’s no need to reverse-engineer anything — the work has already been done, and it really is that straightforward:
I’m not familiar with Go, but I was able to get ADP working in pyicloud by following the approach in the linked snippet. If someone is willing to work on the Rclone implementation, I’m happy to help and explain the process.
For now, my hacky workaround to use Rclone with iCloud ADP is to first authenticate using pyicloud with ADP access, then manually extract the trust token and cookies and pass them to Rclone.
Time to reverse engineer icloud api, I’ll report back later xD
In case someone is more comfortable with Python, here is the translation of the above linked JS snippet ☝🏻, that enables ADP: https://github.com/timlaing/pyicloud/pull/97
And the PRs which enabled security key 2FA: https://github.com/timlaing/pyicloud/pull/85 & https://github.com/timlaing/pyicloud/pull/96
Hopefully someone with JS or Python and Go knowledge comes across this issue
It’s technically possible, if thats what you are asking.
Do we think there’s any hope to be able to support ADP? I’m a little unsure on the topic myself. 😃
On iPhone, Settings > Apple Account > iCloud > ‘Access iCloud Data on the Web’ must be ON, and ‘Advanced Data Protection’ OFF. After I recreated the icloud entry,
rclone ls <yourremote>:works flawlessly. The error 423 is gone. In the docs, yes, indeed it would be helpful to mention both settings.The following directories are visible with
rclone lsd <yourremote>:Does someone know how to make Photos and Movies eligible as well?
To the rclone developers: Awesome product!
The issue with error 400 must be (yet) another constellation as it is described with
invalid session token.I added it yesterday and it authenticated and 2fa’d just fine, but i didn’t realize at the time that it wouldn’t work with advanced data protection. I disable ADP and recreated the connection but ever since I have been getting this error:
I remade it multiple times, I switched from the brew release to the conda release, I waited a day and remade it and now no matter what I do it gives me this error. Any ideas?