Bacula-users

[Bacula-users] Could not open Catalog "MyCatalog", database "bacula"

2010-03-17 21:54:28
Subject: [Bacula-users] Could not open Catalog "MyCatalog", database "bacula"
From: mehma sarja <mehmasarja AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 17 Mar 2010 18:51:45 -0700
I am guessing the following is a permissions problem. Anyone know what the perms are supposed to be for each directory? 

bacula-dir: dird.c:950 Could not open Catalog "MyCatalog", database "bacula".

Here is the install procedure I followed:

PRE-REQUISITES
sudo apt-get upgrade && sudo apt-get update
sudo apt-get install g++ libpq-dev make
===

COMPILE
a.  Untar and cd to installation directory
b.  Put this in a bacula_conf file and make it executable "sudo chmod 744 bacula_conf"
#!/bin/sh
CFLAGS="-g -Wall" \
  ./configure \
    --sbindir=/usr/local/sbin \
    --sysconfdir=/usr/local/etc \
    --mandir=/usr/local/sbin \
    --enable-smartalloc \
    --enable-bwx-console \
    --enable-tray-monitor \
    --with-pid-dir=/usr/local/bacula/working \
    --with-subsys-dir=/usr/local/bacula/working \
    --with-postgresql \
    --with-working-dir=/usr/local/bacula/working \
    --with-dump-email=username AT gmail DOT com \
    --with-job-email=username AT gmail DOT com \
    --with-smtp-host=smtp/gmail.com
exit 0

***NOTE: BAT is not enabled - it requires qt to be installed

c. Still in the installation directory: sudo ./bacula_conf && sudo make && sudo make install clean
===

UTF-8 to SQL_ASCII
sudo pg_dropcluster --stop 8.4 main
sudo pg_createcluster --start -e SQL_ASCII 8.4 main
===

DATABASE
sudo chown postgres:postgres /usr/local/etc/*
sudo su - postgres
As user postgres: createuser bacula
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n

As user postgres: /usr/local/etc/create_bacula_database
As user postgres: /usr/local/etc/make_bacula_tables
As user postgres: /usr/local/etc/grant_bacula_privileges
$ psql bacula
  bacula=# alter user bacula with password 'bacula';
\q
exit
===

FIRE_IT_UP
a.  Add password: vi /usr/local/etc/bacula-dir.conf and add password 'bacula' to dbpassword variable
b.  From anywhere: sudo bacula start
c.  Check status: sudo bacula status -of dir, sd and pd processes
    - if the config or install does not go well, one or more process will die
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] Could not open Catalog "MyCatalog", database "bacula", mehma sarja <=