View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001399 | bareos-core | General | public | 2021-11-05 15:37 | 2023-07-04 15:54 |
| Reporter | amodia | Assigned To | bruno-at-bareos | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | Debian 11 | OS Version | 10 |
| Product Version | 17.2.4 | ||||
| Summary | 0001399: Postgres Cluster-Version ist hart verlinkt | ||||
| Description | Das 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 Reproduce | Solange 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? | ||||
| Tags | No tags attached. | ||||
|
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. |
|
|
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. |
|
| 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 |