apnscp-bacula on Rocky 10 fails

~]# yum install -y apnscp-bacula
Last metadata expiration check: 0:00:21 ago on Sat 21 Feb 2026 03:21:50 AM UTC.
No match for argument: apnscp-bacula
Error: Unable to find a match: apnscp-bacula
[root@backup ~]# 

Needed to upgrade my backup server so it can backup the Rocky 10 servers which use Bacula 15. Cannot install the apnscp-bacula package as it’s not found.

What’s needed to make this work on Rocky 10?

Here’s how I fixed it :smiley:

apnscp-bacula]# dnf install -y rpm-build rpmdevtools

apnscp-bacula]# git clone https://github.com/apisnetworks/apnscp-bacula.git
apnscp-bacula]# cd apnscp-bacula

apnscp-bacula]# REPO_DIR="$(pwd)"

apnscp-bacula]# rpmbuild -bb apnscp-bacula.spec \
  --define "_sourcedir ${REPO_DIR}" \
  --define "apnscp_root /usr/local/apnscp" \
  --define "run_apnscp_addin %{nil}" \
  --define "_topdir ${REPO_DIR}/rpmbuild"

apnscp-bacula]# dnf install -y rpmbuild/RPMS/noarch/apnscp-bacula-1.0-9.el10.noarch.rpm
Last metadata expiration check: 0:01:31 ago on Sat 21 Feb 2026 03:46:33 AM UTC.
Dependencies resolved.
===================================================================================================================================================================================================================================================================================================================
 Package                                                                      Architecture                                                          Version                                                                      Repository                                                                   Size
===================================================================================================================================================================================================================================================================================================================
Installing:
 apnscp-bacula                                                                noarch                                                                1.0-9.el10                                                                   @commandline                                                                 30 k

Transaction Summary
===================================================================================================================================================================================================================================================================================================================
Install  1 Package

Total size: 30 k
Installed size: 58 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                                                           1/1 
  Installing       : apnscp-bacula-1.0-9.el10.noarch                                                                                                                                                                                                                                                           1/1 
warning: /etc/sysconfig/bacula-vars created as /etc/sysconfig/bacula-vars.rpmnew

  Running scriptlet: apnscp-bacula-1.0-9.el10.noarch                                                                                                                                                                                                                                                           1/1 
/var/tmp/rpm-tmp.BChfQ7: line 5: bacula-setup: command not found
warning: %post(apnscp-bacula-1.0-9.el10.noarch) scriptlet failed, exit status 127

Error in POSTIN scriptlet in rpm package apnscp-bacula

Installed:
  apnscp-bacula-1.0-9.el10.noarch                                                                                                                                                                                                                                                                                  

Complete!

The playbook exists:

[root@backup bacula-setup]# pwd
/usr/local/apnscp/resources/playbooks/addins/bacula-setup
[root@backup bacula-setup]# ll
total 0
drwxr-xr-x 2 apnscp apnscp 22 Feb 21 03:48 defaults
drwxr-xr-x 2 apnscp apnscp 26 Feb 21 03:48 files
drwxr-xr-x 2 apnscp apnscp 22 Feb 21 03:48 handlers
drwxr-xr-x 2 apnscp apnscp 66 Feb 21 03:48 tasks
drwxr-xr-x 2 apnscp apnscp 37 Feb 21 03:48 templates
]# cd /usr/local/apnscp/resources/playbooks/
[playbooks]# ansible-playbook addin.yml --extra-vars=addin=bacula-setup

This seems to have gotten bacula working.

The only remaining issue is mail, I’ve added to /etc/aliases but am not getting bacula emails. Is there a missing step?