> > When I try to run 'amrecover' to check file index &
> > recovery, here's what it says:
> 
> >> bash$ /usr/local/amanda/sbin/amrecover -C daily1
> >> AMRECOVER Version 2.4.2. Contacting server on *****
> >> amrecover: Unexpected server end of file

>
> did you check /tmp/amanda/amrecover.*.debug ?
>

amrecover.debug shows only 1 line:
amrecover: debug 1 pid 16190 ruid 0 euid 0 start time Wed Feb 28
12:13:55 2001    

>
> Do you have indexing turned on in your dumptype ?
>

 yes, my dumptype look like this:

define dumptype default_settings {
        ... 
        index yes                              
        record yes                             
        ...
}                       

define dumptype daily1_settings {
        default_settings
        ...
}                  

 I've checked the /usr/adm/amanda/index/<hostname>/<filesystem>
 directory, I've found some .gz files that contains the correct 
 informations. So the indexes seems to be recorded.

 /etc/dumpdates has zero size. I don't know if it's normal.

 So it looks like some network config problem :

>
> Please check if 
> amandaidx     stream  tcp     nowait  root    /usr/local/libexec/amindexd 
> amindexd
>
> amidxtape     stream  tcp     nowait  root /usr/local/libexec/amidxtaped 
> amidxtaped
>
> exist in /etc/inetd.conf and that inetd is restarted.
>

let's check my network config:

my /etc/services contains the following lines:

> amanda          10080/udp                       
> kamanda         10081/tcp                       
> kamanda         10081/udp                       
> amandaidx       10082/tcp                      
> amidxtape       10083/tcp                       

my xinetd.conf for amandaidx & amidxtape is:

service amandaidx
{
        socket_type = stream
        protocol = tcp
        wait = no
        user = bin
        group = disk
        server = /usr/local/amanda/libexec/amindexd
        server_args = amindexd
}                         

service amidxtape
{
        socket_type = stream
        protocol = tcp
        wait = no
        user = bin
        group = disk
        server = /usr/local/amanda/libexec/amidxtaped
        server_args = amidxtaped
}                                         

(bin is my amanda-user)

"netstat -a | grep am"  gives:

>tcp        0      0 *:amandaidx             *:*                     LISTEN
>tcp        0      0 *:amidxtape             *:*                     LISTEN
>udp        0      0 *:amanda                *:*     

those services are host-allowed from xinetd.conf & also 
from  /etc/hosts.allow.

xinetd state-dump gives:

Service = amidxtape
        State = Active
        Service configuration: amidxtape
                id = amidxtape
                socket_type = stream
                Protocol (name,number) = (tcp,6)
                Groups = 0
                Server = /usr/local/amanda/libexec/amidxtaped
                Server argv = amidxtaped amidxtaped
                ...
        running servers = 0
        retry servers = 0
        attempts = 0
        ...

Service = amandaidx
        State = Active
        Service configuration: amandaidx
                id = amandaidx
                socket_type = stream
                Protocol (name,number) = (tcp,6)
                Groups = 0
                Server = /usr/local/amanda/libexec/amindexd
                Server argv = amindexd amindexd
                ...
        running servers = 0
        retry servers = 0
        attempts = 0
        ...


Network config seems ok to me, but maybe I've got 
trapped somewhere?..

>
> amcheck sent me an e-mail report with correct
> subject header, but with empty body. 
>

 found the problem : I used a ";" instead of a "," for 
 email adresses separator. 

thanks for your help,

Pierre.

Reply via email to