• Help starting sbbs under linux

    From Michael Long@mplong@gmail.com to alt.bbs.synchronet on Thu Sep 24 06:28:08 2020
    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
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Digital Man@digital.man@vert.synchro.net.remove-1fe-this to Michael Long on Thu Sep 24 11:00:27 2020
    From Newsgroup: alt.bbs.synchronet

    To: Michael Long
    Re: Help starting sbbs under linux
    By: Michael Long to alt.bbs.synchronet on Thu Sep 24 2020 06:28 am

    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

    the src/sbbs3/GNUmakefile now has a "setcap" target (e.g. run "make setcap symlinks") - so you shouldn't need that in your service file.

    If you want to keep in your service file, you could try removing the wildcards from the /path/to/sbbs.

    digital man

    Synchronet/BBS Terminology Definition #28:
    FF = Form Feed (ASCII 12, Ctrl-L)
    Norco, CA WX: 82.7øF, 39.0% humidity, 2 mph WNW wind, 0.00 inches rain/24hrs --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Michael Long@mplong@gmail.com to alt.bbs.synchronet on Thu Sep 24 16:51:45 2020
    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:

    uedit[23479]: segfault at 0 ip 00007feae85ba3c0 sp 00007ffc80bd1f38 error 4 in libc-2.28.so[7feae8544000+148000]




    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Michael Long@mplong@gmail.com to alt.bbs.synchronet on Thu Sep 24 17:06:39 2020
    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/
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Digital Man@digital.man@vert.synchro.net.remove-cjk-this to Michael Long on Thu Sep 24 18:30:25 2020
    From Newsgroup: alt.bbs.synchronet

    To: Michael Long
    Re: Re: Help starting sbbs under linux
    By: Michael Long to alt.bbs.synchronet on Thu Sep 24 2020 04:51 pm

    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.

    I made two suggestions. It'd be helpful to know *which* of those suggestions helped.

    Now I load uedit to go > and create a user, as soon as I click to add user > it segfaults:

    I'll take a look-see. In the future, it's helpful if new issues are new message threads/subjects.


    digital man

    Rush quote #17:
    Leave out fiction, the fact is this friction will only be worn by persistence Norco, CA WX: 81.3øF, 39.0% humidity, 9 mph ENE wind, 0.00 inches rain/24hrs --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Digital Man@digital.man@vert.synchro.net.remove-4ck-this to Michael Long on Thu Sep 24 18:32:20 2020
    From Newsgroup: alt.bbs.synchronet

    To: Michael Long
    Re: Re: Help starting sbbs under linux
    By: Michael Long to alt.bbs.synchronet on Thu Sep 24 2020 05:06 pm

    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/

    Looks like uedit *really* expects you to have the SBBSCTRL environment variable set.

    digital man

    Rush quote #8:
    One likes to believe In the freedom of music...
    Norco, CA WX: 81.3øF, 39.0% humidity, 9 mph ENE wind, 0.00 inches rain/24hrs --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Michael Long@mplong@gmail.com to alt.bbs.synchronet on Thu Sep 24 19:05:28 2020
    From Newsgroup: alt.bbs.synchronet

    I made two suggestions. It'd be helpful to know *which* of those suggestions helped

    I removed the pre line from the service file, and that let it start ok
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Michael Long@mplong@gmail.com to alt.bbs.synchronet on Fri Sep 25 19:20:06 2020
    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

    Thanks for the help!
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Digital Man@digital.man@vert.synchro.net.remove-4vq-this to Michael Long on Fri Sep 25 20:59:16 2020
    From Newsgroup: alt.bbs.synchronet

    To: Michael Long
    Re: Re: Help starting sbbs under linux
    By: Michael Long to alt.bbs.synchronet on Fri Sep 25 2020 07:20 pm

    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

    I suppose, but since we have the "setcap" make target (as I stated earlier), neither of those should be necessary.

    digital man

    Rush quote #27:
    Growing up it all seems so one-sided, opinions all provided
    Norco, CA WX: 69.1øF, 74.0% humidity, 2 mph ESE wind, 0.00 inches rain/24hrs --- Synchronet 3.18c-Win32 NewsLink 1.113
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.19c-Linux NewsLink 1.113