PDA

View Full Version : selfcheck request failed: timeout waiting for ACK


Adina
October 25th, 2006, 03:48 AM
When running amcheck DailySet1 on a suse 10 server, I got this error. I did try solving the problem from other posts but with no success.
I do get a debug file on my client (also running suse10).
This is what it looks like:

amandad: debug 1 pid 12271 ruid 1001 euid 1001: start at Wed Oct 25 08:46:48 2006
security_getdriver(name=BSD) returns 0xf7ecd0e0
amandad: version 2.5.1p1
amandad: build: VERSION="Amanda-2.5.1p1"
amandad: BUILT_DATE="Wed Oct 18 21:12:50 PDT 2006"
amandad: BUILT_MACH="Linux suzy 2.6.16.14-6-smp #1 SMP Tue May 9 12:09:06 UTC 2006 i686 athlon i386 GNU/Linux"
amandad: CC="gcc"
amandad: CONFIGURE_COMMAND="'./configure' '--build=i586-suse-linux' '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/amanda' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/var/lib/amanda' '--localstatedir=/var/lib/amanda' '--libdir=/usr/lib' '--includedir=/usr/include' '--infodir=/usr/info' '--mandir=/usr/share/man' '--with-gnutar=/bin/tar' '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '--with-dumperdir=/usr/lib/amanda' '--with-index-server=localhost' '--with-tape-server=localhost' '--with-user=amandabackup' '--with-group=disk' '--with-owner=paddy' '--with-fqdn' '--with-bsd-security' '--with-bsdtcp-security' '--with-bsdudp-security' '--with-ssh-security' '--with-assertions'"
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=UNDEF RESTORE=UNDEF VDUMP=UNDEF
amandad: VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF
amandad: VXRESTORE=UNDEF SAMBA_CLIENT="/usr/bin/smbclient"
amandad: GNUTAR="/bin/tar" 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 ASSERTIONS DEBUG_CODE
amandad: AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
amandad: CLIENT_LOGIN="amandabackup" FORCE_USERID HAVE_GZIP
amandad: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amandad: time 0.000: dgram_recv(dgram=0xf7ece084, timeout=0, fromaddr=0xf7ede070)
amandad: time 0.000: (sockaddr_in *)0xf7ede070 = { 2, 25206, 10.0.0.139 }
amandad: time 9.929: dgram_recv(dgram=0xf7ece084, timeout=0, fromaddr=0xf7ede070)
amandad: time 9.929: (sockaddr_in *)0xf7ede070 = { 2, 25206, 10.0.0.139 }
amandad: time 19.929: dgram_recv(dgram=0xf7ece084, timeout=0, fromaddr=0xf7ede070)
amandad: time 19.929: (sockaddr_in *)0xf7ede070 = { 2, 25206, 10.0.0.139 }
amandad: time 31.150: pid 12271 finish time Wed Oct 25 08:47:19 2006
~
~

Any ideas?

ppragin
October 25th, 2006, 09:14 AM
Hello,

Make sure you are using "auth bsdtcp" in your dumtype definition. If you are not sure what i am talking about, go ahead and post your amanda.conf and i can help you.

Pavel Pragin

paddy
October 25th, 2006, 09:28 AM
Hi Adina,

Please take a look at Amanda wiki for trouble shooting this problem.

http://wiki.zmanda.com/index.php/Amcheck:_selfcheck_request_failed

Thanks,
Paddy

Adina
October 29th, 2006, 12:55 AM
Thanks for the reply.
In amanda.conf I added auth "bsdtcp" in define dumptype global
I also changed the xinetd and .amandahosts configuration files.
Now I get an error:
selfcheck request failed: recv error: Connection reset by peer

Adina
November 6th, 2006, 02:52 AM
Hi,
I still get the error "selfcheck request failed: recv error: Connection reset by peer" found no trouble shooting for this.
anyone can help?

paddy
November 6th, 2006, 10:04 AM
Can you please provide output from /tmp/amanda/<config name>/selfcheck* and
amandad* logs? It appears amandad or selfcheck has closed socket connection
abruptly.

Thanks,
Paddy

Adina
November 7th, 2006, 02:30 AM
The debug file in /tmp/amanda/amandad/
amandad: debug 1 pid 6757 ruid 0 euid 0: start at Mon Nov 6 13:50:06 2006
security_getdriver(name=BSD) returns 0xf7f700e0
amandad: version 2.5.1p1
amandad: build: VERSION="Amanda-2.5.1p1"
amandad: BUILT_DATE="Wed Oct 18 21:12:50 PDT 2006"
amandad: BUILT_MACH="Linux suzy 2.6.16.14-6-smp #1 SMP Tue May 9 12:09:06 UTC 2006 i686 athlon i386 GNU/Linux"
amandad: CC="gcc"
amandad: CONFIGURE_COMMAND="'./configure' '--build=i586-suse-linux' '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/amanda' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/var/lib/amanda' '--localstatedir=/var/lib/amanda' '--libdir=/usr/lib' '--includedir=/usr/include' '--infodir=/usr/info' '--mandir=/usr/share/man' '--with-gnutar=/bin/tar' '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '--with-dumperdir=/usr/lib/amanda' '--with-index-server=localhost' '--with-tape-server=localhost' '--with-user=amandabackup' '--with-group=disk' '--with-owner=paddy' '--with-fqdn' '--with-bsd-security' '--with-bsdtcp-security' '--with-bsdudp-security' '--with-ssh-security' '--with-assertions'"
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=UNDEF RESTORE=UNDEF VDUMP=UNDEF
amandad: VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF
amandad: VXRESTORE=UNDEF SAMBA_CLIENT="/usr/bin/smbclient"
amandad: GNUTAR="/bin/tar" 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 ASSERTIONS DEBUG_CODE
amandad: AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
amandad: CLIENT_LOGIN="amandabackup" FORCE_USERID HAVE_GZIP
amandad: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amandad: time 23.419: dgram_recv(dgram=0xf7f71084, timeout=0, fromaddr=0xf7f81070)
amandad: dgram_recv: recvfrom() failed: Socket operation on non-socket
amandad: time 23.419: dgram_recv(dgram=0xf7f71084, timeout=0, fromaddr=0xf7f81070)
amandad: dgram_recv: recvfrom() failed: Socket operation on non-socket
amandad: time 23.419: dgram_recv(dgram=0xf7f71084, timeout=0, fromaddr=0xf7f81070)
amandad: dgram_recv: recvfrom() failed: Socket operation on non-socket

martineau
November 7th, 2006, 11:29 AM
Which auth are you using?
This is probably an auth misconfiguration.

Can you provide the output of: amadmin <config> disklist
And the /etc/xinetd.d/amanda file

Grubsy
November 7th, 2006, 10:01 PM
Hi, I am also having this problem:

Amanda Backup Client Hosts Check
--------------------------------
WARNING: mysever.mydomain.com: selfcheck request failed: timeout waiting for ACK
Client check: 1 host checked in 30.038 seconds, 1 problem found

(brought to you by Amanda 2.5.0p2)

./amadmin DailySet1 disklist

line 69:
host mysever.mydomain.com:
interface default
disk /etc:
program "GNUTAR"
priority 2
dumpcycle 28
maxdumps 1
maxpromoteday 10000
bumppercent 20
bumpdays 1
bumpmult 4.000000
strategy STANDARD
estimate CLIENT
compress CLIENT FAST
comprate 0.50 0.50
encrypt NONE
auth BSD
kencrypt NO
holdingdisk NO
record YES
index YES
fallback_splitsize 10Mb
skip-incr NO
skip-full NO

How can i check if the auth BSD part is setup correctly?

Thanks

Grubsy
November 7th, 2006, 10:02 PM
more /etc/xinetd.d/amanda
# default: off
# description: The client for the Amanda backup system.\
# This must be on for systems being backed up\
# by Amanda.

service amanda
{
socket_type = dgram
protocol = udp
wait = yes
user = amanda
group = disk
server = /usr/lib/amanda/amandad
disable = no
}

Grubsy
November 7th, 2006, 10:23 PM
Also i was wondering about my .amandahosts file. does this look ok:

myserver amanda
myserver.mydomain.com amanda
myserver root
myserver.mydomain.com root

Thanks Again!

Grubsy
November 7th, 2006, 11:08 PM
I'm not sure if these files show anything useful?

more /var/log/amanda/amcheck.20061108171543.debug

amcheck: debug 1 pid 2563 ruid 33 euid 0: start at Wed Nov 8 17:15:43 2006
amcheck-clients: time 0.008: bind_portrange2: trying port=796
amcheck-clients: time 0.008: dgram_bind: socket bound to 0.0.0.0.796
amcheck: pid 2563 finish time Wed Nov 8 17:16:13 2006

more /var/log/amanda/amandad.20061108171543.debug

amandad: debug 1 pid 2566 ruid 33 euid 33: start at Wed Nov 8 17:15:43 2006
amandad: version 2.5.0p2
amandad: build: VERSION="Amanda-2.5.0p2"
amandad: BUILT_DATE="Mon Oct 2 15:57:44 EDT 2006"
amandad: BUILT_MACH="Linux hs20-bc1-5.build.redhat.com 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 i686 i686 i386 GNU/Linux"
amandad: CC="gcc"
amandad: CONFIGURE_COMMAND="'./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-
prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/includ
e' '--libdir=/usr/lib' '--libexecdir=/usr/lib/amanda' '--localstatedir=/var/lib' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share
/info' '--enable-shared' '--disable-static' '--disable-dependency-tracking' '--with-index-server=amandahost' '--with-tape-server=amandahost' '--with-config=
DailySet1' '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '--with-smbclient=/usr/bin/smbclient' '--with-dumperdir=/usr/lib/amanda/dumperdir' '--with-a
mandahosts' '--with-user=amanda' '--with-group=disk' '--with-tmpdir=/var/log/amanda' '--with-gnutar=/bin/tar' '--with-ssh-security'"
amandad: paths: bindir="/usr/bin" sbindir="/usr/sbin"
amandad: libexecdir="/usr/lib/amanda" mandir="/usr/share/man"
amandad: AMANDA_TMPDIR="/var/log/amanda"
amandad: AMANDA_DBGDIR="/var/log/amanda" CONFIG_DIR="/etc/amanda"
amandad: DEV_PREFIX="/dev/" RDEV_PREFIX="/dev/r"
amandad: DUMP="/sbin/dump" RESTORE="/sbin/restore" VDUMP=UNDEF
amandad: VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF
amandad: VXRESTORE=UNDEF SAMBA_CLIENT="/usr/bin/smbclient"
amandad: GNUTAR="/bin/tar" COMPRESS_PATH="/bin/gzip"
amandad: UNCOMPRESS_PATH="/bin/gzip" LPRCMD="/usr/bin/lpr"
amandad: MAILER="/usr/bin/Mail"
amandad: listed_incr_dir="/var/lib/amanda/gnutar-lists"
amandad: defs: DEFAULT_SERVER="amandahost" DEFAULT_CONFIG="DailySet1"
amandad: DEFAULT_TAPE_SERVER="amandahost"
amandad: DEFAULT_TAPE_DEVICE="null:" 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 30.007: pid 2566 finish time Wed Nov 8 17:16:13 2006

Adina
November 7th, 2006, 11:32 PM
/etc/amanda/DailySet1/disklist:
amandaclient.domain.com <dir to backup> comp-user-tar

/etc/amanda/DailySet1/amanda.conf:
define dumptype comp-user-tar {
user-tar
compress client fast
auth "bsdtcp"
}
On server:
/etc/xinetd.d/amandaserver
service amanda
{
only_from = amandaserver.domain.com amandaclient.domain.com
socket_type = stream
protocol = tcp
wait = no
user = amandabackup
group = disk
groups = yes
server = /usr/lib/amanda/amandad
server_args = -auth=bsdtcp amdump amindexd amidxtaped
disable = no
}
On Client:
/etc/xinetd.d/amandaclient
service amanda
{
only_from = amandaserver.domain.com
disable = no
socket_type = stream
protocol = tcp
wait = no
user = amandabackup
group = disk
groups = yes
server = /usr/lib/amanda/amandad
server_args = -auth=bsdtcp amdump amindexd amidxtaped
}

any other info?

martineau
November 8th, 2006, 04:40 AM
Your xinetd config on the client say -auth=bsdtcp
but your amandad log show that it use bsd:
security_getdriver(name=BSD) returns 0xf7f700e0

Have you restarted xinetd have you made the change.
Maybe you have 2 files for the amanda service? which confuse xinetd

Grubsy
November 8th, 2006, 03:32 PM
hmm... i seem to have fixed my problem by adding

10.1.1.2 myserver.mydomain.com myserver

to the /etc/hosts fine on myserver

I have a new problem now. I added a remote machine to my disklist

Amanda Backup Client Hosts Check
--------------------------------
ERROR: remotehost.mydomain.com: [addr 10.1.1.2: hostname lookup failed]

(1.2.3.4) is myserver's IP

Grubsy
November 8th, 2006, 04:34 PM
I have a new problem now. I added a remote machine to my disklist

Amanda Backup Client Hosts Check
--------------------------------
ERROR: remotehost.mydomain.com: [addr 10.1.1.2: hostname lookup failed]

(1.2.3.4) is myserver's IP

I fixed this problem by adding

10.1.1.2 to /etc/hosts on the client machine (remotehost)

I don't understand why the server and client aren't using DNS for this? I never had to add these entries with my old amanda setup

Adina
November 9th, 2006, 04:35 AM
I restarted my xinetd, I get the same error: selfcheck request failed: recv error: Connection reset by peer.
The debug file is:
amandad: debug 1 pid 4461 ruid 1001 euid 1001: start at Thu Nov 9 14:10:58 2006
security_getdriver(name=bsdtcp) returns 0xf7f46140
amandad: version 2.5.1p1
amandad: build: VERSION="Amanda-2.5.1p1"
amandad: BUILT_DATE="Wed Oct 18 21:12:50 PDT 2006"
amandad: BUILT_MACH="Linux suzy 2.6.16.14-6-smp #1 SMP Tue May 9 12:09:06 UTC 2006 i686 athlon i386 GNU/Linux"
amandad: CC="gcc"
amandad: CONFIGURE_COMMAND="'./configure' '--build=i586-suse-linux' '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/amanda' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/var/lib/amanda' '--localstatedir=/var/lib/amanda' '--libdir=/usr/lib' '--includedir=/usr/include' '--infodir=/usr/info' '--mandir=/usr/share/man' '--with-gnutar=/bin/tar' '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '--with-dumperdir=/usr/lib/amanda' '--with-index-server=localhost' '--with-tape-server=localhost' '--with-user=amandabackup' '--with-group=disk' '--with-owner=paddy' '--with-fqdn' '--with-bsd-security' '--with-bsdtcp-security' '--with-bsdudp-security' '--with-ssh-security' '--with-assertions'"
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=UNDEF RESTORE=UNDEF VDUMP=UNDEF
amandad: VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF
amandad: VXRESTORE=UNDEF SAMBA_CLIENT="/usr/bin/smbclient"
amandad: GNUTAR="/bin/tar" 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 ASSERTIONS DEBUG_CODE
amandad: AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
amandad: CLIENT_LOGIN="amandabackup" FORCE_USERID HAVE_GZIP
amandad: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amandad: time 0.000: pid 4461 finish time Thu Nov 9 14:10:58 2006

what else can be wrong? What other info can I give you that will help you figure it out?