Bacula-users

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

2010-01-31 21:15:57
Subject: Re: [Bacula-users] Serious issues, should I start over?
From: Eric Downing <ripeart AT gmail DOT com>
To: "bacula-users AT lists.sourceforge DOT net >> bacula-users" <bacula-users AT lists.sourceforge DOT net>
Date: Sun, 31 Jan 2010 20:46:38 -0500
Thanks for all your replies. Here's where I am:

I'm able to use bconsole to get the status of the various demons however what I don't understand is the passwords. I've tried copying the passwords from bacula-dir.conf into the corresponding bacula-fd and bacula-sd files however I keep getting the connection refused error when console tries to connect to the storage and file daemons. What are these passwords supposed to be and how do they correlate? I feel like the bacula-dir contains the "master" passwords for the fd and sd - is that correct? Should I modify the randomly generated passwords in there and then copy those to their corresponding SD and FD.conf files? Thanks for any light you can shed on this. I just know this is a simple fix.

@bconsole:

*status
Status available for:
     1: Director
     2: Storage
     3: Client
     4: All
Select daemon type for status (1-4): 4
tpad-dir Version: 2.4.4 (28 December 2008) i486-pc-linux-gnu debian 5.0
Daemon started 31-Jan-10 20:40, 0 Jobs run since started.
 Heap: heap=270,336 smbytes=22,054 max_bytes=22,230 bufs=143 max_bufs=148

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               Volume
===================================================================================
Full           Backup    10  01-Feb-10 00:01    ThinkpadFull       *unknown*
====

Running Jobs:
No Jobs running.
====
No Terminated Jobs.
====
Connecting to Storage daemon iomega1tb at tpad:9103

Failed to connect to Storage daemon iomega1tb.
====
Connecting to Client tpad-fd at tpad:9102
Failed to connect to Client tpad-fd.
====
You have messages.
*
31-Jan 20:41 tpad-dir JobId 0: Fatal error: bsock.c:129 Unable to connect to Storage daemon on tpad:9103. ERR=Connection refused
31-Jan 20:41 tpad-dir JobId 0: Fatal error: bsock.c:129 Unable to connect to Client: tpad-fd on tpad:9102. ERR=Connection refused


mehma sarja wrote:


2010/1/31 Eric Downing <ripeart AT gmail DOT com>
[...]
Here's how I see the birds eye view of the process:
Install MySQL, confirm operation
Install bacula (I'm using apt-get)
Install from source - it's not that hard.
backup originals and modify the -dir -fd -sd for password and localhost
Make life easier and define all passwords the same.
definitions (change localhost and 127.0.0.1 to my listening interface's IP)
Don't know what this means.
define a backup type, in my case: a directory located on USB storage
Before you start the backups, try bconsole connection to the iorector, yes, it has a bconsole.conf file as well that you will have to modify.
define a job type
define a job
define a schedule

I think thats it?

Thanks again,
Eric



Bruno Friedmann wrote:
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


  

------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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