View Issue Details

IDProjectCategoryView StatusLast Update
0001399bareos-coreGeneralpublic2023-07-04 15:54
Reporteramodia Assigned Tobruno-at-bareos  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSDebian 11OS Version10
Product Version17.2.4 
Summary0001399: Postgres Cluster-Version ist hart verlinkt
DescriptionDas Upgrade der Debia-Version von 10 auf 11 führt zum Upgrade der Postgres Cluster-Version von 11 auf 13. Danach funktioniert zwar das Backup der Clients unter der Bareos-Version 16.2.6-5 (okay, etwas alt ;-) ), das Sichern der BackupCatalog Datenbank jedoch nicht (Meldung: "BeforeJob: pg_dump: Abbruch wegen unpassender Serverversion")

Grund hierfür ist, dass in zwei Dateien die Postgres Cluster-Version fest im Skript verankert ist:

- /usr/lib/bareos/scripts/bareos-config-lib.sh (Zeile: POSTGRESQL_BINDIR="/usr/lib/postgresql/11/bin")
- /usr/lib/bareos/scripts/make_catalog_backup.pl (Zeile: $ENV{PATH}="/usr/lib/postgresql/11/bin:$ENV{PATH}"; )
Steps To ReproduceSolange die Version in der Datei "/usr/lib/bareos/scripts/make_catalog_backup.pl" fest auf "11" steht, kommt der Fehler. Wenn man die Version im Skript hart auf "13" setzt, läuft alles wieder.

Frage:
Kann man vom Bareos-Skript nicht prüfen lasse, ob eine neuere Version existiert und dann deren Binaries verwenden?
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2021-11-10 09:55

manager   ~0004322

In multiversion package, normally the update alternative place the newer as default.
so you should have a /usr/bin/pg_dump pointing to /etc/alternatives/pg_dump pointing to where is located pg_dump version 13

You can use pg_dump 13 to backup an 11 cluster.
bruno-at-bareos

bruno-at-bareos

2023-07-04 15:54

manager   ~0005139

In newer version Bareos 22.1.0+ we don't anymore use something else than the system alternatives, so /usr/bin/psql or pg_dump is used.

Issue History

Date Modified Username Field Change
2021-11-05 15:37 amodia New Issue
2021-11-10 09:55 bruno-at-bareos Note Added: 0004322
2023-07-04 15:54 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-04 15:54 bruno-at-bareos Status new => closed
2023-07-04 15:54 bruno-at-bareos Resolution open => fixed
2023-07-04 15:54 bruno-at-bareos Note Added: 0005139