Bacula-users

Re: [Bacula-users] Serious issues, should I start over?

2010-01-31 09:12:52
Subject: Re: [Bacula-users] Serious issues, should I start over?
From: Bruno Friedmann <bruno AT ioda-net DOT ch>
Date: Sun, 31 Jan 2010 14:31:34 +0100
On 01/31/2010 07:20 AM, Eric Downing wrote:
> Hi,
> 
> New to bacula, semi-new to Linux. So I'm having some serious problems getting 
> bacula up and running. I have read the Bacula quick start and skimmed the 
> rest, 
> I'm fairly certain I understand the fundamentals. I followed a guide here: 
> https://help.ubuntu.com/community/Bacula
> 
> The first issue is I cannot connect to the console using bconsole. The error 
> cited is:
> 
>     Fatal error: bsock.c:129 Unable to connect to Director daemon on
>     localhost:9101. ERR=Connection refused
> 
> Whilst looking that one up, I was tailing /var/log/bacula/log and noticed:
> 
>     31-Jan 01:13 bacula-dir JobId 0: Fatal error: Could not open Catalog
>     "MyCatalog", database "bacula".
>     31-Jan 01:13 bacula-dir JobId 0: Fatal error: mysql.c:194 Unable to 
> connect
>     to MySQL server.
>     Database=bacula User=bacula
>     MySQL connect failed either server not running or your authorization is
>     incorrect.
>     31-Jan 01:13 bacula-dir ERROR TERMINATION
>     Please correct configuration file: /etc/bacula/bacula-dir.conf
> 
> In MySQL there actually is no bacula database, so I created it and still got 
> the 
> same error. I also checked that the bacula password for MySQL and the 
> password 
> defined in /bacula-dir.conf were synced.
> 
> Seeing as how these seem to be serious errors, should I wipe and restart? Or 
> do 
> you think these could be fixable?
> 
> Thanks,
> Eric
> 
> 

Hi Eric, I've also check the other message in the threads.
Understanding what you are doing is the fundamental about having success.
So yes bacula documentation is huge, but everything is in !

One of the first few points you should check (and this is ubuntu/debian related)

What type of database would you use : sqlite,mysql,postgresql ?
Once you choose : the mysql / postgresql needs to be installed and running.

Next choose the according bacula-dir package as each database is specifically 
linked to.
so there's one bacula-dir for sqlite, one for mysql one for postgresql, and 
they can't be mixed.

At your place, I would remove by purge all bacula related package, make my 
decision and re-start install.
(If it doesn't work out of the box, complain about the packager)

And yes in ubuntu/debian world they tend to understand "network backup service" 
to localhost. So you have
to change all 127.0.0.1 or localhost in all config files -dir -fd -sd if you 
want to backup something on your network.

Hope this help you to get a good start


-- 

     Bruno Friedmann
Reply only to list


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users