From Newsgroup: alt.bbs.synchronet
Hi, I am installing a brand new BBS under Debian. No matter what I do, the "ExecStartPre" keeps tripping me up. I ended up trying to keep it simple and put everything in /sbbs instead of another location and did the systemctl configuration. I was getting an error about not finding the src so I changed it to /sbbs/repo/src since there is where it seems to be now:
ExecStartPre=/sbin/setcap 'cap_net_bind_service=+ep' /sbbs/repo/src/sbbs3/gcc.linux.*.exe.*/sbbs
Now when I start it, I get this:
Sep 24 09:20:15 bbs systemd[1]: Starting Synchronet BBS service...
Sep 24 09:20:15 bbs setcap[21466]: Failed to set capabilities on file `/sbbs/repo/src/sbbs3/gcc.linux.*.exe.*/sbbs' (No such file or directory) Sep 24 09:20:15 bbs setcap[21466]: The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file Sep 24 09:20:15 bbs systemd[1]: sbbs.service: Control process exited, code=exited, status=1/FAILURE
Sep 24 09:20:15 bbs systemd[1]: sbbs.service: Failed with result 'exit-code'. Sep 24 09:20:15 bbs systemd[1]: Failed to start Synchronet BBS service.
And looking at the file, it exists:
root@bbs:/# ls -l /sbbs/repo/src/sbbs3/gcc.linux.*.exe.*/sbbs
-rwxr-xr-x 1 sbbs sbbs 114496 Sep 24 08:26 /sbbs/repo/src/sbbs3/gcc.linux.x64.exe.release/sbbs
Any ideas? Thanks
If you want to keep in your service file, you could try removing the wildcards from the /path/to/sbbs.
From Newsgroup: alt.bbs.synchronet
On Thursday, September 24, 2020 at 2:00:22 PM UTC-4, Digital Man wrote:
If you want to keep in your service file, you could try removing the wildcards from the /path/to/sbbs.
Thanks, that helped and I was able to start the BBS.
Now I load uedit to go > and create a user, as soon as I click to add user > it segfaults:
From Newsgroup: alt.bbs.synchronet
Further info:
__strnlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:117
117
../sysdeps/x86_64/multiarch/../strlen.S: No such file or directory.
(gdb) bt
#0 __strnlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:117
#1 0x00007ffff7c895be in __strncpy_sse2 (s1=0x7fffffff0ba4 "", s2=0x0, n=64) at ../string/strncpy.c:29
#2 0x0000555555579a19 in createdefaults ()
#3 0x000055555555c450 in main ()
(gdb) B,#F/
I made two suggestions. It'd be helpful to know *which* of those suggestions helped
From Newsgroup: alt.bbs.synchronet
Just as a final note, I ended up making this change to get it to bind to lower ports:
ExecStartPre=sudo setcap 'cap_net_bind_service=+ep' /home/sbbs/sbbs/repo/src/sbbs3/gcc.linux.x64.exe.release/sbbs
The important part there is adding "repo/src". Also since I manually added the systemctl file, I think it better lives in /etc/systemd/system/sbbs.service instead of /lib/systemd/system/sbbs.service
Both of these changes might be good for http://wiki.synchro.net/howto:systemd
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 585 |
Nodes: | 8 (0 / 8) |
Uptime: | 26:59:07 |
Calls: | 10,757 |
Files: | 5 |
Messages: | 452,126 |