Skip to content

Don't receive iCloud Drive 2FA code #9359

Closed

Description

@ItsAperoTime

What is the problem you are having with rclone?

I cannot configure an iCloud storage because I never get the 2FA request on any of my apple devices.
On stable release I dont have any 2FA message, on beta rclone ask for the 2FA code but I don't receive. I tried on beta since I see a lot of issues "resolved" by using the beta branch.

What is your rclone version (output from rclone version)

I tried on latest main v1.73.5 and on latest beta v1.74.0-beta.9637.c5df1ddf4

Which OS you are using and how many bits (e.g. Windows 7, 64 bit)

I try use docker on a Debian 13 VM hosted on a proxmox 8 server.

Which cloud storage system are you using? (e.g. Google Drive)

iCloud Drive

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

root@Backup-iCloud:~# docker run --rm -it --volume /root/rclone:/config/rclone rclone/rclone:beta -vv config

A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)

2026/04/20 10:34:31 DEBUG : iclouddrive: config in: state="*all-advanced", result="false"
2026/04/20 10:34:31 DEBUG : iclouddrive: config out: out=&{State:*postconfig Option: OAuth: Error: Result:}, err=
2026/04/20 10:34:31 DEBUG : iclouddrive: config in: state="*postconfig", result=""
2026/04/20 10:34:31 DEBUG : iclouddrive: config in: state="", result=""
2026/04/20 10:34:31 DEBUG : icloud: Authenticating as [email protected]
2026/04/20 10:34:33 DEBUG : icloud: SRP sign in requires 2FA
2026/04/20 10:34:33 DEBUG : Saving config "cookies" in section "iclouddrive" of the config file
2026/04/20 10:34:33 DEBUG : iclouddrive: config out: out=&{State:2fa_do Option: OAuth: Error: Result:}, err=
2026/04/20 10:34:33 DEBUG : iclouddrive: config out: out=&{State:2fa_do Option: OAuth: Error: Result:}, err=
2026/04/20 10:34:33 DEBUG : iclouddrive: config: reading config parameter "config_2fa"
Option config_2fa.
Two-factor authentication: please enter your 2FA code
Enter a value.
config_2fa>

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. ItsAperoTime commented on Apr 23, 2026

    @ItsAperoTime
    Author

    Tips/workaround: I was able to configure it with a 2FA code by switching my iPhone in airplane mode (without wifi or cellular enabled) then in setting go on the apple account and it prompts a 2FA offline code. It worked this way but ofc the issue is not solved.

  2. ncw commented on Apr 23, 2026

    @ncw
    Member

    Thanks for the workaround @ItsAperoTime

    @mikegillan Any thoughts on this? I closed #9324 in favor of this issue since it is more focussed.

  3. mikegillan commented on Apr 23, 2026

    @mikegillan
    Contributor

    Thanks for the workaround @ItsAperoTime

    @mikegillan Any thoughts on this? I closed #9324 in favor of this issue since it is more focussed.

    This smells similar to the issues that others found and solved in our other iCloud SRP replacement PR. @ncw I'm happy to take a look at it.

  4. Lyapsus commented on Apr 24, 2026

    @Lyapsus
    Contributor

    Gentlemen, would you mind to try #9234?
    From #8587 I learned the symptom to be macOS/iOS 26.4+ on any of devices with a given Apple account (ever signed in?) and sadly I see no mentions of your versions there. Is this the case per chance?

  5. andrew-schulman commented on Apr 25, 2026

    @andrew-schulman

    Yes, I'm affected by this and I have devices running iOS 26.4. Almost all iOS users will be running 26.4 by now.

  6. andrew-schulman commented on Apr 25, 2026

    @andrew-schulman

    Not sure of the right way to try #9234.

  7. Lyapsus commented on Apr 25, 2026

    @Lyapsus
    Contributor

    @andrew-schulman basically like this:

    git clone https://github.com/Lyapsus/rclone
    cd rclone
    git checkout icloud-photos
    go build
    
    ./rclone config create icloud-test iclouddrive apple_id "YOUR_APPLE_ID" password "YOUR_PASSWORD"
    ./rclone lsd icloud-test:
    ./rclone config delete icloud-test
    
  8. andrew-schulman commented on Apr 27, 2026

    @andrew-schulman

    @Lyapsus Thanks for the instructions. Yes, the icloud-photos branch lets me authenticate to iCloud. I get the 2FA prompt and code. 😎️

  9. ncw commented on Apr 27, 2026

    @ncw
    Member

    I have merged the icloud photos branch to master now which means it will be in the latest beta in 15-30 minutes and released in v1.74

    Please give it a try and if it works I'll close this issue.

    Thanks

  10. andrew-schulman commented on Apr 27, 2026

    @andrew-schulman

    Confirmed working for me in 1.74.0.beta.9673.d0c469c3c.

  11. ItsAperoTime commented on Apr 28, 2026

    @ItsAperoTime
    Author

    Confirmed working too for me with rclone v1.74.0-beta.9673.d0c469c3c !

  12. ncw commented on Apr 28, 2026

    @ncw
    Member

    Thanks for testing @andrew-schulman and @ItsAperoTime - I'll close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions