Re: [Bacula-users] Bacula start OK but bconsole can't establish a connection
2008-07-08 15:33:33
> That bit isn't needed for bconsole to connect to the Directory. It is
> needed if you are going to
> backup the laptop.
What I'm trying to backup is my home folder and of course it is in the
laptop. So I have the laptop as a client added to the director file.
See below:
bacula-dir.conf
==============================
Director {
Name = FluxbuntuDir
DirAddress = localhost
DirPort = 9101
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/bacula/working"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 5
Password = "cQOSanLKV+bYZYz2BSZjDEcLPXOLT22432gxDbRAeDmK"
Messages = Daemon
FD Connect Timeout = 3 minutes
SD Connect Timeout = 3 minutes
}
Console {
Name = fluxbuntu-rpm-mon
Password = "xUN3kf6VRWpcKGELfeKKfOlzxWiSUL1aaBQUlc4nCan3"
CommandACL = status, .status
}
@/etc/bacula/config/jobs.conf @/etc/bacula/config/fileset.conf
@/etc/bacula/config/clients.conf @/etc/bacula/config/jobdefs.conf
@/etc/bacula/config/schedule.conf @/etc/bacula/config/storage.conf
@/etc/bacula/config/pool.conf @/etc/bacula/config/catalog.conf
@/etc/bacula/config/messages.conf
clients.conf
==============================
Client {
Name = "FluxbuntuRPM"
Address = localhost
FDPort = 9102
Catalog = MyCatalog
Password = ""
File Retention = 365 days
Job Retention = 365 days
AutoPrune = yes
}
> This is required for bconsole to connect.
Yes I have. See the bconsole.conf file:
bconsole.conf
==============================
Director {
Name = FluxbuntuDir
DIRport = 9101
Address = fluxbuntu-rpm
Password = "cQOSanLKV+bYZYz2BSZjDEcLPXOLT22432gxDbRAeDmK"
}
> Important if you add the laptop as a client to bacula-dir.conf.
I'll restart several times using "bacula" script wich restart every daemon:
File, Storage and Director.
I notice in log files this:
08-Jul 14:58 bacula-dir JobId 0: Fatal error: Could not open Catalog
"MyCatalog", database "bacula_storage_db".
08-Jul 14:58 bacula-dir JobId 0: Fatal error: postgresql.c:202 Unable to
connect to PostgreSQL server.
Database=bacula_storage_db User=bacula_user
It is probably not running or your password is incorrect.
08-Jul 14:58 bacula-dir ERROR TERMINATION
But I check the catalog.conf file and all is OK. What wrong then?
-
Cheers
Ing. Reynier Pérez Mira
Grupo Soporte al Desarrollo - Dirección Técnica IP
On Tue, 2008-07-08 at 15:26 -0400, Dan Langille wrote:
> On Jul 8, 2008, at 3:16 PM, John Drescher wrote:
>
> > On Tue, Jul 8, 2008 at 3:13 PM, Reynier Pérez Mira <rperezm AT uci DOT cu>
> > wrote:
> >> Hi every:
> >> I'm playing with Bacula in my Laptop. I have Bacula configured well I
> >> think. When I run "bacula" command from console all start OK but
> >> when I
> >> try "bconsole" I get this error:
> >>
> >> root@fluxbuntu-rpm:/etc/bacula# bconsole
> >> Connecting to Director fluxbuntu-rpm:9101
> >> 08-Jul 15:02 bconsole JobId 0: Fatal error: bsock.c:129 Unable to
> >> connect to Director daemon on fluxbuntu-rpm:9101. ERR=Connection
> >> refused
> >>
> >> Where is the problem here?
> >> -
> > Was the laptop added as a client on the director
>
>
> > and the director's
> > password set in the bconsole.conf file on the laptop.
>
>
> > And the
> > director's conf reloaded?
>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|