Dear all, I get a message from root as follows; 09-Feb 11:26 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula". 09-Feb 11:26 bacula-dir JobId 0: Fatal error: postgresql.c:227 Unable to connect to PostgreSQL server. Database=bacula User=bacula Possible causes: SQL server not running; password incorrect; max_connections exceeded. 09-Feb 11:26 bacula-dir ERROR TERMINATION Please correct configuration file: /etc/bacula/bacula-dir.conf Does anyone know how to check if the database for bacula exists and how to start it? I would like to know how to view tape archives? Thank you if anyone can help. John.
On 02/15/11 3:27 PM, Johnny H wrote:> Does anyone know how to check if the database for bacula exists and > how to start it? ># su - postgres $ psql -l that should list a bacula database. if it says postgres isn't running, then... $ ^D # service postgresql start then try the above steps again. if postgresql won't start, find the postgres data directory, typically /var/lib/pgsql/data on centos system unless you built or installed a custom postgres, and look in pg_log/* for the latest logfile, and see what it says. on some older versions, its 'server.log' in the data dir, instead of pg_log/*.log
On Tue, 2011-02-15 at 23:27 +0000, Johnny H wrote:> Dear all, > I get a message from root as follows; > > 09-Feb 11:26 bacula-dir JobId 0: Fatal error: Could not open Catalog > "MyCatalog", database "bacula". > 09-Feb 11:26 bacula-dir JobId 0: Fatal error: postgresql.c:227 Unable > to connect to PostgreSQL server. Database=bacula User=bacula > Possible causes: SQL server not running; password incorrect; > max_connections exceeded. > 09-Feb 11:26 bacula-dir ERROR TERMINATION > Please correct configuration file: /etc/bacula/bacula-dir.conf > > Does anyone know how to check if the database for bacula exists and > how to start it? > > I would like to know how to view tape archives? > > Thank you if anyone can help.---- bacula will create the database if there is a user with password and permissions suitable for the task. There is ample documentation at http://www.bacula.org Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.