K I think I might have read the strace wrong.

I found the correct bconsole located at /sbin/bconsole and did the
/sbin/bconsole -c /root/bacula/bin/bconsole.conf

Same message.
Did the same command with Strace it found the which after the parts it said
that it didn't.  I verified it's installation with yum.  I did notice this
repeated 3 times in the strace and I think it's my failure if I'm reading
this right.

clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7fc0708) = 17212
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 17212
waitpid(-1, 0xbfb27d08, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])

My guess is the bconsole launches, and either fails due to permissions or a
bad config in 1 of the conf files.  What do you all think?  I rechecked the
bconsole.conf......  This is what I have.

#
# Bacula User Agent (or Console) Configuration File
#

Director {
  Name = sserv001-dir
  DIRport = 9101
  address = sserv001
  Password = "b1rd13"
}

ConsoleFont {
  Name = Default
  Font = "LucidaTypewriter 9"
}
>From what I read, that's all I really need right?

Maybe I'm missing more.

Glen

From: Arno Lehmann <[EMAIL PROTECTED]>
Subject: Re: [Bacula-users] Bacula-users Digest, Vol 22, Issue 29
To: bacula-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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


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