• addfiles error

    From Dumas Walker@1:103/705 to All on Thu Mar 21 10:43:15 2024
    Synchronet version - 3.20
    OS - linux

    I am trying to add files from a CD. When I run addfiles with the following command line:

    ./exec/jsexec addfiles area +/path/to/filelist/listname 33 15

    I get the following error:

    !/path/where/files/are/listname does not exist

    So it is looking for the right 'listname' but in the path where the files are instead of the path where the filelists are (which is the one I am giving it).

    $$
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Dumas Walker on Thu Mar 21 13:00:54 2024
    Re: addfiles error
    By: Dumas Walker to All on Thu Mar 21 2024 10:43 am

    Synchronet version - 3.20
    OS - linux

    I am trying to add files from a CD. When I run addfiles with the following command line:

    ./exec/jsexec addfiles area +/path/to/filelist/listname 33 15

    I get the following error:

    !/path/where/files/are/listname does not exist

    So it is looking for the right 'listname' but in the path where the files are instead of the path where the filelists are (which is the one I am giving it).

    It looks like you're trying to use the addfiles.exe syntax with addfiles.js, e.g. there's no '+' in any addfiles.js option syntax. See https://wiki.synchro.net/module:addfiles for details.
    --
    digital man (rob)

    Sling Blade quote #9:
    Doyle Hargraves: Morris here is a modern-day poet, kinda like in olden times. Norco, CA WX: 65.1øF, 69.0% humidity, 0 mph SW wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Dumas Walker@1:103/705 to DIGITAL MAN on Fri Mar 22 09:40:00 2024
    Synchronet version - 3.20
    OS - linux

    I am trying to add files from a CD. When I run addfiles with the following
    command line:

    ./exec/jsexec addfiles area +/path/to/filelist/listname 33 15

    I get the following error:

    !/path/where/files/are/listname does not exist

    So it is looking for the right 'listname' but in the path where the files are instead of the path where the filelists are (which is the one I am giving it).

    It looks like you're trying to use the addfiles.exe syntax with addfiles.js, e.g. there's no '+' in any addfiles.js option syntax. See https://wiki.synchro
    et/module:addfiles for details.

    I also tried it without the plus and got the exact same error.

    I tried it again just now, without the plus, and still get the error.

    ./exec/jsexec addfiles area /path/to/filelist/listname 33 15

    JSexec v3.20a-Linux master/95ae0137d - Execute Synchronet JavaScript Module Compiled Mar 1 2024 10:42:22 with GCC 12.2.0

    Loading configuration files from /home/bbs/ctrl
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 8388608 bytes

    Reading script from /home/bbs/exec/addfiles.js
    /home/bbs/exec/addfiles.js compiled in 0.00 seconds
    Adding files to Nightowl NOPV-2 ASP Member Submissions !/path/to/filearea/listname does not exist
    0 files added
    /home/bbs/exec/addfiles.js executed in 0.55 seconds

    JavaScript: Destroying context
    JavaScript: Destroying runtime

    It knows enough to pick up the listname but then uses the path where the filearea is (the wrong one) instead of the one I am giving it (the path on
    the CD where the listname is).

    FWIW, yesterday when I first had the error I was taking the commands I was using directly from that wiki page. As it appeared yesterday, it still had
    the '+' syntax in the examples as I copied and pasted it from the page.


    * SLMR 2.1a * He's as sharp as a marble.
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Gamgee@1:103/705 to Dumas Walker on Fri Mar 22 13:00:00 2024
    Dumas Walker wrote to DIGITAL MAN <=-

    Synchronet version - 3.20
    OS - linux

    I am trying to add files from a CD. When I run addfiles with the
    following

    command line:

    ./exec/jsexec addfiles area +/path/to/filelist/listname 33 15

    I get the following error:

    !/path/where/files/are/listname does not exist

    So it is looking for the right 'listname' but in the path where the files are instead of the path where the filelists are (which is the one I am giving it).

    It looks like you're trying to use the addfiles.exe syntax with addfiles.js, e.g. there's no '+' in any addfiles.js option syntax. See
    https://wiki.synchro

    et/module:addfiles for details.

    I also tried it without the plus and got the exact same error.

    I tried it again just now, without the plus, and still get the
    error.

    ./exec/jsexec addfiles area /path/to/filelist/listname 33 15

    JSexec v3.20a-Linux master/95ae0137d - Execute Synchronet
    JavaScript Module Compiled Mar 1 2024 10:42:22 with GCC 12.2.0

    Loading configuration files from /home/bbs/ctrl
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 8388608 bytes

    Reading script from /home/bbs/exec/addfiles.js
    /home/bbs/exec/addfiles.js compiled in 0.00 seconds
    Adding files to Nightowl NOPV-2 ASP Member Submissions !/path/to/filearea/listname does not exist
    0 files added
    /home/bbs/exec/addfiles.js executed in 0.55 seconds

    JavaScript: Destroying context
    JavaScript: Destroying runtime

    It knows enough to pick up the listname but then uses the path
    where the filearea is (the wrong one) instead of the one I am
    giving it (the path on the CD where the listname is).

    FWIW, yesterday when I first had the error I was taking the
    commands I was using directly from that wiki page. As it
    appeared yesterday, it still had the '+' syntax in the examples
    as I copied and pasted it from the page.

    You're using the command line syntax from the 'EXE' version of ADDFILES.
    That page is still there on the Wiki, but there is another
    page/instructions for the 'JS' version of addfiles, which is the one you should be using. Look and read carefully, they are not the same.



    ... He does the work of 3 Men...Moe, Larry & Curly
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Dumas Walker on Fri Mar 22 12:26:12 2024
    Re: addfiles error
    By: Dumas Walker to DIGITAL MAN on Fri Mar 22 2024 09:40 am

    Synchronet version - 3.20
    OS - linux

    I am trying to add files from a CD. When I run addfiles with the following
    command line:

    ./exec/jsexec addfiles area +/path/to/filelist/listname 33 15

    I get the following error:

    !/path/where/files/are/listname does not exist

    So it is looking for the right 'listname' but in the path where the files are instead of the path where the filelists are (which is the one I am giving it).

    It looks like you're trying to use the addfiles.exe syntax with addfiles.js, e.g. there's no '+' in any addfiles.js option syntax. See https://wiki.synchro
    et/module:addfiles for details.

    I also tried it without the plus and got the exact same error.

    I tried it again just now, without the plus, and still get the error.

    ./exec/jsexec addfiles area /path/to/filelist/listname 33 15

    That's still the incorrect syntax for addfiles.js. Though, I don't think it's relevant to your question at this point.

    Reading script from /home/bbs/exec/addfiles.js
    /home/bbs/exec/addfiles.js compiled in 0.00 seconds
    Adding files to Nightowl NOPV-2 ASP Member Submissions !/path/to/filearea/listname does not exist
    0 files added
    /home/bbs/exec/addfiles.js executed in 0.55 seconds

    JavaScript: Destroying context
    JavaScript: Destroying runtime

    It knows enough to pick up the listname but then uses the path where the filearea is (the wrong one) instead of the one I am giving it (the path on the CD where the listname is).

    The error message is a bit misleading (not printing the actual list path it was trying to find when a full path to a listfile was specified on the command-line). I'll commit a version with better error reporting here shortly. Please re-test with that.

    FWIW, yesterday when I first had the error I was taking the commands I was using directly from that wiki page. As it appeared yesterday, it still had the '+' syntax in the examples as I copied and pasted it from the page.

    It sounds like you copied commands from the wrong wiki page: https://wiki.synchro.net/util:addfiles <- the old/deprecated addfiles.exe https://wiki.synchro.net/module:addfiles <- the new/supported addfile.js

    But at least now, I don't think that's the source of your problem.
    --
    digital man (rob)

    This Is Spinal Tap quote #24:
    David St. Hubbins: You're a haughty one, saucy Jack.
    Norco, CA WX: 67.1øF, 63.0% humidity, 3 mph WSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Dumas Walker@1:103/705 to DIGITAL MAN on Sat Mar 23 09:11:00 2024
    The error message is a bit misleading (not printing the actual list path it was
    trying to find when a full path to a listfile was specified on the command-line
    . I'll commit a version with better error reporting here shortly. Please re-tes
    with that.

    OK, I will pull the new version and try to test it this weekend.

    FWIW, yesterday when I first had the error I was taking the commands I was using directly from that wiki page. As it appeared yesterday, it still had
    the '+' syntax in the examples as I copied and pasted it from the page.

    It sounds like you copied commands from the wrong wiki page: https://wiki.synchro.net/util:addfiles <- the old/deprecated addfiles.exe https://wiki.synchro.net/module:addfiles <- the new/supported addfile.js

    But at least now, I don't think that's the source of your problem.

    Ahhh... I was following the links on the web page. Clicked on Utilities
    and picked ADDFILES from there. I will click on Modules before testing the
    new one! ;)


    * SLMR 2.1a * no, I don't have a graduate degree - why do you ask?
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Dumas Walker@1:103/705 to Digital Man on Sat Mar 23 12:41:39 2024
    OK so I pulled down addfiles.js (the hard way) and now the issue I am having is that the filenames in the filelist are all in CAPS. With it being created in the days of DOS BBSing, they would be, but the actual file names on the CD are all in lowercase so addfiles.js cannot find them.

    Do you know of a workaround for that? I am assuming it is to just skip using the filelist and instead use '-diz' and hope they all contain descriptions.

    Also, when I say "the hard way," I mean that using wget to try to pull the addfiles.js down (from the same path the gitlab webpage claims it resides at) results in an html (or some other such) file being pulled down instead of addfiles.js.

    wget https://gitlab.synchro.net/main/sbbs/-/blob/master/exec/addfiles.js

    For future reference, when pulling a single file down from gitlab, what is the correct path to use? Thanks.

    $$
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Dumas Walker on Sat Mar 23 19:26:46 2024
    Re: Re: addfiles error
    By: Dumas Walker to Digital Man on Sat Mar 23 2024 12:41 pm

    OK so I pulled down addfiles.js (the hard way) and now the issue I am having is that the filenames in the filelist are all in CAPS. With it being created in the days of DOS BBSing, they would be, but the actual file names on the CD are all in lowercase so addfiles.js cannot find them.

    Are you sure about that? I (and others) have had no problem importing using list files that are lowercase using addfiles.js. Addfiles.js was created in the past couple of years, not "in the days of DOS BBSing", so it definitely is expecting any case of list files you throw at it.

    Do you know of a workaround for that?

    Are you sure that's the problem? What makes you think so?

    I am assuming it is to just skip
    using the filelist and instead use '-diz' and hope they all contain descriptions.

    Let's solve the problem with your list files. If there's a problem with addfiles.js, I'd like to know about it and fix it.

    Also, when I say "the hard way," I mean that using wget to try to pull the addfiles.js down (from the same path the gitlab webpage claims it resides at) results in an html (or some other such) file being pulled down instead of addfiles.js.

    wget https://gitlab.synchro.net/main/sbbs/-/blob/master/exec/addfiles.js

    For future reference, when pulling a single file down from gitlab, what is the correct path to use? Thanks.

    https://gitlab.synchro.net/main/sbbs/-/raw/master/exec/addfiles.js

    There's a "Download" link/button there on the web page for each file.
    --
    digital man (rob)

    Synchronet "Real Fact" #75:
    Rob's alias "digital man" was inspired by a song on Rush's 1982 "Signals" album Norco, CA WX: 53.4øF, 72.0% humidity, 2 mph SW wind, 0.08 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From kk4qbn@1:103/705 to Digital Man on Sat Mar 23 23:23:41 2024
    Re: Re: addfiles error
    By: Digital Man to Dumas Walker on Sat Mar 23 2024 07:26 pm

    OK so I pulled down addfiles.js (the hard way) and now the issue I am
    having is that the filenames in the filelist are all in CAPS. With it
    being created in the days of DOS BBSing, they would be, but the actual file
    names on the CD are all in lowercase so addfiles.js cannot find them.

    Are you sure about that? I (and others) have had no problem importing using list files that are lowercase using addfiles.js. Addfiles.js was created in the past couple of years, not "in the days of DOS BBSing", so it definitely is expecting any case of list files you throw at it.

    think he is talking about the case in the file listing itself, I had to change the case in all my files.bbs listing to get addfiles.js to import correctly, if the files.bbs has the file listed in uppercase, and the file is in lowercase on the system it would not recognize it for me, and vice-versa, so I wrote a script to change the files.bbs. there may had been an easier way around it, but I could'nt find it.

    ---
    þ Synchronet þ KK4QBN BBS - kk4qbn.synchro.net - Chatsworth, GA USA
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to kk4qbn on Sat Mar 23 21:50:51 2024
    Re: Re: addfiles error
    By: kk4qbn to Digital Man on Sat Mar 23 2024 11:23 pm

    Re: Re: addfiles error
    By: Digital Man to Dumas Walker on Sat Mar 23 2024 07:26 pm

    OK so I pulled down addfiles.js (the hard way) and now the issue I am
    having is that the filenames in the filelist are all in CAPS. With it
    being created in the days of DOS BBSing, they would be, but the actual file
    names on the CD are all in lowercase so addfiles.js cannot find them.

    Are you sure about that? I (and others) have had no problem importing using list files that are lowercase using addfiles.js. Addfiles.js was created in the past couple of years, not "in the days of DOS BBSing", so it definitely is expecting any case of list files you throw at it.

    think he is talking about the case in the file listing itself, I had to change the case in all my files.bbs listing to get addfiles.js to import correctly, if the files.bbs has the file listed in uppercase, and the file is in lowercase on the system it would not recognize it for me, and vice-versa, so I wrote a script to change the files.bbs. there may had been an easier way around it, but I could'nt find it.

    Oh, if that's the problem, that'd be easy to correct for in addfiles.js. I read the problem report as being with the case of the file list itself, but re-reading it now, I think you're right: "the filenames in the filelist are all CAPS". I can add a thing to auto-detect the correct filecase easily.
    --
    digital man (rob)

    Steven Wright quote #22:
    What happens if you get scared half to death twice?
    Norco, CA WX: 51.4øF, 73.0% humidity, 6 mph SSW wind, 0.08 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Dumas Walker on Sat Mar 23 22:06:44 2024
    Re: Re: addfiles error
    By: Digital Man to Dumas Walker on Sat Mar 23 2024 07:26 pm

    Re: Re: addfiles error
    By: Dumas Walker to Digital Man on Sat Mar 23 2024 12:41 pm

    OK so I pulled down addfiles.js (the hard way) and now the issue I am having is that the filenames in the filelist are all in CAPS. With it being created in the days of DOS BBSing, they would be, but the actual file names on the CD are all in lowercase so addfiles.js cannot find them.

    Are you sure about that? I (and others) have had no problem importing using list files that are lowercase using addfiles.js. Addfiles.js was created in the past couple of years, not "in the days of DOS BBSing", so it definitely is expecting any case of list files you throw at it.

    Do you know of a workaround for that?

    Now I re-read your message and kk4qbn's reply, I think I understand what you saying: the problem was with the case of the files in the list itself (which might've been created in the days of DOS BBSing). I just committed a fix for that. Thanks for the report and patience,
    --
    digital man (rob)

    Sling Blade quote #17:
    Charles Bushman: A shovel just makes too goddamned much racket.
    Norco, CA WX: 51.4øF, 74.0% humidity, 6 mph NW wind, 0.08 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Dumas Walker@1:103/705 to DIGITAL MAN on Sun Mar 24 09:30:00 2024
    https://gitlab.synchro.net/main/sbbs/-/raw/master/exec/addfiles.js

    There's a "Download" link/button there on the web page for each file.

    I was logged into the box from remote on ssh so I needed to be able to use wget. The "raw" path works, thanks!


    * SLMR 2.1a * If Lunatics Had Wings, This Place Would Be An Airport !!!
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Dumas Walker@1:103/705 to DIGITAL MAN on Sun Mar 24 09:10:00 2024
    Now I re-read your message and kk4qbn's reply, I think I understand what you sa
    ing: the problem was with the case of the files in the list itself (which might
    ve been created in the days of DOS BBSing). I just committed a fix for that. Th
    nks for the report and patience,

    Correct! The filelist had names in all CAPS, like DOS would have treated
    them but, for some reason, the actual names on the CD were all in lowercase.
    I probably was not clear enough about the issue -- the "DOS BBSing" comment
    was about the CD and not about addfiles.

    This was with a Nightowl CD. The others I was working with were Simtel.
    For whatever reason (maybe because their ftp sites weren't running DOS!),
    the filelists had the names in the correct case (lower) that matched the data on the CD.


    * SLMR 2.1a * Only the Shadow knows.
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Dumas Walker on Sun Mar 24 13:37:38 2024
    Re: Re: addfiles error
    By: Dumas Walker to DIGITAL MAN on Sun Mar 24 2024 09:30 am

    https://gitlab.synchro.net/main/sbbs/-/raw/master/exec/addfiles.js

    There's a "Download" link/button there on the web page for each file.

    I was logged into the box from remote on ssh so I needed to be able to use wget. The "raw" path works, thanks!

    I figured there was a reason you needed to use wget, I was just letting you know how I found/reminded-myself what the right URL to download a file from gitlab was.
    --
    digital man (rob)

    Steven Wright quote #3:
    Half the people you know are below average.
    Norco, CA WX: 60.4øF, 46.0% humidity, 8 mph SSW wind, 0.01 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Dumas Walker on Sun Mar 24 13:38:25 2024
    Re: Re: addfiles error
    By: Dumas Walker to DIGITAL MAN on Sun Mar 24 2024 09:10 am

    Now I re-read your message and kk4qbn's reply, I think I understand what you sa
    ing: the problem was with the case of the files in the list itself (which might
    ve been created in the days of DOS BBSing). I just committed a fix for that. Th
    nks for the report and patience,

    Correct! The filelist had names in all CAPS, like DOS would have treated them but, for some reason, the actual names on the CD were all in lowercase. I probably was not clear enough about the issue -- the "DOS BBSing" comment was about the CD and not about addfiles.

    This was with a Nightowl CD. The others I was working with were Simtel.
    For whatever reason (maybe because their ftp sites weren't running DOS!), the filelists had the names in the correct case (lower) that matched the data on the CD.

    Yup, that situation should be handled now by addfiles.js (and "just work").
    --
    digital man (rob)

    Sling Blade quote #21:
    Karl: Coffee makes me nervous when I drink it. Mmm.
    Norco, CA WX: 60.7øF, 45.0% humidity, 3 mph S wind, 0.01 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)