Amanda-Users

Re: amfetchdump and permission errors as root user and amanda user

2006-08-17 11:21:11
Subject: Re: amfetchdump and permission errors as root user and amanda user
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 17 Aug 2006 09:09:13 -0400
On Thu, Aug 17, 2006 at 12:05:12PM +0100, Gavin Henry wrote:
> <quote who="Gavin Henry">
> > Just testing recovery like a good support company and getting permission
> > errors:
> >
> > nas1:/storage # /usr/local/sbin/amfetchdump Test nas1 /storage/samba
> > 20060811  -o /storage/
> > Scanning /storage/amanda...
> > 1 tape(s) needed for restoration
> > changer: got exit: 0 str: 6 7 1 1
> > The following tapes are needed: Test-006
> > Press enter when ready
> >
> >
> > Looking for tape Test-006...
> > changer: got exit: 0 str: 6 7 1 1
> > changer_query: changer return was 7 1 1
> > changer_query: searchable = 1
> > changer_find: looking for Test-006 changer is searchable = 1
> > changer_search: Test-006
> > changer: got exit: 0 str: 6 /dev/nst0
> > amfetchdump: slot 6: date 20060811 label Test-006 (exact label match)
> > Scanning Test-006 (slot 6)
> > amfetchdump:   1: restoring split dumpfile: date 20060811 host nas1 disk
> > /storage/samba part 20221/UNKNOWN lev 0 comp N program /bin/tar
> > amfetchdump:      Chunk out of order, will save to disk and append to
> > output.
> > amfetchdump: could not create output file .tmp: Permission denied
> > amfetchdump: could not create output file .tmp: Permission denied
> > amfetchdump: pid 11700 finish time Thu Aug 17 11:22:46 2006
> >
> > Why the permission denied?
> 
> Been running amrestore and have found the reason:
> 
> amrestore: could not create output file .tmp: Too many open files
> 
> This is 64-Bit SUSE 9.3, so maybe need to change no of files that can be
> opened ;-)
> 

I wonder if amrestore does some open's,
and when finished with the file doesn't close.

A file descriptor leak like a memory leak.

File a bug report?

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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