On Tue, 26 May 2026 at 07:11, Stefan Harbich <[email protected]> wrote: > > Hello Marcin, > Attached are the error messages. > During installation via Bacularis: > ... > bacularis-installation-error.txt > ... > During setup via Bacularis: > ... > bacularis-configurations-error.txt
Hello Stefan, Thanks for providing the outputs and your commands. This isn't output from Bacularis "Raw output" tab but I see where you are with the installation. For the bacularis-installation-error.txt, there are tries to initialize the Bacula catalog database. First you experienced permission denied error because you tried to execute script in /root directory using postgres user. Later, after moving this script, we see there syntax error from make_postgresql_tables.fixed. If you took this make_postgresql_tables script from Bacula Debian package, this is understandable behaviour because in make_postgresql_tables is a bug with using double dolar $$ in SQL script. When this script is executed, shell interpolates the dollars and puts own value there and we have a syntax error in SQL. This is not a Debian bug but a Bacula bug that later was fixed in Bacula, but in the Debian package is this not fixed version. Debian Bacula packages provide it but they do not use it. Debian packages use raw SQL script to initialize Bacula tables automatically and use the dbconfig framework for that, so the installation with Debian packages is this "syntax error" resistant. For the bacularis-configuration-error.txt, this comes from bacularis-api.log and here I see that you have defined sudo runas user and runas group and this causes the permission denied error: sudo -u "bacula" -g "bacula" /usr/sbin/bsdjson -c /etc/bacularis/API/config_jroi88nsdvv915ogUNt "-t" 2>&1/usr/share/bacularis/protected/vendor/bacularis/bacularis-api/API/Logs/bacularis-api.log: Config error: Cannot open config file "/etc/bacularis/API/config_jroi88nsdvv915ogUNt": Permission denied/usr/share/bacularis/protected/vendor/bacularis/bacularis-api/API/Logs/bacularis-api.log: Config error: Cannot open config file "/etc/bacularis/API/config_jroi88nsdvv915ogUNt": Permission denied These sudo runas options are advanced options and it is easy to set them incorrectly, specially for the configuration part as here. Bsdjson is executed as bacula:bacula but config_jroi88nsdvv915ogUNt is written by web server/PHP so it has the web server permissions that bacula:bacula is not able to read/write. If you want to use sudo runas, these permissions must match. For solving both problems I would propose to do the following: 1) install Bacula Director from Debian Trixie packages manually or via Bacularis in Initial Wizard. In both cases, this will create a PostgreSQL database automatically. 2) or if you prefer to initialize database self, the make_postgresql_tables script needs to be fixed manually 2) match permissions if you want to use sudo runas Good luck with it. Please let us know how it went. Best regards, Marcin Haba (gani) _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
