Mail.ru Cloud: "Failed to authorize: oauth2: server response missing access_token" instead of "username or password is incorrect"

What is the problem you are having with rclone?

If incorrect password is supplied for Mail.ru Cloud rclone reports "Failed to authorize: oauth2: server response missing access_token" instead of "username or password is incorrect". It is confusing.

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

rclone v1.57.0
- os/version: debian 10.9 (64 bit)
- os/kernel: 4.19.0-16-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none

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

Mail.ru Cloud

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

rclone lsd -vvv --dump headers,bodies mailru-cloud: --config /etc/rclone.conf --log-file=mailru.log

The rclone config contents with secrets removed.

[mailru-cloud]
type = mailru
user = xxx@mail.ru
pass = xxx
speedup_enable = false
token = {"access_token":"xxx","token_type":"Bearer","refresh_token":"xxx","expiry":"2022-01-05T05:10:44.446658793+01:00"}

A log from the command with the -vv flag

2022/01/04 11:56:49 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "lsd" "-vvv" "--dump" "headers,bodies" "mailru-cloud:" "--config" "/etc/rclone.conf" "--log-file=mailru.log"]
2022/01/04 11:56:49 DEBUG : Creating backend with remote "mailru-cloud:"
2022/01/04 11:56:49 DEBUG : Using config file from "/etc/rclone.conf"
2022/01/04 11:56:49 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2022/01/04 11:56:49 INFO  : []: Valid token not found, authorizing.
2022/01/04 11:56:49 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/01/04 11:56:49 DEBUG : HTTP REQUEST (req 0xc0002d8900)
2022/01/04 11:56:49 DEBUG : POST /token HTTP/1.1
Host: o2.mail.ru
User-Agent: rclone/v1.57.0
Content-Length: 109
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

client_id=cloud-win&grant_type=password&password=xxx&username=xxx%40mail.ru
2022/01/04 11:56:49 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/01/04 11:56:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/01/04 11:56:50 DEBUG : HTTP RESPONSE (req 0xc0002d8900)
2022/01/04 11:56:50 DEBUG : HTTP/2.0 200 OK
Content-Length: 111
Cache-Control: no-cache,no-store,must-revalidate
Content-Type: application/json;charset=UTF-8
Date: Tue, 04 Jan 2022 10:56:50 GMT
Expires: Mon, 04 Jan 2021 10:56:50 GMT
Last-Modified: Tue, 04 Jan 2022 13:56:50 GMT
Pragma: no-cache
Server: nginx
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-Options: DENY
X-Host: fau41.m.smailru.net
X-Mru-Request-Id: 2ae3ce9e

{"error":"invalid username or password","error_code":3,"error_description":"username or password is incorrect"}
2022/01/04 11:56:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/01/04 11:56:50 Failed to create file system for "mailru-cloud:": Failed to authorize: oauth2: server response missing access_token

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