# Mega Backups fails (+ MFA Setup)

**URL:** https://forum.duplicati.com/t/mega-backups-fails-mfa-setup/16439
**Category:** Uncategorized
**Created:** [July 2, 2023, 8:46am UTC](https://forum.duplicati.com/t/mega-backups-fails-mfa-setup/16439 "2023-07-02T08:46:22Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Jojo-1000](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jojo-1000/32/8262_2.png) [@Jojo-1000](https://forum.duplicati.com/u/Jojo-1000)
#### Post date: [July 2, 2023, 11:07am UTC](https://forum.duplicati.com/t/mega-backups-fails-mfa-setup/16439/6 "2023-07-02T11:07:23Z")

</div>

This issue had the same error and stack trace, but it was said to be resolved with an update:

> <https://github.com/duplicati/duplicati/issues/3773>
>
> \- \[x\] I have searched open and closed issues for duplicates.
> 
> \----------------…------------------------
> 
> \## Environment info
> 
> 
> \- \*\*Duplicati version\*\*: 2.0.4.5\_beta\_2018-11-28
> \- \*\*Operating system\*\*: Ubuntu 18 
> \- \*\*Backend\*\*: mega.nz
> 
> \## Description
> 
> When testing the connection to mega.nz I get the error "ResourceExpired"
> 
> \## Steps to reproduce
> 
> 1. Add a backup with the storage type mega.nz
> 2. Provide your login and test the connection
> 
> 
> 
> \- \*\*Actual result\*\*:
> error
> \- \*\*Expected result\*\*:
> success
> 
> \## Debug log
> 
> 
> \`\`\`
> CG.Web.MegaApiClient.ApiException: API response: ResourceExpired
> at CG.Web.MegaApiClient.MegaApiClient.RequestCore\[TResponse\] (CG.Web.MegaApiClient.Serialization.RequestBase request, System.Byte\[\] key) \[0x00132\] in \<b77b6a46b6b94e008d0d458c52698090\>:0 
> at CG.Web.MegaApiClient.MegaApiClient.Request\[TResponse\] (CG.Web.MegaApiClient.Serialization.RequestBase request, System.Byte\[\] key) \[0x00024\] in \<b77b6a46b6b94e008d0d458c52698090\>:0 
> at CG.Web.MegaApiClient.MegaApiClient.Login (CG.Web.MegaApiClient.MegaApiClient+AuthInfos authInfos) \[0x00037\] in \<b77b6a46b6b94e008d0d458c52698090\>:0 
> at CG.Web.MegaApiClient.MegaApiClient.Login (System.String email, System.String password) \[0x00009\] in \<b77b6a46b6b94e008d0d458c52698090\>:0 
> at Duplicati.Library.Backend.Mega.MegaBackend.get\_Client () \[0x0000e\] in \<b4f95326982b44b59db3ece5ce06b53b\>:0 
> at Duplicati.Library.Backend.Mega.MegaBackend.GetCurrentFolder (System.Boolean autocreate) \[0x00020\] in \<b4f95326982b44b59db3ece5ce06b53b\>:0 
> at Duplicati.Library.Backend.Mega.MegaBackend.ResetFileCache (System.Collections.Generic.IEnumerable\`1\[T\] list) \[0x00008\] in \<b4f95326982b44b59db3ece5ce06b53b\>:0 
> at Duplicati.Library.Backend.Mega.MegaBackend.List () \[0x00008\] in \<b4f95326982b44b59db3ece5ce06b53b\>:0 
> at Duplicati.Library.Interface.BackendExtensions.TestList (Duplicati.Library.Interface.IBackend backend) \[0x00000\] in \<cad0aa948bd5428e9683582f0d34e521\>:0 
> at Duplicati.Library.Backend.Mega.MegaBackend.Test () \[0x00000\] in \<b4f95326982b44b59db3ece5ce06b53b\>:0 
> at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.TestConnection (System.String url, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) \[0x000b7\] in \<fe28905ee30b422e8d475f1cfdb85515\>:0 
> at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) \[0x00091\] in \<fe28905ee30b422e8d475f1cfdb85515\>:0 
> at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) \[0x00280\] in \<fe28905ee30b422e8d475f1cfdb85515\>:0 
> \`\`\`

There is also this forum post:

> [@Mega.nz error when check connection](https://forum.duplicati.com/t/mega-nz-error-when-check-connection/5316):
>
> If i try to define a Mega.nz backup destination I get error when click on “check connection” that says: Failed to connect: API response: ResourceExpired In Duplicati log appears message: Request for [http://localhost:8200/api/v1/remoteoperation/test](http://localhost:8200/api/v1/remoteoperation/test) gave error CG.Web.MegaApiClient.ApiException: API response: ResourceExpired en CG.Web.MegaApiClient.MegaApiClient.RequestCore[TResponse](RequestBase request, Byte key) en CG.Web.MegaApiClient.MegaApiClient.Request[TResponse](RequestBase request, …

Neither of those seem to indicate a connection to the file sizes, but maybe nobody ever noticed. If you can reliably reproduce the error, you might be up to something.

It might help others to reproduce if you post your job configuration (without passwords and other sensitive data).

---

_[View the full topic](https://forum.duplicati.com/t/mega-backups-fails-mfa-setup/16439)._
