The relevant data in
 
   /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf
 
and
 
   /etc/dbconfig-common/bareos-database-common.conf
 
do match: same db-name, db-user, db-password.
 
 
The settings
 
   dbc_authmethod_admin='ident'
   dbc_authmethod_user='ident'
 
are different in my bareos-database-common.conf:
 
   dbc_authmethod_admin='ident'
   dbc_authmethod_user='password'
 
Should I change this?
 
 
I installed Bareos 16.2.4 at first as far as I can remember. After that, I did not change any setting. The sole purpose of the Ubuntu server is running Bareos.
 
 
Regards,
Carsten
 
Gesendet: Donnerstag, 18. Januar 2018 um 13:03 Uhr
Von: "Jörg Steffens" <[email protected]>
An: [email protected]
Betreff: [bareos-users] Re: Password authentication failure during upgrade to 17.2.4
On 18.01.2018 at 10:05 wrote Carsten Pache:
> Hi,
>  
> on a Linux server (Ubuntu 16.04.3 LTS) I tried to upgrade Bareos
> 16.2.4 to the current version 17.2.4. Unfortunately, I got the following
> error:
>  
> '--- start of error message ---
>  
> Es ist ein Fehler beim Upgrade der Datenbank aufgetreten:
> psql: FATAL: password authentication failed for user "bareos" FATAL:
> password authentication failed for user "bareos" password retrieved from
> file
> "/tmp/dbconfig-common.psql_home.1an9QZ/.pgpass"
> Glücklicherweise sollte
> /var/cache/dbconfig-common/backups/bareos-database-common_2004.2018-01-18-09.43.41
> eine Sicherung, die genau vor dem Upgrade durchgeführt wurde, Ihrer
> Datenbank
> enthalten (es sei denn, der Fehler trat beim Erstellen der
> Sicherungskopie auf - in diesem Falle wurden keine Änderungen
> angewandt). Ihre Optionen sind:
>  * Abbruch - Damit schlägt die Operation fehl; Sie müssen dann ein
>    Downgrade durchführen, das Paket reinstallieren, das Paket neu
>    konfigurieren oder auf andere Weise manuell eingreifen, um das Paket
>    weiterzuverwenden. Damit wird normalerweise auch Ihre Möglichkeit,
>    andere Pakete zu installieren, beeinträchtigt, bis der
>    Installationsfehler behoben wurde.
>  * Nochmal versuchen - Die Abfragen mit allen Konfigurationsfragen erfolgen
>    erneut (darunter auch die, die aufgrund der Debconf-Priorität von Ihnen
>    bisher nicht gesehen wurden) und dann erfolgt ein erneuter Versuch zur
>    Durchführung der Operation.
>  * Nochmal versuchen (Fragen überspringen) -  Versucht die Operation sofort
>    erneut, alle Fragen werden übersprungen. Dies ist normalerweise nur
>    nützlich, falls Sie nach dem Auftreten des Fehlers das zugrundeliegende
>    Problem behoben haben.
>  * Ignorieren - Führt mit der Operation fort und ignoriert die Fehler von
>    dbconfig-common. Damit verbleibt das Paket typischerweise ohne
>    funktionierende Datenbank.
> Nächster Schritt beim Upgrade der Datenbank:
> Abbruch
> Wiederholen
> Wiederholen (Fragen überspringen)
> Ignorieren
>  
> '--- end of error message ---
>  
> (I am sorry for the german text but the Ubuntu server was installed with
> german language.)
>  
> I tried "Wiederholen" (Retry), but this led to the same error.
>  
> How can I correct this error?

Well, that depends on what is wrong.

Hint: if you set

export LANG=C

the output will be in English. However, this does not matter for me.

Normally the database schema update works without problems. We test it
periodically in our automated test system.

However, it fails if you change the database parameter after
installation. Maybe there are also other combinations, that causes
failures, but I'm not aware of them.

Database access information are stored in two places:

Bareos information itself are stored in
/etc/bareos/bareos-dir.conf (if your first installation has been before
16.2 and you have not migrated your configuration)
or
/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf

Independent of were it is stored,

bareos-dbcheck -B

will tell you, what Bareos read from the configs.

The automatic database management tool (dbconfig-common) stores it data
in /etc/dbconfig-common/bareos-database-common.conf

Please compare if the settings matches.

By default, the local Postgres database is used via ident
authentication. That means, a local user with the same name as the
database can access the database without password. Therefore no password
is required and authentication is set to ident:
dbc_authmethod_admin='ident'
dbc_authmethod_user='ident'

Please check, if you can solve your problems with this hints.
If not:
* what version did you install at first?
* only from download.bareos.org or also the packages included in the
distribution?
* have you changed you database settings in between?

There is still the possibility to disable dbconfig-common and run the
database update script manually.

regards,
Jörg
--
Jörg Steffens [email protected]
Bareos GmbH & Co. KG Phone: +49 221 630693-91
http://www.bareos.com Fax: +49 221 630693-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer:
S. Dühr, M. Außendorf, Jörg Steffens, P. Storz
 

--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to