MEGAcmd icon indicating copy to clipboard operation
MEGAcmd copied to clipboard

mega-ls not showing the correct files

Open Tzuramishav opened this issue 2 years ago • 9 comments

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?

Tzuramishav avatar Apr 10 '23 20:04 Tzuramishav

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

polmr avatar Apr 11 '23 08:04 polmr

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?

Tzuramishav avatar Apr 11 '23 11:04 Tzuramishav

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

polmr avatar Apr 11 '23 12:04 polmr

Thanks @polmr , here's the output:

$ mega-ls tapzens.rar --show-handles tapzens.rar <H:l6p3BKqR>

mega-ls -l H:l6p3BKqR

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

Tzuramishav avatar Apr 11 '23 14:04 Tzuramishav

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 [email protected] referencing this issue.

polmr avatar Apr 11 '23 14:04 polmr

logs sent, thanks!

Tzuramishav avatar Apr 11 '23 15:04 Tzuramishav

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?

VictorQueiroz avatar Sep 11 '24 21:09 VictorQueiroz

I think I'm facing this (or a similar/related) issue. In my case, I'm using MEGA to sync between a home and an office computer: (i) a home desktop running the GUI megasync (5.3.0) on Manjaro linux, and (ii) the office laptop running CLI megatools, since the latests GUI megasync (5.5.0) complains about some Qt libs and utterly freezes.

Whenever pushing (megatools put) new local files to the cloud from computer (ii), the GUI on computer (i) complains the file is lacking a file fingerprint (see screenshot below). This was quite unexpected (as both MEGA clients, the CLI and the GUI ones, should use the same protocol / underlying libraries)!

Screenshot_2024-10-14_19-48-54

After pressing the "Resolve" button the issue is said to be fixed, the new file has indeed been downloaded to computer (i) — the "destination" one, BUT, by issuing an megatools ls command on computer (ii), doe NOT show the file as being present in the cloud.

I've algo noticed other recent files missing. Maybe the issue has to do with new files, or files megatools put in the cloud through the CLI utility, lacking the fingerprint...

Hope my report helps.

cnaak avatar Oct 14 '24 22:10 cnaak

Megatools is a third-party client that does not create file fingerprints. Try MEGA CMD instead: https://mega.io/cmd

ortmann avatar Oct 14 '24 23:10 ortmann