Bacula-users

Re: [Bacula-users] Connecting to Director Failed

2008-05-19 10:55:54
Subject: Re: [Bacula-users] Connecting to Director Failed
From: Piotr Gbyliczek <pg AT forlinux.co DOT uk>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 19 May 2008 15:53:29 +0100
Reynier Perez Mira wrote:
> Hi LDB and Bruno,
> Something is wrong here and I can't find where is the problem. I run: 
> "bacula-dir -t -c /etc/bacula/bacula-dir.conf" and the config file haven't 
> any error because it pass the test. 
> So I run this other command: 
>  #/etc/init.d/bacula-ctl-dir start
> Starting the Bacula Director daemon
> and you can see the output "Bacula is running". I checked the PID folder and 
> have a this file: "bacula-dir.9101.pid" so bacula is running. 
> 
> Then I try to connect using bconsole and see what's happen:
> #bconsole
> Connecting to Director 10.128.50.155:9101
> 19-May 09:50 bconsole JobId 0: Fatal error: bsock.c:129 Unable to connect to 
> Director daemon on 10.128.50.155:9101. ERR=Connection refused
> 
> Then I run this other command 
>  #netstat -a | grep 9101
> and have not output. 
> 
> I run this other command
>  #netstat -a | grep bacula " 
>  tcp        0      0 localhost:bacula-dir    *:*                     LISTEN 
> And you can see the results. 
> Where is the problem then?


I would check if Director is still active - I saw it dying while it
couldn't connect to database. But it seems that it's not that - so you
need check bconsole.conf file, and SELinux settings - it is tricky beast
and you need to allow accessing sockets and ports in it.
Simple thing to check is telneting to port 9101 - that way you will know
it it is some kind of firewall or connection issue, or director/bconsole
missconfig.

-- 
Regards
Piotr Gbyliczek
2nd Line Technican
ForLinux Ltd.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users