Re: Unexpected error
By: Digital Man to Accession on Sun Sep 24 2023 01:22 pm
You can also use 'smbutil' to attempt repair of any correpted file bases using 'smbutil -a mp path/to/filebase.shd'
Yep, I'm aware of that, but haven't done it yet in order to try to get you what you need to fix addfiles.
I'm receiving FDN related files via multiple networks. This is what I
assume would be a proper command syntax, but I'm not sure how
addfiles.js works in regards to specifics:
Any reason you're not using TickIT for this job?
Yes, I'm using Husky software as my main hub to deal with all things FTN related, and it happens to be on the same VM as my Synchronet BBS. So I actually share my FDN file directories between the two, so no need for transferring .tic files and whatnot in the same VM, just needed to add the files to the BBS via addfiles over the years (and now addfiles.js, of course). If I were ever to get the motivation to redo things, I would definitely separate the two.
jsexec addfiles.js -all -ex=files.bbs -diz -update -delete
listfile:files.bbs
"listfile:" is not part of the command-line syntax. Just name of the listfile itself (no prefix or other decoration needed).
Also, files.bbs is excluded by default, so you don't need to specify "-ex=files.bbs" on the command-line.
I've changed that line to:
'jsexec addfiles.js -all -diz -update -readd -delete files.bbs'
Does this look more correct?
- Excluding uploading of files.bbs
That's the default behavior
Noted.
Without -diz, an extended description in the listfile would be used instead.
Are you referring to just the option for addfiles.js? I guess what I'm trying to do here, is search for and use a file_id.diz if it exists, if not.. use the description in files.bbs. Some people seem to hatch out files that don't use the file_id.diz as the description, or they use some short formed description instead. I'd rather use the original description that came with the file, and if THAT doesn't exist, continue with whatever the .tic file gave to files.bbs.
Are you saying that both options (-diz and files.bbs) should not be used together for addfiles.js, or can they be?
I just added a -readd option to addfiles.js that'll re-add any updated files so the will appear as newly-uploaded. This was what the old addfiles '-o' option would do, but may not work now (with addfiles).
According to the help, '-o' updates upload date only for existing files. However, it wasn't marking them as new files during a newscan. This '-readd' may just be what I've always been looking for.
With the old addfiles, I was using 'addfiles - -noz /sbbs/data/dirs/*.shd' or something similar. This worked for everything I needed, and did indeed use file_id.diz, and if it wasn't there used what was in files.bbs. The only thing it didn't do was any files that the date was updated on, were not marked as new files, so they never came up on a file newscan. Again, I think we're on to something here with the new option you just added. ;)
It'd likely be the same way you captured the pasted backtrace before, but use a "debug" (instead of "release") build of Synchronet to do it. Instructions on how to switch to a debug build are at https://wiki.synchro.net/howto:gdb
I'm fairly certain I'm using a debug version. My pasted backtrace before included /home/axisd/sbbs/repo/src/sbbs3/gcc.linux.x64.exe.debug/addfiles, but the trace itself was provided by systemd-coredump. Nothing related to SBBS, except addfiles, segfaulted. The BBS itself keeps running. That said, I'm not understanding the wiki instructions. I tried:
gdb /home/axisd/sbbs/exec/sbbs core.addfiles.1000.0ddb36cc2592412d942b61d8556aa565.180366.1695589153000000
.. as that was the only core file provided, and didn't get much help.
(gdb) bt
#0 0x00007fa996cae9ba in ?? ()
#1 0x000055f4a2460a24 in ?? ()
#2 0x00007fff6024ca18 in ?? ()
#3 0x0000000400000000 in ?? ()
#4 0x0000000000000000 in ?? ()
so I went with this part from the wiki:
or (if debugging with a core file):
# gdb /sbbs/exec/sbbs /tmp/core.sbbs.#### (using the core file mentioned above)
and ended up getting this:
#0 0x00007f4ef5eae9ba in ?? ()
so I continued with the wiki instruction..
(gdb) thread apply all bt
Thread 1 (LWP 184418):
#0 0x00007f4ef5eae9ba in ?? ()
#1 0x0000564333b67a24 in ?? ()
#2 0x00007ffe872c8ba8 in ?? ()
#3 0x0000000400000000 in ?? ()
#4 0x0000000000000000 in ?? ()
You need to just use a different build (make) option.
I always compile the debug build, just so I don't have to when something like this happens. It's a dedicated VM only for this stuff, so unless the release version runs 10x faster and smoother, I would rather stick to the debug version.
Regards,
Nick
... You'll never walk alone with schizophrenia.
---
þ Synchronet þ thePharcyde_
telnet://bbs.pharcyde.org (Wisconsin)
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)