Amanda-Users

amrecover and ssh could not resolve hostname

2008-03-28 18:05:40
Subject: amrecover and ssh could not resolve hostname
From: Oscar Ricardo Silva <osilva AT scuff.cc.utexas DOT edu>
To: amanda-users AT amanda DOT org
Date: Fri, 28 Mar 2008 16:57:52 -0500
I've been recently moving to doing encrypted backups with ssh authentication. After some hiccups with random numbers and cryptic messages about "Error: Password must be at least 20 characters", I am now successfully encrypting my backups. Now I just need to test the ability to restore files ... that's when I ran into this problem. When I run amrecover I get this error:

 /usr/local/amanda25/sbin/amrecover -C dailytoo
AMRECOVER Version 2.5.2p1. Contacting server on amanda.tn.utexas.edu ...
[request failed: amanda.tn.utexas.edu: ssh could not resolve hostname]


and here's the content of the amrecover debug file:


amrecover: debug 1 pid 439 ruid 0 euid 0: start at Fri Mar 28 16:45:53 2008
Reading conf file "/usr/local/amanda25/etc/amanda/amanda-client.conf".
Reading conf file "/usr/local/amanda25/etc/amanda/dailytoo/amanda-client.conf".
amrecover: debug 1 pid 439 ruid 0 euid 0: rename at Fri Mar 28 16:45:53 2008
amrecover: time 0.003: security_getdriver(name=ssh) returns 0x480bcc20
amrecover: time 0.003: security_handleinit(handle=0x806d000, driver=0x480bcc20 (SSH)) amrecover: time 0.003: security_seterror(handle=0x806d000, driver=0x480bcc20 (SSH) error=amanda.tn.utexas.edu: ssh could not resolve hostname)
amrecover: time 0.003: security_close(handle=0x806d000, driver=0x480bcc20 (SSH))
amrecover: time 5.012: security_handleinit(handle=0x806d000, driver=0x480bcc20 (SSH)) amrecover: time 5.012: security_seterror(handle=0x806d000, driver=0x480bcc20 (SSH) error=amanda.tn.utexas.edu: ssh could not resolve hostname)
amrecover: time 5.012: security_close(handle=0x806d000, driver=0x480bcc20 (SSH))
amrecover: time 10.023: security_handleinit(handle=0x806d000, driver=0x480bcc20 (SSH)) amrecover: time 10.023: security_seterror(handle=0x806d000, driver=0x480bcc20 (SSH) error=amanda.tn.utexas.edu: ssh could not resolve hostname)
amrecover: time 10.023: security_close(handle=0x806d000, driver=0x480bcc20 
(SSH))


contents of  amanda-client.conf:

auth "ssh"
index_server "amanda.tn.utexas.edu"
tape_server "amanda.tn.utexas.edu"
ssh_keys "/root/.ssh/id_rsa_amrecover"


It's not really an issue with resolving the hostname. DNS is setup correctly and I can ssh from the client to the server and from the server to the backup. While running amrecover I see no queries being sent to the servers listed in resolv.conf. Even inserting the host into /etc/hosts doesn't help. I've looked through the list archives and someone ran into this problem in October 2006 but have not seen any other mentions of it.

Any thoughts/suggestions/recommendations?


Oscar

<Prev in Thread] Current Thread [Next in Thread>