meganz / MEGAcmd

Command Line Interactive and Scriptable Application to access MEGA
Other
1.92k stars 406 forks source link

mega-ls not showing the correct files #803

Open Tzuramishav opened 1 year ago

Tzuramishav commented 1 year ago

I'm running MEGAcmd version: 1.6.1.3: code 1060103 on Ubuntu 22.04.2 LTS from several identical servers.

I have a strange scenario where when I run mega-ls on some of the servers it appears that certain files are missing.

The missing files appear on other servers as well as via the browser when viewing my Mega account.

I tried logging out and in several times, deleting the .megaCmd directory as well as running mega-reload to no avail.

Any idea how I can fix this?

polmr commented 1 year ago

Hi @Tzuramishav , that's unexpected. Is mega-find successful in finding those files? Do yo have an example of a non listed file?

Tzuramishav commented 1 year ago

Hi @polmr, mega-find does not find the files on the affected machines. The same login is used across both machines.

For example, on my local machine: $ mega-find tapzens.rar tapzens.rar

On an affected machine:

mega-find tapzens.rar

[API:err: 11:15:54] tapzens.rar: No such file or directory

Any idea how to debug this?

polmr commented 1 year ago

Just to discard some pattern finding issue, can you list the handle in the machine where it works:

mega-ls tapzens.rar --show-handles

It should output something like:

tapzens.rar <H:XXXXXXXX>

And then, in the failing one: mega-ls -l H:XXXXXXXX

Tzuramishav commented 1 year ago

Thanks @polmr , here's the output:

$ mega-ls tapzens.rar --show-handles tapzens.rar

mega-ls -l H:l6p3BKqR

[API:err: 14:05:49] Couldn't find "H:l6p3BKqR"

polmr commented 1 year ago

That discards any issue with the pattern. Would you mind sharing a log with us? In order to get it, logout and close MEGAcmd (ensure there are no mega-cmd-server process running), and then: 1 - Open MEGAcmd Server in a console:

mega-cmd-server --debug-full > megacmd.log

2 - In another, log in, let it run for > 5 min 3 - execute the failing mega-ls 4 - exit the server (mega-quit)

Then, please, send us the megacmd.log. Since it may contain sensitive data, you cand send it to support@mega.nz referencing this issue.

Tzuramishav commented 1 year ago

logs sent, thanks!

VictorQueiroz commented 1 week ago

Is there any resolution to this?

I am facing a similar problem, but sort of the other way around.

The files appear when accessed through mega-cmd but do not appear on the web, the Android application (besides the fact that it crashes constantly), and through the Chrome browser extension.

I tried the Reload Account option many times, but not only some files are missing, there is also some folders missing. That's specifically on any platform except when using mega-cmd.

Any ideas?