Heya,
just an idea ...
On Mon, Dec 02, 2019 at 02:36:23PM +0100, 'DUCARROZ Birgit' via bareos-users wrote:
> root@diufnas26:/etc/bareos# bareos-dir -u bareos -t --> no error
> root@diufnas26:/etc/bareos# bareos-dir -t
>
> --> Error:
> "
> bareos-dir: dird/dird.cc:927-0 Could not open Catalog "MyCatalog", database
> "bareos".
[...]
It looks like you're trying to test this as user "root", have you tried
user "bareos" instead? A quick copy&paste from my test machine (Debian):
root@bareos-test:# bareos-dir -t
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
...
# su - bareos -s /bin/bash
bareos@bareos-test:~$ bareos-dir -t
-su: bareos-dir: Kommando nicht gefunden.
bareos@bareos-test:~$ /usr/sbin/bareos-dir -t
bareos@bareos-test:~$
Maybe that helps ...
Best,
Heike
--
Heike Jurzik
heike....@bareos.com
Bareos GmbH & Co. KG
pr...@bareos.com
http://www.bareos.com Phone:
+49 177 2780503
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. Steffens, P. Storz