SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Could not open Catalog MyCatalog
Author Message
Post Could not open Catalog MyCatalog 
I'm facing a trouble with the following message.
I very appreciate if someone could help me out.
OpenSuSE10.2 32 bit version
MySQL 5.0.41
Bacula 2.1.12 and 2.0.3 (I used these two versions and have the same
message)

I did not change any script files.
The command I used for compilations is :
./configure --prefix=/usr/local/bacula --with-mysql --with-pid-dir=/usr/local/bacula/var/run

I used three script for MySQL, i.e. grant_mysql_privileges,
create_mysql_database and make_mysql_tables.

pumpkin bacula/bacula-2.1.12> cd /usr/local/bacula/etc/
Directory: /usr/local/bacula/etc
pumpkin bacula/etc> ./bacula restart
Stopping the Bacula File daemon
Pool Maxsize Maxused Inuse
NoPool 256 0 0
NAME 130 0 0
FNAME 256 1 0
MSG 512 1 0
EMSG 1024 1 0

Stopping the Bacula Storage daemon
Stopping the Bacula Director daemon

Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
bacula-dir: dird.c:873 Could not open Catalog "MyCatalog", database
"bacula".
bacula-dir: dird.c:878 mysql.c:193 Unable to connect to MySQL server.
Database=bacula User=bacula
MySQL connect failed either server not running or your authorization is
incorrect.
07-Jun 08:50 bacula-dir ERROR TERMINATION
Please correct configuration file: /usr/local/bacula/etc/bacula-dir.conf

Thank you in advance.
/Junzo

Post Could not open Catalog MyCatalog 
I checked mysql.c and recognized md->db_port and md-db_socket are NULL.
I inserted these information as magic code (hard code).
Now it seems to work.

I do not know why it could not have MySQL port number and socket file.
For time being, I'll use this approach to understand Bacula in depth.

Thanks.
/Junzo
P.S. I can not be a part of Bacula mailing list because Mailman error.
----- Original Message -----
From: "tamada(acornsoft)" <tamada < at > ac...>
To: <bacula-users < at > li...>
Sent: Thursday, June 07, 2007 9:09 AM
Subject: Could not open Catalog MyCatalog

I'm facing a trouble with the following message.
I very appreciate if someone could help me out.
OpenSuSE10.2 32 bit version
MySQL 5.0.41
Bacula 2.1.12 and 2.0.3 (I used these two versions and have the same
message)

I did not change any script files.
The command I used for compilations is :
./configure --prefix=/usr/local/bacula --with-mysql --with-pid-dir=/usr/local/bacula/var/run

I used three script for MySQL, i.e. grant_mysql_privileges,
create_mysql_database and make_mysql_tables.

pumpkin bacula/bacula-2.1.12> cd /usr/local/bacula/etc/
Directory: /usr/local/bacula/etc
pumpkin bacula/etc> ./bacula restart
Stopping the Bacula File daemon
Pool Maxsize Maxused Inuse
NoPool 256 0 0
NAME 130 0 0
FNAME 256 1 0
MSG 512 1 0
EMSG 1024 1 0

Stopping the Bacula Storage daemon
Stopping the Bacula Director daemon

Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
bacula-dir: dird.c:873 Could not open Catalog "MyCatalog", database
"bacula".
bacula-dir: dird.c:878 mysql.c:193 Unable to connect to MySQL server.
Database=bacula User=bacula
MySQL connect failed either server not running or your authorization is
incorrect.
07-Jun 08:50 bacula-dir ERROR TERMINATION
Please correct configuration file: /usr/local/bacula/etc/bacula-dir.conf

Thank you in advance.
/Junzo


Post Could not open Catalog MyCatalog 
Hi,

On 6/7/2007 4:25 AM, tamada(acornsoft) wrote:
I checked mysql.c and recognized md->db_port and md-db_socket are NULL.
I inserted these information as magic code (hard code).
Now it seems to work.

I do not know why it could not have MySQL port number and socket file.
For time being, I'll use this approach to understand Bacula in depth.

What's your catalog configuration in the DIR configuration? I suppose
you don't have that information in there...

Thanks.
/Junzo
P.S. I can not be a part of Bacula mailing list because Mailman error.

That should be fixed by now.

Arno

----- Original Message -----
From: "tamada(acornsoft)" <tamada < at > ac...>
To: <bacula-users < at > li...>
Sent: Thursday, June 07, 2007 9:09 AM
Subject: Could not open Catalog MyCatalog


I'm facing a trouble with the following message.
I very appreciate if someone could help me out.
OpenSuSE10.2 32 bit version
MySQL 5.0.41
Bacula 2.1.12 and 2.0.3 (I used these two versions and have the same
message)

I did not change any script files.
The command I used for compilations is :
./configure --prefix=/usr/local/bacula --with-mysql --with-pid-dir=/usr/local/bacula/var/run

I used three script for MySQL, i.e. grant_mysql_privileges,
create_mysql_database and make_mysql_tables.

pumpkin bacula/bacula-2.1.12> cd /usr/local/bacula/etc/
Directory: /usr/local/bacula/etc
pumpkin bacula/etc> ./bacula restart
Stopping the Bacula File daemon
Pool Maxsize Maxused Inuse
NoPool 256 0 0
NAME 130 0 0
FNAME 256 1 0
MSG 512 1 0
EMSG 1024 1 0

Stopping the Bacula Storage daemon
Stopping the Bacula Director daemon

Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
bacula-dir: dird.c:873 Could not open Catalog "MyCatalog", database
"bacula".
bacula-dir: dird.c:878 mysql.c:193 Unable to connect to MySQL server.
Database=bacula User=bacula
MySQL connect failed either server not running or your authorization is
incorrect.
07-Jun 08:50 bacula-dir ERROR TERMINATION
Please correct configuration file: /usr/local/bacula/etc/bacula-dir.conf

Thank you in advance.
/Junzo




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB