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
library installed. Use 'setcap' instead: http://wiki.synchro.net/howto:linux_non-root
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?
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.
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?
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.
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
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
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>
When told to "Look At The Docs", I replied "The nurses are
prettier". <G>
Not all nurses are female.. ;)
Not all nurses are female.. ;)
True...but they tend to be gentler than the males. :P
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 ? :-PNot all nurses are female.. ;)
True...but they tend to be gentler than the males. :PUnless you're related to them - especially if by marriage.
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!!
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.
... WARNING!! I'm naked under these clothes!!
LOL!
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 595 |
Nodes: | 8 (0 / 8) |
Uptime: | 42:46:37 |
Calls: | 10,784 |
Files: | 5 |
Messages: | 470,213 |