Hi,

21.02.2008 04:04, Glen Vickers wrote:
> Message: 14
> Date: Mon, 18 Feb 2008 20:41:27 +0100
> From: Arno Lehmann <[EMAIL PROTECTED]>
> Subject: Re: [Bacula-users] FW:  Bacula console configuration failure
> To: bacula-users@lists.sourceforge.net
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi,
> 
> 16.02.2008 23:50, Glen Vickers wrote:
>> Just tried that as well...
>>
>> [EMAIL PROTECTED] Glen]# /sbin/bconsole -c /root/bacula/bin/bconsole.conf
>> bconsole not properly installed.
>> [EMAIL PROTECTED] Glen]# /root/bacula/bin/bconsole -c
>> /root/bacula/bin/bconsole.conf
>> bconsole not properly installed.
>> [EMAIL PROTECTED] Glen]#
>>
>> I've decided I'm going to install gnome the LOOOONNGG way... from source.
>> And configure bacula that way.  I still would like bconsole to work
> remotely
>> though.  any suggestions?  As far as I know... I've followed the user
> guide
>> on install and setup and bconsole should technically be working but isn't.
>> I've also noticed that when I did the configure.... bconsole.conf didn't
>> create itself.  I had to copy the 1 from the source and move it over then
>> config to match my passwords and such.... why would it say bconsole isn't
>> installed properly when it seems like it is?
>>
>> Hmm... what does the config file look like? And if you're sure the 
>> configuration is ok, it might be worth trying to run bconsole through 
>> strace so you see why it complains. For example, permissions might 
>> prevent the program from reading the configuration file.
>>
>> Arno
> 
> This is 1 of the things I found with the strace
> 
> stat64("/usr/kerberos/sbin/which", 0xbf8a3d60) = -1 ENOENT (No such file or
> directory)
> stat64("/usr/kerberos/bin/which", 0xbf8a3d60) = -1 ENOENT (No such file or
> directory)
> stat64("/usr/lib/ccache/which", 0xbf8a3d60) = -1 ENOENT (No such file or
> directory)
> stat64("/usr/local/bin/which", 0xbf8a3d60) = -1 ENOENT (No such file or
> directory)
> stat64("/bin/which", 0xbf8a3d60)        = -1 ENOENT (No such file or
> directory)

Interesting... this is the program looking for the "which" command and 
not finding it.

which is used in the bconsole script - not the binary - to locate the 
bconsole binary and configuration files. In all unix OSes I know it 
belongs to the basic system installation.

Anyway, if it's not installed in your system you can try to execute 
the binary itself. The location can vary, depending on how you 
installed Bacula. Possible locations are /sbin, /usr/local/sbin, 
/usr/local/bacula/bin, or something.

If unsure, 'find / -name bconsole -print' should find it - but perhaps 
even find is not available in your environment...

Once you located the binary, execute '/path/to/binary/bconsole -c 
/etc/bacula/bconsole.conf' (note that the configuration, too, could be 
in some other place!) and see what the results in.

> I've never ran strace before.  Kinda new to me.  Anything else I should be
> looking for?

Well, what you found is a good first step. Playing around with strace 
never hurts, though... what it does is monitoring the system calls a 
program issues and reporting the parameters and results. Very helpful 
if you don't understand where a program fails :-)

Arno

> Glen
> 
> 
> -------------------------------------------------------------------------
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to