• new setup

    From Rick Smith@1:105/81 to All on Thu Mar 9 10:01:56 2023
    Hello All!

    I had a perfect setup working, followed the debian build instructions to the letter, all the prerequisits
    etc. Was working perfectley until just a minute ago, I noticed that my menu cmds were there, ie DDMsgAreachooser etc. well being lazy I just copied my working default.src and .bin to the exec dir, now I do not know that is what broke the setup but seemed to happen around then. Now no services will load I get errors like this.

    3/9 09:56:18 srvc 0006 !ERROR 13 binding Finger socket to port 79: Permission denied
    3/9 09:56:18 srvc Finger listening on socket :: port 79
    3/9 09:56:18 srvc 0006 !ERROR 13 binding Finger socket: Permission denied
    3/9 09:56:18 srvc 0006 Will retry in 15 seconds (1 of 2)
    3/9 09:56:18 mail 0007 !ERROR 13 binding POP3S Server socket to port 995: Permission denied
    3/9 09:56:18 mail POP3S Server listening on socket :: port 995
    3/9 09:56:18 mail 0007 !ERROR 13 binding POP3S Server socket: Permission denied 3/9 09:56:18 mail 0007 Will retry in 15 seconds (1 of 2)
    3/9 09:56:33 srvc 0006 !ERROR 13 binding Finger socket: Permission denied
    3/9 09:56:33 srvc 0006 Will retry in 15 seconds (2 of 2)
    3/9 09:56:33 mail 0007 !ERROR 13 binding POP3S Server socket: Permission denied 3/9 09:56:33 mail 0007 Will retry in 15 seconds (2 of 2)
    3/9 09:56:48 srvc 0006 !ERROR 13 binding Finger socket: Permission denied

    Thats just a snippet its literally on all ports. I did not change anything in there that I am aware of.. My sbbs dir is /sbbs and like suggested I chown /sbbs recursively to user sbbs etc. I am running 3.19 on linux and an hour ago this system was accessible from outside of the network. I switched my DNS back to my cloud hosted copy so its back up but I would like to solve this inhouse version.

    Regards,

    Rick

    ... BBSing, the 'Electronic High'
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Digital Man@1:103/705 to Rick Smith on Thu Mar 9 10:20:26 2023
    Re: new setup
    By: Rick Smith to All on Thu Mar 09 2023 10:01 am

    Hello All!

    I had a perfect setup working, followed the debian build instructions to the letter, all the prerequisits
    etc. Was working perfectley until just a minute ago, I noticed that my menu cmds were there, ie DDMsgAreachooser etc. well being lazy I just copied my working default.src and .bin to the exec dir, now I do not know that is what broke the setup but seemed to happen around then. Now no services will load I get errors like this.

    3/9 09:56:18 srvc 0006 !ERROR 13 binding Finger socket to port 79: Permission denied
    3/9 09:56:18 srvc Finger listening on socket :: port 79
    3/9 09:56:18 srvc 0006 !ERROR 13 binding Finger socket: Permission denied 3/9 09:56:18 srvc 0006 Will retry in 15 seconds (1 of 2)
    3/9 09:56:18 mail 0007 !ERROR 13 binding POP3S Server socket to port 995: Permission denied
    3/9 09:56:18 mail POP3S Server listening on socket :: port 995
    3/9 09:56:18 mail 0007 !ERROR 13 binding POP3S Server socket: Permission denied 3/9 09:56:18 mail 0007 Will retry in 15 seconds (1 of 2)
    3/9 09:56:33 srvc 0006 !ERROR 13 binding Finger socket: Permission denied 3/9 09:56:33 srvc 0006 Will retry in 15 seconds (2 of 2)
    3/9 09:56:33 mail 0007 !ERROR 13 binding POP3S Server socket: Permission denied 3/9 09:56:33 mail 0007 Will retry in 15 seconds (2 of 2)
    3/9 09:56:48 srvc 0006 !ERROR 13 binding Finger socket: Permission denied

    Thats just a snippet its literally on all ports. I did not change anything in there that I am aware of.. My sbbs dir is /sbbs and like suggested I chown /sbbs recursively to user sbbs etc. I am running 3.19 on linux and an hour ago this system was accessible from outside of the network. I switched my DNS back to my cloud hosted copy so its back up but I would like to solve this inhouse version.

    Sounds like you're not using setcap to enable bind permissions on 'sbbs' and not running sbbs as root (which is expected).
    Read this: http://wiki.synchro.net/howto:linux_non-root
    --
    digital man (rob)

    This Is Spinal Tap quote #42:
    What day the Lord created Spinal Tap and couldn't he have rested on that day? Norco, CA WX: 61.2øF, 54.0% humidity, 0 mph NE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rick Smith@1:105/81 to Digital Man on Thu Mar 9 10:42:42 2023
    Hello Digital!

    Thursday March 09 2023 10:20, you wrote to me:

    Re: new setup
    By: Rick Smith to All on Thu Mar 09 2023 10:01 am

    Hello All!

    like suggested I chown /sbbs recursively to user sbbs etc. I am
    running 3.19 on linux and an hour ago this system was accessible
    from outside of the network. I switched my DNS back to my cloud
    hosted copy so its back up but I would like to solve this inhouse
    version.

    Sounds like you're not using setcap to enable bind permissions on
    'sbbs' and not running sbbs as root (which is expected). Read this: http://wiki.synchro.net/howto:linux_non-root

    That cured most of the errors I still get a couple "already in use" but telnet is back up, the webserver however if I do a https://192.168.6.176 it complains about not secure but it does load. If I just do 192.168.6.176 it downloads a file?

    here is a snippet from that file

    <?xjs
    var page = typeof http_request.query.page == 'undefined' ? '000-home.xjs' : http_request.query.page[0];
    if (page.search(/^http(s)*:\/\//) > -1) exit();

    var settings = load('modopts.js', 'web') || { web_directory: web_root_dir + '/..' };
    load(settings.web_directory + '/lib/init.js');
    load(settings.web_lib + 'auth.js');
    load(settings.web_lib + 'pages.js');
    load(settings.web_lib + 'sidebar.js');

    if (page.search(/\.link$/) > -1) {
    var loc = getExternalLink(page);
    http_reply.status = '301 Moved Permanently';
    http_reply.header['Location'] = loc;
    exit();
    }
    var pagePath = getPagePath(page);
    if (pagePath == null) {
    page = '000-home.xjs';
    pagePath = getPagePath('000-home.xjs');


    Not really sure how I broke this setup.. I may just rebuild it since my cloud instance is still up and going.. Your example on the web for sbbs.service file under debian as user and group set to root. I changed mine to sbbs and sbbs since thats the owner of /sbbs?



    Regards,

    Rick

    ... I love BBSing: All the social dynamics of pre-school!
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Chad Jipiti@1:103/705 to Rick Smith on Thu Mar 9 19:08:40 2023
    Hi Rick,

    Based on the error message you're seeing, it looks like the process running Synchronet BBS doesn't have the necessary permissions to bind to the ports that it needs to. Here are a few things you can try to resolve this issue:

    1. Ensure that the user account running Synchronet BBS has the necessary permissions to bind to the ports specified. You may need to give the user account administrative privileges.

    2. Check if any other processes are running on the same ports that Synchronet BBS requires. If so, you may need to stop those processes before starting Synchronet BBS.

    3. Review the changes you made to the system after which the problem started. Did you make any changes to the firewall or network settings? Any changes to the user account running Synchronet BBS?

    4. Try restarting the Synchronet BBS service and see if that resolves the problem. If not, check the logs for any additional error messages and let me know.

    Hope this helps.

    Regards,

    Chad Jipiti

    --
    Chad Jipiti

    ---
    ï¿­ Synchronet ï¿­ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Chad Jipiti on Thu Mar 9 19:11:38 2023
    Re: new setup
    By: Chad Jipiti to Rick Smith on Thu Mar 09 2023 19:08:40

    Based on the error message you're seeing, it looks like the process running Synchronet BBS doesn't have the necessary permissions to bind to the ports that it needs to. Here are a few things you can try to resolve this issue:

    1. Ensure that the user account running Synchronet BBS has the necessary permissions to bind to the ports specified. You may need to give the user account administrative privileges.

    A more modern answer to this question, using either setcap or authbind, can be found here:

    http://wiki.synchro.net/howto:linux_non-root

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Chad Jipiti@1:103/705 to echicken on Thu Mar 9 19:11:50 2023
    Thank you for sharing the updated solution, echicken! This guide using either `setcap` or `authbind` will help allow Synchronet BBS to bind to low ports (ports under 1024) using a non-root user. This is a recommended security best practice, as running services as root could potentially compromise the entire server if there is any sort of vulnerability in the service.

    For users experiencing the same error permissions issue, please refer to the guide provided by echicken, which can be found here:

    http://wiki.synchro.net/howto:linux_non-root

    Thanks again!

    Best regards,

    Chad Jipiti

    --
    Chad Jipiti

    ---
    ï¿­ Synchronet ï¿­ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Rick Smith on Thu Mar 9 11:19:05 2023
    Re: new setup
    By: Rick Smith to Digital Man on Thu Mar 09 2023 10:42 am

    Hello Digital!

    Thursday March 09 2023 10:20, you wrote to me:

    Re: new setup
    By: Rick Smith to All on Thu Mar 09 2023 10:01 am

    Hello All!

    like suggested I chown /sbbs recursively to user sbbs etc. I am
    running 3.19 on linux and an hour ago this system was accessible
    from outside of the network. I switched my DNS back to my cloud
    hosted copy so its back up but I would like to solve this inhouse
    version.

    Sounds like you're not using setcap to enable bind permissions on 'sbbs' and not running sbbs as root (which is expected). Read this: http://wiki.synchro.net/howto:linux_non-root

    That cured most of the errors I still get a couple "already in use" but

    Read this: http://wiki.synchro.net/faq:tcpip#rebind

    telnet is back up, the webserver however if I do a https://192.168.6.176 it complains about not secure but it does load. If I just do 192.168.6.176 it downloads a file?

    To get secure HTTPS, you'll need a cert-authority-signed certificate. See http://wiki.synchro.net/module:letsyncrypt for details.

    Not really sure how I broke this setup.. I may just rebuild it since my cloud instance is still up and going.. Your example on the web for sbbs.service file under debian as user and group set to root. I changed mine to sbbs and sbbs since thats the owner of /sbbs?

    The only official example (*my* example) sbbs.sevice file is here: https://gitlab.synchro.net/main/sbbs/-/blob/master/install/systemd/sbbs.service ... which definitely has the user and group set to sbbs.

    There's another example sbbs.service file on the wiki (not from me): http://wiki.synchro.net/howto:systemd
    ... which also has the user and group sbbs.

    There's another example further down that page (again, not from me), which does show root as the example user/group. I'm not sure if that's the one you're referring to, but it should likely just be removed from the wiki.
    --
    digital man (rob)

    Synchronet "Real Fact" #98:
    Synchronet v3.12a was released on December 31st of 2004 (Rob's birthday)
    Norco, CA WX: 64.8øF, 46.0% humidity, 2 mph NE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Rick Smith on Thu Mar 9 20:02:46 2023
    Re: new setup
    By: Rick Smith to Digital Man on Thu Mar 09 2023 10:42:42

    telnet is back up, the webserver however if I do a https://192.168.6.176 it complains about not secure but it does load. If I just do 192.168.6.176 it downloads a file?

    here is a snippet from that file

    <?xjs

    In the file ctrl/web_handler.ini, in the [JavaScript] section, you should have this:

    xjs = xjs_handler.js

    Not having this setting is the most likely reason the file is just downloading.

    Doesn't explain why it works over HTTPS and not HTTP though. Perhaps your browser is serving the former out of its cache.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rick Smith@1:105/81 to echicken on Thu Mar 9 12:38:26 2023
    Hello echicken!

    Thursday March 09 2023 20:02, you wrote to me:

    * Forwarded from area 'SYNC_SYSOPS'
    Re: new setup
    By: Rick Smith to Digital Man on Thu Mar 09 2023 10:42:42

    telnet is back up, the webserver however if I do a
    https://192.168.6.176 it complains about not secure but it does
    load. If I just do 192.168.6.176 it downloads a file?

    here is a snippet from that file

    <?xjs

    In the file ctrl/web_handler.ini, in the [JavaScript] section, you
    should have this:

    xjs = xjs_handler.js

    Thank you but that line was there... Yeah still downloading just a file


    Regards,

    Rick

    ... SURGEON GENERAL'S WARNING - BBSing may cause blindness.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Rick Smith@1:105/81 to echicken on Thu Mar 9 13:08:50 2023
    Hello echicken!

    Thursday March 09 2023 20:02, you wrote to me:

    * Forwarded from area 'SYNC_SYSOPS'
    Re: new setup
    By: Rick Smith to Digital Man on Thu Mar 09 2023 10:42:42

    telnet is back up, the webserver however if I do a
    https://192.168.6.176 it complains about not secure but it does
    load. If I just do 192.168.6.176 it downloads a file?

    here is a snippet from that file

    <?xjs

    In the file ctrl/web_handler.ini, in the [JavaScript] section, you
    should have this:

    xjs = xjs_handler.js

    I can access it now.. I flushed browser cache.. Only thing still not working on the interface is micronet file area will not show up on web side.. but other than that seem to be working


    Regards,

    Rick

    ... I don't do drugs...BBSing is my escape from reality
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From echicken@1:103/705 to Rick Smith on Thu Mar 9 21:32:36 2023
    Re: new setup
    By: Rick Smith to echicken on Thu Mar 09 2023 13:08:50

    I can access it now.. I flushed browser cache.. Only thing still not working on the interface is micronet file area will not show up on web side.. but other than that seem to be working

    Does it show up when you're logged in, but not when you're logged out? If so, check that your web guest user has sufficient access to view the library.

    If I recall correctly, webv4 doesn't show empty file directories in the listing, so if there aren't any files in those echoes yet, that might be why you can't see them. I don't remember if it hides entire libraries though, that'd be a bit of a heavy task.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rick Smith@1:105/81 to echicken on Fri Mar 10 05:34:44 2023
    Hello echicken!

    Thursday March 09 2023 21:32, you wrote to me:

    * Forwarded from area 'SYNC_SYSOPS'
    Re: new setup
    By: Rick Smith to echicken on Thu Mar 09 2023 13:08:50

    I can access it now.. I flushed browser cache.. Only thing still
    not working on the interface is micronet file area will not show
    up on web side.. but other than that seem to be working

    Does it show up when you're logged in, but not when you're logged out?
    If so, check that your web guest user has sufficient access to view
    the library.

    No it doesnt show up at all on the web.


    If I recall correctly, webv4 doesn't show empty file directories in
    the listing, so if there aren't any files in those echoes yet, that
    might be why you can't see them. I don't remember if it hides entire libraries though, that'd be a bit of a heavy task.

    While logged into bbs I uploaded some files to those areas, they still do not show up via the web interface.

    Regards,

    Rick

    ... Hopeless addict to BBSing, I need a QWK fix
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From echicken@1:103/705 to Rick Smith on Fri Mar 10 15:10:03 2023
    Re: new setup
    By: Rick Smith to echicken on Fri Mar 10 2023 05:34:44

    No it doesnt show up at all on the web.

    Just to rule something out, where your old file libraries and directories created prior to an upgrade to 3.19 or 3.20, and the Micronet one created afterward?

    While logged into bbs I uploaded some files to those areas, they still do not show up via the web interface.

    I've taken a peek at the relevant webv4 scripts, and can confirm that it will not show an empty file directory, and it won't show a file library consisting entirely of empty directories.

    What is "empty"? I don't know entirely, but it's not as simple as whether there's file metadata in the database. It depends on actual file existence, size, and the user's ability to access each lib / dir / file.

    You've uploaded files, but do they actually exist on disk (in data/dirs/[lib]/[dir])?

    Did they upload properly and are of non-zero size on disk?

    You're sure that the access requirements of the library and directories allow the current web user to see them?

    Is there some moderation / sysop approval process that hasn't completed (I don't know, I don't really use the file areas, this may not be a thing)?

    It's possible that there's a webv4 problem, but I strongly suspect it's showing nothing because it thinks there's nothing to show. webv4 goes out of its way to avoid showing nil content to the user; it doesn't want to show empty areas or let them download a borked file.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rick Smith@1:105/81 to echicken on Sat Mar 11 12:51:54 2023
    Hello echicken!

    Friday March 10 2023 15:10, you wrote to me:

    Re: new setup
    By: Rick Smith to echicken on Fri Mar 10 2023 05:34:44

    No it doesnt show up at all on the web.

    Just to rule something out, where your old file libraries and
    directories created prior to an upgrade to 3.19 or 3.20, and the
    Micronet one created afterward?

    While logged into bbs I uploaded some files to those areas, they
    still do not show up via the web interface.

    Its working now, you are correct it will not show if all is empty. I autoadded somefiles into two of the mircronet dirs and the all of the micronet file areas show up even the ones without files in them. I used that addfiles script pretty slick. I thought when files came in via bink they get added, I guess back to the wiki to make sure I have tick processor correct. Or maybe that isnt supposed to do that, and I meant to run the addfiles here or there?

    Regards,

    Rick

    ... Ura BBS addict when you consider BBSing better than coffee
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Digital Man@1:103/705 to Rick Smith on Sat Mar 11 14:30:26 2023
    Re: new setup
    By: Rick Smith to echicken on Sat Mar 11 2023 12:51 pm

    Its working now, you are correct it will not show if all is empty. I autoadded somefiles into two of the mircronet dirs and the all of the micronet file areas show up even the ones without files in them. I used that addfiles script pretty slick. I thought when files came in via bink they get added, I guess back to the wiki to make sure I have tick processor correct. Or maybe that isnt supposed to do that, and I meant to run the addfiles here or there?

    TickIT adds the files to the filebases automatically, you're not expected to have to run addfiles.
    --
    digital man (rob)

    Rush quote #3:
    The men who hold high places must be the ones who start... Closer to the Heart Norco, CA WX: 62.6øF, 95.0% humidity, 2 mph SE wind, 0.42 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rick Smith@1:105/81 to Digital Man on Sat Mar 11 15:53:10 2023
    Hello Digital!

    Saturday March 11 2023 14:30, you wrote to me:

    * Forwarded from area 'SYNC_SYSOPS'
    Re: new setup
    By: Rick Smith to echicken on Sat Mar 11 2023 12:51 pm

    Its working now, you are correct it will not show if all is empty.
    I autoadded somefiles into two of the mircronet dirs and the all of
    the micronet file areas show up even the ones without files in
    them. I used that addfiles script pretty slick. I thought when
    files came in via bink they get added, I guess back to the wiki to
    make sure I have tick processor correct. Or maybe that isnt
    supposed to do that, and I meant to run the addfiles here or there?

    TickIT adds the files to the filebases automatically, you're not
    expected to have to run addfiles.
    --
    digital man (rob)
    Thank you, I found my error in the tickit.ini ( I think I have anyhow).. Seems to be working.. Thanks again..


    Regards,

    Rick

    ... BBSing ... time's blackhole.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From echicken@1:103/705 to Rick Smith on Sun Mar 12 03:59:59 2023
    Re: new setup
    By: Rick Smith to echicken on Sat Mar 11 2023 12:51:54

    autoadded somefiles into two of the mircronet dirs and the all of the micronet file areas show up even the ones without files in them. I used

    Well, that doesn't sound right. Empty file directories and empty libraries aren't meant to show. I'll have a look when I revisit file listing on the web.

    that addfiles script pretty slick. I thought when files came in via bink they get added, I guess back to the wiki to make sure I have tick processor correct. Or maybe that isnt supposed to do that, and I meant to run the addfiles here or there?

    If I'm interpreting the TickIT and TickITcfg wiki articles correctly, you need to set the 'Location' or 'Dir' for each area to the internal code (from scfg) of a particular file directory. TickIT should then run addfiles for you. I'd have to look at the script itself to be sure of that though.

    Or you could leave things the way you have them and schedule addfiles to run however many times a day and it'll pick up new files.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)