UrBackup Server doesn't startup after update to 2.5.26_1 on TrueNAS (FreeBSD)

I had the same issue with the latest urbackup 2.5.26_1 pkg or port version in FreeBSD 13. It’s failed to start with Segmentation fault due to the cryptopp been removed. Here are the workaround I did to make it work (fall back to 2.5.26).

  1. Install urbackupserver latest pkg version : pkg install urbackup-server-2.5.26_1

  2. Get the source code of urbackup 2.5.26 (UrBackup - Install UrBackup server from sources) : wget https://hndl.urbackup.org/Server/2.5.26/urbackup-server-2.5.26.tar.gz

  3. Extract the source and go inside the dir : tar -zxvf urbackup-server-2.5.26.tar.gz && cd urbackup-server-2.5.26

  4. We want to enable and use the build-in cryptopp, configure with --enable-embedded-cryptopp : ./configure --enable-embedded-cryptopp

  5. Compile the source : make

  6. Backup existing urbackupsrv file before proceed because we are going to replace it with a new one. : cp /usr/local/bin/urbackupsrv /usr/local/bin/urbackupsrv.bak

  7. We don’t want to install the compiled version because we used the one from pkg, so just copy urbackupsrv file in the source dir to /usr/local/bin dir, overwritten the existing file. : cp urbackupsrv /usr/local/bin/

  8. Urbackup server from source used /usr/local/var dir, so link it to /var : cd /usr/local && ln -s /var var

  9. Done, start or restart Urbackup server.

  10. (Optional) At this point you probably want to lock the urbackup-server-2.5.26_1 pkg so it doesn’t get replace during pkg upgrade. : pkg lock urbackup-server-2.5.26_1

5 Likes