2014-07-23 20:35 GMT+04:00 Jean-Louis Martineau <[email protected]>:
> On 07/23/2014 10:26 AM, Alexander Tiurin wrote:
>>
>> Hello folks,
>>
>> When i tried connect to amanda server, i get message from client:
>>
>> # amrecover omega -s  cowback
>> AMRECOVER Version 2.4.5p1. Contacting server on cowback ...
>> 220 cowback AMANDA index server (3.3.6) ready.
>> 220 cowback AMANDA index server (3.3.6) ready.
>> amrecover: Unexpected end of file, check amindexd*debug on server cowback
>>
>>
>> At this time on server
>>
>> kernel: [1374795.689017] amindexd[16214]: segfault at 0 ip
>> 00007f556527fc3d sp 00007fff5d9375f0 error 4 in
>> libamanda-3.3.6.so[7f5565249000+57000]
>>
>> # cat /var/log/amanda/server/amindexd.20140723181502.debug
>> Wed Jul 23 18:15:02 2014: thd-0x1e6b000: amindexd: pid 16214 ruid 34
>> euid 34 version 3.3.6: start at Wed Jul 23 18:15:02 2014
>> Wed Jul 23 18:15:02 2014: thd-0x1e6b000: amindexd: version 3.3.6
>> Wed Jul 23 18:15:02 2014: thd-0x1e6b000: amindexd: < 220 cowback
>> AMANDA index server (3.3.6) ready.
>> Wed Jul 23 18:15:02 2014: thd-0x1e6b000: amindexd: > SECURITY USER root
>> Wed Jul 23 18:15:02 2014: thd-0x1e6b000: amindexd: (sockaddr_in
>> *)0x7fff5d937c30 = { 2, 885, 10.11.110.33 }
>>
>>
>> Any ideas are welcome!
>
>
> The attached 'recover-2.4.5-compat-3.3.7,diff' patch fix the crash and
> report a better error message.
>
> Add the credential to the ~/.amandahosts file:
>
> cowback root amindexd amidxtaped
>
>
> Jean-Louis
>
>
>


My mistake. In amandahosts was specified IP instead hostname.
This patch is very helpful to find the error. Many thanks!


Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: pid 56908 ruid 34
euid 34 version 3.3.6: start at Sat Jul 26 00:05:57 2014
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: version 3.3.6
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: < 220 cowback
AMANDA index server (3.3.6) ready.
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: > SECURITY USER root
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd:
check_security(addr=0x7fff93b87070, str='USER root', cksum=0,
errstr=0x7fff93b87050
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: (sockaddr_in
*)0x7fff93b87070 = { 2, 707, 10.11.110.33 }
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd security:
remote host omega user root local user backup
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd:
check_user_amandahosts(host=omega, pwd=0x7fdbfadb9280,
remoteuser=root, service=(null))
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd: processing
line: <localhost root amindexd amidxtaped>
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd: comparing
"localhost" with
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:
"omega" (no match)
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:       and "root" with
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:           "root" (match)
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd: processing
line: <10.11.110.33 root amindexd amidxtaped>
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd: comparing
"10.11.110.33" with
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:
"omega" (no match)
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:       and "root" with
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:           "root" (match)
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd: processing
line: <10.11.108.123 root amindexd amidxtaped>
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd: comparing
"10.11.108.123" with
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:
"omega" (no match)
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:       and "root" with
Sat Jul 26 00:05:57 2014: thd-0x10c7000: amindexd: bsd:           "root" (match)

Reply via email to