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

Open
mayara-ogliari opened this Issue Nov 6, 2018 · 44 comments

Comments

8 participants
@mayara-ogliari
Copy link

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

This comment has been minimized.

Copy link
Owner

megous commented Nov 6, 2018

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

@SSoft7

This comment has been minimized.

Copy link

SSoft7 commented Nov 6, 2018

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

Just removed, did not work.

@megous

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link

mayara-ogliari commented Nov 6, 2018

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

@mayara-ogliari

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner

megous commented Nov 6, 2018

@mayara-ogliari

I don't know.

Does it happen with their website too?

@SSoft7

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link
Owner

megous commented Nov 6, 2018

... ignore..

@megous

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link
Owner

megous commented Nov 6, 2018

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

@mayara-ogliari

This comment has been minimized.

Copy link

mayara-ogliari commented Nov 6, 2018

I created direct on mega.nz through the site

@megous

This comment has been minimized.

Copy link
Owner

megous commented Nov 6, 2018

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

@mayara-ogliari

This comment has been minimized.

Copy link

mayara-ogliari commented Nov 6, 2018

ok

@mayara-ogliari

This comment has been minimized.

Copy link

mayara-ogliari commented Nov 6, 2018

now solved, it worked creating by megareg

@mayara-ogliari

This comment has been minimized.

Copy link

mayara-ogliari commented Nov 6, 2018

It is forecast to fit this into megatools?

@SSoft7

This comment has been minimized.

Copy link

SSoft7 commented Nov 6, 2018

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

@megous

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link

mayara-ogliari commented Nov 7, 2018

Good Morning

Now in the morning the generation of new accounts by megareg

@megous

This comment has been minimized.

Copy link
Owner

megous commented Nov 7, 2018

I don't understand.

@mayara-ogliari

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner

megous commented Nov 7, 2018

That's because it already exists for that email.

@mayara-ogliari

This comment has been minimized.

Copy link

mayara-ogliari commented Nov 7, 2018

OK

I'll review the email.

@extensionsapp

This comment has been minimized.

Copy link

extensionsapp commented Nov 13, 2018

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

@megous

This comment has been minimized.

Copy link
Owner

megous commented Nov 13, 2018

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

@LuNiKoFf

This comment has been minimized.

Copy link

LuNiKoFf commented Nov 24, 2018

@megous any news about new mega account ? thx

@megous

This comment has been minimized.

Copy link
Owner

megous commented Nov 24, 2018

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

@extensionsapp

This comment has been minimized.

Copy link

extensionsapp commented Nov 25, 2018

Megatools will no longer be supported?

@megous

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner

megous commented Dec 25, 2018

@dobaniashish

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link
Owner

megous commented Jan 10, 2019

I've added a note to the website.

@sjuswede

This comment has been minimized.

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment