Configuring iCloud Drive doesn't trigger prompt for 2FA code

What is the problem you are having with rclone?

Configuring iCloud Drive per iCloud Drive does not trigger a prompt for 2FA code. I do get a notification that my account is being logged into from another device. I am using physical security keys (Yubikey). (If Apple accounts secured with physical keys aren't supported at this time, then this is a doc bug.)

Run the command 'rclone version' and share the full output of the command.

rclone v1.69.1

  • os/version: debian 12.9 (64 bit)
  • os/kernel: 6.1.0-30-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.24.0
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

iCloud Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone config

The rclone config contents with secrets removed.

N/A

A log from the command with the -vv flag

2025/02/16 15:40:58 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone" "-vv" "--log-file" "bug.log" "config"]
2025/02/16 15:40:58 DEBUG : Using config file from "<REDACTED>/.config/rclone/rclone.conf"
2025/02/16 15:41:07 DEBUG : icloudddrive: config in: state="*all", result=""
2025/02/16 15:41:07 DEBUG : icloudddrive: config out: out=&{State:*all-set,0,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:07 DEBUG : icloudddrive: config: reading config parameter "apple_id"
2025/02/16 15:41:13 DEBUG : icloudddrive: config in: state="*all-set,0,false", result="<REDACTED>"
2025/02/16 15:41:13 DEBUG : Saving config "apple_id" in section "icloudddrive" of the config file
2025/02/16 15:41:13 DEBUG : icloudddrive: config out: out=&{State:*all,1,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:13 DEBUG : icloudddrive: config in: state="*all,1,false", result=""
2025/02/16 15:41:13 DEBUG : icloudddrive: config out: out=&{State:*all-set,1,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:13 DEBUG : icloudddrive: config: reading config parameter "password"


2025/02/16 15:41:20 DEBUG : icloudddrive: config in: state="*all-set,1,false", result="<REDACTED>"
2025/02/16 15:41:20 DEBUG : Saving config "password" in section "icloudddrive" of the config file
2025/02/16 15:41:20 DEBUG : icloudddrive: config out: out=&{State:*all,2,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:20 DEBUG : icloudddrive: config in: state="*all,2,false", result=""
2025/02/16 15:41:20 DEBUG : icloudddrive: config out: out=&{State:*all,3,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:20 DEBUG : icloudddrive: config in: state="*all,3,false", result=""
2025/02/16 15:41:20 DEBUG : icloudddrive: config out: out=&{State:*all,4,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:20 DEBUG : icloudddrive: config in: state="*all,4,false", result=""
2025/02/16 15:41:20 DEBUG : icloudddrive: config out: out=&{State:*all,5,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:20 DEBUG : icloudddrive: config in: state="*all,5,false", result=""
2025/02/16 15:41:20 DEBUG : icloudddrive: config out: out=&{State:*all,6,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:20 DEBUG : icloudddrive: config in: state="*all,6,false", result=""
2025/02/16 15:41:20 DEBUG : icloudddrive: config out: out=&{State:*all,7,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:20 DEBUG : icloudddrive: config in: state="*all,7,false", result=""
2025/02/16 15:41:20 DEBUG : icloudddrive: config out: out=&{State:*all-advanced Option:false OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:20 DEBUG : icloudddrive: config: reading config parameter "config_fs_advanced"
2025/02/16 15:41:25 DEBUG : icloudddrive: config in: state="*all-advanced", result="false"
2025/02/16 15:41:25 DEBUG : icloudddrive: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:25 DEBUG : icloudddrive: config in: state="*postconfig", result=""
2025/02/16 15:41:25 DEBUG : icloudddrive: config in: state="", result=""
2025/02/16 15:41:25 DEBUG : icloud: Authenticating as <REDACTED>
2025/02/16 15:41:26 DEBUG : Saving config "cookies" in section "icloudddrive" of the config file
2025/02/16 15:41:26 DEBUG : icloudddrive: config out: out=&{State:2fa_do Option: OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:26 DEBUG : icloudddrive: config out: out=&{State:2fa_do Option: OAuth:<nil> Error: Result:}, err=<nil>
2025/02/16 15:41:26 DEBUG : icloudddrive: config: reading config parameter "config_2fa"
2025/02/16 15:42:01 CRITICAL: Failed to read line: EOF

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.