I was getting connection refused on amrecover for a while.  The 
.amandahosts file allowed access to root@localhost, but amrecover would 
use root@servername and fail.  My solution was to use the server name 
explicitly in both .amandahosts and disklist.

Hope this help one of your problems. :)

-Mack

Sebastian Frankfurt wrote:

> Hello,
> 
> I am using RedHat 7.0 with xinetd-2.1.8.9pre11-1.
> amcheck and amdump are working properly, but if I want
> to restore files from dump using amrecover, the tool
> is not working.
> Everything is called from the same host (localhost).
> 
> This is what the amrecover sends to stdout:
> 
>    AMRECOVER Version 2.4.1p1. Contacting server on localhost ...
>    amrecover: Unexpected server end of file
> 
> 
> And this is what I found in /var/log/messages:
> 
>    Jan 29 07:51:51 myhost xinetd[1318]: xinetd Version 2.1.8.9pre11
> started with
>    Jan 29 07:51:51 myhost xinetd[1318]: libwrap
>    Jan 29 07:51:51 myhost xinetd[1318]: options compiled in.
>    Jan 29 07:51:51 myhost xinetd[1318]: Started working: 8 available
> services
>    Jan 29 07:51:54 myhost xinetd: xinetd startup succeeded
>    Jan 29 07:52:07 myhost xinetd[1318]: warning: can't get client
> address: Invalid argument
>    Jan 29 07:52:07 myhost xinetd[1318]: file descriptor of service
> amandaidx has been closed
>    Jan 29 07:52:07 myhost xinetd[1318]: select reported EBADF but no bad
> file descriptors were found
> 
> 
> I think, the problem is:
> 
>      warning: can't get client address: Invalid argument
> 
> but do you know when this could happened?
> 
> 
> This happens only the very first time, if I try to connect
> via amrecover the next time, nothing happens in the syslog,
> but the amrecover client barfs:
> 
>    AMRECOVER Version 2.4.1p1. Contacting server on localhost ...
>    amrecover: Error connecting to server: Connection refused
> 
> 
> It is possible for operator and root to do an rsh localhost <cmd>.
> 
> The permissions for /root/.rhosts
> -rw-------    1 root     root    25 Jan 28 23:44 /root/.rhosts
> 
> The permissions for /root/.amandahosts
> -rw-------    1 operator disk   107 Jan 29 00:29 /root/.amandahosts
> 
> Amanda-User: operator
> User Operator is in 'disk' group.
> 
> If you need the information of /etc/xinet.d/am*
> I will attach these files. I tried to use the amanda inetd-entries
> w/o tcp_wrappers, but the errors are still the same.
> 
> I will also put the debug output of /tmp/amanda to this mail.
> 
> So, I am not subscribed to the mailing list, please
> do a CC to mailto:[EMAIL PROTECTED]
> 
> Any suggestions?
> 
> thanx in advance,
> 
> Sebastian
> 
> 
> ------------------------------------------------------------------------
> 
> # default: on
> #
> # description: Part of the Amanda server package
> 
> service amanda
> {
>       socket_type             = dgram
>       protocol                = udp
>       wait                    = yes
>       user                    = operator
>       group                   = disk
>       server                  = /usr/lib/amanda/amandad 
>       disable                 = no
> }
> 
> 
> ------------------------------------------------------------------------
> 
> # default: off
> #
> # description: Part of the Amanda server package
> #
> 
> service amandaidx
> {
>       socket_type             = stream
>       protocol                = tcp
>       wait                    = yes
>       user                    = operator
>       group                   = disk
>       server                  = /usr/lib/amanda/amindexd 
>       disable                 = no
> }
> 
> 
> ------------------------------------------------------------------------
> 
> # default: off
> #
> # description: Part of the amanda server package
> #
> 
> service amidxtape
> {
>       socket_type             = stream
>       protocol                = tcp
>       wait                    = no
>       user                    = operator
>       group                   = disk
>       server                  = /usr/lib/amanda/amidxtaped
>       disable                 = no
> }
> 
> 
> ------------------------------------------------------------------------
> 
> amandad: debug 1 pid 932 ruid 11 euid 11 start time Mon Jan 29 07:34:19 2001
> amandad: version 2.4.1p1
> amandad: build: VERSION="Amanda-2.4.1p1"
> amandad:        BUILT_DATE="Mon Aug 21 16:31:37 EDT 2000"
> amandad:        BUILT_MACH="Linux porky.devel.redhat.com 2.2.5-22smp #1 SMP Wed Jun 
>2 09:11:51 EDT 1999 i686 unknown"
> amandad:        CC="gcc"
> amandad: paths: bindir="/usr/bin" sbindir="/usr/sbin"
> amandad:        libexecdir="/usr/lib/amanda" mandir="/usr/share/man"
> amandad:        CONFIG_DIR="/etc/amanda" DEV_PREFIX="/dev/"
> amandad:        RDEV_PREFIX="/dev/r" DUMP="/sbin/dump"
> amandad:        RESTORE="/sbin/restore" SAMBA_CLIENT="/usr/bin/smbclient"
> amandad:        GNUTAR="/bin/tar" COMPRESS_PATH="/usr/bin/gzip"
> amandad:        UNCOMPRESS_PATH="/usr/bin/gzip" MAILER="/usr/bin/Mail"
> amandad:        listed_incr_dir="/var/lib/amanda/gnutar-lists"
> amandad: defs:  DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
> amandad:        DEFAULT_TAPE_SERVER="localhost"
> amandad:        DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM
> amandad:        LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE BSD_SECURITY
> amandad:        USE_AMANDAHOSTS CLIENT_LOGIN="operator" FORCE_USERID
> amandad:        HAVE_GZIP COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
> amandad:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
> got packet:
> --------
> Amanda 2.4 REQ HANDLE 000-90D50508 SEQ 980750029
> SECURITY USER operator
> SERVICE sendbackup
> OPTIONS hostname=localhost;
> GNUTAR /etc 1 2001:1:27:2:25:7 OPTIONS 
>|;bsd-auth;compress-fast;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
> --------
> 
> sending ack:
> ----
> Amanda 2.4 ACK HANDLE 000-90D50508 SEQ 980750029
> ----
> 
> bsd security: remote host localhost user operator local user operator
> amandahosts security check passed
> amandad: running service "/usr/lib/amanda/sendbackup"
> amandad: sending REP packet:
> ----
> Amanda 2.4 REP HANDLE 000-90D50508 SEQ 980750029
> CONNECT DATA 1026 MESG 1027 INDEX 1028
> OPTIONS 
>;compress-fast;bsd-auth;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
> ----
> 
> amandad: got ack:
> ----
> Amanda 2.4 ACK HANDLE 000-90D50508 SEQ 980750029
> ----
> 
> amandad: pid 932 finish time Mon Jan 29 07:34:20 2001
> 
> 
> ------------------------------------------------------------------------
> 
> amidxtaped: debug 1 pid 12448 ruid 11 euid 11 start time Sun Jan 28 20:51:45 2001
> amidxtaped: version 2.4.1p1
> 
>> GET /
> 
> amidxtaped: cannot parse SECURITY line
> 
> 
> ------------------------------------------------------------------------
> 
> amindexd: debug 1 pid 1322 ruid 11 euid 11 start time Mon Jan 29 07:52:07 2001
> amindexd: version 2.4.1p1
> 
> 
> ------------------------------------------------------------------------
> 
> amrecover: debug 1 pid 1329 ruid 0 euid 0 start time Mon Jan 29 07:58:45 2001
> Error connecting to server
> amrecover: pid 1329 finish time Mon Jan 29 07:58:45 2001
> 
> 
> ------------------------------------------------------------------------
> 
> amtrmidx: debug 1 pid 978 ruid 11 euid 11 start time Mon Jan 29 07:34:20 2001
> /usr/lib/amanda/amtrmidx: version 2.4.1p1
> Keeping 26 index files
> localhost /etc
> amtrmidx: pid 978 finish time Mon Jan 29 07:34:25 2001
> 
> 
> ------------------------------------------------------------------------
> 
> killpgrp: debug 1 pid 2007 ruid 11 euid 0 start time Sat Jan 27 03:16:49 2001
> /usr/lib/amanda/killpgrp: version 2.4.1p1
> sending SIGTERM to process group 2007
> child process exited with status 3
> 
> 
> ------------------------------------------------------------------------
> 
> runtar: debug 1 pid 937 ruid 11 euid 0 start time Mon Jan 29 07:34:20 2001
> gtar: version 2.4.1p1
> running: /bin/tar: gtar --create --directory /etc --listed-incremental 
>/var/lib/amanda/gnutar-lists/localhost_etc_1.new --sparse --one-file-system 
>--ignore-failed-read --totals --file - . 
> 
> 
> ------------------------------------------------------------------------
> 
> selfcheck: debug 1 pid 1171 ruid 11 euid 11 start time Mon Jan 29 00:29:29 2001
> /usr/lib/amanda/selfcheck: version 2.4.1p1
> checking disk /etc: device /etc: OK
> selfcheck: pid 1171 finish time Mon Jan 29 00:29:29 2001
> 
> 
> ------------------------------------------------------------------------
> 
> sendbackup: debug 1 pid 933 ruid 11 euid 11 start time Mon Jan 29 07:34:20 2001
> /usr/lib/amanda/sendbackup: got input request: GNUTAR /etc 1 2001:1:27:2:25:7 
>OPTIONS 
>|;bsd-auth;compress-fast;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;
>   parsed request as: program `GNUTAR' disk `/etc' lev 1 since 2001:1:27:2:25:7 opt 
>`|;bsd-auth;compress-fast;index;exclude-list=/usr/local/lib/amanda/exclude.gtar;'
> sendbackup: exclude list file "/usr/local/lib/amanda/exclude.gtar" does not exist, 
>ignoring
>   waiting for connect on 1026, then 1027, then 1028
>   got all connections
> sendbackup: spawning "/usr/bin/gzip" in pipeline
> sendbackup: argument list: "/usr/bin/gzip" "--fast"
> sendbackup-gnutar: pid 935: /usr/bin/gzip --fast
> sendbackup: doing level 1 dump as listed-incremental from 
>/var/lib/amanda/gnutar-lists/localhost_etc_0, updating to 
>/var/lib/amanda/gnutar-lists/localhost_etc_1.new
> sendbackup: doing level 1 dump from date: 2001-01-27  2:25:07 GMT
> sendbackup: spawning "/usr/lib/amanda/runtar" in pipeline
> sendbackup: argument list: "gtar" "--create" "--directory" "/etc" 
>"--listed-incremental" "/var/lib/amanda/gnutar-lists/localhost_etc_1.new" "--sparse" 
>"--one-file-system" "--ignore-failed-read" "--totals" "--file" "-" "."
> sendbackup-gnutar: pid 937: /usr/lib/amanda/runtar --create --directory /etc 
>--listed-incremental /var/lib/amanda/gnutar-lists/localhost_etc_1.new --sparse 
>--one-file-system --ignore-failed-read --totals --file - .
> sendbackup: started index creator: "/bin/tar -tf - 2>/dev/null | sed -e 's/^\.//'"
> sendbackup: index created successfully
> sendbackup: pid 934 finish time Mon Jan 29 07:34:20 2001
> 
> 
> ------------------------------------------------------------------------
> 
> sendsize: debug 1 pid 929 ruid 11 euid 11 start time Mon Jan 29 07:33:49 2001
> /usr/lib/amanda/sendsize: version 2.4.1p1
> calculating for amname '/etc', dirname '/etc'
> sendsize: getting size via gnutar for /etc level 0
> sendsize: missing exclude list file "/usr/local/lib/amanda/exclude.gtar" discarded
> sendsize: running "/usr/lib/amanda/runtar --create --directory /etc 
>--listed-incremental /var/lib/amanda/gnutar-lists/localhost_etc_0.new --sparse 
>--one-file-system --ignore-failed-read --totals --file /dev/null ."
> Total bytes written: 7137280 (6.8MB, 1.7MB/s)
> ......
> sendsize: getting size via gnutar for /etc level 1
> sendsize: missing exclude list file "/usr/local/lib/amanda/exclude.gtar" discarded
> sendsize: running "/usr/lib/amanda/runtar --create --directory /etc 
>--listed-incremental /var/lib/amanda/gnutar-lists/localhost_etc_1.new --sparse 
>--one-file-system --ignore-failed-read --totals --file /dev/null ."
> Total bytes written: 307200 (300kB, ?B/s)
> ......
> sendsize: pid 929 finish time Mon Jan 29 07:33:53 2001
> 
> amanda-1
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> amandaidx
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> amidxtape
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> amandad.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> amidxtaped.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> amindexd.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> amrecover.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> amtrmidx.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> killpgrp.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> runtar.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> selfcheck.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> sendbackup.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 
> ------------------------------------------------------------------------
> sendsize.debug
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 

-- 
**********************************
Mack Earnhardt
Optivel, Inc.
E-mail: [EMAIL PROTECTED]
Voice:  317.507.6274
Fax:    800.832.5615
Web:    http://www.optivel.com
**********************************

Reply via email to