• Binding Problem

    From Melkor@VERT to All on Monday, March 09, 2020 09:58:47
    Ive sent messages to MarisaG but havent heard back. Im using her free shared server for my BBS. This morning it started getting erros binding the sockets to the ports, Ive Increased the attempts and the dleay but still no luck. Since its a remote server Im limited on what I can do. Its running Linux and all the logs show is the error binding.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Al@VERT to Melkor on Monday, March 09, 2020 11:29:16
    Hello Melkor,

    Ive sent messages to MarisaG but havent heard back. Im using her free shared server for my BBS. This morning it started getting erros
    binding the sockets to the ports, Ive Increased the attempts and the
    dleay but still no luck. Since its a remote server Im limited on what
    I can do. Its running Linux and all the logs show is the error
    binding.

    How are you starting sbbs? You may need to use sudo so sbbs can bind the ports.
    Another option is to use setcap or authbind so you can run sbbs as a regular user.

    I use the setcap method myself and it works well for me. You'll need to run the
    setcap command on your sbbs binary every time you rebuild it if you use that method.

    Info is in the wiki in the how-to pages, look for Linux non-root.

    Ttyl :-),
    Al

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Melkor@VERT to Al on Monday, March 09, 2020 12:04:51
    Re: Binding Problem
    By: Al to Melkor on Mon Mar 09 2020 11:29 am

    Hello Melkor,

    Ive sent messages to MarisaG but havent heard back. Im using her free shared server for my BBS. This morning it started getting erros
    binding the sockets to the ports, Ive Increased the attempts and the dleay but still no luck. Since its a remote server Im limited on what
    I can do. Its running Linux and all the logs show is the error
    binding.

    How are you starting sbbs? You may need to use sudo so sbbs can bind the por Another option is to use setcap or authbind so you can run sbbs as a regular user.

    I use the setcap method myself and it works well for me. You'll need to run setcap command on your sbbs binary every time you rebuild it if you use that method.

    Info is in the wiki in the how-to pages, look for Linux non-root.

    Ttyl :-),
    Al
    Since it was setup by someone not sure on most of that. If I have to manually recycle I ssh in sudo to root and use smc to reset the bbs process.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Al@VERT to Melkor on Monday, March 09, 2020 12:15:36
    Hello Melkor,

    Since it was setup by someone not sure on most of that. If I have to manually recycle I ssh in sudo to root and use smc to reset the bbs process.

    In that case since we don't know how sbbs is being started you'll have to get Marisa to look into it.

    Ttyl :-),
    Al

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Tony Langdon@VERT to Melkor on Tuesday, March 10, 2020 21:38:00
    On 03-09-20 09:58, Melkor wrote to All <=-


    Ive sent messages to MarisaG but havent heard back. Im using her free shared server for my BBS. This morning it started getting erros binding the sockets to the ports, Ive Increased the attempts and the dleay but still no luck. Since its a remote server Im limited on what I can do.
    Its running Linux and all the logs show is the error binding.

    This usually means one of two things:

    1. Something else already has those ports (is there another copy of sbbs running?). Use "ps aux" to check if sbbs is running, or use lsof to see what has the ports open. If lsof isn't available, then the following command will at least tell you if something is using the ports you want for sbbs:

    netstat -lan | grep LISTEN

    or

    2. sbbs does not have permission to bind the low ports. This reauires the use of "setcap" as root to fix.


    ... You cannot achieve the impossible without attempting the absurd.
    === MultiMail/Win v0.51
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Tony Langdon@VERT to Al on Tuesday, March 10, 2020 21:40:00
    On 03-09-20 12:15, Al wrote to Melkor <=-

    Hello Melkor,

    Since it was setup by someone not sure on most of that. If I have to manually recycle I ssh in sudo to root and use smc to reset the bbs process.

    In that case since we don't know how sbbs is being started you'll have
    to get Marisa to look into it.

    Given the lack of information available to us, this may be the wisest course of action.


    ... Unable to locate Coffee -- Operator Halted!
    === MultiMail/Win v0.51
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Gamgee@VERT/PALANT to Tony Langdon on Tuesday, March 10, 2020 08:33:00
    Tony Langdon wrote to Melkor <=-

    Ive sent messages to MarisaG but havent heard back. Im using her free shared server for my BBS. This morning it started getting erros binding the sockets to the ports, Ive Increased the attempts and the dleay but still no luck. Since its a remote server Im limited on what I can do.
    Its running Linux and all the logs show is the error binding.

    This usually means one of two things:

    1. Something else already has those ports (is there another copy
    of sbbs running?). Use "ps aux" to check if sbbs is running, or
    use lsof to see what has the ports open. If lsof isn't
    available, then the following command will at least tell you if
    something is using the ports you want for sbbs:

    netstat -lan | grep LISTEN

    Good point here... since this is a "shared server" with MarisaG,
    there may indeed be another instance of SBBS running...

    or

    2. sbbs does not have permission to bind the low ports. This
    reauires the use of "setcap" as root to fix.

    Well.... it doesn't *require* the use of setcap, there are other
    ways. I start my BBS with this command while in the /sbbs/exec
    directory: sudo -E ./sbbs syslog

    That lets it bind to the low ports (because of 'sudo'), and then
    it immediately reverts to a normal user which is specified in the
    sbbs.ini file. Seems easier/cleaner to me to do it that way.



    ... Internal Error: The system has been taken over by sheep at line 19960
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From Tony Langdon@VERT to Gamgee on Wednesday, March 11, 2020 12:54:00
    On 03-10-20 08:33, Gamgee wrote to Tony Langdon <=-

    Good point here... since this is a "shared server" with MarisaG,
    there may indeed be another instance of SBBS running...

    If it's a VPS, it shouldn't be an issue, because a VPS acts like an independent machine. If it's truly shared, surely you've been given your own port assignments to use. My suspicion is an instance of your own sbbs that didn't terminate for some reason.

    or

    2. sbbs does not have permission to bind the low ports. This
    reauires the use of "setcap" as root to fix.

    Well.... it doesn't *require* the use of setcap, there are other
    ways. I start my BBS with this command while in the /sbbs/exec
    directory: sudo -E ./sbbs syslog

    Yep that'll work too. :)

    That lets it bind to the low ports (because of 'sudo'), and then
    it immediately reverts to a normal user which is specified in the
    sbbs.ini file. Seems easier/cleaner to me to do it that way.

    Depends on one's point of view. I use the setcap method myself, because that way I can be 100% sure that everything is running as the sbbs user and no permissions are getting screwed up accidentally. :)


    ... Most self-made men worship their creators.
    === MultiMail/Win v0.51
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Marisag@VERT/AMIGAC to Tony Langdon on Tuesday, March 10, 2020 21:47:23
    Re: Re: Binding Problem
    By: Tony Langdon to Gamgee on Wed Mar 11 2020 12:54:00

    Good point here... since this is a "shared server" with MarisaG,
    there may indeed be another instance of SBBS running...
    If it's a VPS, it shouldn't be an issue, because a VPS acts like an independent machine. If it's truly shared, surely you've been given your own port assignments to use. My suspicion is an instance of your own sbbs that didn't terminate for some reason.

    Only one BBS runs on one of my servers. But sometimes a MUD or Minetest server will be running but aside from port 23 and 80/443 will be just the BBS instance. Often people try and start up another instance of SBBS rather than killing the process and letting it restart the SBBS process on it's own.

    I just put out a smc update that warns people against using that...

    Marisa
    --- https://SynchronetBBS.org/HostSplash - SBBS hosting for $14/month
    þ Synchronet þ Amiga City - The BBS for the Amiga - more than 3,500+ files
  • From Tony Langdon@VERT to Marisag on Wednesday, March 11, 2020 16:16:00
    On 03-10-20 21:47, Marisag wrote to Tony Langdon <=-

    Only one BBS runs on one of my servers. But sometimes a MUD or Minetest server will be running but aside from port 23 and 80/443 will be just
    the BBS instance. Often people try and start up another instance of
    SBBS rather than killing the process and letting it restart the SBBS process on it's own.

    Yes, I suspected that another copy of SBBS itself would be the most likely culprit.

    I just put out a smc update that warns people against using that...

    Sounds like a good idea. :)


    ... Dancing: A perpendicular expression of a horizontal desire.
    === MultiMail/Win v0.51
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Marisag@VERT/AMIGAC to Tony Langdon on Wednesday, March 11, 2020 00:51:11
    Re: Re: Binding Problem
    By: Tony Langdon to Marisag on Wed Mar 11 2020 16:16:00

    I just put out a smc update that warns people against using that...
    Sounds like a good idea. :)

    Yep :) Took me a while to think of adding that.

    Marisa
    --- https://SynchronetBBS.org/HostSplash - SBBS hosting for $14/month
    þ Synchronet þ Amiga City - The BBS for the Amiga - more than 3,500+ files
  • From Tony Langdon@VERT to Marisag on Wednesday, March 11, 2020 19:15:00
    On 03-11-20 00:51, Marisag wrote to Tony Langdon <=-

    Re: Re: Binding Problem
    By: Tony Langdon to Marisag on Wed Mar 11 2020 16:16:00

    I just put out a smc update that warns people against using that...
    Sounds like a good idea. :)

    Yep :) Took me a while to think of adding that.

    Cool, it will hopefully make it easier for the sysops. :)


    ... My install is probably 3-4 Weeks Old; It's Time for an Update. P. F.
    === MultiMail/Win v0.51
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Gamgee@VERT/PALANT to Tony Langdon on Wednesday, March 11, 2020 08:20:00
    Tony Langdon wrote to Gamgee <=-

    Good point here... since this is a "shared server" with MarisaG,
    there may indeed be another instance of SBBS running...

    If it's a VPS, it shouldn't be an issue, because a VPS acts like
    an independent machine. If it's truly shared, surely you've been
    given your own port assignments to use. My suspicion is an
    instance of your own sbbs that didn't terminate for some reason.

    Well, it's not my issue, this was something that we were replying
    to somebody else about... I've lost track of the thread as to who
    it was.

    All good, hopefully they've got things sorted out now.


    ... A day without sunshine is like night.
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From Vk3jed@VERT/FREEWAY to Gamgee on Thursday, March 12, 2020 14:38:00
    On 03-11-20 08:20, Gamgee wrote to Tony Langdon <=-

    Well, it's not my issue, this was something that we were replying
    to somebody else about... I've lost track of the thread as to who
    it was.

    All good, hopefully they've got things sorted out now.

    I think Marisa is all over it, and is adding warnings for her clients. :)


    ... Hire a consultant - you'll have someone to blame.
    --- MultiMail/Win v0.51
    þ Synchronet þ Freeway BBS, Bendigo Australia. freeway.apana.org.au
  • From Paul Quinn@VERT to Vk3jed on Thursday, March 12, 2020 15:59:56
    Hi! Tony,

    On 03/12/2020 01:38 PM, yo wrote:

    I think Marisa is all over it, and is adding warnings for her clients. :)

    Without context, that is the most delicious note I ever saw in Fidonet that was
    still legal in all states. ;)

    Cheers,
    Paul.

    --- Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
    * Origin: Cogito sumere potum alterum. (3:640/1384.125)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Tony Langdon@VERT to Paul Quinn on Friday, March 13, 2020 09:52:00
    On 03-12-20 15:59, Paul Quinn wrote to Vk3jed <=-

    Hi! Tony,

    On 03/12/2020 01:38 PM, yo wrote:

    I think Marisa is all over it, and is adding warnings for her clients. :)

    Without context, that is the most delicious note I ever saw in Fidonet that was still legal in all states. ;)

    Haha, nothing like quoting out of context. :/


    ... I can see clearly now, my brain is gone...
    === MultiMail/Win v0.51
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net