-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't connect pCloud account protected by 2FA #4210
Comments
Is this because you have 2FA activated on your account? I can't find any mention of how to use 2FA with the API in their docs. Can you ask pCloud support and see what they say? @Sunil-P you were working on the pcloud backend recently - do you have any ideas about this? |
I did not face the issue described above, maybe because I didn't enable 2FA. Let me test out with 2FA enabled. If we are to implement 2FA support, we would need more info. |
I am also interested as I have 2fa activated on pCloud. I wonder how this has not come up before as I was expecting most people having that activated by default. |
@ncw Yes, I have 2FA enabled on my pCloud and most accounts! I reached out to pCloud support on Twitter and by email. Heard back on the former channel: |
@Sunil-P Yes. This behavior only occurs when trying to connect rlcone to a pCloud account with 2FA enabled. However, in light of the fact that using 2FA is strongly advised, particularly when securing cloud file storage, I think that it would be a good issue to address. In the meantime, I am using an awkward workaround to sync pCloud with my intended destination (Backblaze B2). |
@danielrosehilljlm Thanks for reaching out to their support.
Can you describe your work-around for others who come across this issue? |
Happily. Although I think that calling it a workaround is being too kind to myself. I just bundled my pCloud together into an archive, downloaded that on an EC2 instance, and then pushed it up to B2 (so effectively a local --> remote from a cloud server). Documented here: |
I had this issue also, but managed to resolve it by signing into pcloud on the browser first with login & 2FA, then doing rclone authorize "pcloud". This then showed a page allowing me to authorize, then the Success page. Then in the terminal I was given a token, which I entered on my headless box, and it's all working now. |
@KRossKoWolf Tried your approach but got this: |
I'm also having this issue on Mac
|
I tried to connect to pCloud from rclone on Mac OS tonight and I got the same message: |
I am facing this issue as well. I tried to setup my pcloud remote in a virtual machine first.
When trying to authorize rclone with pcloud, I get a redirect error. I am able to login succesfully, but the redirect is the problem I guess? |
pCloud should be passing back the state parameter that rclone passed in on config but it seems to have got lost somewhere. This sets a work-around for the pCloud backend allowing an empty state parameter. See: https://forum.rclone.org/t/cannot-connect-to-pcloud/16592 See: https://forum.rclone.org/t/cannot-create-pcloud-config-file-on-osx/16583
@creativeprojects can you see what it is trying to redirect to? If I try making a new pcloud remote on linux (also without 2FA) I get this
So pcloud has lost the state we sent it somewhere along the line. The error on macOS is different and I don't understand why! Can you all have a go with this which attempts to work-around the problem? https://beta.rclone.org/branch/v1.51.0-369-g4599e484-fix-4210-pcloud-oauth-beta/ (uploaded in 15-30 mins) |
Yes! it worked for me. It asked for my password twice, but it could just be fat fingers typing... I'll try on the other mac to make sure 👍 |
I tried it with Some part of the URL is not constructed properly I guess? |
pCloud should be passing back the state parameter that rclone passed in on config but it seems to have got lost somewhere. This sets a work-around for the pCloud backend allowing an empty state parameter. See: https://forum.rclone.org/t/cannot-connect-to-pcloud/16592 See: https://forum.rclone.org/t/cannot-create-pcloud-config-file-on-osx/16583
I've merged the fix for the This means that you should be able to auth to pCloud without 2FA. @creativeprojects do you fancy having a look at what is needed to make the 2FA part of it work? |
Yes I can have a look at it (pretty busy these days but I should be able to give it some time) |
oh BTW I tried the latest beta, and I can confirm it does ask me for my password twice. It's like the first request is cancelled or something. Weird |
I was assuming that was something to do with the pcloud website - does rclone get involved between the two password entries? |
Installed the Beta package but now get this error when trying to allow the integration and after executing |
Do you have 2FA turned on? Try turning it off while you connect rclone. |
Yes, I do use 2FA. I will try that workaround later, but this is kind of what I have been trying to avoid: I'm logged in to pCloud from about six devices, and toggling 2FA involves not only reauthenticating from each machine but also having to download a fresh batch of backup codes. |
I think this is maybe a bug at pCloud... I tried disabling "implicit grant" to make the app more secure but that didn't help. In the mean time I've emailed pCloud support to ask them what is going on. |
I received this email from pCloud support
So it looks like we have to wait for pCloud to fix the problem here. |
Thanks. To be honest, I only use pCloud because their Linux Desktop is the best cloud storage sync I've found for the platform so far. The performance is much smoother than mounting Google Drive. But maybe it's time to switch: I love rclone and think it is very important to regularly backup all cloud storage! |
The issue seems to have been finally fixed by pCloud: I successfully managed to login to my account with 2FA activated. |
As per linked issue, I've only now tried this and it works in Keepass2Android (registered pCloud app/plugin), pCloud Android app, RCX on Android, rclone in Termux Alpine distro and rclone in Termux. |
What is the problem you are having with rclone?
When trying to add a pCloud account as a remote, the browser prompt from pCloud automatically states:
"Two factor authentication required"
There is no way to create the integration while maintaining 2FA on pCloud.
What is your rclone version (output from
rclone version
)v150.2
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 20.04
Which cloud storage system are you using? (eg Google Drive)
pCloud (attempted)
The command you were trying to run (eg
rclone copy /tmp remote:tmp
)Trying to add pCloud to sync with another cloud
A log from the command with the
-vv
flag (eg output fromrclone -vv copy /tmp remote:tmp
)N/A
The text was updated successfully, but these errors were encountered: