• jsexec fails unless node1 directory exists

    From Michael J. Ryan@VERT to GitLab issue in main/sbbs on Tue Feb 2 16:36:57 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/214

    This may sound like an odd request, but would it be possible to suppress/ignore the error if `Node1/` doesn't exist?

    Mainly came across this in testing running inside my Docker image, that doesn't have the node1 directory by default, because the sbbs-init script creates it from a copy of the original inside a volume container with a symlink to the default path prior to starting sbbs.

    Not a massive issue, but would be a nice to have... maybe just throw if/when trying to access a property/global that uses node data? As it is, I just blindly check node 1, then get the max node number, then circle back around.

    https://github.com/bbs-io/synchronet-docker/blob/7889b2cb201eadea5f46953d5cf3ab1e60346a52/sbbs-scripts/init.js#L56

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Tue Feb 2 18:59:30 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/214#note_1454

    What is the error?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Michael J. Ryan@VERT to GitLab note in main/sbbs on Thu Feb 4 13:41:46 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/214#note_1460

    ```
    synchronet-docker on ¨ master
    x ./sbbs-run bash

    root@1e23e8f4634c:/sbbs/ctrl# cd ../exec/
    root@1e23e8f4634c:/sbbs/exec# echo "writeln(new Date().toString())" > test.js root@1e23e8f4634c:/sbbs/exec# jsexec test.js

    JSexec v3.18c-Linux (rev 1.217) - Execute Synchronet JavaScript Module
    Compiled Jan 26 2021 18:24:26 with GCC 6.3.0

    Loading configuration files from /sbbs/ctrl
    !ERROR loading configuration files: 2 (No such file or directory) opening /sbbs/node1/node.cnf

    Returning error code: 1
    ```

    I have an sbbs-init script that runs to create the node directories and symlink to the /sbbs/node# directories that runs before any services, but my sbbs-run just creates a new container, and runs whatever you type, with the volumes mounted, but doesn't expressly init... at this point, there's no `/sbbs/node1` directory.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thu Feb 4 18:55:44 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/214#note_1461

    BTW, with the new `jsexec -r` syntax, you don't need to create that test.js temp file to be executed. Just pass the string on the command-line.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Michael J. Ryan@VERT to GitLab note in main/sbbs on Sun Feb 14 01:48:39 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/214#note_1592

    @rswindell thanks, was part of why I asked for it... updated my init script accordingly, but still errors if there's no /sbbs/node1 directory present (not sure about other nodes).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab issue in main/sbbs on Sun Feb 14 02:41:53 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/214

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net