On Tuesday, 24 November 2015 13:22:21 UTC, Jörg Steffens  wrote:
> Am 24.11.2015 um 13:39 schrieb [email protected]:
> > Is my pg_hba.conf incorrect? I've looked for examples online and mine 
> > appears to be valid.
> > Like I said, nothing in the config was changed prior/after the update until 
> > I got an alert that it wasn't completing backups.
> 
> please verify also the Catalog section of your /etc/bareos/bareos-dir.conf
> Should look similar to:
> 
> Catalog {
>   Name = MyCatalog
>   dbdriver = "postgresql"
>   dbname = bareos
>   dbuser = "bareos"
>   dbpassword = ""
> }
> 
> What distribution are you using? How did you perform the database schema
> update? Did you also run the grant_bareos_privileges script?
> 
> 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, M. v. Wieringen

Hi Jörg,
Sure, no problem.

Catalog {
  Name = MyCatalog
  # Uncomment the following lines if you want the dbi driver
  # dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =
  #dbdriver = "postgresql"
  dbdriver = "postgresql"
  dbname = "bareos"
  dbuser = "bareos"
  dbpassword = ""
}

The password is blank, but it should be logging in without one if its trusted?

[root@vm-backups1]# cat /etc/redhat-release
CentOS release 6.7 (Final)

Updates to the DB were run with these two commands...
su postgres -c /usr/lib/bareos/scripts/update_bareos_tables 
su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges

The first one initially failed because of a permission issue, which I fixed, 
and then ran successfully.
The error message was along the lines of "couldn't read file bareos config. 
Permission denied".

My solution was to add the postgres user to the bareos group with read 
permissions. After that the update was successful.

- Mark

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