Amanda-Users

Re: Invalid value for ai_flags

2007-05-04 16:58:13
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 13:50:46 -0700
Hi Jean-Louis,

At 12:03 PM 5/4/2007, Jean-Louis Martineau wrote:
Post the amandad and sendsize debug files from bak-05

I believe I got it figured out.  It seems that amanda has trouble
creating files and directories in the "/tmp/amanda/" directory,
even though amanda "owns" it.  I first ran into this while trying
to label tapes.  Amanda claims that it failed to create the file
(or dir), but when one checks, it HAS created it.  Then if you
run the specific amanda process again (whatever it is), all is well.
For example;
====================================================================
> more /tmp/amanda/client/sendsize.20070505123838.debug
sendsize: debug 1 pid 41341 ruid 1001 euid 1001: start at Sat May 5 12:38:38 2007
sendsize: version 2.5.2
Could not open conf file "/usr/local/etc/amanda/amanda-client.conf": No such file
 or directory
Reading conf file "/usr/local/etc/amanda/bak13/amanda-client.conf".
sendsize[41341]: time 0.035: create debug directory "/tmp/amanda/client/bak13/":
Operation not permitted
sendsize: time 0.035: pid 41341 finish time Sat May  5 12:38:38 2007
====================================================================

When I checked, "/tmp/amanda/client/bak13/" HAD been created, and when
I ran amdump again, it appears to have succeeded.  I also found I needed
to create "/etc/amandates", even though it appears that this file is not
ever written to.

Well, I spoke too soon.  After 2 hours of looking like it was backing
up the 8 gigs I told it to, it again failed. [sigh]  The taper debug
is rather large (50k) and mostly contains the same line over and over
so I will cut it down a bit;
=====================================================================
taper: debug 1 pid 41559 ruid 1001 euid 1001: start at Sat May  5 13:15:33 2007
taper: pid 41559 executable taper version 2.5.2
taper: debug 1 pid 41559 ruid 1001 euid 1001: rename at Sat May 5 13:15:33 2007
taper: page size = 4096
taper: buffer size is 32768
taper: buffer[00] at 0x28271000
taper: buffer[01] at 0x28279000
taper: buffer[02] at 0x28281000

--- [lots of similar lines removed] ---

taper: buffer[48] at 0x283f1000
taper: buffer[49] at 0x283f9000
taper: buffer structures at 0x28401000 for 600 bytes
taper: Building type 2 (TAPESTART) header of size 32768 using:
taper: Contents of *(dumpfile_t *)0xbfbfc7d0:
taper:     type             = 2 (TAPESTART)
taper:     datestamp        = '20070505131533'
taper:     dumplevel        = 0
taper:     compressed       = 0
taper:     encrypted        = 0
taper:     comp_suffix      = ''
taper:     encrypt_suffix   = ''
taper:     name             = 'VOL130'
taper:     disk             = ''
taper:     program          = ''
taper:     dumper           = ''
taper:     srvcompprog      = ''
taper:     clntcompprog     = ''
taper:     srv_encrypt      = ''
taper:     clnt_encrypt     = ''
taper:     recover_cmd      = ''
taper:     uncompress_cmd   = ''
taper:     encrypt_cmd      = ''
taper:     decrypt_cmd      = ''
taper:     srv_decrypt_opt  = ''
taper:     clnt_decrypt_opt = ''
taper:     cont_filename    = ''
taper:     is_partial       = 0
taper:     partnum          = 0
taper:     totalparts       = 0
taper:     blocksize        = 32768
taper: time 9.745: try_socksize: receive buffer size is 65536
taper: time 9.746: stream_server: Could not bind to any port: Invalid argument
taper: time 9.746: stream_server: Retrying entire range after 10 second delay.

--- [lots of similar lines deleted here] ---

taper: time 3609.980: stream_server: Could not bind to any port: Invalid argument
taper: time 3609.980: stream_server: bind(in6addr_any) failed: Invalid argument
taper: Building type 3 (TAPEEND) header of size 32768 using:
taper: Contents of *(dumpfile_t *)0xbfbfc890:
taper:     type             = 3 (TAPEEND)
taper:     datestamp        = '20070505131533'
taper:     dumplevel        = 0
taper:     compressed       = 0
taper:     encrypted        = 0
taper:     comp_suffix      = ''
taper:     encrypt_suffix   = ''
taper:     name             = ''
taper:     disk             = ''
taper:     program          = ''
taper:     dumper           = ''
taper:     srvcompprog      = ''
taper:     clntcompprog     = ''
taper:     srv_encrypt      = ''
taper:     clnt_encrypt     = ''
taper:     recover_cmd      = ''
taper:     uncompress_cmd   = ''
taper:     encrypt_cmd      = ''
taper:     decrypt_cmd      = ''
taper:     srv_decrypt_opt  = ''
taper:     clnt_decrypt_opt = ''
taper:     cont_filename    = ''
taper:     is_partial       = 0
taper:     partnum          = 0
taper:     totalparts       = 0
taper:     blocksize        = 32768
==================================================================================

Is this the same problem that Steven was having with Solaris??  Will the same
patch work for me?  Or is this something different?
TIA.
 - Richard


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