API for Mail.ru Cloud?

What is the problem you are having with rclone?

What API is used to access Mail.ru Cloud? It seems to me that it is not WebDAV.

This question has appeared because separate passwords are required to access to some Mail.ru services from the third party applications since the 1st of January 2022:
Пароли для внешних приложений — Помощь Mail.ru. Почта
Доступ по WebDAV — Помощь Mail.ru. Облако

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.

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

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

There isn't an official API.

What bug are you reporting?

add Cloud mail.ru · Issue #591 · rclone/rclone (github.com)

1 Like

It is necessary to mention in the documentation Mailru that the main password must be used to access Mail.ru Cloud through rclone but not a separate password for the third party applications.

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