Hi,

I ran into a problem testing Bacula 5.0.1 and thought I'd share as it
took a while to figure out.

bconsole was hanging trying to connect to the director. strace showed
the client sending the hello and blocking waiting on read.

a gdb backtrace of the director gave me a hint:

bbtest-dir: bnet.c:669-0 who=client host=127.0.0.1 port=36131

in this blocked state, I got a gdb backtrace from the director (mysql in
this case):

> Thread 3 (Thread 0xf6dcbb90 (LWP 19355)):
> #0  0xf77dce67 in select () from /lib/libc.so.6
> #1  0xf7ebfdbe in bnet_thread_server (addrs=0x80de900, max_clients=0, 
> client_wq=0x80d75c0, handle_client_request=0x80a65a2 
> <handle_UA_client_request>)
>     at bnet_server.c:161
> #2  0x080a68b5 in connect_thread (arg=0x80de900) at ua_server.c:82
> #3  0xf7b10fda in start_thread () from /lib/libpthread.so.0
> #4  0xf77e392e in clone () from /lib/libc.so.6

as you can see, max_clients is set to 0.  I did not set this and the
docs say the default should be 20 (and the code looks to confirm that).
 For some reason, it's ending up as 0 here.  Setting it explicitly to
non-zero in the config fixed my problem.

I'm using the Debian 5.0.1 packages (built for Ubuntu Hardy)

Incidentally, the docs say MaxConsoleConnections, but it doesn't
recognize this - it must be MaximumConsoleConnections

http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION001720000000000000000

I'll look into filing any appropriate bugs (if they've not already been
filed!)

John.
--
Brightbox: Serious Rails Hosting
http://www.brightbox.co.uk



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to