• BBS partially hangs when config file changes

    From Dmxrob@VERT/STLWEST to All on Monday, February 11, 2019 13:48:02
    SBBS 3.17 running on CentOS 7

    Noticed that when I change the sbbs.ini file (either manually or through the config script) when I am logged into the BBS via SSH that when the BBS goes to restart/reload the config file after I log off that it will no longer accept connections. I have to go in and manually stop the sbbs service and restart it via systemctl. Then everything is back to normal.

    Has anyone noticed this behaviour?

    Rob

    dmxrob þ BBSing from St. Louis, Missouri since 1988

    ---
    þ Synchronet þ Gateway to the West - St. Louis, Missouri - bbs.dmxrob.net
  • From DaiTengu@VERT/ENSEMBLE to Dmxrob on Monday, February 11, 2019 13:09:10
    Re: BBS partially hangs when config file changes
    By: Dmxrob to All on Mon Feb 11 2019 01:48 pm

    Noticed that when I change the sbbs.ini file (either manually or through the config script) when I am logged into the BBS via SSH that when the BBS goes to restart/reload the config file after I log off that it will no longer accept connections. I have to go in and manually stop the sbbs service and restart it via systemctl. Then everything is back to normal.

    Has anyone noticed this behaviour?

    It's due to the ports remaining in TIME-WAIT status. It takes around 60 second s to clear and the port to get released. I'm not really sure if there's a C call or what that could force the port closed without a TIME-WAIT when the server restarts/shuts down, that'd probably be a question for DM or possibly Deuce.

    DaiTengu

    ... To eat is human; to digest divine.

    ---
    þ Synchronet þ War Ensemble BBS - The sport is war, total war - warensemble.com
  • From Dmxrob@VERT/STLWEST to DaiTengu on Monday, February 11, 2019 15:22:26
    Re: BBS partially hangs when config file changes
    By: DaiTengu to Dmxrob on Mon Feb 11 2019 01:09 pm

    It's due to the ports remaining in TIME-WAIT status. It takes around 60 second s to clear and the port to get released. I'm not really sure if there's a C call or what that could force the port closed without a TIME-WAIT when the server restarts/shuts down, that'd probably be a question

    If nothing else, a wait loop may be the answer. Just throw in a sleep(60); perhaps after shutdown?

    Rob

    dmxrob þ BBSing from St. Louis, Missouri since 1988

    ---
    þ Synchronet þ Gateway to the West - St. Louis, Missouri - bbs.dmxrob.net
  • From DaiTengu@VERT/ENSEMBLE to Dmxrob on Monday, February 11, 2019 17:26:34
    Re: BBS partially hangs when config file changes
    By: Dmxrob to DaiTengu on Mon Feb 11 2019 03:22 pm


    If nothing else, a wait loop may be the answer. Just throw in a sleep(60); perhaps after shutdown?


    You can edit sbbs.ini and change:
    BindRetryCount
    BindRetryDelay

    I have mine set to 10 and 15 respectively, it works fine when I restart the server.

    DaiTengu

    ... A woman drove me to drink, and I never had the courtesy to thank her.

    ---
    þ Synchronet þ War Ensemble BBS - The sport is war, total war - warensemble.com
  • From Dmxrob@VERT/STLWEST to DaiTengu on Monday, February 11, 2019 20:56:05
    Re: BBS partially hangs when config file changes
    By: DaiTengu to Dmxrob on Mon Feb 11 2019 05:26 pm

    You can edit sbbs.ini and change:
    BindRetryCount
    BindRetryDelay

    I have mine set to 10 and 15 respectively, it works fine when I restart the server.

    Thanks. I did this and things seem to be working as expected now.

    Rob

    dmxrob þ BBSing from St. Louis, Missouri since 1988

    ---
    þ Synchronet þ Gateway to the West - St. Louis, Missouri - bbs.dmxrob.net
  • From Mortifis@VERT/ALLEYCAT to Dmxrob on Wednesday, February 13, 2019 05:54:59
    SBBS 3.17 running on CentOS 7

    Noticed that when I change the sbbs.ini file (either manually or through the config script) when I am logged into the BBS via SSH that when the BBS goes to restart/reload the config file after I log off that it will no longer accept connections. I have to go in and manually stop the sbbs service and restart it via systemctl. Then everything is back to normal.

    Has anyone noticed this behaviour?

    Rob

    That happens to me also on Slackware only I have to kill -9 or pkill sbbs. my solution to get a graceful shutdown/restart is to run sbbs in console on one tty and everything else on another.

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Dmxrob@VERT/STLWEST to Mortifis on Wednesday, February 13, 2019 10:54:12
    Re: Re: BBS partially hangs when config file changes
    By: Mortifis to Dmxrob on Wed Feb 13 2019 05:54 am

    That happens to me also on Slackware only I have to kill -9 or pkill sbbs. my solution to get a graceful shutdown/restart is to run sbbs in console on one tty and everything else on another.


    After applying the changes to sbbs.ini for the timeout and retry values for sockets, the issue has went away, at least for me.

    Rob

    dmxrob þ BBSing from St. Louis, Missouri since 1988

    ---
    þ Synchronet þ Gateway to the West - St. Louis, Missouri - bbs.dmxrob.net
  • From Mortifis@VERT/ALLEYCAT to Dmxrob on Wednesday, February 13, 2019 13:01:05
    Re: Re: BBS partially hangs when config file changes
    By: Mortifis to Dmxrob on Wed Feb 13 2019 05:54 am

    That happens to me also on Slackware only I have to kill -9 or pkill sbbs. my solution to get a graceful shutdown/restart is to run sbbs in console on one tty and everything else on another.


    After applying the changes to sbbs.ini for the timeout and retry values for sockets, the issue has went away, at least for me.


    I applied them also made it still behaves the same :-/

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Jagossel@VERT/DISCREAL to Mortifis on Wednesday, February 13, 2019 08:31:00
    Mortifis, to Dmxrob...

    SBBS 3.17 running on CentOS 7

    Noticed that when I change the sbbs.ini file (either manually or through the config script) when I am logged into the BBS via SSH that when the BBS goes to restart/reload the config file after I log off that it will no longer accept connections. I have to go in and manually stop the sbbs service and restart it via systemctl. Then everything is back to normal.

    Has anyone noticed this behaviour?

    Rob

    That happens to me also on Slackware only I have to kill -9 or pkill
    sbbs. my solution to get a graceful shutdown/restart is to run sbbs in console on one tty and everything else on another.

    I recently ran into this last night where I just added in a new file area
    and added a file. I restarted the sbbs service a couple of times last
    night in trying to learn how to import/add a file to my BBS.

    And then, this morning, I tried to log in to my BBS this morning using
    QModem in DOSBox on my phone and QModem kept saying "NO CARRIER" (not
    really sure what that means in the emulated modem realm). I saw that my
    telnet port was oepn, just wasn't connecting. Restarted sbbs this morning
    and it seems fine now. Strangely enough, FTP was fine; just telnet wssn't connecting.

    I, too, am running sbbs on my person desktop with CentOS 7 installed and
    using systemctl to manage the sbbs service. I just wish I had logs to
    show any errors that might have caused the breakage. I just assumed it was
    my nightly backups that night have broke it. :(

    -jag
    Code it, Script it, Automate it!

    ... To see the rest of the message, press ENTER...
    --- MultiMail/DOS v0.51
    þ Synchronet þ -- You've arrived! Disconnected Reality BBS -- discreal.ddns.net
  • From Tony Langdon@VERT to Jagossel on Thursday, February 14, 2019 11:47:00
    On 02-13-19 08:31, Jagossel wrote to Mortifis <=-

    And then, this morning, I tried to log in to my BBS this morning using QModem in DOSBox on my phone and QModem kept saying "NO CARRIER" (not really sure what that means in the emulated modem realm). I saw that my

    The logical meaning would be no TCP connection, whether not established, or it dropped.


    ... Marriage is an expensive way to get your laundry done free.
    === MultiMail/Win v0.51
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net