Bacula-users

Re: [Bacula-users] Bnet receive challenge response error ? Authentication errors...

2010-01-14 09:42:43
Subject: Re: [Bacula-users] Bnet receive challenge response error ? Authentication errors...
From: Martin Simmons <martin AT lispworks DOT com>
To: Bacula-users AT lists.sourceforge DOT net
Date: Thu, 14 Jan 2010 14:39:51 GMT
>>>>> On Thu, 14 Jan 2010 11:52:48 +0100, Simon Spring said:
> 
> Hi Martin
> ...
> >>
> >> Here is what i get from debug on the client:
> >>
> >> $> bacula-fd -c /etc/bacula/bacula-fd.conf -v -s -d350 -f
> >> bacula-fd: filed_conf.c:438-0 Inserting director res: godzilla-mon
> >> gnadmin-fd: message.c:259-0 Copy message resource 809be78 to 8099a70
> >> gnadmin-fd: jcr.c:135-0 read_last_jobs seek to 188
> >> gnadmin-fd: jcr.c:142-0 Read num_items=0
> >> gnadmin-fd: pythonlib.c:113-0 No script dir. prog=FDStartUp
> >> gnadmin-fd: filed.c:225-0 filed: listening on port 9102
> >> gnadmin-fd: bnet_server.c:96-0 Addresses  
> >> host[ipv4:192.168.99.24:9102]
> >> gnadmin-fd: bnet.c:667-0 who=client host=192.168.99.10 port=36387
> >> gnadmin-fd: jcr.c:617-0 OnEntry JobStatus=gnadmin-fd: jcr.c:637-0
> >> OnExit JobStatus=C set=C
> >> gnadmin-fd: find.c:81-0 init_find_files ff=809c488
> >> gnadmin-fd: job.c:233-0 <dird: Hello Director godzilla-dir calling
> >> gnadmin-fd: job.c:249-0 Executing Hello command.
> >> gnadmin-fd: job.c:359-0 Calling Authenticate
> >> gnadmin-fd: cram-md5.c:73-0 send: auth cram-md5
> >> <696202879.1263398054@gnadmin-fd> ssl=0
> >> gnadmin-fd: cram-md5.c:89-0 Bnet receive challenge response error.
> >
> > This line is the problem -- there was an error receiving the reply  
> > for some
> > reason.  Unfortunately, Bacula doesn't print the error message.
> >
> > You could try attaching strace to the bacula-fd while connecting, to  
> > see if
> > there is a errno reported in one of the socket syscalls.
> 
> $> strace -i -T -v -p 25723
> Process 25723 attached - interrupt to quit
> [b7f78410] select(5, [4], NULL, NULL, NULL) = 1 (in [4]) <5.991304>
> [b7f78410] accept(4, {sa_family=AF_INET, sin_port=htons(36887),  
> sin_addr=inet_addr("192.168.99.10")}, [16]) = 5 <0.000064>
> [b7f78410] getpeername(5, {sa_family=AF_INET, sin_port=htons(36887),  
> sin_addr=inet_addr("192.168.99.10")}, [16]) = 0 <0.000045>
> [b7f78410] getsockname(5, {sa_family=AF_INET, sin_port=htons(9102),  
> sin_addr=inet_addr("192.168.99.24")}, [16]) = 0 <0.000039>
> [b7f78410] open("/etc/hosts.allow", O_RDONLY) = 6 <0.000068>
> [b7f78410] fstat64(6, {st_dev=makedev(9, 1), st_ino=928703,  
> st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,  
> st_blocks=8, st_size=773, st_atime=2010/01/14-11:39:48,  
> st_mtime=2010/01/14-11:31:20, st_ctime=2010/01/14-11:31:20}) = 0  
> <0.000041>
> [b7f78410] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| 
> MAP_ANONYMOUS, -1, 0) = 0xb7f75000 <0.000044>
> [b7f78410] read(6, "# /etc/hosts.allow: list of host"..., 4096) = 773  
> <0.000073>
> [b7f78410] close(6)                     = 0 <0.000053>
> [b7f78410] munmap(0xb7f75000, 4096)     = 0 <0.000059>
> [b7f78410] setsockopt(5, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0  
> <0.000046>
> [b7c9e488] clone(child_stack=0xb722c4c4, flags=CLONE_VM|CLONE_FS| 
> CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS| 
> CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED,  
> parent_tidptr=0xb722cbf8, {entry_number:6, base_addr:0xb722cbb0, limit: 
> 1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,  
> seg_not_present:0, useable:1}, child_tidptr=0xb722cbf8) = 26838  
> <0.000070>
> [b7f78410] futex(0x80976a0, FUTEX_WAKE, 1) = 1 <0.000047>
> [b7f78410] select(5, [4], NULL, NULL, NULL
> 
> Anything in there, which rings a bell?
> 
> This is all i got from strace, after the last line, bconsole fires  
> "standard" Fatal error: Unable to auth... message.

I think that is only showing the main thread.  Try adding -f to the strace
command line.

__Martin

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users