Bug 44116 - bacula db is missing after installation of univention-bacula
bacula db is missing after installation of univention-bacula
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Backup - bacula
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Felix Botner
Stefan Gohmann
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-28 19:08 CEST by Felix Botner
Modified: 2017-04-04 18:29 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2017-03-28 19:08:09 CEST
-> univention-install univention-bacula
...
bacula-director-pgsql (5.2.6+dfsg-9.A~4.2.0.201702161323) wird eingerichtet ...
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: ungültiger Benutzer: „postgres“
unable to connect to postgresql server.
error encountered creating user:
...

postgresql-9.4 (9.4.10-0+deb8u1) wird eingerichtet ...
Creating new cluster 9.4/main ...
  config /etc/postgresql/9.4/main
  data   /var/lib/postgresql/9.4/main
  locale de_DE.UTF-8
Flags von /var/lib/postgresql/9.4/main wie folgt gesetzt: -------------e-C
  port   5432
update-alternatives: /usr/share/postgresql/9.4/man/man1/postmaster.1.gz wird verwendet, um /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) im automatischen Modus bereitzustellen
postgresql (9.4+165+deb8u2A~4.2.0.201703021601) wird eingerichtet ...
univention-postgresql-9.4 (9.0.0-4A~4.2.0.201703151958) wird eingerichtet ...
Multifile: /etc/postgresql/9.4/main/pg_hba.conf
Multifile: /etc/postgresql/9.4/main/pg_ident.conf

So bacula-director-pgsql is configured before postgresql is initialized.
Comment 1 Felix Botner univentionstaff 2017-03-28 19:27:29 CEST
added Pre-Depends: univention-postgresql

After the installation of univention-bacula, the bacula db exists now.
Comment 2 Stefan Gohmann univentionstaff 2017-03-29 14:32:11 CEST
(In reply to Felix Botner from comment #1)
> added Pre-Depends: univention-postgresql
> 
> After the installation of univention-bacula, the bacula db exists now.

OK, is available.
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:44 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".