Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server returned error EEXPIRED #411

Closed
mayara-ogliari opened this issue Nov 6, 2018 · 55 comments
Closed

Server returned error EEXPIRED #411

mayara-ogliari opened this issue Nov 6, 2018 · 55 comments

Comments

@mayara-ogliari
Copy link

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

Ao criar uma nova conta no mega.nz megatools está retornando a seguinte falha de conexão:

ERROR: Can't login to mega.nz: API call 'us' failed: Server returned error EEXPIRED

Esse erro não ocorre com contas mais antigas

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

Expired session? Try removing the /tmp/*.megatools.cache files.

@SSoft7
Copy link

@SSoft7 SSoft7 commented Nov 6, 2018

Expired session? Try removing the /tmp/*.megatools.cache files.

Just removed, did not work.

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

Expired account? 'us' is a login call, so not much else can sensibly be expired at that point.

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

I removed the .megatools.cache files but it still gives the same error.

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

Expired account? 'us' is a login call, so not much else can sensibly be expired at that point.

How can I solve this?

@SSoft7
Copy link

@SSoft7 SSoft7 commented Nov 6, 2018

Expired account? 'us' is a login call, so not much else can sensibly be expired at that point.

Its free account not sure why it would expire. Made a fresh new account and same result.

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

@mayara-ogliari

I don't know.

Does it happen with their website too?

@SSoft7
Copy link

@SSoft7 SSoft7 commented Nov 6, 2018

@mayara-ogliari

I don't know.

Does it happen with their website too?

Nope, Login and upload are working fine on their website.

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

@megous

With this account I have access to mega.nz and if I use an old account it sends files via megaput to mega.ns

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

This error is occurring in new accounts created this week

I tested with 2 new accounts created and is giving the same error

may be some incorrect file inside the Debian server?

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

This error is not documented. It is used only for indicating expired download/upload links, and for account creation/cancelation tokens in their web client code. So... either they're repurposing it for something new, or I don't know.

You may try masking the megatools, so that they look like web browser accessing mega.nz. There's a code for it in http.c, maybe it helps.

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

... ignore..

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

They've added a new registration/authentication method a few days ago. Website first fetches account version via us0 call. If it sees that it's the old style account, it does things differently. Megatools don't support this new method, so only work for accounts registered with the old method.

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

Did you create the account that doesn't work with megatools or on their website?

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

I created direct on mega.nz through the site

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

Try creating via megatools, that should still give you the old style account.

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

ok

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

now solved, it worked creating by megareg

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 6, 2018

It is forecast to fit this into megatools?

@SSoft7
Copy link

@SSoft7 SSoft7 commented Nov 6, 2018

@megous so megatools can be fixed (later) for this new accounts right?

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

Good to know. So I guess that's the way to go in the meantime.

No forecast. Patch to the webclient that changed the login mechanism is like 17 000 lines of code. Though luckily only the smaller part of that is directly related to the protocol change. But still, it's not something I'm excited about going through. I'll wait to see if they also update the API documentation.

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

If someone wants to keep an eye on the docs update, or analyze what's different from the code drop, that would help. It's this change:

meganz/webclient@a2786d4

@megous
Copy link
Owner

@megous megous commented Nov 6, 2018

Oh, there's gonna be no documentation. Mega.nz even decided to remove most of the previously existing protocol docs, so the only way is to reverse engineer the protocol changes from the code.

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 7, 2018

Good Morning

Now in the morning the generation of new accounts by megareg

@megous
Copy link
Owner

@megous megous commented Nov 7, 2018

I don't understand.

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 7, 2018

It is not possible to create accounts by megareg

is returning the error:
ERROR: Registration failed: API call 'uc' failed: Server returned error EEXIST

@megous
Copy link
Owner

@megous megous commented Nov 7, 2018

That's because it already exists for that email.

@mayara-ogliari
Copy link
Author

@mayara-ogliari mayara-ogliari commented Nov 7, 2018

OK

I'll review the email.

@extensionsapp
Copy link

@extensionsapp extensionsapp commented Nov 13, 2018

@megous how long will it take to fix the problem?

@megous
Copy link
Owner

@megous megous commented Nov 13, 2018

It's probably 4-8hours of work, if all the necessary crypto is supported by openssl

@LuNiKoFf
Copy link

@LuNiKoFf LuNiKoFf commented Nov 24, 2018

@megous any news about new mega account ? thx

@megous
Copy link
Owner

@megous megous commented Nov 24, 2018

No news. I haven't been looking into it.

@extensionsapp
Copy link

@extensionsapp extensionsapp commented Nov 25, 2018

Megatools will no longer be supported?

@megous
Copy link
Owner

@megous megous commented Nov 25, 2018

The code is available, anyone who needs to login to new accounts created on mega.nz website can implement new logins. I'd pull the changes.

I don't need it, my old accounts still work and as someone else reported, if you register new account with megatools, you'll still be able to login. I haven't tested that.

@vinnytroia
Copy link

@vinnytroia vinnytroia commented Dec 21, 2018

the code is still available how/where? i have pulled/compiled the latest version of the code and getting the same error

@megous
Copy link
Owner

@megous megous commented Dec 21, 2018

My meaning is that whoever needs this strongly enough can analyze code available here: meganz/webclient@a2786d4 or search the internet for info from people who already did it, and implement new logins API in megatools.

@dobaniashish
Copy link

@dobaniashish dobaniashish commented Dec 25, 2018

@megous Can you give a tutorial to build single binaries for CentOS and Windows? I can try to implement the new login system.

@megous
Copy link
Owner

@megous megous commented Dec 25, 2018

@dobaniashish
Copy link

@dobaniashish dobaniashish commented Dec 26, 2018

@megous I have read the README file before and was able to successfully build. I was asking How to build standalone static builds. https://github.com/megous/megatools/blob/master/README#L137

@megous
Copy link
Owner

@megous megous commented Dec 26, 2018

@dobaniashish

I used this to build the musl C toolchains: https://github.com/richfelker/musl-cross-make

For windows, you can use https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/

You'd have to build all the dependencies with configure --enable-static --disable-shared --prefix=/your/prefix or equivalent and make sure you don't accidentally use the host's header or library files when building. It's a ton of work to set all that up, and I don't have a guide written up.

Anyway, none of this is necessary. I'll create the builds after pulling the changes.

@sjuswede
Copy link

@sjuswede sjuswede commented Jan 10, 2019

I ran into the same problem. Was trying to download and ran into the limit, so I created an account and paid for access. When I try to use the new account with the latest experimental build of megatools I get the EEXPIRED error.

How can I work around this?

@megous
Copy link
Owner

@megous megous commented Jan 10, 2019

You can not. Mega.nz added a new login type and a registration flow a month ago (that was incompatible with all other existsing clients other than their official ones), and new accounts when created via a mega.nz website, can't be used with megatools, ATM.

Accounts created with megatools, and old accounts, should still work with any tool though as reported by other users.

You can use their client.

@megous
Copy link
Owner

@megous megous commented Jan 10, 2019

I've added a note to the website.

@sjuswede
Copy link

@sjuswede sjuswede commented Jan 15, 2019

They have a command line client? I didn't know that. I will try with that, thanks!

It's been painful to use the website to download and move files from my laptop to my file server, one file at the time, and some files are so big I will have to clear out space on the laptop. It's also slow, due to the clunky way the web app works. Command line straight from the file server is much better, and I thought megatools was my only real choice.

@lvanz
Copy link

@lvanz lvanz commented Jan 25, 2019

megacmd do not support --proxy ,need megatool ,thx

@wilterporto
Copy link

@wilterporto wilterporto commented Feb 19, 2019

Resolvido (Solved)
Usando CentOS 7
Exclui a conta que criei no site e criei pela linha de comando seguindo o modelo abaixo.

megareg --register --email your@email.com --name "Your Name" --password "Your Password"

@kkm
Copy link

@kkm kkm commented Feb 25, 2019

Anyone fix that?

@ahmedtds
Copy link

@ahmedtds ahmedtds commented Jun 18, 2019

Is there another cli tool that can handle new new accounts other than mega's own megacmd? megacmd is very bloated.

@rs3mk
Copy link

@rs3mk rs3mk commented Aug 8, 2019

work in File & Image uploader

mega00
mega01

@jonahamada
Copy link

@jonahamada jonahamada commented Dec 8, 2019

i just created an account mega for the first time , i installed megatools on ubuntu from its repositories (using apt) and i faced the same issue , i went back to mega.nz on browser and i found mega-cmd cli for linux/mac/other https://mega.nz/cmd

purge megatools and install megacmd.deb

login to your account

mega-login you@email password
and all is fine yay !

@liar666
Copy link

@liar666 liar666 commented Feb 28, 2020

Hi all,

Indeed, this new auth is quite annoying. Also, I noticed that the new accounts are created with 15GB instead of 50Gb :{

I found a very simple workaround, but unfortunately it can take some time to set up:

The simplest setting is with opening 2 browsers, each one will manage a single mega account:

  1. Use a first browser (e.g. FF), login into your original MEGA account (nammed accountSrc below) and move everything into a single directory
    2a. Create a new account using megareg (nammed accountDest below)
    2b. Use a second browser (e.g. Chromium) to validate the account.
    [2c. Be sure to logout from accountDest] -> see 4c.
  2. Use the first browser (FF) to get the link for sharing the single big directory of accountSrc
    4a. Go back to the second browser (Chromium) and visit to the sharing URL
    4b. The content of the shared directory should appear and there is an option to import the data into your mega account.
    4c. Choose this option and import the whole directory into accountDest. It might import the dir directly into your accountDest if you did not log out in step 2c. Otherwise you'll be ask to connect to your "MEGA account". Here, select the login/pass for the accountDest.
    This operation can take some time, even if all the data is not actually copied.
    NOTE: sometimes at this step, my browser simply blocks on the page with the looping mega wheel waiting for the data to be "copied" I waited hours and nothing happened... In such cases, I go back to the shared link URL and import only a single sub-directory, then go back to the shared url, etc to import the content piece by piece. Quite long but works :{
  3. Verify that all the data has been correctly and totally imported. This is important as we will trash the original accountSrc!!!!
  4. Go to the first browser/account and ask mega to destroy accountSrc
  5. Rapidly recreate accountSrc with megareg
  6. Copy your data back to this accountSrc-new using a similar procedure as steps 3/4

TADA! new-OLD account has 50GB and is accessible through megatools \o/

The procedure might be simplified (not loging out from the accounts or using a single browser), but this is how I did it and it worked :)

@erotavlasme
Copy link

@erotavlasme erotavlasme commented Apr 27, 2020

I was able to use megatools by following the suggestion of @wilterporto.
Does megatools removed the sync command? How can I sync with it? Or it is not possible and I have to use megacmd?

@megous
Copy link
Owner

@megous megous commented May 3, 2020

Someone contributed a support for a new login flow, so v2 accounts are now supported.

@megous megous closed this May 3, 2020
@marcelomendes
Copy link

@marcelomendes marcelomendes commented May 13, 2020

I'm having this same issue (megatools 1.10.3-1 on Debian). Any way to fix this without have to create a new account?

@ahmedtds
Copy link

@ahmedtds ahmedtds commented May 13, 2020

I'm having this same issue (megatools 1.10.3-1 on Debian). Any way to fix this without have to create a new account?

use latest build from here: https://megatools.megous.com/builds/experimental/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet