b. I run SCFG via logged in through BBS as a door and change something.
Re: nodes not recycling
By: Hemo to All on Sun Dec 11 2016 10:41 am
b. I run SCFG via logged in through BBS as a door and change
something.
Mind, this might be too obvious and not your problem but nodes should be 'free' before they recycle to get changes across. Like, no one, yourself included should be logged into your board or at logon even.
Have you check that no one is there when you try to recycle?
what might be a reason my nodes don't recycle when:
a. I instruct them to with 'node rerun'
b. I run SCFG via logged in through BBS as a door and change something.
The node status does changes to [R] in both cases, but they don't seem to recycle to pick up the changes.
I think it's likely something from my copying data from system to system, but not sure where to start looking. I am running under linux in daemon mode from command line, not daemon mode in ini.
In fact, if I stop and restart the sbbs daemon, the nodes all still report [R] status.
Digital Man wrote to Hemo <=-
Re: nodes not recycling
By: Hemo to All on Sun Dec 11 2016 10:41 am
what might be a reason my nodes don't recycle when:
a. I instruct them to with 'node rerun'
b. I run SCFG via logged in through BBS as a door and change something.
The node status does changes to [R] in both cases, but they don't seem to recycle to pick up the changes.
Are any nodes still in use? The terminal server can only recycle when there are no nodes in use.
I think it's likely something from my copying data from system to system, but not sure where to start looking. I am running under linux in daemon mode from command line, not daemon mode in ini.
In fact, if I stop and restart the sbbs daemon, the nodes all still report [R] status.
That sounds like potentially a permissions issue with your
ctrl/node.dab file. Try deleting it and let sbbs recreate it.
In fact, if I stop and restart the sbbs daemon, the nodes all still report [R] status.
That sounds like potentially a permissions issue with your ctrl/node.dab file. Try deleting it and let sbbs recreate it.
ok.. this is the second time I've removed node.dab, the first time was because it was reporting 5 nodes on a 4 node setup.
it gets re-created (again) with the following perms:
-rw------- 1 sbbs sbbs 60 Dec 12 10:02 node.dab
Are those sufficient?
My OS default umask is 0002, umask in sbbs.ini is
077. Based on that, the setting of node.dab is correct, I think.
But - system still exhibits same behavior, minutes after re-creating the node.dab file. I'll scfg , edit and change a setting, save and exit. node status changes to
'Waiting for connection [R]'
Not that much of a big deal for me, I'm getting in the habit of just restarting everything after I make changes.
Re: Re: nodes not recycling
By: Hemo to Digital Man on Mon Dec 12 2016 10:27 am
In fact, if I stop and restart the sbbs daemon, the nodes all
still report [R] status.
That sounds like potentially a permissions issue with your
ctrl/node.dab file. Try deleting it and let sbbs recreate it.
ok.. this is the second time I've removed node.dab, the first time was
because it was reporting 5 nodes on a 4 node setup.
it gets re-created (again) with the following perms:
-rw------- 1 sbbs sbbs 60 Dec 12 10:02 node.dab
Are those sufficient?
Only if you are modifying configuration files (running SCFG) as user 'sbbs'.
My OS default umask is 0002, umask in sbbs.ini is
077. Based on that, the setting of node.dab is correct, I think.
But - system still exhibits same behavior, minutes after re-creating
the node.dab file. I'll scfg , edit and change a setting, save and
exit. node status changes to
'Waiting for connection [R]'
And the perms on node.dab after that change are the same? Are you running SCFG as 'sbbs'?
Not that much of a big deal for me, I'm getting in the habit of just
restarting everything after I make changes.
Well, I'd like to see it fixed if there's a problem. But I'll need more details about what's being run as what user.
Re: Re: nodes not recycling
By: Digital Man to Hemo on Mon Dec 12 2016 01:28 pm
Re: Re: nodes not recycling
By: Hemo to Digital Man on Mon Dec 12 2016 10:27 am
In fact, if I stop and restart the sbbs daemon, the nodes all
still report [R] status.
That sounds like potentially a permissions issue with your
ctrl/node.dab file. Try deleting it and let sbbs recreate it.
ok.. this is the second time I've removed node.dab, the first time was
because it was reporting 5 nodes on a 4 node setup.
it gets re-created (again) with the following perms:
-rw------- 1 sbbs sbbs 60 Dec 12 10:02 node.dab
Are those sufficient?
Only if you are modifying configuration files (running SCFG) as user 'sbbs'.
I am. I am also running sbbs from the /etc/init.d/sbbs SysV script, and it changes owner to sbbs, as I can see it in the log file.
start it this way if I want it able to contorls ports.
My OS default umask is 0002, umask in sbbs.ini is
077. Based on that, the setting of node.dab is correct, I think.
But - system still exhibits same behavior, minutes after re-creating
the node.dab file. I'll scfg , edit and change a setting, save and
exit. node status changes to
'Waiting for connection [R]'
And the perms on node.dab after that change are the same? Are you running SCFG as 'sbbs'?
yes and yes.
Well, I'd like to see it fixed if there's a problem. But I'll need
more details about what's being run as what user.
ok.
Always as sbbs. sbbs user, sbbs group. sbbs.ini is also set to use
these values. The only time any other user gets involved, is when I
sudo to root to process the /etc/init.d/sbbs file.
Re: Re: nodes not recycling
By: Hemo to Digital Man on Mon Dec 12 2016 05:27 pm
Re: Re: nodes not recycling
By: Digital Man to Hemo on Mon Dec 12 2016 01:28 pm
In fact, if I stop and restart the sbbs daemon, the nodes all
ok.. this is the second time I've removed node.dab, the first time
But - system still exhibits same behavior, minutes after
re-creating the node.dab file. I'll scfg , edit and change a
setting, save and exit. node status changes to
'Waiting for connection [R]'
And the perms on node.dab after that change are the same? Are you
running SCFG as 'sbbs'?
yes and yes.
So how are you running SCFG?
Re: Re: nodes not recycling
By: Digital Man to Hemo on Mon Dec 12 2016 05:00 pm
Re: Re: nodes not recycling
By: Hemo to Digital Man on Mon Dec 12 2016 05:27 pm
Re: Re: nodes not recycling
By: Digital Man to Hemo on Mon Dec 12 2016 01:28 pm
In fact, if I stop and restart the sbbs daemon, the nodes all
ok.. this is the second time I've removed node.dab, the first time >>> But - system still exhibits same behavior, minutes after
re-creating the node.dab file. I'll scfg , edit and change a
setting, save and exit. node status changes to
'Waiting for connection [R]'
And the perms on node.dab after that change are the same? Are you DM>> running SCFG as 'sbbs'?
yes and yes.
So how are you running SCFG?
If I am on the bbs sytem, I login to the gui using username 'sbbs'. The account has the following added to the .bash_profile script:
export SBBSCTRL=/sbbs/ctrl
The sbbs account 'home' is in /home/sbbs, and I have a physical folder anmes 'sbbs' in the root folder with permissions like so:
drwxrwx--- 20 sbbs sbbs 4096 Dec 9 22:22 sbbs
from the command line, I will type 'scfg' and the program will open an SDK window on my desktop. If I have umonitor running in a different window, I can immediately see the node status change to 'waiting for connection [R]' when I exit the scfg window.
The only other way I run scfg is from a ssh session if I log in to the bbs system from another box on my local network. Againrunning scfg from the command line, though in this session I may run it as 'scfg -iF' if I'm not running an X server on the box I am originating from.
Digital Man wrote to Hemo <=-
Re: Re: nodes not recycling
By: Hemo to Digital Man on Mon Dec 12 2016 08:41 pm
The sbbs account 'home' is in /home/sbbs, and I have a physical folder anmes 'sbbs' in the root folder with permissions like so:
drwxrwx--- 20 sbbs sbbs 4096 Dec 9 22:22 sbbs
from the command line, I will type 'scfg' and the program will open an SDK window on my desktop. If I have umonitor running in a different window, I can immediately see the node status change to 'waiting for connection [R]' when I exit the scfg window.
That's what you should see. If the servers aren't recycling, is it possible you have the NO_RECYCLE option set in your ctrl/sbbs.ini file? Does touching the reycle semaphore file(s) cause a server recycle? http://wiki.synchro.net/config:semfiles
Digital Man wrote to Hemo <=-
Re: Re: nodes not recycling
By: Hemo to Digital Man on Mon Dec 12 2016 08:41 pm
The sbbs account 'home' is in /home/sbbs, and I have a physical folder anmes 'sbbs' in the root folder with permissions like so:
drwxrwx--- 20 sbbs sbbs 4096 Dec 9 22:22 sbbs
from the command line, I will type 'scfg' and the program will open an SDK window on my desktop. If I have umonitor running in a different window, I can immediately see the node status change to 'waiting for connection [R]' when I exit the scfg window.
That's what you should see. If the servers aren't recycling, is it possible you have the NO_RECYCLE option set in your ctrl/sbbs.ini file? Does touching the reycle semaphore file(s) cause a server recycle? http://wiki.synchro.net/config:semfiles
well. that was interesting. I do not have NO_RECYCLE present in the ctrl/sbbs.ini file. check.
I am doing tail -f /var/log/sbbs.log from one terminal window, I have umonitor running from another terminal,
and in a free terminal I tried touching a few files. umonitor reports all lines are idle. touch /sbbs/ctrl/recycle. nothing.
touch shutdown. poof. Synchronet shuts down. I restart things. touch /sbbs/data/qnet/vert.now - I see the call out almost immediately.
try the same with touching a few timed events and they fire off as well.
I try 'sudo /etc/init.d/sbbs reload', and now I see something in the /var/log/sbbs.log file:
Dec 13 12:10:03 agility synchronet: Got signal (1)
Dec 13 12:10:03 agility synchronet: Got HUP (rerun) signal
but that's it - just those two lines. The node status and umonitor still show 'Waiting for connection [R]' message.
'sudo /etc/init.d/sbbs restart' and I see things cycle down and up again in the log file, and node status is cleared to just 'Waiting for connection'.
weird stuff.
I'll be pulling latest CVS and re-compiling soon, will see if anything changes after..
Re: Re: nodes not recycling
By: Hemo to Digital Man on Tue Dec 13 2016 12:17 pm
Digital Man wrote to Hemo <=-I'll be pulling latest CVS and re-compiling soon, will see if anything
changes after..
I don't think any recent changes in CVS will have any effect. If you're running on old Linux kernel/distro, this is probably due to sbbs's change in effective user-id (using seteuid) after binding low-ports. You can either:
1. Upgrade your distro/kernel/pthread implementation to sometihng more recent (that includes /usr/include/sys/capability.h)
2. Don't have sbbs change the effective user-id (this may require running the BBS as root or not binding to low port numbers)
3. Build with DONT_BLAME_SYNCHRONET=1 (e.g. "gmake DONT_BLAME_SYNCHRONET=1"), but understand there are security issues with your distro's pthread implementation and setuid()
4. Live with not being able to recycle the BBS
Re: Re: nodes not recycling
By: Digital Man to Hemo on Tue Dec 13 2016 02:39 pm
Re: Re: nodes not recycling
By: Hemo to Digital Man on Tue Dec 13 2016 12:17 pm
Digital Man wrote to Hemo <=-I'll be pulling latest CVS and re-compiling soon, will see if anything
changes after..
I don't think any recent changes in CVS will have any effect. If you're running on old Linux kernel/distro, this is probably due to sbbs's change in effective user-id (using seteuid) after binding low-ports. You can either:
1. Upgrade your distro/kernel/pthread implementation to sometihng more recent (that includes /usr/include/sys/capability.h)
2. Don't have sbbs change the effective user-id (this may require running the BBS as root or not binding to low port numbers)
3. Build with DONT_BLAME_SYNCHRONET=1 (e.g. "gmake DONT_BLAME_SYNCHRONET=1"), but understand there are security issues with your distro's pthread implementation and setuid()
4. Live with not being able to recycle the BBS
I'm actually running on a more 'recent' version than I've tried in the past. So it worked on CentOS 5.4 and 5.8, but doesn't work on RHEL 6.8.
A few messages back I was saying I was okay with just restarting things to pick up changes, but then you mentioned you would like to fix it if it wasn't doing what it was supposed, so I went further to try and provide more info.
I'm still okay with restarting things. Don't really care as long as I know what I need to do to pick up changes I may have made to any configs.
If I ever figure it out, I'll let you know.
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495937:28:24 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,956 |