Failed to create file system for "MailRu:": failed to authorize: oauth2: "invalid username or password" "username or password is incorrect"

What is the problem you are having with rclone?

I'm trying to connect to a new account in the Mail.Ru cloud, but I get a message about an incorrect password.

  1. I already have other accounts in the Mail.Ru cloud created earlier. Everything works there.
  2. I read the current documentation, there is no 2FA authorization.
  3. I made an application password.
  4. I saw a couple of messages about the same error from 2022, but they did not help me

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

rclone v1.68.2

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

MailRu

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

rclone.exe lsd MailRu:

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[MailRu]
type = mailru
user = XXX
pass = XXX

A log from the command that you were trying to run with the -vv flag

2024/12/30 20:52:00 DEBUG : rclone: Version "v1.68.2" starting with parameters ["D:\\1СБазы8\\BackUp\\rclone\\rclone.exe" "lsd" "MailRu:" "-vv"]
2024/12/30 20:52:00 DEBUG : Creating backend with remote "MailRu:"
2024/12/30 20:52:00 DEBUG : Using config file from "C:\\Users\\Администратор.WIN-7NICF1JSE35\\.config\\rclone\\rclone.conf"
2024/12/30 20:52:00 INFO  : []: Valid token not found, authorizing.
2024/12/30 20:52:01 CRITICAL: Failed to create file system for "MailRu:": failed to authorize: oauth2: "invalid username or password" "username or password is incorrect"

The holidays are over... maybe someone can help me?
I still couldn't set up RClone to work with MailRu Cloud

welcome to the forum,

rclone simply uses the information you provide to it.

how did you create the remote?
ran rclone config command
or
manually edit the rclone config file.

Have same problem.

2025/01/12 10:53:23 DEBUG : rclone: Version "v1.68.2" starting with parameters ["rclone" "-vvv" "about" "mcloud:"]
2025/01/12 10:53:23 DEBUG : Creating backend with remote "mcloud:"
2025/01/12 10:53:23 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2025/01/12 10:53:23 INFO  : []: Valid token not found, authorizing.
2025/01/12 10:53:24 CRITICAL: Failed to create file system for "mcloud:": failed to authorize: oauth2: "invalid username or password" "username or password is incorrect"

Found solution. You should give all permissions to external app password. Giving only webdav leads to error

yes

i did it like this. i have already created app password with different settings several times...

When U give permissions - give it to all services

Доступ

Полный доступ к Почте, Облаку, Календарю(Все протоколы)

I don't know why, but if U give only webdav - login fails

I made a app-password that has maximum access to MailRU services. but nothing changed. rclone can't access.

now I tried to connect to the cloud on another account
the account is very old, but they never used the cloud there, I created a password for the application just now, I also gave maximum access for this password.
unfortunately, exactly the same error appears there...

You need to pick the last option in this list, not the first one, then the auth works as expected.

THANK YOU
Thanks for pointing out my mistake. Now everything works!!!