• Recycling servers

    From Immortal@VERT/IDOMAIN to All on Monday, July 29, 2019 19:43:45
    So I've got a new synchronet system running under ubuntu and I'm trying to figure out how to recycle my servers after making changes. It doesn't seem to automatically detect and recycle like the windows version does. I'm running synchronet as an init.d service and the only way I can seem to get it to recycle is to stop and start the service again. I've tried touching ctrl/recycle but it doesn't seem to work. Out of curiousity I tried touching ctrl/shutdown and ctrl/clear and those do work. Touching data/qnet/vert.now works as well. I looked and I do not have NO_RECYCLE set anywhere in my sbbs.ini.

    What am I missing? Thanks

    ---
    Synchronet Immortal's Domain
  • From Digital Man@VERT to Immortal on Monday, July 29, 2019 19:21:01
    Re: Recycling servers
    By: Immortal to All on Mon Jul 29 2019 07:43 pm

    So I've got a new synchronet system running under ubuntu and I'm trying to figure out how to recycle my servers after making changes. It doesn't seem to automatically detect and recycle like the windows version does.

    It normally does.

    I'm
    running synchronet as an init.d service and the only way I can seem to get it to recycle is to stop and start the service again. I've tried touching ctrl/recycle but it doesn't seem to work. Out of curiousity I tried touching ctrl/shutdown and ctrl/clear and those do work. Touching data/qnet/vert.now works as well. I looked and I do not have NO_RECYCLE set anywhere in my sbbs.ini.

    What am I missing? Thanks

    Are you using a really old Linux distro?

    Do you see "Disabling ... Server recycle support" in your log output? That would explain it and the cause would be Linux "capabilities" weren't set (because it couldn't) and you're running the BBS as a non-root user.

    digital man

    This Is Spinal Tap quote #3:
    How much more black could this be? and the answer is none. None more black. Norco, CA WX: 79.9F, 58.0% humidity, 6 mph SE wind, 0.00 inches rain/24hrs

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Immortal@VERT/IDOMAIN to Digital Man on Tuesday, July 30, 2019 18:21:40
    Re: Recycling servers
    By: Digital Man to Immortal on Mon Jul 29 2019 07:21 pm

    Re: Recycling servers
    By: Immortal to All on Mon Jul 29 2019 07:43 pm
    So I've got a new synchronet system running under ubuntu and I'm
    trying to figure out how to recycle my servers after making changes.
    It doesn't seem to automatically detect and recycle like the windows
    version does.

    It normally does.
    Are you using a really old Linux distro?

    I am using Ubuntu 18.04 64 bit.

    Do you see "Disabling ... Server recycle support" in your log output? That would explain it and the cause would be Linux "capabilities" weren't set (because it couldn't) and you're running the BBS as a non-root user.

    Exactly right. Forgive my ignorance but how do I fix the problem?

    Jul 30 17:56:49 T5500 synchronet: Running as daemon
    Jul 30 17:56:49 T5500 synchronet: Current uids: ruid - 1002, euid - 1002, suid - 1002
    Jul 30 17:56:49 T5500 synchronet: Current gids: rgid - 1003, egid - 1003, sgid - 1003
    Jul 30 17:56:49 T5500 synchronet: The process 1297 was given capabilities = cap_net_bind_service+ep
    Jul 30 17:56:49 T5500 synchronet: linux_initialprivs() FAILED
    Jul 30 17:56:49 T5500 synchronet: Verify the following kernel module is loaded [See insmod(8)]: capability
    Jul 30 17:56:49 T5500 synchronet: Operation not permitted
    Jul 30 17:56:49 T5500 synchronet: Current uids: ruid - 1002, euid - 1002, suid - 1002
    Jul 30 17:56:49 T5500 synchronet: Current gids: rgid - 1003, egid - 1003, sgid - 1003
    Jul 30 17:56:50 T5500 synchronet: The process 1297 was given capabilities = cap_net_bind_service+ep
    Jul 30 17:56:50 T5500 synchronet: Disabling Terminal Server recycle support
    Jul 30 17:56:50 T5500 synchronet: Disabling FTP Server recycle support
    Jul 30 17:56:50 T5500 synchronet: Disabling Web Server recycle support
    Jul 30 17:56:50 T5500 synchronet: Disabling Mail Server recycle support
    Jul 30 17:56:50 T5500 synchronet: Disabling Services recycle support
    Jul 30 17:56:50 T5500 synchronet: stat Loading configuration files from /home/bbs/sbbs/ctrl
    Jul 30 17:56:50 T5500 synchronet: !Started as non-root user. Cannot bind() to ports below 1024.

    ---
    Synchronet Immortal's Domain
  • From Immortal@VERT/IDOMAIN to Digital Man on Tuesday, July 30, 2019 18:47:37
    Re: Recycling servers
    By: Digital Man to Immortal on Mon Jul 29 2019 07:21 pm

    Do you see "Disabling ... Server recycle support" in your log output? That would explain it and the cause would be Linux "capabilities" weren't set (because it couldn't) and you're running the BBS as a non-root user.

    I commented out the user and group in the unix section of sbbs.ini and it appears to work now. Although it still shows an error in the log:

    Jul 30 18:35:10 T5500 synchronet: Running as daemon
    Jul 30 18:35:10 T5500 synchronet: Current uids: ruid - 1002, euid - 1002, suid - 1002
    Jul 30 18:35:10 T5500 synchronet: Current gids: rgid - 1003, egid - 1003, sgid - 1003
    Jul 30 18:35:10 T5500 synchronet: The process 2674 was given capabilities = cap_net_bind_service+ep
    Jul 30 18:35:10 T5500 synchronet: linux_initialprivs() FAILED
    Jul 30 18:35:10 T5500 synchronet: Verify the following kernel module is loaded [See insmod(8)]: capability
    Jul 30 18:35:10 T5500 synchronet: Operation not permitted
    Jul 30 18:35:10 T5500 synchronet: Current uids: ruid - 1002, euid - 1002, suid - 1002
    Jul 30 18:35:10 T5500 synchronet: Current gids: rgid - 1003, egid - 1003, sgid - 1003
    Jul 30 18:35:10 T5500 synchronet: The process 2674 was given capabilities = cap_net_bind_service+ep
    Jul 30 18:35:10 T5500 synchronet: !Started as non-root user. Cannot bind() to ports below 1024.

    Sorry this is new to me and somewhat confusing. I've always used higher port numbers and forwarded them if necessary with iptables.

    ---
    Synchronet Immortal's Domain
  • From Digital Man@VERT to Immortal on Tuesday, July 30, 2019 23:54:09
    Re: Recycling servers
    By: Immortal to Digital Man on Tue Jul 30 2019 06:21 pm

    Re: Recycling servers
    By: Digital Man to Immortal on Mon Jul 29 2019 07:21 pm

    Re: Recycling servers
    By: Immortal to All on Mon Jul 29 2019 07:43 pm
    So I've got a new synchronet system running under ubuntu and I'm
    trying to figure out how to recycle my servers after making changes.
    It doesn't seem to automatically detect and recycle like the windows
    version does.

    It normally does.
    Are you using a really old Linux distro?

    I am using Ubuntu 18.04 64 bit.

    Do you see "Disabling ... Server recycle support" in your log output? That would explain it and the cause would be Linux "capabilities" weren't set (because it couldn't) and you're running the BBS as a non-root user.

    Exactly right. Forgive my ignorance but how do I fix the problem?

    Jul 30 17:56:49 T5500 synchronet: Running as daemon
    Jul 30 17:56:49 T5500 synchronet: Current uids: ruid - 1002, euid - 1002, suid - 1002
    Jul 30 17:56:49 T5500 synchronet: Current gids: rgid - 1003, egid - 1003, sgid - 1003
    Jul 30 17:56:49 T5500 synchronet: The process 1297 was given capabilities = cap_net_bind_service+ep
    Jul 30 17:56:49 T5500 synchronet: linux_initialprivs() FAILED
    Jul 30 17:56:49 T5500 synchronet: Verify the following kernel module is loaded [See insmod(8)]: capability
    Jul 30 17:56:49 T5500 synchronet: Operation not permitted
    Jul 30 17:56:49 T5500 synchronet: Current uids: ruid - 1002, euid - 1002, suid - 1002
    Jul 30 17:56:49 T5500 synchronet: Current gids: rgid - 1003, egid - 1003, sgid - 1003
    Jul 30 17:56:50 T5500 synchronet: The process 1297 was given capabilities = cap_net_bind_service+ep
    Jul 30 17:56:50 T5500 synchronet: Disabling Terminal Server recycle support Jul 30 17:56:50 T5500 synchronet: Disabling FTP Server recycle support
    Jul 30 17:56:50 T5500 synchronet: Disabling Web Server recycle support
    Jul 30 17:56:50 T5500 synchronet: Disabling Mail Server recycle support
    Jul 30 17:56:50 T5500 synchronet: Disabling Services recycle support
    Jul 30 17:56:50 T5500 synchronet: stat Loading configuration files from /home/bbs/sbbs/ctrl
    Jul 30 17:56:50 T5500 synchronet: !Started as non-root user. Cannot bind() to ports below 1024.

    You got lots of abnormal errors there which definitely explains the lack of recycle support. Are you running Synchronet as a daemon? Normally that would mean starting as root and then changing to another user-id after binding ports.

    Do you have a user and/or group ID specified in the [unix] section of sbbs.ini?

    digital man

    This Is Spinal Tap quote #10:
    Dozens of people spontaneously combust each year... just not widely reported. Norco, CA WX: 68.2F, 82.0% humidity, 0 mph SE wind, 0.00 inches rain/24hrs

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Immortal@VERT/IDOMAIN to Digital Man on Wednesday, July 31, 2019 17:40:20
    Re: Recycling servers
    By: Digital Man to Immortal on Tue Jul 30 2019 11:54 pm

    Re: Recycling servers
    By: Immortal to Digital Man on Tue Jul 30 2019 06:21 pm
    You got lots of abnormal errors there which definitely explains the lack of recycle support. Are you running Synchronet as a daemon? Normally that would mean starting as root and then changing to another user-id after binding ports.

    I am running it as a daemon using the systemd script from http://wiki.synchro.net/howto:systemd.

    Do you have a user and/or group ID specified in the [unix] section of sbbs.ini?

    I did at first when it would not allow me to recycle the servers. I have since commented the user and group out. Now it is allowing me to recycle the servers however it doesn't seem to be releasing the ports properly. It closes and then tries to reopen the ports and fails with error 98 I believe. I then have to stop the service and start it again in order to get things running.

    ---
    Synchronet Immortal's Domain
  • From Dan Clough@VERT to Immortal on Wednesday, July 31, 2019 21:32:00
    Immortal wrote to Digital Man <=-

    You got lots of abnormal errors there which definitely explains the lack of recycle support. Are you running Synchronet as a daemon? Normally that would mean starting as root and then changing to another user-id after binding ports.

    I am running it as a daemon using the systemd script from http://wiki.synchro.net/howto:systemd.

    Do you have a user and/or group ID specified in the [unix] section of sbbs.ini?

    I did at first when it would not allow me to recycle the servers.
    I have since commented the user and group out. Now it is
    allowing me to recycle the servers however it doesn't seem to be
    releasing the ports properly. It closes and then tries to reopen
    the ports and fails with error 98 I believe. I then have to stop
    the service and start it again in order to get things running.

    1. Stop the daemon (not sure how you do that becaue I don't do
    systemd).
    2. Open a terminal window (assuming you're in a desktop GUI), and
    make the window full-size for ease of visibility.
    3. Start the bbs like this (as a non-root user):
    4. sudo -E /sbbs/exec/sbbs
    5. Look at the "log" output in that terminal window and see if
    your port binding issue is resolved.
    6. Let us know.



    ... So easy, a child could do it. Child sold separately.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.07-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (1:123/115)
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Immortal@VERT/IDOMAIN to Dan Clough on Friday, August 02, 2019 19:00:16
    Re: Re: Recycling servers
    By: Dan Clough to Immortal on Wed Jul 31 2019 09:32 pm

    Immortal wrote to Digital Man <=-

    You got lots of abnormal errors there which definitely explains the
    lack of recycle support. Are you running Synchronet as a daemon?
    Normally that would mean starting as root and then changing to
    another user-id after binding ports.

    I am running it as a daemon using the systemd script from
    http://wiki.synchro.net/howto:systemd.

    Do you have a user and/or group ID specified in the [unix] section
    of sbbs.ini?

    I did at first when it would not allow me to recycle the servers.
    I have since commented the user and group out. Now it is
    allowing me to recycle the servers however it doesn't seem to be
    releasing the ports properly. It closes and then tries to reopen
    the ports and fails with error 98 I believe. I then have to stop
    the service and start it again in order to get things running.

    1. Stop the daemon (not sure how you do that becaue I don't do
    systemd).
    2. Open a terminal window (assuming you're in a desktop GUI), and
    make the window full-size for ease of visibility.
    3. Start the bbs like this (as a non-root user):
    4. sudo -E /sbbs/exec/sbbs
    5. Look at the "log" output in that terminal window and see if
    your port binding issue is resolved.
    6. Let us know.

    It seems to be working now after a reboot. The problem was I had a user and group in both sbbs.ini and in the systemd script. Thanks both of you for your help.

    Immortal

    ... Take my advice, I don't use it anyway.

    ---
    Synchronet Immortal's Domain