rclone: Unable to login into mega

What is the problem you are having with rclone?

Unable to login into mega

What is your rclone version (output from rclone version)

v1.45

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

Windows 10 64bit

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 ls mega1: rclone ls :mega: --mega-user username --mega-pass obscure_pass has the same issue (account works with the official MEGAcmd)

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2018/11/25 15:45:26 DEBUG : rclone: Version "v1.45" starting with parameters ["rclone" "ls" "mega1:" "--mega-debug" "-vv" "--dump" "bodies"]
2018/11/25 15:45:26 DEBUG : Using config file from "C:\\Users\\hidden\\.config\\rclone\\rclone.conf"
2018/11/25 15:45:26 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/11/25 15:45:26 DEBUG : HTTP REQUEST (req 0xc000474b00)
2018/11/25 15:45:26 DEBUG : POST /cs?id=hidden HTTP/1.1
Host: g.api.mega.co.nz
User-Agent: rclone/v1.45
Content-Length: 73
Content-Type: application/json
Accept-Encoding: gzip

[{"a":"us","user":"hidden","uh":"hidden"}]
2018/11/25 15:45:26 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/11/25 15:45:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/11/25 15:45:27 DEBUG : HTTP RESPONSE (req 0xc000474b00)
2018/11/25 15:45:27 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

[-8]
2018/11/25 15:45:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/11/25 15:45:27 Failed to create file system for "mega1:": couldn't login: The upload target URL you are trying to access has expired. Please request a fresh one

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 34 (12 by maintainers)

Commits related to this issue

Most upvoted comments

@agent0404 I think that error is “Multi-factor authentication required” - rclone doesn’t support multi factor auth yet.

any eta for this 😃 ?

This fix went into 1.46 which has just been released

Disabling 2FA did not fix this for me. I read something about MEGA changing it’s APIs. I will look into fixing this tomorrow morning.

Hi, new here. It’s been more than a year since the last message here so sorry for the necroing. Are there any plans to fixing the “Multi-factor authentication required” problem? Thanks in advance

Same problem for me, but a different error message:

rclone -vv lsd mega:
2019/01/18 16:22:12 DEBUG : rclone: Version "v1.45" starting with parameters ["rclone" "-vv" "lsd" "mega:"]
2019/01/18 16:22:12 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2019/01/18 16:22:12 Failed to create file system for "mega:": couldn't login: The upload target URL you are trying to access has expired. Please request a fresh one

I didn’t enable 2FA. The account in question was created yesterday.

It might be a good idea to include a note in the docs until this is fixed.

I need to find someone to work on this - are you interested @GiganticThirstyHerald ?

I’ve had a go at fixing this. It works for my old account and a new one I created.

Please give this a go and report back - thanks!

https://beta.rclone.org/branch/v1.45-172-g7d5d6c04-fix-2771-mega-login-beta/ (uploaded in 15-30 mins)

I updated my version and works for me, Thanks

I can confirm the patch works for my approx. 6 month old mega account. TNX a lot for fixing this quickly!

Same

Failed to create file system for "mega:": couldn't login: The upload target URL you are trying to access has expired. Please request a fresh one

I hope this bug will be fixed after all