Package: bacula-director-pgsql
Version: 15.0.3-3

First, thank you very much for providing Bacula packages in Debian. I
use the packages often and I very appreciate your work.

I would like to report a problem with installing PostgreSQL and Bacula
Director in noninteractive mode. If perl package is not installed
before executing this command, the bacula-director-pgsql installation
fails with errors.

Here you can find full installation output:


# DEBIAN_FRONTEND=noninteractive /usr/bin/apt -y install postgresql
postgresql-contrib postgresql-client dbconfig-pgsql bacula-director
Note, selecting 'postgresql' instead of 'postgresql-contrib'
Upgrading:
  libgnutls30t64

Installing:
  bacula-director  dbconfig-pgsql  postgresql  postgresql-client

Installing dependencies:
  bacula-common          exim4-base            libfile-fcntllock-perl
libipc-run-perl  liblockfile1       libtypes-serialiser-perl
perl-modules-5.40         postgresql-common-dev
  bacula-common-pgsql    exim4-config          libgdbm-compat4t64
libjson-perl     libnsl2            libunbound8
postgresql-17             ssl-cert
  bacula-director-pgsql  exim4-daemon-light    libgnutls-dane0t64
libjson-xs-perl  libperl5.40        libz3-4
postgresql-client-17      sysstat
  bsd-mailx              libcommon-sense-perl  libidn12
libllvm19        libsensors-config  logrotate
postgresql-client-common
  dbconfig-common        libevent-2.1-7t64     libio-pty-perl
liblockfile-bin  libsensors5        perl
postgresql-common

Suggested packages:
  gdb         exim4-doc-html    spf-tools-perl  | c-compiler
perl-doc                      make
postgresql-doc-17
  bacula-doc  | exim4-doc-info  swaks           dns-root-data
libterm-readline-gnu-perl     libtap-harness-archive-perl  isag
  gawk        eximon4           gcc             lm-sensors     |
libterm-readline-perl-perl  postgresql-doc

Summary:
  Upgrading: 1, Installing: 42, Removing: 0, Not Upgrading: 86
  Download size: 69.3 MB
  Space needed: 296 MB / 1630 MB available

Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]
Get:2 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B]
Get:3 https://deb.debian.org/debian trixie/main amd64 bacula-common
amd64 15.0.3-3 [990 kB]
Get:4 https://deb.debian.org/debian trixie/main amd64
bacula-common-pgsql amd64 15.0.3-3 [14.7 kB]
Get:5 https://deb.debian.org/debian trixie/main amd64 dbconfig-common
all 2.0.25 [604 kB]
Get:6 https://deb.debian.org/debian trixie/main amd64
perl-modules-5.40 all 5.40.1-6 [3019 kB]
Get:7 https://deb.debian.org/debian trixie/main amd64
libgdbm-compat4t64 amd64 1.24-2 [50.3 kB]
Get:8 https://deb.debian.org/debian trixie/main amd64 libperl5.40
amd64 5.40.1-6 [4341 kB]
Get:9 https://deb.debian.org/debian trixie/main amd64 perl amd64
5.40.1-6 [267 kB]
Get:10 https://deb.debian.org/debian trixie/main amd64
postgresql-client-common all 278 [47.1 kB]
Get:11 https://deb.debian.org/debian trixie/main amd64
postgresql-client all 17+278 [14.0 kB]
Get:12 https://deb.debian.org/debian-security trixie-security/main
amd64 postgresql-client-17 amd64 17.10-0+deb13u1 [2052 kB]
Get:13 https://deb.debian.org/debian trixie/main amd64 dbconfig-pgsql
all 2.0.25 [1072 B]
Get:14 https://deb.debian.org/debian trixie/main amd64
bacula-director-pgsql all 15.0.3-3 [159 kB]
Get:15 https://deb.debian.org/debian trixie/main amd64 exim4-config
all 4.98.2-1+deb13u2 [250 kB]
Get:16 https://deb.debian.org/debian trixie/main amd64
libfile-fcntllock-perl amd64 0.22-4+b4 [34.6 kB]
Get:17 https://deb.debian.org/debian trixie/main amd64 exim4-base
amd64 4.98.2-1+deb13u2 [1142 kB]
Get:18 https://deb.debian.org/debian-security trixie-security/main
amd64 libgnutls30t64 amd64 3.8.9-3+deb13u4 [1469 kB]
Get:19 https://deb.debian.org/debian trixie/main amd64
libevent-2.1-7t64 amd64 2.1.12-stable-10+b1 [182 kB]
Get:20 https://deb.debian.org/debian trixie/main amd64 libunbound8
amd64 1.22.0-2+deb13u2 [598 kB]
Get:21 https://deb.debian.org/debian-security trixie-security/main
amd64 libgnutls-dane0t64 amd64 3.8.9-3+deb13u4 [456 kB]
Get:22 https://deb.debian.org/debian trixie/main amd64 libidn12 amd64
1.43-1 [47.7 kB]
Get:23 https://deb.debian.org/debian trixie/main amd64 libnsl2 amd64
1.3.0-3+b3 [40.6 kB]
Get:24 https://deb.debian.org/debian trixie/main amd64
exim4-daemon-light amd64 4.98.2-1+deb13u2 [631 kB]
Get:25 https://deb.debian.org/debian trixie/main amd64 liblockfile-bin
amd64 1.17-2 [15.8 kB]
Get:26 https://deb.debian.org/debian trixie/main amd64 liblockfile1
amd64 1.17-2 [11.9 kB]
Get:27 https://deb.debian.org/debian trixie/main amd64 bsd-mailx amd64
8.1.2-0.20220412cvs-1.1 [82.2 kB]
Get:28 https://deb.debian.org/debian trixie/main amd64 bacula-director
amd64 15.0.3-3 [375 kB]
Get:29 https://deb.debian.org/debian trixie/main amd64 libjson-perl
all 4.10000-1 [87.5 kB]
Get:30 https://deb.debian.org/debian trixie/main amd64 libio-pty-perl
amd64 1:1.20-1+b3 [34.3 kB]
Get:31 https://deb.debian.org/debian trixie/main amd64 libipc-run-perl
all 20231003.0-2 [101 kB]
Get:32 https://deb.debian.org/debian trixie/main amd64
postgresql-common-dev all 278 [72.4 kB]
Get:33 https://deb.debian.org/debian trixie/main amd64 ssl-cert all
1.1.3 [16.8 kB]
Get:34 https://deb.debian.org/debian trixie/main amd64
postgresql-common all 278 [112 kB]
Get:35 https://deb.debian.org/debian trixie/main amd64 logrotate amd64
3.22.0-1 [62.0 kB]
Get:36 https://deb.debian.org/debian trixie/main amd64
libcommon-sense-perl amd64 3.75-3+b5 [22.9 kB]
Get:37 https://deb.debian.org/debian trixie/main amd64
libtypes-serialiser-perl all 1.01-1 [12.2 kB]
Get:38 https://deb.debian.org/debian trixie/main amd64 libjson-xs-perl
amd64 4.040-1~deb13u1 [91.0 kB]
Get:39 https://deb.debian.org/debian trixie/main amd64 libz3-4 amd64
4.13.3-1 [8560 kB]
Get:40 https://deb.debian.org/debian trixie/main amd64 libllvm19 amd64
1:19.1.7-3+b1 [26.0 MB]
Get:41 https://deb.debian.org/debian trixie/main amd64
libsensors-config all 1:3.6.2-2 [16.2 kB]
Get:42 https://deb.debian.org/debian trixie/main amd64 libsensors5
amd64 1:3.6.2-2 [37.5 kB]
Get:43 https://deb.debian.org/debian-security trixie-security/main
amd64 postgresql-17 amd64 17.10-0+deb13u1 [16.6 MB]
Get:44 https://deb.debian.org/debian trixie/main amd64 postgresql all
17+278 [16.7 kB]
Get:45 https://deb.debian.org/debian trixie/main amd64 sysstat amd64
12.7.5-2 [623 kB]
Fetched 69.3 MB in 7s (9754 kB/s)
apt-listchanges: Reading changelogs...
Extracting templates from packages: 100%
Preconfiguring packages ...
/var/cache/debconf/tmp.ci/postgresql.config.Trzhwd: 12: pg_lsclusters: not found
Selecting previously unselected package bacula-common.
(Reading database ... 32450 files and directories currently installed.)
Preparing to unpack .../00-bacula-common_15.0.3-3_amd64.deb ...
Adding user 'bacula'... Ok.
Unpacking bacula-common (15.0.3-3) ...
Selecting previously unselected package bacula-common-pgsql.
Preparing to unpack .../01-bacula-common-pgsql_15.0.3-3_amd64.deb ...
Unpacking bacula-common-pgsql (15.0.3-3) ...
Selecting previously unselected package dbconfig-common.
Preparing to unpack .../02-dbconfig-common_2.0.25_all.deb ...
Unpacking dbconfig-common (2.0.25) ...
Selecting previously unselected package perl-modules-5.40.
Preparing to unpack .../03-perl-modules-5.40_5.40.1-6_all.deb ...
Unpacking perl-modules-5.40 (5.40.1-6) ...
Selecting previously unselected package libgdbm-compat4t64:amd64.
Preparing to unpack .../04-libgdbm-compat4t64_1.24-2_amd64.deb ...
Unpacking libgdbm-compat4t64:amd64 (1.24-2) ...
Selecting previously unselected package libperl5.40:amd64.
Preparing to unpack .../05-libperl5.40_5.40.1-6_amd64.deb ...
Unpacking libperl5.40:amd64 (5.40.1-6) ...
Selecting previously unselected package perl.
Preparing to unpack .../06-perl_5.40.1-6_amd64.deb ...
Unpacking perl (5.40.1-6) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../07-postgresql-client-common_278_all.deb ...
Unpacking postgresql-client-common (278) ...
Selecting previously unselected package postgresql-client-17.
Preparing to unpack .../08-postgresql-client-17_17.10-0+deb13u1_amd64.deb ...
Unpacking postgresql-client-17 (17.10-0+deb13u1) ...
Selecting previously unselected package postgresql-client.
Preparing to unpack .../09-postgresql-client_17+278_all.deb ...
Unpacking postgresql-client (17+278) ...
Selecting previously unselected package dbconfig-pgsql.
Preparing to unpack .../10-dbconfig-pgsql_2.0.25_all.deb ...
Unpacking dbconfig-pgsql (2.0.25) ...
Selecting previously unselected package bacula-director-pgsql.
Preparing to unpack .../11-bacula-director-pgsql_15.0.3-3_all.deb ...
Unpacking bacula-director-pgsql (15.0.3-3) ...
Selecting previously unselected package exim4-config.
Preparing to unpack .../12-exim4-config_4.98.2-1+deb13u2_all.deb ...
Unpacking exim4-config (4.98.2-1+deb13u2) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../13-libfile-fcntllock-perl_0.22-4+b4_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-4+b4) ...
Selecting previously unselected package exim4-base.
Preparing to unpack .../14-exim4-base_4.98.2-1+deb13u2_amd64.deb ...
Unpacking exim4-base (4.98.2-1+deb13u2) ...
Preparing to unpack .../15-libgnutls30t64_3.8.9-3+deb13u4_amd64.deb ...
Unpacking libgnutls30t64:amd64 (3.8.9-3+deb13u4) over (3.8.9-3) ...
Selecting previously unselected package libevent-2.1-7t64:amd64.
Preparing to unpack .../16-libevent-2.1-7t64_2.1.12-stable-10+b1_amd64.deb ...
Unpacking libevent-2.1-7t64:amd64 (2.1.12-stable-10+b1) ...
Selecting previously unselected package libunbound8:amd64.
Preparing to unpack .../17-libunbound8_1.22.0-2+deb13u2_amd64.deb ...
Unpacking libunbound8:amd64 (1.22.0-2+deb13u2) ...
Selecting previously unselected package libgnutls-dane0t64:amd64.
Preparing to unpack .../18-libgnutls-dane0t64_3.8.9-3+deb13u4_amd64.deb ...
Unpacking libgnutls-dane0t64:amd64 (3.8.9-3+deb13u4) ...
Selecting previously unselected package libidn12:amd64.
Preparing to unpack .../19-libidn12_1.43-1_amd64.deb ...
Unpacking libidn12:amd64 (1.43-1) ...
Selecting previously unselected package libnsl2:amd64.
Preparing to unpack .../20-libnsl2_1.3.0-3+b3_amd64.deb ...
Unpacking libnsl2:amd64 (1.3.0-3+b3) ...
Selecting previously unselected package exim4-daemon-light.
Preparing to unpack .../21-exim4-daemon-light_4.98.2-1+deb13u2_amd64.deb ...
Unpacking exim4-daemon-light (4.98.2-1+deb13u2) ...
Selecting previously unselected package liblockfile-bin.
Preparing to unpack .../22-liblockfile-bin_1.17-2_amd64.deb ...
Unpacking liblockfile-bin (1.17-2) ...
Selecting previously unselected package liblockfile1:amd64.
Preparing to unpack .../23-liblockfile1_1.17-2_amd64.deb ...
Unpacking liblockfile1:amd64 (1.17-2) ...
Selecting previously unselected package bsd-mailx.
Preparing to unpack .../24-bsd-mailx_8.1.2-0.20220412cvs-1.1_amd64.deb ...
Unpacking bsd-mailx (8.1.2-0.20220412cvs-1.1) ...
Selecting previously unselected package bacula-director.
Preparing to unpack .../25-bacula-director_15.0.3-3_amd64.deb ...
Unpacking bacula-director (15.0.3-3) ...
Selecting previously unselected package libjson-perl.
Preparing to unpack .../26-libjson-perl_4.10000-1_all.deb ...
Unpacking libjson-perl (4.10000-1) ...
Selecting previously unselected package libio-pty-perl.
Preparing to unpack .../27-libio-pty-perl_1%3a1.20-1+b3_amd64.deb ...
Unpacking libio-pty-perl (1:1.20-1+b3) ...
Selecting previously unselected package libipc-run-perl.
Preparing to unpack .../28-libipc-run-perl_20231003.0-2_all.deb ...
Unpacking libipc-run-perl (20231003.0-2) ...
Selecting previously unselected package postgresql-common-dev.
Preparing to unpack .../29-postgresql-common-dev_278_all.deb ...
Unpacking postgresql-common-dev (278) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../30-ssl-cert_1.1.3_all.deb ...
Unpacking ssl-cert (1.1.3) ...
Selecting previously unselected package postgresql-common.
Preparing to unpack .../31-postgresql-common_278_all.deb ...
Adding 'diversion of /usr/bin/pg_config to
/usr/bin/pg_config.libpq-dev by postgresql-common'
Unpacking postgresql-common (278) ...
Selecting previously unselected package logrotate.
Preparing to unpack .../32-logrotate_3.22.0-1_amd64.deb ...
Unpacking logrotate (3.22.0-1) ...
Selecting previously unselected package libcommon-sense-perl:amd64.
Preparing to unpack .../33-libcommon-sense-perl_3.75-3+b5_amd64.deb ...
Unpacking libcommon-sense-perl:amd64 (3.75-3+b5) ...
Selecting previously unselected package libtypes-serialiser-perl.
Preparing to unpack .../34-libtypes-serialiser-perl_1.01-1_all.deb ...
Unpacking libtypes-serialiser-perl (1.01-1) ...
Selecting previously unselected package libjson-xs-perl.
Preparing to unpack .../35-libjson-xs-perl_4.040-1~deb13u1_amd64.deb ...
Unpacking libjson-xs-perl (4.040-1~deb13u1) ...
Selecting previously unselected package libz3-4:amd64.
Preparing to unpack .../36-libz3-4_4.13.3-1_amd64.deb ...
Unpacking libz3-4:amd64 (4.13.3-1) ...
Selecting previously unselected package libllvm19:amd64.
Preparing to unpack .../37-libllvm19_1%3a19.1.7-3+b1_amd64.deb ...
Unpacking libllvm19:amd64 (1:19.1.7-3+b1) ...
Selecting previously unselected package libsensors-config.
Preparing to unpack .../38-libsensors-config_1%3a3.6.2-2_all.deb ...
Unpacking libsensors-config (1:3.6.2-2) ...
Selecting previously unselected package libsensors5:amd64.
Preparing to unpack .../39-libsensors5_1%3a3.6.2-2_amd64.deb ...
Unpacking libsensors5:amd64 (1:3.6.2-2) ...
Selecting previously unselected package postgresql-17.
Preparing to unpack .../40-postgresql-17_17.10-0+deb13u1_amd64.deb ...
Unpacking postgresql-17 (17.10-0+deb13u1) ...
Selecting previously unselected package postgresql.
Preparing to unpack .../41-postgresql_17+278_all.deb ...
Unpacking postgresql (17+278) ...
Selecting previously unselected package sysstat.
Preparing to unpack .../42-sysstat_12.7.5-2_amd64.deb ...
Unpacking sysstat (12.7.5-2) ...
Setting up libgnutls30t64:amd64 (3.8.9-3+deb13u4) ...
Setting up logrotate (3.22.0-1) ...
Created symlink
'/etc/systemd/system/timers.target.wants/logrotate.timer' →
'/usr/lib/systemd/system/logrotate.timer'.
logrotate.service is a disabled or a static unit, not starting it.
Setting up liblockfile-bin (1.17-2) ...
Setting up libgdbm-compat4t64:amd64 (1.24-2) ...
Setting up libsensors-config (1:3.6.2-2) ...
Setting up libevent-2.1-7t64:amd64 (2.1.12-stable-10+b1) ...
Setting up dbconfig-common (2.0.25) ...
Creating config file /etc/dbconfig-common/config with new version
Setting up libz3-4:amd64 (4.13.3-1) ...
Setting up libunbound8:amd64 (1.22.0-2+deb13u2) ...
Setting up bacula-common (15.0.3-3) ...
Setting up libgnutls-dane0t64:amd64 (3.8.9-3+deb13u4) ...
Setting up ssl-cert (1.1.3) ...
Setting up libidn12:amd64 (1.43-1) ...
Setting up libsensors5:amd64 (1:3.6.2-2) ...
Setting up perl-modules-5.40 (5.40.1-6) ...
Setting up exim4-config (4.98.2-1+deb13u2) ...
Adding system-user for exim (v4)
Setting up libnsl2:amd64 (1.3.0-3+b3) ...
Setting up liblockfile1:amd64 (1.17-2) ...
Setting up sysstat (12.7.5-2) ...
Creating config file /etc/default/sysstat with new version
update-alternatives: using /usr/bin/sar.sysstat to provide
/usr/bin/sar (sar) in auto mode
Created symlink
'/etc/systemd/system/sysstat.service.wants/sysstat-collect.timer' →
'/usr/lib/systemd/system/sysstat-collect.timer'.
Created symlink
'/etc/systemd/system/sysstat.service.wants/sysstat-rotate.timer' →
'/usr/lib/systemd/system/sysstat-rotate.timer'.
Created symlink
'/etc/systemd/system/sysstat.service.wants/sysstat-summary.timer' →
'/usr/lib/systemd/system/sysstat-summary.timer'.
Created symlink
'/etc/systemd/system/multi-user.target.wants/sysstat.service' →
'/usr/lib/systemd/system/sysstat.service'.
Setting up libllvm19:amd64 (1:19.1.7-3+b1) ...
Setting up bacula-common-pgsql (15.0.3-3) ...
Setting up libperl5.40:amd64 (5.40.1-6) ...
Setting up perl (5.40.1-6) ...
Setting up libjson-perl (4.10000-1) ...
Setting up postgresql-client-common (278) ...
Setting up libio-pty-perl (1:1.20-1+b3) ...
Setting up libfile-fcntllock-perl (0.22-4+b4) ...
Setting up postgresql-client-17 (17.10-0+deb13u1) ...
update-alternatives: using /usr/share/postgresql/17/man/man1/psql.1.gz
to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up dbconfig-pgsql (2.0.25) ...
Setting up libcommon-sense-perl:amd64 (3.75-3+b5) ...
Setting up libipc-run-perl (20231003.0-2) ...
Setting up libtypes-serialiser-perl (1.01-1) ...
Setting up postgresql-common-dev (278) ...
Setting up libjson-xs-perl (4.040-1~deb13u1) ...
Setting up bacula-director-pgsql (15.0.3-3) ...
dbconfig-common: writing config to
/etc/dbconfig-common/bacula-director-pgsql.conf
Creating config file /etc/dbconfig-common/bacula-director-pgsql.conf
with new version
chown: invalid user: ‘postgres’
unable to connect to postgresql server.
error encountered creating user:
runuser: user postgres does not exist or the user entry does not
contain all the required fields
dbconfig-common: bacula-director-pgsql configure: noninteractive fail.
dbconfig-common: bacula-director-pgsql configure: ignoring errors from
here forwards
populating database via administrative sql...  done.
populating database via sql...  done.
dbconfig-common: flushing administrative password
Setting up exim4-base (4.98.2-1+deb13u2) ...
exim: DB upgrade, deleting hints-db
Created symlink
'/etc/systemd/system/timers.target.wants/exim4-base.timer' →
'/usr/lib/systemd/system/exim4-base.timer'.
exim4-base.service is a disabled or a static unit, not starting it.
Setting up postgresql-client (17+278) ...
Setting up postgresql-common (278) ...
Creating config file /etc/postgresql-common/createcluster.conf with new version
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Created symlink
'/etc/systemd/system/multi-user.target.wants/postgresql.service' →
'/usr/lib/systemd/system/postgresql.service'.
Setting up exim4-daemon-light (4.98.2-1+deb13u2) ...
Created symlink
'/etc/systemd/system/multi-user.target.wants/exim4.service' →
'/usr/lib/systemd/system/exim4.service'.
Setting up postgresql-17 (17.10-0+deb13u1) ...
Creating new PostgreSQL cluster 17/main ...
/usr/lib/postgresql/17/bin/initdb -D /var/lib/postgresql/17/main
--auth-local peer --auth-host scram-sha-256 --no-instructions
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/17/main ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default "max_connections" ... 100
selecting default "shared_buffers" ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
Setting up bsd-mailx (8.1.2-0.20220412cvs-1.1) ...
update-alternatives: using /usr/bin/bsd-mailx to provide
/usr/bin/mailx (mailx) in auto mode
Setting up bacula-director (15.0.3-3) ...
Creating config file /etc/default/bacula-dir with new version
Creating config file /etc/bacula/bacula-dir.conf with new version
Creating config file /etc/bacula/scripts/delete_catalog_backup with new version
Creating config file /etc/bacula/scripts/make_catalog_backup with new version
Created symlink '/etc/systemd/system/bacula-dir.service' →
'/usr/lib/systemd/system/bacula-director.service'.
Created symlink
'/etc/systemd/system/multi-user.target.wants/bacula-director.service'
→ '/usr/lib/systemd/system/bacula-director.service'.
Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 148.
Setting up postgresql (17+278) ...
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for libc-bin (2.41-10) ...


If perl package is installed, the same command finishes successfully
and without any error. To install perl it I use:

apt install perl

This has been checked using Debian 13 Trixie.

Thank you in advance for your help with fixing it.

Best regards,
Marcin Haba (gani)

Reply via email to