[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[?25l(B 
          
         
         
         
      
(BPackage 
configuration┌─────────────────────────────────────────┤ 
Modified configuration file 
├─────────────────────────────────────────┐│ A new version 
(/tmp/bacula-console.conf.ucftmp-xww5pnyHQh) of configuration file 
/etc/bacula/bconsole.conf is   │ (B│ 
available, but the version installed currently has been locally 
modified.                                       │ 
(B│ │ (B│ What 
do you want to do about modified configuration file bconsole.conf? 
│ (B│ │ 
(B│ install the package maintainer's version 
│ (B│ keep the local 
version currently installed                 │ 
(B│ show the differences between the versions 
│ (B│ show a side-by-side difference 
between the versions                                   │ 
(B│                           show a 3-way 
difference between available versions                                    
│ (B│                           do a 
3-way merge between available versions 
(experimental)                            │ 
(B│                           start a new shell to 
examine the situation │ (B│ 
│ (B│ │ 
(B│ <Ok> │ (B│ 
│ 
(B└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
 (Bkeep the local version currently 
installed                show the differences between 
the versions                 show the differences 
between the versions show a side-by-side difference 
between the versions       [?12l[?25h(B

[?1049l[?1049h[?25l(B 
          
         
         
         
      
(BPackage 
configuration┌──────────────────────────────┤ 
Modified configuration file 
├───────────────────────────────┐│ │ 
(B│ Line by line differences between versions 
│ (B│ │ 
(B│ Old file: /dev/null │ 
(B│ New file: 
/tmp/bacula-console.conf.ucftmp-xww5pnyHQh root.bacula 0640 2019-11-14 
13:05:10  │ (B│ │ 
(B│  > # │ 
(B│  > # Bacula User Agent (or Console) 
Configuration File                                     │ 
(B│  > # │ 
(B│  > # Copyright (C) 2000-2015 Kern Sibbald 
│ (B│  > # License: BSD 2-Clause; 
see file LICENSE-FOSS │ (B│  > # 
│ (B│ > │ 
(B│  > Director { │ 
(B│  > Name = server_new-dir │ 
(B│  > DIRport = 9101 │ 
(B│  > address = localhost │ 
(B│  > Password = 
"vx3m9Gm9dmA4Rrf_rox4Dh7OXv3TAKXvx" │ 
(B│  > } │ (B│ 
│ (B│ <Ok> 
│ (B│ │ 
(B└────────────────────────────────────────────────────────────────────────────────────────────┘ 
 [?12l[?25h(B(B

[?1049l[?1049h[?25l(B 
          
         
         
         
      
(BPackage 
configuration┌─────────────────────────────────────────┤ 
Modified configuration file 
├─────────────────────────────────────────┐│ A new version 
(/tmp/bacula-console.conf.ucftmp-xww5pnyHQh) of configuration file 
/etc/bacula/bconsole.conf is   │ (B│ 
available, but the version installed currently has been locally 
modified.                                       │ 
(B│ │ (B│ What 
do you want to do about modified configuration file bconsole.conf? 
│ (B│ │ 
(B│ install the package maintainer's version 
│ (B│ keep the local 
version currently installed                 │ 
(B│ show the differences between the versions 
│ (B│ show a side-by-side difference 
between the versions                                   │ 
(B│                           show a 3-way 
difference between available versions                                    
│ (B│                           do a 
3-way merge between available versions 
(experimental)                            │ 
(B│                           start a new shell to 
examine the situation │ (B│ 
│ (B│ │ 
(B│ <Ok> │ (B│ 
│ 
(B└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
 (Binstall the package maintainer's 
version                  keep the local version 
currently installed                install the package 
maintainer's version                  keep the local 
version currently installed keep the local version 
currently installed                show the 
differences between the versions 
[?12l[?25h(B

[?1049l[?1049h[?25l(B 
          
         
         
         
      
(BPackage 
configuration┌───────────────────────────┤ 
Modified configuration file 
├────────────────────────────┐│ │ 
(B│ Line by line differences between versions 
│ (B│ │ 
(B│ --- /dev/null │ 
(B│ +++ /tmp/bacula-console.conf.ucftmp-xww5pnyHQh 
root.bacula 0640 2019-11-14 13:05:10  │ 
(B│ @@ -0,0 +1,13 @@ │ 
(B│ +# │ (B│ 
+# Bacula User Agent (or Console) Configuration File │ 
(B│ +# │ (B│ 
+# Copyright (C) 2000-2015 Kern Sibbald │ 
(B│ +# License: BSD 2-Clause; see file 
LICENSE-FOSS                                      │ 
(B│ +# │ (B│ + 
│ (B│ +Director { │ 
(B│ + Name = server_new-dir │ 
(B│ + DIRport = 9101 │ 
(B│ + address = localhost │ 
(B│ + Password = 
"vx3m9Gm9dmA4Rrf_rox4Dh7OXv3TAKXvx" │ 
(B│ +} │ (B│ 
│ (B│ <Ok> 
│ (B│ │ 
(B└──────────────────────────────────────────────────────────────────────────────────────┘ 
 [?12l[?25h(B(B

[?1049l[?1049h[?25l(B 
          
         
         
         
      
(BPackage 
configuration┌─────────────────────────────────────────┤ 
Modified configuration file 
├─────────────────────────────────────────┐│ A new version 
(/tmp/bacula-console.conf.ucftmp-xww5pnyHQh) of configuration file 
/etc/bacula/bconsole.conf is   │ (B│ 
available, but the version installed currently has been locally 
modified.                                       │ 
(B│ │ (B│ What 
do you want to do about modified configuration file bconsole.conf? 
│ (B│ │ 
(B│ install the package maintainer's version 
│ (B│ keep the local 
version currently installed                 │ 
(B│ show the differences between the versions 
│ (B│ show a side-by-side difference 
between the versions                                   │ 
(B│                           show a 3-way 
difference between available versions                                    
│ (B│                           do a 
3-way merge between available versions 
(experimental)                            │ 
(B│                           start a new shell to 
examine the situation │ (B│ 
│ (B│ │ 
(B│ <Ok> │ (B│ 
│ 
(B└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
 (Binstall the package maintainer's 
version                  keep the local version 
currently installed [?12l[?25h(B

[?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