• libsbbs.so shared libraries not found error after new install

    From Mikek@1:103/705 to All on Thursday, January 16, 2025 11:05:40
    Hi all,

    I just had to reinstall SBBS on my raspberry Pi 400 (32 bit Raspberry Pi OS). Used the Git method as outlined on the Wiki. Set all the environment variables, updated the ld.so.conf and ran ldconfig.

    Executing /sbbs/exec/sbbs still throws /sbbs/exec/sbbs: error while loading shared libraries: libsbbs.so: cannot open shared object file: No such file or directory

    On the surface the setup looks like my old setup I had before the SD card failed. The only difference is the version I ran befoe was 1.82 and now I am on the latest.

    Any pointers on what could be wrong are appreciated.

    Thanks Mike
    SnoConeBBS
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Mikek on Thursday, January 16, 2025 11:54:35
    Re: libsbbs.so shared libraries not found error after new install
    By: Mikek to All on Thu Jan 16 2025 11:05 am

    Hi all,

    I just had to reinstall SBBS on my raspberry Pi 400 (32 bit Raspberry Pi OS). Used the Git method as outlined on the Wiki. Set all the environment variables, updated the ld.so.conf and ran ldconfig.

    Executing /sbbs/exec/sbbs still throws /sbbs/exec/sbbs: error while loading shared libraries: libsbbs.so: cannot open shared object file: No such file or directory

    On the surface the setup looks like my old setup I had before the SD card failed. The only difference is the version I ran befoe was 1.82 and now I am on the latest.

    Version 1.82 of what?

    Any pointers on what could be wrong are appreciated.

    Are you copying or symlinking the libs and executables to the sbbs/exec dir? Running 'ldd sbbs' will show you where it expects to find libsbbs.so. You can also set the LD_LIBRARY_PATH to point to where the lib file actually resides if needed:
    https://wiki.synchro.net/install:nix#errors
    --
    digital man (rob)

    Synchronet "Real Fact" #77:
    Rob Swindell still has dozens of BBS-related magazines in his possession
    Norco, CA WX: 64.6øF, 16.0% humidity, 6 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mikek@1:103/705 to Digital Man on Thursday, January 16, 2025 14:53:17
    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Thu Jan 16 2025 11:54 am

    Re: libsbbs.so shared libraries not found error after new install
    Hi, thanks for the quick reply,
    I am using symlinks
    I checked ldd sbbs and it expects the libsbbs.so and others in /sbbs/exec/ directory.
    Which is where the symlink sits.

    /sbbs/exec $ ldd sbbs
    linux-vdso.so.1 (0xbeece000)
    /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0xb6f76000)
    libsbbs.so => /sbbs/exec/libsbbs.so (0xb5cf2000)
    libftpsrvr.so => /sbbs/exec/libftpsrvr.so (0xb5cb7000)

    /sbbs/exec $ ls -al libsbbs.so
    lrwxrwxrwx 1 sbbs sbbs 60 Jan 16 09:50 libsbbs.so -> /sbbs/repo/src/sbbs3/gcc.linux.armv7l.lib.release/libsbbs.so

    /sbbs/exec $ echo $LD_LIBRARY_PATH
    /sbbs/exec

    I did check the Wiki, which is where I found to set the LD_LIBRARY_PATH.

    thanks again

    Mike
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Mikek on Thursday, January 16, 2025 15:09:00
    Re: libsbbs.so shared libraries not found error after new install
    By: Mikek to Digital Man on Thu Jan 16 2025 02:53 pm

    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Thu Jan 16 2025 11:54 am

    Re: libsbbs.so shared libraries not found error after new install
    Hi, thanks for the quick reply,
    I am using symlinks
    I checked ldd sbbs and it expects the libsbbs.so and others in /sbbs/exec/ directory.
    Which is where the symlink sits.

    /sbbs/exec $ ldd sbbs
    linux-vdso.so.1 (0xbeece000)
    /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0xb6f76000)
    libsbbs.so => /sbbs/exec/libsbbs.so (0xb5cf2000)
    libftpsrvr.so => /sbbs/exec/libftpsrvr.so (0xb5cb7000)

    /sbbs/exec $ ls -al libsbbs.so
    lrwxrwxrwx 1 sbbs sbbs 60 Jan 16 09:50 libsbbs.so -> /sbbs/repo/src/sbbs3/gcc.linux.armv7l.lib.release/libsbbs.so

    /sbbs/exec $ echo $LD_LIBRARY_PATH
    /sbbs/exec

    I did check the Wiki, which is where I found to set the LD_LIBRARY_PATH.

    There was a *very* recent change with how the paths for the libs are embedded in the binaries, so its possible there was a regression there. Normally, I would expect to see the full path to the build output directory (gcc.*.lib.*) in the 'ldd sbbs' results:

    $ ldd gcc.linux.x64.exe.debug/sbbs | grep libsbbs
    libsbbs.so => /home/rswindell/sbbs/src/sbbs3/gcc.linux.x64.exe.debug/../gcc.linux.x64.lib.debug/libsbbs.so (0x00007f5285400000)

    It's possible that finding the *symlink* in the expected directory isn't enough, so setting LD_LIBRARY_PATH to point to the build output dir for the lib*.so files instead would likely do the trick.

    Another option would be to 'make install' instead of 'make symlinks'.

    thanks again

    No problem. Just let us know how it works for ya,
    --
    digital man (rob)

    Rush quote #3:
    The men who hold high places must be the ones who start... Closer to the Heart Norco, CA WX: 63.5øF, 25.0% humidity, 9 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mikek@1:103/705 to Digital Man on Thursday, January 16, 2025 16:05:02
    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Thu Jan 16 2025 03:09 pm

    Thanks, setting the full path worked.

    I have a follow up question, I was able to recover all folders that were not symlinked ctrl, data, mods, node*, temp,
    is there a way to recover the logins and configurations I had on the older version so that I am not losing all users, status, etc.

    Thanks
    Mike

    Mike
    SysOp SnoConeBBS
    Snohomish, WA, USA
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Mikek on Thursday, January 16, 2025 16:11:03
    Re: libsbbs.so shared libraries not found error after new install
    By: Mikek to Digital Man on Thu Jan 16 2025 04:05 pm

    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Thu Jan 16 2025 03:09 pm

    Thanks, setting the full path worked.

    I have a follow up question, I was able to recover all folders that were not symlinked ctrl, data, mods, node*, temp,
    is there a way to recover the logins and configurations I had on the older version so that I am not losing all users, status, etc.

    Statistics should be automatically upgraded (e.g. */dsts.dab -> dsts.ini, */csts.dab -> cstat.tab ) when running v3.20. If you didn't have the old files in place when first running v3.20, then you'll want to delete the newer stats file formats (*/csts.tab, dsts.ini) and re-run sbbs.

    All ohter data and configurations should be upgraded by way of running 'jsexec update'.
    --
    digital man (rob)

    Steven Wright quote #21:
    Eagles may soar, but weasels don't get sucked into jet engines.
    Norco, CA WX: 60.5øF, 32.0% humidity, 8 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mikek@1:103/705 to Digital Man on Thursday, January 16, 2025 16:26:38
    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Thu Jan 16 2025 04:11 pm

    Thanks, since I did not have the data in place the steps would be
    * stop sbbs
    * backup existing data folder and other pertinent files
    * copy over the old data
    * run jsexec update.js
    * start sbbs

    Correct?

    Sorry for the n00b questions



    Mike
    SysOp SnoConeBBS
    Snohomish, WA, USA
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Mikek on Thursday, January 16, 2025 16:38:24
    Re: libsbbs.so shared libraries not found error after new install
    By: Mikek to Digital Man on Thu Jan 16 2025 04:26 pm

    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Thu Jan 16 2025 04:11 pm

    Thanks, since I did not have the data in place the steps would be
    * stop sbbs
    * backup existing data folder and other pertinent files
    * copy over the old data
    * run jsexec update.js
    * start sbbs

    Correct?

    For some of the files (statistics in particular) that would not be enough. You'd also need to delete */dsts.ini and */csts.tab files after stopping sbbs.
    --
    digital man (rob)

    Synchronet "Real Fact" #126:
    Synchronet feature requests: https://gitlab.synchro.net/main/sbbs/-/issues Norco, CA WX: 60.7øF, 30.0% humidity, 9 mph WSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mikek@1:103/705 to Digital Man on Friday, January 17, 2025 07:42:09
    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Thu Jan 16 2025 04:38 pm

    I went through the process, I was not able to find the statistics files.
    I copied over the data directory from the recovered data and ran jsexec update.js. That process took a while.

    When I try to log in with my old sysop user I get this error in the telnet session

    Unknown user
    !JavaScript login.js line 98: Error: Error -101 reading user number 1 Connection closed by foreign host.

    I have double checked permissions on the copied files and things look right to me. But probably missing something

    Thanks Mike

    Mike
    SysOp SnoConeBBS
    Snohomish, WA, USA
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Mikek on Friday, January 17, 2025 09:26:57
    Re: libsbbs.so shared libraries not found error after new install
    By: Mikek to Digital Man on Fri Jan 17 2025 07:42 am

    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Thu Jan 16 2025 04:38 pm

    I went through the process, I was not able to find the statistics files.
    I copied over the data directory from the recovered data and ran jsexec update.js. That process took a while.

    It should not normally 'take a while' - what was last displayed while it was taking a while?

    When I try to log in with my old sysop user I get this error in the telnet session

    Unknown user
    !JavaScript login.js line 98: Error: Error -101 reading user number 1 Connection closed by foreign host.

    I have double checked permissions on the copied files and things look right to me. But probably missing something

    Old versions of Synchronet used user.dat file. v3.20 and later uses user.tab file. It sounds like maybe your user.dat wasn't converted to user.tab (you already had the file because you run sbbs v3.20 first?). Anyway, executing exec/upgrade_to_v320 will force the userbase upgrade again, regardless if the user.tab file already exists or not. This assumes you still have the user.dat file.
    --
    digital man (rob)

    Synchronet "Real Fact" #83:
    Donations to the Synchronet project are welcome at wiki.synchro.net/donate Norco, CA WX: 54.6øF, 62.0% humidity, 0 mph SE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mikek@1:103/705 to Digital Man on Friday, January 17, 2025 10:48:01
    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Fri Jan 17 2025 09:26 am

    Thanks a lot for all the help.

    I ended up starting from a clean install, copying over the old sbbs.ini, data directory and msg file from the recovered install and running upgrade/update before starting Synchronet for the first time. That got me a lot further and the BBS now starts and I can login with my old non SysOp User and create new users.

    One thing is not working, I cannot login with my old SysOp user and Password and SCFG sees the install as a new install and is not picking up the fact that this is a configured installation at this point.
    Which file am I missing from the old install?

    thanks again for the help

    Mike

    Mike
    SysOp SnoConeBBS
    Snohomish, WA, USA
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Mikek on Friday, January 17, 2025 17:50:10
    Re: libsbbs.so shared libraries not found error after new install
    By: Mikek to Digital Man on Fri Jan 17 2025 10:48 am

    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Fri Jan 17 2025 09:26 am

    Thanks a lot for all the help.

    I ended up starting from a clean install, copying over the old sbbs.ini, data directory and msg file from the recovered install and running upgrade/update before starting Synchronet for the first time. That got me a lot further and the BBS now starts and I can login with my old non SysOp User and create new users.

    One thing is not working, I cannot login with my old SysOp user and Password and SCFG sees the install as a new install and is not picking up the fact that this is a configured installation at this point.
    Which file am I missing from the old install?

    main.cnf. You should've copied everything in the ctrl directory from your old install, not just the sbbs.ini and "msg file".
    --
    digital man (rob)

    This Is Spinal Tap quote #5:
    Nigel Tufnel: Authorities said... best leave it... unsolved.
    Norco, CA WX: 53.3øF, 69.0% humidity, 4 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mikek@1:103/705 to Digital Man on Tuesday, January 21, 2025 14:58:44
    Re: libsbbs.so shared libraries not found error after new install
    By: Digital Man to Mikek on Fri Jan 17 2025 05:50 pm

    Thanks, I will copy over the rest as well. I was worrying of overwriting something important.
    At this point SnoConeBBS is back online :)
    I have updated the entries in the sbbslist.json as well as there were now two entries for my server.
    Now I need to make sure the boards all sync and get back to setting up Fido finally.



    Mike
    SysOp SnoConeBBS
    Snohomish, WA, USA
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)