Bug#944763: bacula: The database postgres/sqlite/mysql is not created at installation

2019-11-15 Thread Sven Hartge
On 15.11.19 19:58, Johnny Geling wrote:

> dbconfig-no-thanks was installed instead of dbconfig-pgsql
> 
> I removed dbconfig-no-thanks and installed dbconfig-sqlite3
> 
> After this modification the installation of bacula with sqlite 3 went as
> expected.
> 
> Is there an explicit dependency on dbconfig-no-thanks?

dbconfig-no-thanks is one of the dependencies fulfilling the "dbconfig"
depdendency. It is needed because there could be reasons to manually
configure the database by other means and the bacula packages support this.

> I have solved the issue.

I will close this bug, then.

Grüße,
Sven.



signature.asc
Description: OpenPGP digital signature


Bug#944763: bacula: The database postgres/sqlite/mysql is not created at installation

2019-11-15 Thread Johnny Geling

Sven Hartge schreef op 15/11/2019 om 12:01:

On 15.11.19 08:57, Johnny Geling wrote:


It also occurs with the stretch package, bacula version 7.4.4
I purged the packages and reinstalled it. All the same effect.
Could it be something else is broken? Something in Apt or Debconf?

No, I still cannot reproduce this on armhf, i386 and amd64 with both the
native Stretch and the backported version, the packages are fine.

Such a grave issue would also have surfaced long ago, so this has to be
something special in your system.

Have you checked if any filesystems have run out of inodes or free space?

If you can, please try on a newly installed system or in a newly created
chroot.

Grüße,
Sven.


Hello sven,

I found the root cause.

dbconfig-no-thanks was installed instead of dbconfig-pgsql

I removed dbconfig-no-thanks and installed dbconfig-sqlite3

After this modification the installation of bacula with sqlite 3 went as 
expected.


Is there an explicit dependency on dbconfig-no-thanks?

I have solved the issue.

Johnny



Bug#944763: bacula: The database postgres/sqlite/mysql is not created at installation

2019-11-15 Thread Sven Hartge
On 15.11.19 08:57, Johnny Geling wrote:

> It also occurs with the stretch package, bacula version 7.4.4

> I purged the packages and reinstalled it. All the same effect.
> Could it be something else is broken? Something in Apt or Debconf?

No, I still cannot reproduce this on armhf, i386 and amd64 with both the
native Stretch and the backported version, the packages are fine.

Such a grave issue would also have surfaced long ago, so this has to be
something special in your system.

Have you checked if any filesystems have run out of inodes or free space?

If you can, please try on a newly installed system or in a newly created
chroot.

Grüße,
Sven.



signature.asc
Description: OpenPGP digital signature


Bug#944763: bacula: The database postgres/sqlite/mysql is not created at installation

2019-11-15 Thread Johnny Geling

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 

Bug#944763: bacula: The database postgres/sqlite/mysql is not created at installation

2019-11-14 Thread Sven Hartge
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.



signature.asc
Description: OpenPGP digital signature


Bug#944763: bacula: The database postgres/sqlite/mysql is not created at installation

2019-11-14 Thread Johnny
Package: bacula-common-pgsql
Version: 9.4.2-1~bpo9+1
Severity: important
File: bacula

Dear Maintainer,


   * 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"


-- System Information:
Debian Release: 9.11
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: armhf (armv7l)

Kernel: Linux 4.14.150-odroidxu4 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bacula-common-pgsql depends on:
ii  bacula-common  9.4.2-1~bpo9+1
ii  libc6  2.24-11+deb9u4
ii  libgcc11:6.3.0-18+deb9u1
ii  libpq5 9.6.15-0+deb9u1
ii  libstdc++6 6.3.0-18+deb9u1

bacula-common-pgsql recommends no packages.

bacula-common-pgsql suggests no packages.

-- no debconf information