• Issues Recycling Services / Semphamore

    From WitNik@VERT to Digital Man on Monday, September 14, 2020 22:35:32
    DM,

    I've noticed recently that my production instance of sbbs on RPi4 that is running current latest build seems to be ignoring semaphore files to trigger services restarting. Also, if I run /sbbs/exec/sbbs interactively, the recycle command is ignored regardless of the service type that is specific.

    On my x64 test system, I did a clean install of the latest build and I could recycle the services interactively and all of the semaphores seemed to work except for telnet.

    What are some places I could further investigate to understand what is happening?

    Thanks in advance,
    -WitNik

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to WitNik on Monday, September 14, 2020 22:48:09
    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Mon Sep 14 2020 10:35 pm

    DM,

    I've noticed recently that my production instance of sbbs on RPi4 that is running current latest build seems to be ignoring semaphore files to trigger services restarting. Also, if I run /sbbs/exec/sbbs interactively, the recycle command is ignored regardless of the service type that is specific.

    On my x64 test system, I did a clean install of the latest build and I could recycle the services interactively and all of the semaphores seemed to work except for telnet.

    What are some places I could further investigate to understand what is happening?

    The log output. Look for something like: "Disabling Terminal Server recycle support". This indicates that you're runing sbbs as root, with it changing to a different user-id, but you don't have the capabilities library installed. Use 'setcap' instead: http://wiki.synchro.net/howto:linux_non-root

    digital man

    Synchronet "Real Fact" #84:
    The Electronic Frontier Foundation used to run Synchronet (circa 1993).
    Norco, CA WX: 73.0øF, 62.0% humidity, 0 mph S wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From WitNik@VERT to Digital Man on Tuesday, September 15, 2020 08:04:53
    Re: Issues Recycling Services / Semphamore
    By: Digital Man to WitNik on Mon Sep 14 2020 10:48 pm

    The log output. Look for something like: "Disabling Terminal Server recycle support". This indicates that you're runing sbbs as root, with it changing to a different user-id, but you don't have the capabilities library installed. Use 'setcap' instead: http://wiki.synchro.net/howto:linux_non-root

    Here's the beginning of my console log:

    Synchronet Console for Linux-armv6 Version 3.18a Copyright 2020 Rob Swindell

    Reading /sbbs/ctrl/sbbs.ini
    Loading configuration files from /sbbs/ctrl
    Disabling Terminal Server recycle support
    Disabling FTP Server recycle support
    Disabling Web Server recycle support
    Disabling Mail Server recycle support
    Disabling Services recycle support
    !Started as non-root user (id 1033): May fail to bind TCP/UDP ports below 1024 9/15 07:58:30 stat Loading configuration files from /sbbs/ctrl
    9/15 07:58:30 ftp Synchronet FTP Server Revision 1.501
    9/15 07:58:30 ftp Compiled Sep 14 2020 22:18:20 with GCC 8.3.0
    9/15 07:58:30 ftp Initializing on Tue Sep 15 07:58:30 2020 with options: 8000114

    So you're right on the money about the indicators, however, I am using setcap and have compiled with the same options on both systems.

    I tried to reissue the apt-get install command:

    bbs@raspberrypi:/sbbs/repo/src/sbbs3 $ sudo apt-get install libcap2-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'libcap-dev' instead of 'libcap2-dev'
    libcap-dev is already the newest version (1:2.25-2).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    Any ideas?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From WitNik@VERT to Digital Man on Tuesday, September 15, 2020 09:52:01
    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Tue Sep 15 2020 08:04 am

    library installed. Use 'setcap' instead: http://wiki.synchro.net/howto:linux_non-root

    In addition to using setcap on all of my installs, I've also setup authbind too and it exhibits the same symptoms.

    Thanks in advance,
    -WitNik

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to WitNik on Tuesday, September 15, 2020 10:23:29
    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Tue Sep 15 2020 08:04 am

    Re: Issues Recycling Services / Semphamore
    By: Digital Man to WitNik on Mon Sep 14 2020 10:48 pm

    The log output. Look for something like: "Disabling Terminal Server recycle support". This indicates that you're runing sbbs as root, with it changing to a different user-id, but you don't have the capabilities library installed. Use 'setcap' instead: http://wiki.synchro.net/howto:linux_non-root

    Here's the beginning of my console log:

    Synchronet Console for Linux-armv6 Version 3.18a Copyright 2020 Rob Swindell

    Reading /sbbs/ctrl/sbbs.ini
    Loading configuration files from /sbbs/ctrl
    Disabling Terminal Server recycle support
    Disabling FTP Server recycle support
    Disabling Web Server recycle support
    Disabling Mail Server recycle support
    Disabling Services recycle support
    !Started as non-root user (id 1033): May fail to bind TCP/UDP ports below 1024 9/15 07:58:30 stat Loading configuration files from /sbbs/ctrl
    9/15 07:58:30 ftp Synchronet FTP Server Revision 1.501
    9/15 07:58:30 ftp Compiled Sep 14 2020 22:18:20 with GCC 8.3.0
    9/15 07:58:30 ftp Initializing on Tue Sep 15 07:58:30 2020 with options: 8000114

    So you're right on the money about the indicators, however, I am using setcap and have compiled with the same options on both systems.

    I tried to reissue the apt-get install command:

    bbs@raspberrypi:/sbbs/repo/src/sbbs3 $ sudo apt-get install libcap2-dev Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'libcap-dev' instead of 'libcap2-dev'
    libcap-dev is already the newest version (1:2.25-2).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    Any ideas?

    You shouldn't need to start the BBS as 'root' then. Instead, start it as the user you intend to run it as and you can remove the User/Group settings from the [unix] section of your sbbs.ini file.

    digital man

    Sling Blade quote #8:
    Karl Childers: I don't reckon I got no reason to kill nobody.
    Norco, CA WX: 83.6øF, 40.0% humidity, 0 mph W wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to WitNik on Tuesday, September 15, 2020 10:24:47
    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Tue Sep 15 2020 09:52 am

    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Tue Sep 15 2020 08:04 am

    library installed. Use 'setcap' instead: http://wiki.synchro.net/howto:linux_non-root

    In addition to using setcap on all of my installs, I've also setup authbind too and it exhibits the same symptoms.

    It sounds like you're running sbbs as 'root'. The entire point of using setcap (or authbind) is so you don't run sbbs as root.

    digital man

    Synchronet "Real Fact" #6:
    Synchronet version 3 for Linux and FreeBSD development began in 2001.
    Norco, CA WX: 83.6øF, 40.0% humidity, 0 mph W wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Gamgee@VERT/PALANT to WitNik on Tuesday, September 15, 2020 10:55:00
    WitNik wrote to Digital Man <=-

    Re: Issues Recycling Services / Semphamore
    By: Digital Man to WitNik on Mon Sep 14 2020 10:48 pm

    The log output. Look for something like: "Disabling Terminal Server recycle support". This indicates that you're runing sbbs as root, with it changing to a different user-id, but you don't have the capabilities library installed. Use 'setcap' instead: http://wiki.synchro.net/howto:linux_non-root

    Here's the beginning of my console log:

    Synchronet Console for Linux-armv6 Version 3.18a Copyright 2020
    Rob Swindell

    Reading /sbbs/ctrl/sbbs.ini
    Loading configuration files from /sbbs/ctrl
    Disabling Terminal Server recycle support
    Disabling FTP Server recycle support
    Disabling Web Server recycle support
    Disabling Mail Server recycle support
    Disabling Services recycle support
    !Started as non-root user (id 1033): May fail to bind TCP/UDP
    ports below 1024 9/15 07:58:30 stat Loading configuration files
    from /sbbs/ctrl 9/15 07:58:30 ftp Synchronet FTP Server Revision
    1.501 9/15 07:58:30 ftp Compiled Sep 14 2020 22:18:20 with GCC
    8.3.0 9/15 07:58:30 ftp Initializing on Tue Sep 15 07:58:30 2020
    with options: 8000114

    So you're right on the money about the indicators, however, I am
    using setcap and have compiled with the same options on both
    systems.

    I tried to reissue the apt-get install command:

    bbs@raspberrypi:/sbbs/repo/src/sbbs3 $ sudo apt-get install
    libcap2-dev Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'libcap-dev' instead of 'libcap2-dev'
    libcap-dev is already the newest version (1:2.25-2).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    Any ideas?

    Look for the [unix] section in ../ctrl/sbbs.ini and
    uncomment/change the user/group definition to the user/group you
    want the bbs to run as. Should be the same user as who has
    file/access permissions to the directory structure.

    Make sure you have the SBBSCTRL environment variable defined,
    in the user environment that you'll be running the bbs as.

    Start the BBS with this command (while in the /sbbs/exec
    directory): sudo -E ./sbbs syslog

    Done.

    The BBS will now start up and be able to bind to the low ports
    (because you started it with 'sudo'), but then will immediately
    drop back to running as the user you defined in sbbs.ini.

    Enjoy.



    ... So easy, a child could do it. Child sold separately.
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From WitNik@VERT to Digital Man on Tuesday, September 15, 2020 12:03:36
    Re: Issues Recycling Services / Semphamore
    By: Digital Man to WitNik on Tue Sep 15 2020 10:23 am

    You shouldn't need to start the BBS as 'root' then. Instead, start it as the user you intend to run it as and you can remove the User/Group settings from the [unix] section of your sbbs.ini file.


    That was my problem. On the RPi4, I had specified the user / group setting in sbbs.ini recently. I didn't realize that was specifically for calling /sbbs/exec/sbbs from root. Once I remarked out the offending 2 lines, all was well.

    Thanks,
    -WitNik

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From WitNik@VERT to Digital Man on Tuesday, September 15, 2020 12:05:56
    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Tue Sep 15 2020 12:03 pm

    Also, I never have called sbbs as root. I've rotated between authbind/setcap. It might help to put additional remarks in the sbbs.ini file for folks like me to not populate those fields unless calling sbbs from root.

    Thanks,
    -WitNik

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to WitNik on Tuesday, September 15, 2020 16:41:37
    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Tue Sep 15 2020 12:05 pm

    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Tue Sep 15 2020 12:03 pm

    Also, I never have called sbbs as root. I've rotated between authbind/setcap. It might help to put additional remarks in the sbbs.ini file for folks like me to not populate those fields unless calling sbbs from root.

    How's this?
    http://wiki.synchro.net/config:nix

    digital man

    Synchronet "Real Fact" #114:
    Weedpuller "Geographic" http://youtu.be/cpzBDVgmWSA
    Norco, CA WX: 91.1øF, 20.0% humidity, 9 mph ENE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From WitNik@VERT to Digital Man on Wednesday, September 16, 2020 20:45:53
    Re: Issues Recycling Services / Semphamore
    By: Digital Man to WitNik on Tue Sep 15 2020 04:41 pm

    How's this?
    http://wiki.synchro.net/config:nix

    digital man

    That is fantastic! Please tell me that was not there the entire time. If so, I will accept your scorn and RTFM shame.

    -WitNik

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to WitNik on Wednesday, September 16, 2020 21:26:24
    Re: Issues Recycling Services / Semphamore
    By: WitNik to Digital Man on Wed Sep 16 2020 08:45 pm

    Re: Issues Recycling Services / Semphamore
    By: Digital Man to WitNik on Tue Sep 15 2020 04:41 pm

    How's this?
    http://wiki.synchro.net/config:nix

    That is fantastic! Please tell me that was not there the entire time. If so, I will accept your scorn and RTFM shame.

    I just added the blurb "If you are not starting sbbs as root, then you should not set these values"

    digital man

    Synchronet/BBS Terminology Definition #47:
    LF = Line Feed (ASCII 10, Ctrl-J)
    Norco, CA WX: 80.5øF, 20.0% humidity, 3 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From WitNik@VERT to Digital Man on Wednesday, September 16, 2020 21:38:11
    Re: Issues Recycling Services / Semphamore
    By: Digital Man to WitNik on Wed Sep 16 2020 09:26 pm

    I just added the blurb "If you are not starting sbbs as root, then you should not set these values"

    digital man

    You're awesome! Thanks!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Daryl Stout@VERT/TBOLT to WitNik on Thursday, September 17, 2020 08:30:00
    time. If so, I will accept your scorn and RTFM shame.

    When told to "Look At The Docs", I replied "The nurses are
    prettier". <G>

    Daryl

    ... WARNING!! I'm naked under these clothes!!
    --- MultiMail/Win v0.52
    þ Synchronet þ The Thunderbolt BBS - tbolt.synchro.net
  • From Nightfox@VERT/DIGDIST to Daryl Stout on Thursday, September 17, 2020 12:55:52
    Re: Issues Recycling Services
    By: Daryl Stout to WitNik on Thu Sep 17 2020 08:30 am

    When told to "Look At The Docs", I replied "The nurses are
    prettier". <G>

    Not all nurses are female.. ;)

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Daryl Stout@VERT/TBOLT to Nightfox on Thursday, September 17, 2020 19:03:00
    When told to "Look At The Docs", I replied "The nurses are
    prettier". <G>

    Not all nurses are female.. ;)

    True...but they tend to be gentler than the males. :P

    Daryl

    ... "Either this man's dead, or my watch is stopped". -Groucho Marx
    --- MultiMail/Win v0.52
    þ Synchronet þ The Thunderbolt BBS - tbolt.synchro.net
  • From Hatton@VERT/THRCORN to Daryl Stout on Friday, September 18, 2020 16:08:03
    Re: Issues Recycling Services
    By: Daryl Stout to Nightfox on Thu Sep 17 2020 07:03 pm

    Not all nurses are female.. ;)

    True...but they tend to be gentler than the males. :P

    Unless you're related to them - especially if by marriage.

    ... Everywhere is within walking distance if you have the time.

    ---
    þ Synchronet þ Three Corners and Beyond! http://3corners.us
  • From Mortifis@VERT/EPHRAM to Hatton on Friday, September 18, 2020 21:24:14
    Re: Issues Recycling Services
    By: Daryl Stout to Nightfox on Thu Sep 17 2020 07:03 pm

    Not all nurses are female.. ;)

    True...but they tend to be gentler than the males. :P

    Unless you're related to them - especially if by marriage.

    ... are cca's included in this ? :-P

    ---
    þ Synchronet þ posted via alleycat etrucker-runemaster web ui
  • From Hatton@VERT/THRCORN to Mortifis on Saturday, September 19, 2020 01:21:20
    Re: Re: Issues Recycling Services
    By: Mortifis to Hatton on Fri Sep 18 2020 09:24 pm

    Not all nurses are female.. ;)
    True...but they tend to be gentler than the males. :P
    Unless you're related to them - especially if by marriage.
    ... are cca's included in this ? :-P

    Dunno, my mother-in-law is a LPN...

    ... A sine curve goes off to infinity or at least the end of the blackboard.

    ---
    þ Synchronet þ Three Corners and Beyond! http://3corners.us
  • From WitNik@VERT to Daryl Stout on Saturday, September 19, 2020 13:24:39
    Re: Issues Recycling Services
    By: Daryl Stout to WitNik on Thu Sep 17 2020 08:30 am

    time. If so, I will accept your scorn and RTFM shame.

    When told to "Look At The Docs", I replied "The nurses are
    prettier". <G>

    Daryl

    ... WARNING!! I'm naked under these clothes!!

    LOL!

    -WitNik

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Daryl Stout@VERT/TBOLT to Hatton on Sunday, September 20, 2020 13:15:00
    Not all nurses are female.. ;)

    True...but they tend to be gentler than the males. :P

    Unless you're related to them - especially if by marriage.

    That applies to "You Might Be A Redneck, If..." <G>.

    Daryl

    ... If you have a rotary phone, please press 1 now.
    --- MultiMail/Win v0.52
    þ Synchronet þ The Thunderbolt BBS - tbolt.synchro.net
  • From Daryl Stout@VERT/TBOLT to WitNik on Sunday, September 20, 2020 14:11:00

    ... WARNING!! I'm naked under these clothes!!

    LOL!

    And, I've known people who will NOT go to the doctor, clinic,
    hospital, etc., because they don't want others to see them naked!!

    It's not like something they haven't seen...they've seen more
    breasts, genitialia, and buttocks, than most of us will ever see,
    so nudity means nothing to them. To me, they're there to save my
    butt, and not kiss it. Besides, being a widower, I know "what's
    under the hood", and "we're all the same from the back side".

    Several years ago, with attacks of kidney stones, I had to wear
    a catheter, and was having severe bladder spasms and pain, so I
    had to call 911 to go to the Emergency Room.

    On that cold, hard, exam table, I was naked...plus screaming and
    in tears, as the pain was so bad. Two good looking female nurses
    walked in, and told me "You're not going to like us"...I said "I'll
    kiss you if you make the pain go away". They said "We have medicine
    for the pain...but it's an oversized suppository!!".

    They gave a whole new meaning to the phrase "Shove It!!", but it
    did the trick.

    Even further back, I had a cardiac catheritization (cardiac cath)
    done, to be sure I hadn't had a heart attack. You are obviously nude
    before and after the procedure, as they inject a deal into the femoral
    artery in the groin area. Then, for nearly an hour afterwards, a
    female nurse is holding their hands on it, so you don't bleed to
    death...so, you're fully exposed there. And, you can NOT urinate
    while on your back. I tried to void into the plastic urinal bottle,
    but that didn't work. The nurse asked sarcastically "Did we spring
    a leak??", and I growled, "No, I felt like pissing the bed".

    The good news is that by going off of soda, and caffeine (mainly
    green tea, as I never acquired a taste for coffee), and going to
    flavored water, I haven't had any stones in awhile...and my heart
    is good.

    Daryl

    ... 12 Steps Chocolate Diet: 12 or less steps from chocolate.
    --- MultiMail/Win v0.52
    þ Synchronet þ The Thunderbolt BBS - tbolt.synchro.net