Failed to create file system for "mega:": couldn't login: Object not found

What is the problem you are having with rclone?

Failed to create file system for "mega:": couldn't login: Object (typically, node or user) not found

What is your rclone version (output from rclone version)

rclone v1.55.1
- os/type: windows
- os/arch: amd64
- go/version: go1.16.3
- go/linking: dynamic
- go/tags: cmount

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

Windows 10, 64-bit

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

Mega

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

.\rclone.exe move ./upload mega: -v -P --config ./rclone.conf -vv
.\rclone.exe ls mega: --config ./rclone.conf -vv

The rclone config contents with secrets removed.

[mega]
type = mega
user = 
pass = 
debug = false
hard_delete = true

A log from the command with the -vv flag

2021/05/24 18:06:12 DEBUG : Using config file from "F:\\_Temp\\PyMega\\rclone.conf"
2021/05/24 18:06:12 DEBUG : rclone: Version "v1.55.1" starting with parameters ["F:\\_Temp\\PyMega\\rclone.exe" "ls" "mega:" "--config" "./rclone.conf" "-vv"]
2021/05/24 18:06:12 DEBUG : Creating backend with remote "mega:"
2021/05/24 18:06:12 Failed to create file system for "mega:": couldn't login: Object (typically, node or user) not found

Further log info from .\rclone.exe ls mega: --config ./rclone.conf -vv --dump bodies:

2021/05/24 18:10:54 DEBUG : rclone: Version "v1.55.1" starting with parameters ["F:\\_Temp\\PyMega\\rclone.exe" "ls" "mega:" "--config" "./rclone.conf" "-vv" "--dump" "bodies"]
2021/05/24 18:10:54 DEBUG : Creating backend with remote "mega:"
2021/05/24 18:10:54 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.
2021/05/24 18:10:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/05/24 18:10:54 DEBUG : HTTP REQUEST (req 0xc000539200)
2021/05/24 18:10:54 DEBUG : POST /cs?id=3976161454 HTTP/1.1
Host: g.api.mega.co.nz
User-Agent: rclone/v1.55.1
Content-Length: 76
Content-Type: application/json
Accept-Encoding: gzip

[{"a":"us0","user":"[redacted]"}]
2021/05/24 18:10:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/05/24 18:10:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/05/24 18:10:54 DEBUG : HTTP RESPONSE (req 0xc000539200)
2021/05/24 18:10:54 DEBUG : HTTP/1.1 200 OK
Content-Length: 9
Access-Control-Allow-Headers: Content-Type, MEGA-Chrome-Antileak
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Original-Content-Length
Access-Control-Max-Age: 86400
Connection: keep-alive
Content-Type: application/json
Original-Content-Length: 9

[{"v":1}]
2021/05/24 18:10:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/05/24 18:10:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/05/24 18:10:54 DEBUG : HTTP REQUEST (req 0xc0004a0500)
2021/05/24 18:10:54 DEBUG : POST /cs?id=3976161455 HTTP/1.1
Host: g.api.mega.co.nz
User-Agent: rclone/v1.55.1
Content-Length: 94
Content-Type: application/json
Accept-Encoding: gzip

[{"a":"us","user":"[redacted]","uh":"BzaLl-fz77U"}]
2021/05/24 18:10:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/05/24 18:10:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/05/24 18:10:54 DEBUG : HTTP RESPONSE (req 0xc0004a0500)
2021/05/24 18:10:54 DEBUG : HTTP/1.1 200 OK
Content-Length: 4
Access-Control-Allow-Headers: Content-Type, MEGA-Chrome-Antileak
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Original-Content-Length
Access-Control-Max-Age: 86400
Connection: keep-alive
Content-Type: application/json
Original-Content-Length: 4

[-9]
2021/05/24 18:10:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/05/24 18:10:54 Failed to create file system for "mega:": couldn't login: Object (typically, node or user) not found

I've seen that I'm not the first experiencing this issue and that developing the mega remote has been a pain in the butt because there's no proper API and everything is documented poorly. From what I've seen so far the only extra bit of info I can think of is that my pass contains capital letters (seemed to have been an issue in the past with usernames)

If there's anything else I can do please let me know.

OK I'm sorry but after an hour of trying and seemingly changing nothing whatsoever it suddenly just... works. I must have messed up somewhere, unfortunately I can't pinpoint where...

Mega does seem to be a bit like this. They have some quite heavy rate limiting which can stop stuff working for ages.

Yes even though I am a very happy rclone user I have decided against using it for mega related projects

You can use rclone in conjunction with megacli serving webdav. That works better in some ways but has its own problems too!

1 Like

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