Amanda-Users

Re: Invalid value for ai_flags

2007-05-04 14:57:11
Subject: Re: Invalid value for ai_flags
From: Richard Stockton <amanda AT richardleestockton DOT org>
To: Jean-Louis Martineau <martineau AT zmanda DOT com>
Date: Fri, 04 May 2007 11:54:12 -0700
Hi Jean-Louis,

At 11:10 AM 5/4/2007, Jean-Louis Martineau wrote:
Richard,

Could you try this simpler patch instead of the previous one?

It failed for 3 hunks, "bsd-security.c", "amcheck.c", and "dumper.c".
I edited these 3 files by hand with your changes, and re-compiled.
Running "amcheck" now no longer shows that error.

However, "amdump" now seems to fail because "planner" fails...
====================================================================
> more /work/amanda/bak13/log.20070505123838.0
DISK planner bak-05 da2s1d
DISK planner bak-05 da3s1d
START planner date 20070505123838
INFO planner Adding new disk bak-05:da2s1d.
INFO planner Adding new disk bak-05:da3s1d.
START driver date 20070505123838
STATS driver hostname bak-05.adhost.com
STATS driver startup time 0.050
FAIL planner bak-05 da3s1d 20070505123838 0 [missing result for da3s1d in bak-05
response]
FAIL planner bak-05 da2s1d 20070505123838 0 [missing result for da2s1d in bak-05
response]
FINISH planner date 20070505123838 time 0.216
START taper datestamp 20070505123838 label VOL130 tape 0
WARNING driver WARNING: got empty schedule from planner
INFO taper tape VOL130 kb 0 fm 0 [OK]
FINISH driver date 20070505123838 time 15.311
=======================================================================

=======================================================================
> more /tmp/amanda/server/bak13/planner.20070505123838.debug
planner: debug 1 pid 41331 ruid 1001 euid 0: start at Sat May  5 12:38:38 2007
planner: debug 1 pid 41331 ruid 1001 euid 1001: rename at Sat May 5 12:38:38 200
7
planner: time 0.047: security_getdriver(name=BSD) returns 0x280df020
planner: time 0.048: security_handleinit(handle=0x805ef00, driver=0x280df020 (BSD
))
planner: time 0.052: bind_portrange2: Try  port 689: Available   - Success
planner: time 0.052: dgram_bind: socket 3 bound to 0.0.0.0.689
planner: time 0.056: dgram_send_addr(addr=0x805ef20, dgram=0x280e0fc4)
planner: time 0.056: (sockaddr_in *)0x805ef20 = { 2, 10080, 10.211.1.105 }
planner: time 0.056: dgram_send_addr: 0x280e0fc4->socket = 3
planner: time 0.156: dgram_recv(dgram=0x280e0fc4, timeout=0, fromaddr=0x280f0fb0)
planner: time 0.156: (sockaddr_in *)0x280f0fb0 = { 2, 10080, 10.211.1.105 }
planner: time 0.167: dgram_recv(dgram=0x280e0fc4, timeout=0, fromaddr=0x280f0fb0)
planner: time 0.167: (sockaddr_in *)0x280f0fb0 = { 2, 10080, 10.211.1.105 }
planner: time 0.167: dgram_send_addr(addr=0x805ef20, dgram=0x280e0fc4)
planner: time 0.167: (sockaddr_in *)0x805ef20 = { 2, 10080, 10.211.1.105 }
planner: time 0.167: dgram_send_addr: 0x280e0fc4->socket = 3
planner: time 0.168: security_getdriver(name=BSD) returns 0x280df020
planner: time 0.168: security_handleinit(handle=0x806b000, driver=0x280df020 (BSD
))
planner: time 0.172: dgram_send_addr(addr=0x806b020, dgram=0x280e0fc4)
planner: time 0.172: (sockaddr_in *)0x806b020 = { 2, 10080, 10.211.1.105 }
planner: time 0.172: dgram_send_addr: 0x280e0fc4->socket = 3
planner: time 0.172: security_close(handle=0x805ef00, driver=0x280df020 (BSD))
planner: time 0.181: dgram_recv(dgram=0x280e0fc4, timeout=0, fromaddr=0x280f0fb0)
planner: time 0.181: (sockaddr_in *)0x280f0fb0 = { 2, 10080, 10.211.1.105 }
planner: time 0.204: dgram_recv(dgram=0x280e0fc4, timeout=0, fromaddr=0x280f0fb0)
planner: time 0.204: (sockaddr_in *)0x280f0fb0 = { 2, 10080, 10.211.1.105 }
planner: time 0.228: dgram_recv(dgram=0x280e0fc4, timeout=0, fromaddr=0x280f0fb0)
planner: time 0.228: (sockaddr_in *)0x280f0fb0 = { 2, 10080, 10.211.1.105 }
planner: time 0.228: dgram_send_addr(addr=0x806b020, dgram=0x280e0fc4)
planner: time 0.228: (sockaddr_in *)0x806b020 = { 2, 10080, 10.211.1.105 }
planner: time 0.228: dgram_send_addr: 0x280e0fc4->socket = 3
planner: time 0.229: security_close(handle=0x806b000, driver=0x280df020 (BSD))
planner: time 0.230: pid 41331 finish time Sat May  5 12:38:38 2007
=============================================================================

In the interest of saving space, I removed your patch and most of my original
message from below.

I feel like I'm very close to making this work.  Any ideas about what to try
or change next?  Again, TIA.
 - Richard



Jean-Louis

Richard Stockton wrote:
OS: FreeBSD 6.2

amcheck displays this;
====================================================================
Amanda Tape Server Host Check
-----------------------------
ERROR: Cannot resolve `localhost': Invalid value for ai_flags
read label `VOL130', date `20070504193456'
NOTE: skipping tape-writable test
Tape VOL130 label ok
NOTE: conf info dir /work/amanda/bak13/curinfo does not exist
NOTE: it will be created on the next run.
NOTE: index dir /work/amanda/bak13/index does not exist
NOTE: it will be created on the next run.
Server check took 0.081 seconds

Amanda Backup Client Hosts Check
--------------------------------
WARNING: bak-05: selfcheck request failed: getaddrinfo(bak-05): Invalid value for ai_flags

Client check: 1 host checked in 10.003 seconds, 1 problem found

(brought to you by Amanda 2.5.2)
======================================================================


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