[pkg-bacula-devel] Bug#944763: bacula: The database postgres/sqlite/mysql is not created at installation
Johnny Geling
johnny.geling at gmail.com
Fri Nov 15 07:57:08 GMT 2019
Hello,
It also occurs with the stretch package, bacula version 7.4.4
/var/log/apt/term.log
Install: bacula-server:armhf (9.4.2-1~bpo9+1), bacula-fd:armhf
(9.4.2-1~bpo9+1, automatic), bacula-sd:armhf (9.4.2-1~bpo9+1),
bacula-common:armhf (9.4.2-1~bpo9+1, automatic), mtx:armhf (1.3.12-10,
automatic), bacula-common-pgsql:armhf (9.4.2-1~bpo9+1, automatic),
bacula-director:armhf (9.4.2-1~bpo9+1, automatic), bacula-bscan:armhf
(9.4.2-1~bpo9+1, automatic), postgresql-client:armhf (9.6+181+deb9u2,
automatic), bacula-client:armhf (9.4.2-1~bpo9+1),
bacula-director-pgsql:armhf (9.4.2-1~bpo9+1, automatic),
bacula-console:armhf (9.4.2-1~bpo9+1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
/var/log/apt/history.log
Log started: 2019-11-14 13:04:58
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 79951 files and directories currently installed.)
Preparing to unpack .../00-bacula-common_9.4.2-1~bpo9+1_armhf.deb ...
Unpacking bacula-common (9.4.2-1~bpo9+1) ...
Selecting previously unselected package bacula-common-pgsql.
Preparing to unpack .../01-bacula-common-pgsql_9.4.2-1~bpo9+1_armhf.deb ...
Unpacking bacula-common-pgsql (9.4.2-1~bpo9+1) ...
Preparing to unpack .../02-mtx_1.3.12-10_armhf.deb ...
Unpacking mtx (1.3.12-10) ...
Selecting previously unselected package bacula-sd.
Preparing to unpack .../03-bacula-sd_9.4.2-1~bpo9+1_armhf.deb ...
Unpacking bacula-sd (9.4.2-1~bpo9+1) ...
Selecting previously unselected package bacula-bscan.
Preparing to unpack .../04-bacula-bscan_9.4.2-1~bpo9+1_armhf.deb ...
Unpacking bacula-bscan (9.4.2-1~bpo9+1) ...
Selecting previously unselected package bacula-console.
Preparing to unpack .../05-bacula-console_9.4.2-1~bpo9+1_armhf.deb ...
Unpacking bacula-console (9.4.2-1~bpo9+1) ...
Selecting previously unselected package bacula-fd.
Preparing to unpack .../06-bacula-fd_9.4.2-1~bpo9+1_armhf.deb ...
Unpacking bacula-fd (9.4.2-1~bpo9+1) ...
Selecting previously unselected package bacula-client.
Preparing to unpack .../07-bacula-client_9.4.2-1~bpo9+1_all.deb ...
Unpacking bacula-client (9.4.2-1~bpo9+1) ...
Selecting previously unselected package postgresql-client.
Preparing to unpack .../08-postgresql-client_9.6+181+deb9u2_all.deb ...
Unpacking postgresql-client (9.6+181+deb9u2) ...
Selecting previously unselected package bacula-director-pgsql.
Preparing to unpack .../09-bacula-director-pgsql_9.4.2-1~bpo9+1_all.deb ...
Unpacking bacula-director-pgsql (9.4.2-1~bpo9+1) ...
Selecting previously unselected package bacula-director.
Preparing to unpack .../10-bacula-director_9.4.2-1~bpo9+1_armhf.deb ...
Unpacking bacula-director (9.4.2-1~bpo9+1) ...
Selecting previously unselected package bacula-server.
Preparing to unpack .../11-bacula-server_9.4.2-1~bpo9+1_all.deb ...
Unpacking bacula-server (9.4.2-1~bpo9+1) ...
Setting up postgresql-client (9.6+181+deb9u2) ...
Setting up bacula-common (9.4.2-1~bpo9+1) ...
Setting up bacula-fd (9.4.2-1~bpo9+1) ...
Creating config file /etc/default/bacula-fd with new version
Creating config file /etc/bacula/bacula-fd.conf with new version
Created symlink
/etc/systemd/system/multi-user.target.wants/bacula-fd.service →
/lib/systemd/system/bacula-fd.service.
Setting up bacula-console (9.4.2-1~bpo9+1) ...
[?1049h[1;42r[4l[?25l(B[m[37m[40m[1;42r[H[2J[1;1H[1m[37m[44m
[2;1H [3;1H [4;1H [5;1H [6;1H [7;1H [8;1H [9;1H [10;1H [11;1H
[12;1H [13;1H [14;1H [15;1H [16;1H [17;1H [18;1H [19;1H [20;1H
[21;1H [22;1H [23;1H [24;1H [25;1H [26;1H [27;1H [28;1H [29;1H
[30;1H [31;1H [32;1H [33;1H [34;1H [35;1H [36;1H [37;1H [38;1H
[39;1H [40;1H [41;1H [42;1H [42;121H [4h
[4l[1;1H(B[m[37m[44mPackage
configuration[13;4H[30m[47m┌─────────────────────────────────────────┤
[31mModified configuration file[30m
├─────────────────────────────────────────┐[14;4H│ A new version
(/tmp/bacula-console.conf.ucftmp-xww5pnyHQh) of configuration file
/etc/bacula/bconsole.conf is │[1m[37m[40m [15;4H(B[m[30m[47m│
available, but the version installed currently has been locally
modified. │[1m[37m[40m
[16;4H(B[m[30m[47m│ │[1m[37m[40m [17;4H(B[m[30m[47m│ What
do you want to do about modified configuration file bconsole.conf?
│[1m[37m[40m [18;4H(B[m[30m[47m│ │[1m[37m[40m
[19;4H(B[m[30m[47m│ install the package maintainer's version
│[1m[37m[40m [20;4H(B[m[30m[47m│ [37m[41mkeep the local
version currently installed [30m[47m │[1m[37m[40m
[21;4H(B[m[30m[47m│ show the differences between the versions
│[1m[37m[40m [22;4H(B[m[30m[47m│ show a side-by-side difference
between the versions │[1m[37m[40m
[23;4H(B[m[30m[47m│ show a 3-way
difference between available versions
│[1m[37m[40m [24;4H(B[m[30m[47m│ do a
3-way merge between available versions
(experimental) │[1m[37m[40m
[25;4H(B[m[30m[47m│ start a new shell to
examine the situation │[1m[37m[40m [26;4H(B[m[30m[47m│
│[1m[37m[40m [27;4H(B[m[30m[47m│ │[1m[37m[40m
[28;4H(B[m[30m[47m│ <Ok> │[1m[37m[40m [29;4H(B[m[30m[47m│
│[1m[37m[40m
[30;4H(B[m[30m[47m└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘[1m[37m[40m
[31;5H [20;32H(B[m[30m[47mkeep the local version currently
installed [21;32H[37m[41mshow the differences between
the versions [21;32H[30m[47mshow the differences
between the versions [22;32H[37m[41mshow a side-by-side difference
between the versions [22;32H[?12l[?25h[42;1H[40m(B[m[39;49m
[K
[?1049l[?1049h[1;42r[4l[?25l(B[m[37m[40m[1;42r[H[2J[1;1H[1m[37m[44m
[2;1H [3;1H [4;1H [5;1H [6;1H [7;1H [8;1H [9;1H [10;1H [11;1H
[12;1H [13;1H [14;1H [15;1H [16;1H [17;1H [18;1H [19;1H [20;1H
[21;1H [22;1H [23;1H [24;1H [25;1H [26;1H [27;1H [28;1H [29;1H
[30;1H [31;1H [32;1H [33;1H [34;1H [35;1H [36;1H [37;1H [38;1H
[39;1H [40;1H [41;1H [42;1H [42;121H [4h
[4l[1;1H(B[m[37m[44mPackage
configuration[10;15H[30m[47m┌──────────────────────────────┤
[31mModified configuration file[30m
├───────────────────────────────┐[11;15H│ │[1m[37m[40m
[12;15H(B[m[30m[47m│ Line by line differences between versions
│[1m[37m[40m [13;15H(B[m[30m[47m│ │[1m[37m[40m
[14;15H(B[m[30m[47m│ Old file: /dev/null │[1m[37m[40m
[15;15H(B[m[30m[47m│ New file:
/tmp/bacula-console.conf.ucftmp-xww5pnyHQh root.bacula 0640 2019-11-14
13:05:10 │[1m[37m[40m [16;15H(B[m[30m[47m│ │[1m[37m[40m
[17;15H(B[m[30m[47m│ > # │[1m[37m[40m
[18;15H(B[m[30m[47m│ > # Bacula User Agent (or Console)
Configuration File │[1m[37m[40m
[19;15H(B[m[30m[47m│ > # │[1m[37m[40m
[20;15H(B[m[30m[47m│ > # Copyright (C) 2000-2015 Kern Sibbald
│[1m[37m[40m [21;15H(B[m[30m[47m│ > # License: BSD 2-Clause;
see file LICENSE-FOSS │[1m[37m[40m [22;15H(B[m[30m[47m│ > #
│[1m[37m[40m [23;15H(B[m[30m[47m│ > │[1m[37m[40m
[24;15H(B[m[30m[47m│ > Director { │[1m[37m[40m
[25;15H(B[m[30m[47m│ > Name = server_new-dir │[1m[37m[40m
[26;15H(B[m[30m[47m│ > DIRport = 9101 │[1m[37m[40m
[27;15H(B[m[30m[47m│ > address = localhost │[1m[37m[40m
[28;15H(B[m[30m[47m│ > Password =
"vx3m9Gm9dmA4Rrf_rox4Dh7OXv3TAKXvx" │[1m[37m[40m
[29;15H(B[m[30m[47m│ > } │[1m[37m[40m [30;15H(B[m[30m[47m│
│[1m[37m[40m [31;15H(B[m[30m[47m│ [37m[41m<Ok>[30m[47m
│[1m[37m[40m [32;15H(B[m[30m[47m│ │[1m[37m[40m
[33;15H(B[m[30m[47m└────────────────────────────────────────────────────────────────────────────────────────────┘[1m[37m[40m
[34;16H [31;60H[?12l[?25h[42;1H(B[m[37m[40m(B[m[39;49m
[K
[?1049l[?1049h[1;42r[4l[?25l(B[m[37m[40m[1;42r[H[2J[1;1H[1m[37m[44m
[2;1H [3;1H [4;1H [5;1H [6;1H [7;1H [8;1H [9;1H [10;1H [11;1H
[12;1H [13;1H [14;1H [15;1H [16;1H [17;1H [18;1H [19;1H [20;1H
[21;1H [22;1H [23;1H [24;1H [25;1H [26;1H [27;1H [28;1H [29;1H
[30;1H [31;1H [32;1H [33;1H [34;1H [35;1H [36;1H [37;1H [38;1H
[39;1H [40;1H [41;1H [42;1H [42;121H [4h
[4l[1;1H(B[m[37m[44mPackage
configuration[13;4H[30m[47m┌─────────────────────────────────────────┤
[31mModified configuration file[30m
├─────────────────────────────────────────┐[14;4H│ A new version
(/tmp/bacula-console.conf.ucftmp-xww5pnyHQh) of configuration file
/etc/bacula/bconsole.conf is │[1m[37m[40m [15;4H(B[m[30m[47m│
available, but the version installed currently has been locally
modified. │[1m[37m[40m
[16;4H(B[m[30m[47m│ │[1m[37m[40m [17;4H(B[m[30m[47m│ What
do you want to do about modified configuration file bconsole.conf?
│[1m[37m[40m [18;4H(B[m[30m[47m│ │[1m[37m[40m
[19;4H(B[m[30m[47m│ install the package maintainer's version
│[1m[37m[40m [20;4H(B[m[30m[47m│ [37m[41mkeep the local
version currently installed [30m[47m │[1m[37m[40m
[21;4H(B[m[30m[47m│ show the differences between the versions
│[1m[37m[40m [22;4H(B[m[30m[47m│ show a side-by-side difference
between the versions │[1m[37m[40m
[23;4H(B[m[30m[47m│ show a 3-way
difference between available versions
│[1m[37m[40m [24;4H(B[m[30m[47m│ do a
3-way merge between available versions
(experimental) │[1m[37m[40m
[25;4H(B[m[30m[47m│ start a new shell to
examine the situation │[1m[37m[40m [26;4H(B[m[30m[47m│
│[1m[37m[40m [27;4H(B[m[30m[47m│ │[1m[37m[40m
[28;4H(B[m[30m[47m│ <Ok> │[1m[37m[40m [29;4H(B[m[30m[47m│
│[1m[37m[40m
[30;4H(B[m[30m[47m└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘[1m[37m[40m
[31;5H [20;32H[A(B[m[37m[41minstall the package maintainer's
version [20;32H[30m[47mkeep the local version
currently installed [19;32Hinstall the package
maintainer's version [20;32H[37m[41mkeep the local
version currently installed [20;32H[30m[47mkeep the local version
currently installed [21;32H[37m[41mshow the
differences between the versions
[21;32H[?12l[?25h[42;1H[40m(B[m[39;49m
[K
[?1049l[?1049h[1;42r[4l[?25l(B[m[37m[40m[1;42r[H[2J[1;1H[1m[37m[44m
[2;1H [3;1H [4;1H [5;1H [6;1H [7;1H [8;1H [9;1H [10;1H [11;1H
[12;1H [13;1H [14;1H [15;1H [16;1H [17;1H [18;1H [19;1H [20;1H
[21;1H [22;1H [23;1H [24;1H [25;1H [26;1H [27;1H [28;1H [29;1H
[30;1H [31;1H [32;1H [33;1H [34;1H [35;1H [36;1H [37;1H [38;1H
[39;1H [40;1H [41;1H [42;1H [42;121H [4h
[4l[1;1H(B[m[37m[44mPackage
configuration[10;18H[30m[47m┌───────────────────────────┤
[31mModified configuration file[30m
├────────────────────────────┐[11;18H│ │[1m[37m[40m
[12;18H(B[m[30m[47m│ Line by line differences between versions
│[1m[37m[40m [13;18H(B[m[30m[47m│ │[1m[37m[40m
[14;18H(B[m[30m[47m│ --- /dev/null │[1m[37m[40m
[15;18H(B[m[30m[47m│ +++ /tmp/bacula-console.conf.ucftmp-xww5pnyHQh
root.bacula 0640 2019-11-14 13:05:10 │[1m[37m[40m
[16;18H(B[m[30m[47m│ @@ -0,0 +1,13 @@ │[1m[37m[40m
[17;18H(B[m[30m[47m│ +# │[1m[37m[40m [18;18H(B[m[30m[47m│
+# Bacula User Agent (or Console) Configuration File │[1m[37m[40m
[19;18H(B[m[30m[47m│ +# │[1m[37m[40m [20;18H(B[m[30m[47m│
+# Copyright (C) 2000-2015 Kern Sibbald │[1m[37m[40m
[21;18H(B[m[30m[47m│ +# License: BSD 2-Clause; see file
LICENSE-FOSS │[1m[37m[40m
[22;18H(B[m[30m[47m│ +# │[1m[37m[40m [23;18H(B[m[30m[47m│ +
│[1m[37m[40m [24;18H(B[m[30m[47m│ +Director { │[1m[37m[40m
[25;18H(B[m[30m[47m│ + Name = server_new-dir │[1m[37m[40m
[26;18H(B[m[30m[47m│ + DIRport = 9101 │[1m[37m[40m
[27;18H(B[m[30m[47m│ + address = localhost │[1m[37m[40m
[28;18H(B[m[30m[47m│ + Password =
"vx3m9Gm9dmA4Rrf_rox4Dh7OXv3TAKXvx" │[1m[37m[40m
[29;18H(B[m[30m[47m│ +} │[1m[37m[40m [30;18H(B[m[30m[47m│
│[1m[37m[40m [31;18H(B[m[30m[47m│ [37m[41m<Ok>[30m[47m
│[1m[37m[40m [32;18H(B[m[30m[47m│ │[1m[37m[40m
[33;18H(B[m[30m[47m└──────────────────────────────────────────────────────────────────────────────────────┘[1m[37m[40m
[34;19H [31;60H[?12l[?25h[42;1H(B[m[37m[40m(B[m[39;49m
[K
[?1049l[?1049h[1;42r[4l[?25l(B[m[37m[40m[1;42r[H[2J[1;1H[1m[37m[44m
[2;1H [3;1H [4;1H [5;1H [6;1H [7;1H [8;1H [9;1H [10;1H [11;1H
[12;1H [13;1H [14;1H [15;1H [16;1H [17;1H [18;1H [19;1H [20;1H
[21;1H [22;1H [23;1H [24;1H [25;1H [26;1H [27;1H [28;1H [29;1H
[30;1H [31;1H [32;1H [33;1H [34;1H [35;1H [36;1H [37;1H [38;1H
[39;1H [40;1H [41;1H [42;1H [42;121H [4h
[4l[1;1H(B[m[37m[44mPackage
configuration[13;4H[30m[47m┌─────────────────────────────────────────┤
[31mModified configuration file[30m
├─────────────────────────────────────────┐[14;4H│ A new version
(/tmp/bacula-console.conf.ucftmp-xww5pnyHQh) of configuration file
/etc/bacula/bconsole.conf is │[1m[37m[40m [15;4H(B[m[30m[47m│
available, but the version installed currently has been locally
modified. │[1m[37m[40m
[16;4H(B[m[30m[47m│ │[1m[37m[40m [17;4H(B[m[30m[47m│ What
do you want to do about modified configuration file bconsole.conf?
│[1m[37m[40m [18;4H(B[m[30m[47m│ │[1m[37m[40m
[19;4H(B[m[30m[47m│ install the package maintainer's version
│[1m[37m[40m [20;4H(B[m[30m[47m│ [37m[41mkeep the local
version currently installed [30m[47m │[1m[37m[40m
[21;4H(B[m[30m[47m│ show the differences between the versions
│[1m[37m[40m [22;4H(B[m[30m[47m│ show a side-by-side difference
between the versions │[1m[37m[40m
[23;4H(B[m[30m[47m│ show a 3-way
difference between available versions
│[1m[37m[40m [24;4H(B[m[30m[47m│ do a
3-way merge between available versions
(experimental) │[1m[37m[40m
[25;4H(B[m[30m[47m│ start a new shell to
examine the situation │[1m[37m[40m [26;4H(B[m[30m[47m│
│[1m[37m[40m [27;4H(B[m[30m[47m│ │[1m[37m[40m
[28;4H(B[m[30m[47m│ <Ok> │[1m[37m[40m [29;4H(B[m[30m[47m│
│[1m[37m[40m
[30;4H(B[m[30m[47m└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘[1m[37m[40m
[31;5H [20;32H[A(B[m[37m[41minstall the package maintainer's
version [20;32H[30m[47mkeep the local version
currently installed [19;32H[?12l[?25h[42;1H[37m[40m(B[m[39;49m
[K
[?1049lReplacing config file /etc/bacula/bconsole.conf with new version
Processing triggers for systemd (232-25+deb9u12) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up mtx (1.3.12-10) ...
Setting up bacula-common-pgsql (9.4.2-1~bpo9+1) ...
Setting up bacula-sd (9.4.2-1~bpo9+1) ...
Creating config file /etc/default/bacula-sd with new version
Creating config file /etc/bacula/bacula-sd.conf with new version
Created symlink
/etc/systemd/system/multi-user.target.wants/bacula-sd.service →
/lib/systemd/system/bacula-sd.service.
Setting up bacula-client (9.4.2-1~bpo9+1) ...
Setting up bacula-bscan (9.4.2-1~bpo9+1) ...
Setting up bacula-director-pgsql (9.4.2-1~bpo9+1) ...
Setting up bacula-director (9.4.2-1~bpo9+1) ...
Creating config file /etc/default/bacula-dir with new version
/var/lib/dpkg/info/bacula-director.postinst: 39: .: Can't open
/usr/share/bacula-common/dbc_database.conf
dpkg: error processing package bacula-director (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of bacula-server:
bacula-server depends on bacula-director (>= 9.4.2-1~bpo9+1); however:
Package bacula-director is not configured yet.
dpkg: error processing package bacula-server (--configure):
dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u12) ...
Errors were encountered while processing:
bacula-director
bacula-server
Log ended: 2019-11-14 13:06:16
I purged the packages and reinstalled it. All the same effect.
Could it be something else is broken? Something in Apt or Debconf?
Johnny
Sven Hartge schreef op 15/11/2019 om 00:08:
> On 14.11.19 23:34, Johnny wrote:
>
>> * What led up to the situation?
>> Installing the bacula package, the database is not configured. This is with all 3 databases.
>> The error seen during installation:
>> /var/lib/dpkg/info/bacula-director.postinst: 39: .: Can't open /usr/share/bacula-common/dbc_database.conf
>> Infact the file to which the file linked was not available "/etc/dbconfig-common/bacula-director-pgsql.conf"
>> * What exactly did you do (or not do) that was effective (or
>> ineffective)?
>> Creating the file "/etc/dbconfig-common/bacula-director-pgsql.conf" manually did not solve the problem"
> I am not able to reproduce this.
>
> Please provide the exact commands you used to install bacula. You can
> find all commands in /var/log/apt/term.log and /var/log/apt/history.log.
>
>
> Grüße,
> Sven.
>
More information about the pkg-bacula-devel
mailing list