PDA

View Full Version : 501 Could not read config file /etc/amanda/-auth=bsd/amanda.conf!



protloc0
June 12th, 2007, 02:57 PM
Hello, i have made my backup, amcheck works, amdump works..

but when im doin my recovery i get troubles...

[root@virt1 amanda]# amrecover -s host1

AMRECOVER Version 2.5.0p2. Contacting server on host1 ...
501 Could not read config file /etc/amanda/-auth=bsd/amanda.conf!


My amindx.debug says..

amindexd: debug 1 pid 3617 ruid 33 euid 33: start at Tue Jun 12 16:40:09 2007
amindexd: version 2.5.0p2

could not open conf file "/etc/amanda/-auth=bsd/amanda.conf": No such file or directory

amindexd: < 501 Could not read config file /etc/amanda/-auth=bsd/amanda.conf!
amindexd: < 220 host1 AMANDA index server (2.5.0p2) ready.
amindexd: ? read error: Connection reset by peer



------------------------------------------------
--- config files -------------
------------------------------------------------

-----------------------------
------SERVER (host1)---------
-----------------------------

[root@host1 ~]# cat /etc/services | grep amanda
amanda 10080/tcp # amanda backup services
amanda 10080/udp # amanda backup services
kamanda 10081/tcp # amanda backup services (Kerberos)
kamanda 10081/udp # amanda backup services (Kerberos)
amandaidx 10082/tcp # amanda backup services
amandaidx 10082/udp
amidxtape 10083/tcp # amanda backup services

[root@host1 ~]# netstat -an | grep LISTEN
tcp 0 0 0.0.0.0:10080 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:10082 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:10083 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:808 0.0.0.0:* LISTEN




xinetd.d/amanda ---

service amanda
{

only_from = virt1 host
socket_type = dgram
disable = no
protocol = udp
wait = no
user = amanda
group = disk
groups = yes
server = /usr/lib/amanda/amandad

server_args = -auth=bsd amdump amindexd amidxtaped
}
---------------------

xinetd.d/amandaidx

service amandaidx
{
only_from = virt1 host1
socket_type = stream
protocol = tcp
wait = no
user = amanda
group = disk
server = /usr/lib/amanda/amindexd
disable = no
server_args = -auth=bsd amdump amindexd amidxtaped
}

----------------------

xinetd.d/amidxtape

service amidxtape
{
only_from = virt1 host1
socket_type = stream
protocol = tcp
wait = no
user = amanda
group = disk
server = /usr/lib/amanda/amidxtaped
disable = no
server_args = -auth=bsd amdump amindexd amidxtaped
}
------------------------

/etc/hosts

[root@host1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost host1
::1 localhost6.localdomain6 localhost6
192.168.1.229 virt1
192.168.1.75 host1
----------------------
CONFIG
.amandahost

[root@host1 ~]# cat /var/lib/amanda/.amandahosts
localhost amanda
localhost.localdomain amanda
virt1 root amindexd amidxtaped
host1 root amindexd amidxtaped
host1 amanda amdump
[root@host1 ~]#

im using auth= bsd



----------------------------------------------
------- Client -> virt1-----------------------
----------------------------------------------


---------------
xinetd.d/amanda

#default: on
# 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 = no
user = amanda
group = disk
server = /usr/lib/amanda/amandad
disable = no
server_args = -auth=bsd amdump
}

----------------------
|AMANDA-CLIENT.CONF|
----------------------

[root@virt1 amanda]# vim amanda-client.conf
# amanda.conf - sample Amanda client configuration file.
#
# This file normally goes in /etc/amanda/amanda-client.conf.
#
conf "DailySet1" # your config name

index_server "host1" # your amindexd server

tape_server "host1" # your amidxtaped server

#tapedev "/dev/null" # your tape device
# auth - authentication scheme to use between server and client.
# Valid values are "bsd", "bsdudp", "bsdtcp" and "ssh".
# Default: [auth "bsdtcp"]

auth "bsd"

# your ssh keys file if you use ssh auth

ssh_keys "/var/lib/amanda/.ssh/id_rsa_amrecover"

-------------------------------

[root@virt1 amanda]# cat .amandahosts
host1 amanda amdump
[root@virt1 amanda]#

-------------------------------------------------------------
END


-----------------------
What else to add!??,

thanks in advance, im really desperated...

Any good Solution Guys? Thanks!

martineau
June 12th, 2007, 03:14 PM
amrecover in 2.5.0p2 doesn't work with the security api,
remove the 'server_args' from xinetd.d/amandaidx and xinetd.d/amidxtape.

Read the documentation for the release you are using.

protloc0
June 12th, 2007, 03:22 PM
Thanks for your reply.. now i have another problem...

[root@virt1 amanda]# amrecover -s host1
AMRECOVER Version 2.5.0p2. Contacting server on host1 ...
220 host1 AMANDA index server (2.5.0p2) ready.
500 Access not allowed


----SERVER ------
[root@host1 amanda]# more amindexd.20070612172042.debug
amindexd: debug 1 pid 13528 ruid 33 euid 33: start at Tue Jun 12 17:20:42 2007
amindexd: version 2.5.0p2
amindexd: < 220 host1 AMANDA index server (2.5.0p2) ready.
amindexd: > SECURITY USER root
bsd security: remote host virt1 user root local user amanda

amindexd: < 500 Access not allowed
amindexd: [access as amanda not allowed from root@virt1: /var/lib/amanda/.amandahosts: incorrect permissions; file must be accessible only by its owner]
amindexd: < 200 Good bye.

amindexd: pid 13528 finish time Tue Jun 12 17:20:42 2007
[root@host1 amanda]# ls -lha /var/lib/amanda/
total 64K
drwxr-xr-x 5 amanda disk 4,0K jun 12 16:39 .
drwxr-xr-x 26 root root 4,0K jun 5 17:35 ..
-rwxrwxrwx 1 amanda disk 129 jun 8 18:38 .amandahosts
-rw------- 1 amanda disk 3,5K jun 11 20:16 .bash_history
drwxr-xr-x 3 amanda disk 4,0K jun 5 17:37 DailySet1
drwxr-xr-x 2 amanda disk 4,0K oct 2 2006 gnutar-lists
-rw------- 1 amanda disk 35 jun 11 15:50 .lesshst
drwx------ 2 amanda disk 4,0K jun 6 17:24 Mail
-rw------- 1 amanda disk 2,8K jun 11 16:25 .viminfo


Any ideas ??

martineau
June 12th, 2007, 04:17 PM
Thanks for your reply.. now i have another problem...
amindexd: < 500 Access not allowed
amindexd: [access as amanda not allowed from root@virt1: /var/lib/amanda/.amandahosts: incorrect permissions; file must be accessible only by its owner]


What are the permission of /var/lib/amanda/.amandahosts?

protloc0
June 12th, 2007, 04:29 PM
thanks for your reply.

[root@host1 amanda]# ls -lha /var/lib/amanda/.amandahosts
-rwxrwxrwx 1 amanda disk 170 jun 12 18:09 /var/lib/amanda/.amandahosts
[root@host1 amanda]#

i chmod it, cuz i didnt know what to do...

thanks!