• jsexec fails unless node1 directory exists

    From Michael J. Ryan@1:103/705 to GitLab issue in main/sbbs on Tue Feb 2 08: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
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Tue Feb 2 10:59:30 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/214#note_1454

    What is the error?
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Thu Feb 4 05:41:46 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/214#note_1460

    ```synchronet-docker on  master✗ ./sbbs-run bashroot@1e23e8f4634c:/sbbs/ctrl# cd ../exec/root@1e23e8f4634c:/sbbs/exec# echo "writeln(new Date().toString())" > test.jsroot@1e23e8f4634c:/sbbs/exec# jsexec test.jsJSexec v3.18c-Linux (rev 1.217) - Execute Synchronet JavaScript ModuleCompiled Jan 26 2021 18:24:26 with GCC 6.3.0Loading configuration files from /sbbs/ctrl!ERROR loading configuration files: 2 (No such file or directory) opening /sbbs/node1/node.cnfReturning 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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Feb 4 10: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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 17: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).
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sat Feb 13 18:41:53 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/214
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)