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
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?
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.
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.
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.
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.
Do you have a user and/or group ID specified in the [unix] section of sbbs.ini?
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.
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.
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 88:31:11 |
Calls: | 2,069 |
Calls today: | 2 |
Files: | 11,134 |
Messages: | 946,759 |