PDA

View Full Version : Amanda amrecover-request failed -connection refused



Hamood
September 19th, 2008, 05:25 AM
Hi,

when i run amrecover

i get the error "request failed -connection refused"
using version 2.6
when i run tail -f /var/log/messages

i get this :

tail /var/log/messages
: missing '{' [file=/etc/xinetd.d/amandaserver] [line=22]
: missing '{' [file=/etc/xinetd.d/amandaserver] [line=35]
Sep 20 06:37:04 pclux xinetd[1753]: missing service keyword [file=/etc/xinetd.d/amandaserver] [line=44]
Sep 20 06:37:04 pclux xinetd[1753]: missing } in last service entry [file=/etc/xinetd.d/amandaserver] [line=44]
Sep 20 06:37:04 pclux xinetd[1753]: bind failed (Address already in use (errno = 98)). service = amanda
Sep 20 06:37:04 pclux xinetd[1753]: Service amanda failed to start and is deactivated.
Sep 20 06:37:04 pclux xinetd[1753]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Sep 20 06:37:04 pclux xinetd[1753]: Started working: 1 available service
Sep 20 06:40:29 pclux nagios: Auto-save of retention data completed successfully.
Sep 20 07:40:29 pclux nagios: Auto-save of retention data completed successfully.
[root@pclux ~]#




In /etc/xinetd.d/amandaserver

# default: on
#
# description: Amanda services for Amanda server and client.
#

service amanda
{
disable = no
flags = IPv4
flags = IPv6
socket_type = stream
protocol = tcp
wait = no
user = amandabackup
group = disk
groups = yes
server = /usr/libexec/amanda/amandad
server_args = -auth=bsdtcp amdump amindexd amidxtaped
}

service amidxtape
{
socket_type = stream
protocol = tcp
wait = no
user = amandabackup
group = disk
groups = yes
server = /usr/libexec/amanda/amidxtaped
server_args = -auth=bsdtcp amdump amindexd amidxtaped

}


service amandaidx
{
socket_type = stream
protocol = tcp
wait = no
user = amandabackup
group = disk
groups = yes
server = /usr/libexec/amanda/amindexd
server_args = -auth=bsdtcp amdump amindexd amidxtaped
}


Please help

Thanks

pyeatman
September 24th, 2008, 12:09 PM
I would try making a copy of this file outside of the xinetd directory and then editing the one within the xinetd directory until I figure out where the problem occurs. I can't locate a problem in the text submitted. I might try the amanda service alone, for instance, try reloading xinetd and see if it escapes any errors. Each service could be put in its own file if needed. The problem certainly seems to begin with the start of the second service for whatever reason.

paul

dustin
October 2nd, 2008, 04:11 PM
with modern versions of Amanda using bsdtcp you don't need teh amidxtape and amanadaidx services anymore -- all such communication goes through amandad.