Hi,

Just did a fresh installation. Everything seems working. I can run bconsole, backup, restore and schedule jobs via the webUI.

But when running bareos-dir -t I get the following message:

bareos-dir: dird/dird.cc:927-0 Could not open Catalog "MyCatalog", database "bareos". bareos-dir: dird/dird.cc:932-0 cats/postgresql.cc:254 Unable to connect to PostgreSQL server. Database=bareos User=bareos Possible causes: SQL server not running; password incorrect; max_connections exceeded.
bareos-dir ERROR TERMINATION
Please correct the configuration in /etc/bareos/bareos-dir.d/*/*.conf


This is my /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf

Catalog {
  Name = MyCatalog
  #dbdriver = ""
  dbdriver = postgresql
  dbname = bareos
  dbuser = bareos
  dbpassword = xxx
}



/usr/sbin/bareos-dbcheck -c /etc/bareos -B

gives me output:

catalog=MyCatalog
db_name=bareos
db_driver=postgresql
db_user=bareos
db_password=xxx
db_address=
db_port=0
db_socket=
db_type=PostgreSQL
working_dir=/var/lib/bareos

and
systemctl restart bareos-dir

shows no errors.


The service is started without errors:

service bareos-dir status
● bareos-director.service - Bareos Director Daemon service
Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-11-29 15:13:17 CET; 13s ago
     Docs: man:bareos-dir(8)
Process: 59122 ExecStart=/usr/sbin/bareos-dir (code=exited, status=0/SUCCESS) Process: 59116 ExecStartPre=/usr/sbin/bareos-dir -t -f (code=exited, status=0/SUCCESS)
 Main PID: 59125 (bareos-dir)
    Tasks: 4
   Memory: 1.7M
      CPU: 57ms
   CGroup: /system.slice/bareos-director.service
           └─59125 /usr/sbin/bareos-dir

Nov 29 15:13:17 diufnas26 systemd[1]: Starting Bareos Director Daemon service... Nov 29 15:13:17 diufnas26 systemd[1]: bareos-director.service: PID file /var/lib/bareos/bareos-dir.9101.pid not Nov 29 15:13:17 diufnas26 systemd[1]: Started Bareos Director Daemon service.

These are my DB grants:
postgres=# \du
                                   List of roles
 Role name |                         Attributes | Member of
-----------+------------------------------------------------------------+-----------
 bareos    | | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres=# \l
                                  List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+-----------+-------------+-------------+-----------------------
 bareos    | postgres | SQL_ASCII | en_US.UTF-8 | en_US.UTF-8 |
 postgres  | postgres | UTF8      | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres
(4 rows)

Changing the PW did not help.

postgres=# ALTER USER bareos WITH PASSWORD 'xxx';


Is this message relevant since everything seems running correctly?

Thank you for any help
Regards
Birgit




--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/73f55e38-35bc-12ab-c9e1-340cd49bcbcc%40unifr.ch.

Reply via email to