[Bug 269979] net/megacmd: v1.5.0 broken (core dump during start)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 29 Dec 2023 14:23:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269979

--- Comment #9 from Riccardo Torrini <riccardo@torrini.org> ---
(In reply to Riccardo Torrini from comment #7)

Updated server to 13.2-p8, another test:

Dec 29 12:31:19 hydra pkg[71202]: cryptopp upgraded: 8.5.0_1 -> 8.9.0
Dec 29 12:31:53 hydra pkg[71202]: megacmd upgraded: 1.4.1 -> 1.6.3_2

Same error using webdav, I found this messages during rclone copy
(extracted from megacmdserver.log with a little edit for readability):

# failed using latest version
[API:err: 13:29:07] Failed to
open('/home/riccardo/.megaCmd/httputfile.getxfer.3355.1.mega.home/index/{sha256-file_1}'):
error 2: No such file or directory
[API:err: 13:29:07] Failed to
open('/home/riccardo/.megaCmd/httputfile.getxfer.3355.2.mega.home/index/{sha256-file_2}'):
error 2: No such file or directory
[API:err: 13:29:07] Failed to
open('/home/riccardo/.megaCmd/httputfile.getxfer.3355.3.mega.home/index/{sha256-file_3}'):
error 2: No such file or directory
[API:err: 13:29:07] Failed to
open('/home/riccardo/.megaCmd/httputfile.getxfer.3355.4.mega.home/index/{sha256-file_4}'):
error 2: No such file or directory

# good with 1.4.1 (found with "ls -lart" inside ~/.megaCmd)
... 16901704 Dec 29 14:54 httputfile.getxfer.3568.326.mega
... 16911823 Dec 29 14:55 httputfile.getxfer.3568.336.mega
... 16922232 Dec 29 14:55 httputfile.getxfer.3568.337.mega
... 16878039 Dec 29 14:55 httputfile.getxfer.3568.338.mega

I think that cache file could be "{fixed-string}.{pid}.{sequence_number}.mega"
on 1.4.1 but on new version there is a
".{some_part_of_current_file_name_and_path}" added to the end. I say "some
part" because of missing element between "home" and "index", namely
{hostname_of_backupped_machine}.
Maybe error 500 is because of missing/mispelled local cached file?

Probably new mega-cmd is badly broken, is not a pkg issue :-(

-- 
Riccardo.

-- 
You are receiving this mail because:
You are the assignee for the bug.