Addr 0.0.0.0: hostname lookup failed: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
No edit summary
 
(man links)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
;Issue : amandad fails with error "addr 0.0.0.0: hostname lookup failed". [[amdump]], [[amcheck]] commands could see this failure.
{{Troubleshooting Header}}
=Problem=
{{man|8|amandad}} fails with error  
addr 0.0.0.0: hostname lookup failed
The {{man|8|amdump}} and {{man|8|amcheck}} commands may display this error.


;Logs : Check the amandad debug logs on the client. For example: ''/tmp/amanda/amandad.<Datestamp>''. Example of log messages:  
=Solution=
 
Check the amandad debug logs on the client. For example: ''/tmp/amanda/amandad.<Datestamp>''. Example of log messages:  
  amandad: time 0.000: dgram_send_addr: sendto(0.0.0.0.566) failed:
  amandad: time 0.000: dgram_send_addr: sendto(0.0.0.0.566) failed:
  Invalid argument
  Invalid argument
Line 7: Line 13:
  ----
  ----
  Amanda 2.4 REP HANDLE 001-A8850608 SEQ 1152114891
  Amanda 2.4 REP HANDLE 001-A8850608 SEQ 1152114891
  ERROR [addr 0.0.0.0: hostname lookup failed
  ERROR [addr 0.0.0.0: hostname lookup failed]
 
;Cause : One of the possible reasons can be
 
* Using inetd in IPv6 environment on a linux system
 
; Solutions :
 
* Use xinetd instead of inetd services
* Set protocol field to ''tcp46'' in xinetd or inetd service entry. See [[Amanda and IPv6]]
 


----
One of the possible reasons can be using inetd in IPv6 environment on a linux system.  If this is the case, then
See more [[amandad issues]].
* use xinetd instead of inetd services; and
* set protocol field to ''tcp46'' in xinetd or inetd service entry. See also [[How To:Run Amanda Over IPv6]].

Latest revision as of 23:28, 30 June 2008

This article is a part of the Troubleshooting collection.

Problem

amandad(8) fails with error

addr 0.0.0.0: hostname lookup failed

The amdump(8) and amcheck(8) commands may display this error.

Solution

Check the amandad debug logs on the client. For example: /tmp/amanda/amandad.<Datestamp>. Example of log messages:

amandad: time 0.000: dgram_send_addr: sendto(0.0.0.0.566) failed:
Invalid argument
amandad: time 0.003: sending REP packet:
----
Amanda 2.4 REP HANDLE 001-A8850608 SEQ 1152114891
ERROR [addr 0.0.0.0: hostname lookup failed]

One of the possible reasons can be using inetd in IPv6 environment on a linux system. If this is the case, then

  • use xinetd instead of inetd services; and
  • set protocol field to tcp46 in xinetd or inetd service entry. See also How To:Run Amanda Over IPv6.