PDA

View Full Version : amfetchdump.xxxxxxxx.debug error



paolo050181
September 6th, 2011, 03:50 AM
Hy all,
i have a error in amfetchdump.xxxxxxxx.debug:
Tue Sep 6 12:12:39 2011: amfetchdump: pid 20598 ruid 2009 euid 2009 version 3.3.0: start at Tue Sep 6 12:12:39 2011
Tue Sep 6 12:12:39 2011: amfetchdump: pid 20598 ruid 2009 euid 2009 version 3.3.0: rename at Tue Sep 6 12:12:39 2011
Tue Sep 6 12:12:39 2011: amfetchdump: Amanda::Changer::compat initialized with script /usr/libexec/amanda/chg-disk, temporary directory /etc/amanda/DailySet2
Tue Sep 6 12:12:40 2011: amfetchdump: Amanda::Recovery::Clerk: loading volume 'DailySet2-3'
Tue Sep 6 12:12:40 2011: amfetchdump: find_volume labeled 'DailySet2-3'
Tue Sep 6 12:12:40 2011: amfetchdump: new Amanda::Changer::Error: type='failed', reason='notimpl', message=''chg-compat:' does not support inventory'
Tue Sep 6 12:12:40 2011: amfetchdump: Amanda::Changer::compat: invoking /usr/libexec/amanda/chg-disk with -info
Tue Sep 6 12:12:41 2011: amfetchdump: Amanda::Changer::compat: Got response '3 12 1' with exit status 0
Tue Sep 6 12:12:41 2011: amfetchdump: Amanda::Changer::compat: invoking /usr/libexec/amanda/chg-disk with -slot current
Tue Sep 6 12:12:41 2011: amfetchdump: Amanda::Changer::compat: Got response '3 file://amandatapes/data/amanda/vtape/DailySet2' with exit status 0
Tue Sep 6 12:12:41 2011: amfetchdump: Amanda::Recovery::Clerk: successfully located first part for recovery
Tue Sep 6 12:12:41 2011: amfetchdump: Starting <Xfer@0x90b1fb8 (<XferSourceRecovery@0x90cd008> -> <XferDestFd@0x90cd808>)>
Tue Sep 6 12:12:41 2011: amfetchdump: Final linkage: <XferSourceRecovery@0x90cd008> -(PULL_BUFFER)-> <XferElementGlue@0x90ce008> -(WRITEFD)-> <XferDestFd@0x90cd808>
Tue Sep 6 12:12:41 2011: amfetchdump: Amanda::Recovery::Clerk: starting recovery
Tue Sep 6 12:12:41 2011: amfetchdump: Amanda::Recovery::Clerk: reading file 3 on 'DailySet2-3'
Tue Sep 6 12:13:43 2011: amfetchdump: Device file://amandatapes/data/amanda/vtape/DailySet2 error = 'EOF'
Tue Sep 6 12:13:43 2011: amfetchdump: Amanda::Recovery::Clerk: done reading file 3 on 'DailySet2-3'
Tue Sep 6 12:13:43 2011: amfetchdump: pid 20598 finish time Tue Sep 6 12:13:43 2011


What does it mean:
new Amanda::Changer::Error: type='failed', reason='notimpl', message=''chg-compat:' does not support inventory'

Device file://amandatapes/data/amanda/vtape/DailySet2 error = 'EOF'



My amanda.conf is:

org "DailySet2" # your organization name for reports
dumpuser "amandabackup" # the user to run dumps under
mailto "root@localhost" # space separated list of operators at your site
dumpcycle 1week # the number of days in the normal dump cycle
runspercycle 5 # the number of amdump runs in dumpcycle days
tapecycle 12 # the number of tapes in rotation
runtapes 1 # number of tapes to be used in a single run of amdump
tpchanger "chg-disk" # the tape-changer glue script
tapedev "file://amandatapes/data/amanda/vtape/DailySet2" # the no-rewind tape device
changerfile "/etc/amanda/DailySet2/changer.conf" # tape changer configuration parameter file
changerdev "/dev/null" # tape changer configuration parameter device
tapetype HARDDISK # what kind of tape it is
labelstr "DailySet2" # label constraint regex: all tapes must match
dtimeout 1800 # number of idle seconds before a dump is aborted
ctimeout 30 # max number of secconds amcheck waits for each client
etimeout 300 # number of seconds per filesystem for estimates
define dumptype global {
comment "Global definitions"
auth "bsdtcp"
}
define dumptype gui-base {
global
program "GNUTAR"
comment "gui base dumptype dumped with tar"
compress none
index yes
}
define tapetype HARDDISK {
comment "Virtual Tapes"
length 131072 mbytes
}
includefile "advanced.conf"
includefile "/etc/amanda/template.d/dumptypes"
includefile "/etc/amanda/template.d/tapetypes"


When i go to do unzip of my file i have this error:
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of PAOLO-PC.C__Backup.20110906101002.1 or
PAOLO-PC.C__Backup.20110906101002.1.zip, and cannot find PAOLO-PC.C__Backup.20110906101002.1.ZIP, period.


Can you help me?

martineau
September 6th, 2011, 07:02 AM
What does it mean:
new Amanda::Changer::Error: type='failed', reason='notimpl', message=''chg-compat:' does not support inventory'


You are using thre older changer api
$man amanda-changers
Change your setup to use the new chg-disk.

Look into the restore file to find what it is, the first step is to use the 'file' command.

paolo050181
September 6th, 2011, 07:29 AM
Hey,
may you help me to configure the new chg-disk?


When i do:
sh-3.2$ file PAOLO-PC.C__Backup.20110902093221.0
PAOLO-PC.C__Backup.20110902093221.0: Zip archive data, at least v2.0 to extract

thank you

paolo050181
September 7th, 2011, 12:27 AM
hi Martinau,
i config the new chg-disk but i have the same problem:

my amanda conf is:

org "prova" # your organization name for reports
dumpuser "amandabackup" # the user to run dumps under
mailto "root@localhost" # space separated list of operators at your site
dumpcycle 1week # the number of days in the normal dump cycle
runspercycle 5 # the number of amdump runs in dumpcycle days
tapecycle 12 # the number of tapes in rotation
runtapes 1 # number of tapes to be used in a single run of amdump
tpchanger "chg-disk:/data/amanda/vtape/prova" # the tape-changer glue script
#tapedev "file:/var/lib/amanda/vtapes/prova" # the no-rewind tape device
#changerfile "/etc/amanda/prova/changer.conf" # tape changer configuration parameter file
changerdev "/dev/null" # tape changer configuration parameter device
tapetype HARDDISK # what kind of tape it is
labelstr "prova" # label constraint regex: all tapes must match
dtimeout 1800 # number of idle seconds before a dump is aborted
ctimeout 30 # max number of secconds amcheck waits for each client
etimeout 300 # number of seconds per filesystem for estimates
define dumptype global {
comment "Global definitions"
auth "bsdtcp"
}
define dumptype gui-base {
global
program "GNUTAR"
comment "gui base dumptype dumped with tar"
compress none
index yes
}
define tapetype HARDDISK {
comment "Virtual Tapes"
length 10240 mbytes
}
define changer "archivedisks" {
tpchanger "chg-disk:/data/amanda/vtape/prova"
}
includefile "advanced.conf"
includefile "/etc/amanda/template.d/dumptypes"
includefile "/etc/amanda/template.d/tapetypes"


When i restored the file i have:
-sh-3.2$ file PAOLO-PC.C__pluto.20110907100943.0
PAOLO-PC.C__pluto.20110907100943.0: Zip archive data, at least v2.0 to extract

-sh-3.2$ unzip PAOLO-PC.C__pluto.20110907100943.0
Archive: PAOLO-PC.C__pluto.20110907100943.0
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of PAOLO-PC.C__pluto.20110907100943.0 or
PAOLO-PC.C__pluto.20110907100943.0.zip, and cannot find PAOLO-PC.C__pluto.20110907100943.0.ZIP, period.



What can i do for restore my file right?

paolo050181
September 7th, 2011, 01:47 AM
No, i didnt.

Are there something that can help me?