Re: [Bacula-users] bacula.db missing

2009-04-16 Thread Chandranshu .
Hi, Please find attached the changed mysql.c file. Do let me know if you'd prefer the patch to the complete file as I'm not aware of the code submission practices for Bacula. I have used Dmsg with a level of 50. Please change it as you deem appropriate. (I thought Emsg would be more appropriate b

Re: [Bacula-users] bacula.db missing

2009-04-16 Thread Kjetil Torgrim Homme
[Kern Sibbald]: >> [Chandranshu]: >> > [I] modified the code in src/cats/mysql.c to print the error >> > message returned by mysql_error(). Then, I compiled and ran the >> > code to see the most dubious error in my DBA career: >> > Error 2002 (HY000): Can't connect to local MySQL server through >>

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Maria McKinley
Chandranshu . wrote: > Hi Craig, > > How do I run the director in an interactive terminal? Please bear with > me as I'm still new with bacula. > > About the logs, they are full with following messages: > 15-Apr 14:21 bacula-dir JobId 0: Fatal error: Could not open Catalog > "MyCatalog", databas

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Arno Lehmann
Hi, I forward this to the -devel list, reply-to set to -users. 15.04.2009 11:49, Chandranshu . wrote: > Hi Craig, > > I was already using the -d100 flag :) > > However, this time I took a more radical approach and modified the code > in src/cats/mysql.c to print the error message returned by

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Chandranshu .
Hi Craig, I was already using the -d100 flag :) However, this time I took a more radical approach and modified the code in src/cats/mysql.c to print the error message returned by mysql_error(). Then, I compiled and ran the code to see the most dubious error in my DBA career: Error 2002 (HY000): C

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Craig Ringer
Chandranshu . wrote: > Hi Craig, > > How do I run the director in an interactive terminal? Please bear with me as > I'm still new with bacula. /etc/init.d/bacula-dir stop sudo -u bacula bacula-dir -d100 ... should do it. I don't have a director to test with. I think there's help on the website r

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Chandranshu .
Hi Craig, How do I run the director in an interactive terminal? Please bear with me as I'm still new with bacula. About the logs, they are full with following messages: 15-Apr 14:21 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula". 15-Apr 14:21 bacula-dir Job

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Craig Ringer
Maria McKinley wrote: > The director is running until I try to log into bconsole, then it dies. > It is apparently not listening on port 9101, however. What do I need to > do to get it listening? It's not? If it's not listening, it shouldn't react in any way when you try to start bconsole. Are y

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Maria McKinley
Chandranshu . wrote: > No, the problem remains unsolved. I'm trying out one thing after the > other but to no avail. I solved it on my setup, hopefully this will work for you: buttercup:# mysql -u root -p mysql Enter password: Reading table information for completion of table and column names Y

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Chandranshu .
No, the problem remains unsolved. I'm trying out one thing after the other but to no avail. The next thing I tried out was: r...@newglfs01 bin]# ./bacula start -d100 Starting the Bacula Storage daemon bacula-sd: stored_conf.c:701-0 Inserting director res: newglfs01-mon newglfs01-sd: jcr.c:140-0 re

Re: [Bacula-users] bacula.db missing

2009-04-15 Thread Maria McKinley
Chandranshu . wrote: > This is exactly the problem I have reported in the other thread at > http://sourceforge.net/mailarchive/forum.php?thread_name=76a720440904141403r6602a127t8de767b943d7973e%40mail.gmail.com&forum_name=bacula-users > >

Re: [Bacula-users] bacula.db missing

2009-04-14 Thread Chandranshu .
This is exactly the problem I have reported in the other thread at http://sourceforge.net/mailarchive/forum.php?thread_name=76a720440904141403r6602a127t8de767b943d7973e%40mail.gmail.com&forum_name=bacula-userswith slightly more details. Looks like something is broken in the setup. If it helps, I'm

Re: [Bacula-users] bacula.db missing

2009-04-14 Thread Maria McKinley
Craig Ringer wrote: > Maria McKinley wrote: > >> When I try to log in to bconsole, I get the following: >> >> Connecting to Director 127.0.0.1:9101 >> 14-Apr 20:38 bconsole JobId 0: Fatal error: bsock.c:129 Unable to >> connect to Director daemon on 127.0.0.1:9101. ERR=Connection refused > > Is t

Re: [Bacula-users] bacula.db missing

2009-04-14 Thread Craig Ringer
Maria McKinley wrote: > When I try to log in to bconsole, I get the following: > > Connecting to Director 127.0.0.1:9101 > 14-Apr 20:38 bconsole JobId 0: Fatal error: bsock.c:129 Unable to > connect to Director daemon on 127.0.0.1:9101. ERR=Connection refused Is the director actually running ("p

Re: [Bacula-users] bacula.db missing

2009-04-14 Thread Maria McKinley
Craig Ringer wrote: > Maria McKinley wrote: > >> Nothing I have tried has managed to re-create >> bacula.db. I successfully re-created the tables in MySql, and even tried >> re-installing bacula-director-mysql and bacula-sd-mysql, but still no >> bacula.db. What can I do now? > > You don't nee

Re: [Bacula-users] bacula.db missing

2009-04-14 Thread Craig Ringer
Maria McKinley wrote: > Nothing I have tried has managed to re-create > bacula.db. I successfully re-created the tables in MySql, and even tried > re-installing bacula-director-mysql and bacula-sd-mysql, but still no > bacula.db. What can I do now? You don't need bacula.db . It's the SQLite /

[Bacula-users] bacula.db missing

2009-04-14 Thread Maria McKinley
Hello, I ran a few test runs with a new setup, but drop_mysql_tables doesn't exist on my setup (debian lenny), so I wasn't sure how to erase the test runs. First I tried downloading a copy of drop_mysql_tables, but it only got rid of the pools, and I thought I also wanted to get rid of the old