PDA

View Full Version : selfcheck request failed: recv error: Connection reset by peer



ba0547
February 12th, 2007, 01:17 PM
Hello,

have following error/warning.

/usr/lib/amanda/amandad seems to run correctly? sometimes it
interrupts after 30 sec. donīt know what this log can tell me.


amandad: debug 1 pid 4228 ruid 37 euid 37: start at Mon Feb 12 20:22:10
2007
security_getdriver(name=bsdtcp) returns 0x806ad40
amandad: version 2.5.1p2
amandad: build: VERSION="Amanda-2.5.1p2"
amandad: BUILT_DATE="Wed Feb 7 16:31:01 UTC 2007"
amandad: BUILT_MACH="Linux cimarosa 2.6.18 #1 SMP Mon May 22
14:37:02 UTC 2006 i686 i686 i386 GNU/Linux"
amandad: CC="gcc" CONFIGURE_COMMAND="'./configure' 'linux' 'gnu'"
amandad: paths: bindir="/usr/bin" sbindir="/usr/sbin"
amandad: libexecdir="/usr/lib/amanda" mandir="/usr/share/man"
amandad: AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad: CONFIG_DIR="/etc/amanda" DEV_PREFIX="/dev/"
amandad: RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
amandad: RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
amandad: XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF
amandad: SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/bin/tar"
amandad: COMPRESS_PATH="/usr/bin/gzip"
amandad: UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lpr"
amandad: 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" HAVE_MMAP HAVE_SYSVSHM
amandad: LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
amandad: AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY
USE_AMANDAHOSTS
amandad: CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
amandad: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amandad: time 0.069: he returned NULL: h_errno = 1
amandad: time 0.070: pid 4228 finish time Mon Feb 12 20:22:10 2007

as auth i am using bsdtcp. like described here in another discussion.
have ..ack error with bsd authentication. amanda server itself is
correctly working and did several backups in the last vew days. server
is running on open suse 10.1 on a i586 machine, 1 client is running on
debian 4 on a sparc machine, other is a open suse 10.1 client on amd 64
machine. both clients seem to have the same connection reset problem.
tried all which is described in other topics here. /etc/xinetd/amanda
has following data:

service amanda
{
socket_type = stream
only_from = 192.168.2.7 192.168.2.5 p400.dorg.org
linux-k67x.dorg.org
protocol = tcp
wait = no
user = amanda
group = disk
groups = yes
server = /usr/lib/amanda/amandad
server_args = -auth=bsdtcp amdump amindexd amidxtaped
disable = no
}

1. I am not shure if i can use static ipv4 adresses in xinetd configfiles.
2. I am not shure if on all machines the same backupuser has to be used.
sparc machine (client) is using user backup:backup, amd64 machine user
amanda:disk.
3. Firewall on AMD 64 is set to "test" mode.
4. server and amd64 client has amanda 2.5.1p2 sparc client 2.5.1p1
5. dumpdirectories, dump, and xfsdump is installed on all 3 machines.
6. i am not shure what has to be in .amandahosts file on the clients.
7. dont know which files has to be exclusive chmod/chown for amanda
backup user.
8. Ananda wiki also did not give me further informations for my specific
problem

Please help. i want to backup my clients also.

regards, harald.

martineau
February 12th, 2007, 02:27 PM
Are you sure the client can resolve the server IP address?

ba0547
February 13th, 2007, 12:27 PM
Hello,

you were right. i forgot to enter servers adress to hosts file in /etc/ directory. now everything seems to work fine.

thanks for your help.

regards, harald.

yezawkhant
January 12th, 2009, 10:52 PM
I m testing the amanda2.6.0p2-1 version on ubuntu 8.04.I got the following problems "connection reset by peer". What's a problem?

$ amcheck daily
Amanda Tape Server Host Check
-----------------------------
Holding disk /space/amandahold/daily: 9211904 KB disk space available, using 9109504 KB
slot 2:read label `daily-01', date `X'.
NOTE: skipping tape-writable test
Tape daily-01 label ok
WARNING: tapecycle (5) <= runspercycle (5).
NOTE: conf info dir /etc/amanda/daily/curinfo does not exist
NOTE: it will be created on the next run.
NOTE: index dir /etc/amanda/daily/index does not exist
NOTE: it will be created on the next run.
Server check took 0.370 seconds

Amanda Backup Client Hosts Check
--------------------------------
WARNING: 192.168.2.2: selfcheck request failed: recv error: Connection reset by peer
Client check: 1 host checked in 0.022 seconds. 1 problem found.

(brought to you by Amanda 2.6.0p2)

AndyThomas
January 17th, 2009, 09:49 AM
I get the same issue

Can somebody tell me what I need to put in this hosts file on both the server and the client side? e.g. which IP address' in which file and waht the syntax is

Thanks

Andy

dustin
January 17th, 2009, 11:11 AM
the complete reference is in the amanda-auth manpage: http://wiki.zmanda.com/man/amanda-auth.7.html