| Author |
Message |
Toomas Aas
Guest
|
 Got no header and data from server / Cant locate object meth
Hello again!
Now that I got my tapelist problem sorted out, I still have a problem
recovering backups.
Example session:
==================================================================
# amrecover BACKUP
AMRECOVER Version 3.2.0. Contacting server on mail.mydomain.ee ...
220 mail AMANDA index server (3.2.0) ready.
Setting restore date to today (2010-12-14)
200 Working date set to 2010-12-14.
200 Config set to BACKUP.
200 Dump host set to mail.mydomain.ee.
Use the setdisk command to choose dump disk to recover
amrecover> setdevice file:/backup
Using tape "file:/backup".
Tape server unspecified, assumed to be mail.mydomain.ee.
amrecover> setdisk /usr
200 Disk set to /usr.
amrecover> cd local
/usr/local
amrecover> add bin
Added dir /local/bin/ at date 2010-12-09-02-55-22
amrecover> extract
Extracting files using tape drive file:/backup on host mail.mydomain.ee.
The following tapes are needed: LINT27
Extracting files using tape drive file:/backup on host mail.mydomain.ee.
Load tape LINT27 now
Continue [?/Y/n/s/d]? y
Got no header and data from server, check in amidxtaped.*.debug and
amandad.*.debug files on server
amrecover> quit
200 Good bye.
==================================================================
I checked the *.debug files as suggested, but didn't see any obvious
errors. However, there is something rather interesting in
/var/log/messages:
Dec 14 00:03:53 mail amidxtaped[85826]: Can't locate object method
"new" via package "Amanda::Xfer::Source::Recovery" (perhaps you forgot
to load "Amanda::Xfer::Source::Recovery"?) at
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Recovery/Clerk.pm line 544.
Bug or PEBKAC?
--
Toomas Aas
|
| Mon Dec 13, 2010 2:27 pm |
|
 |
Jean-Louis Martineau
Guest
|
 Got no header and data from server / Cant locate object meth
Do you have the
'/usr/local/lib/perl5/site_perl/5.12.2/Amanda/XferServer.pm' file?
How do you configured amanda?
Jean-Louis
Toomas Aas wrote:
Hello again!
Now that I got my tapelist problem sorted out, I still have a problem
recovering backups.
Example session:
==================================================================
# amrecover BACKUP
AMRECOVER Version 3.2.0. Contacting server on mail.mydomain.ee ...
220 mail AMANDA index server (3.2.0) ready.
Setting restore date to today (2010-12-14)
200 Working date set to 2010-12-14.
200 Config set to BACKUP.
200 Dump host set to mail.mydomain.ee.
Use the setdisk command to choose dump disk to recover
amrecover> setdevice file:/backup
Using tape "file:/backup".
Tape server unspecified, assumed to be mail.mydomain.ee.
amrecover> setdisk /usr
200 Disk set to /usr.
amrecover> cd local
/usr/local
amrecover> add bin
Added dir /local/bin/ at date 2010-12-09-02-55-22
amrecover> extract
Extracting files using tape drive file:/backup on host mail.mydomain.ee.
The following tapes are needed: LINT27
Extracting files using tape drive file:/backup on host mail.mydomain.ee.
Load tape LINT27 now
Continue [?/Y/n/s/d]? y
Got no header and data from server, check in amidxtaped.*.debug and
amandad.*.debug files on server
amrecover> quit
200 Good bye.
==================================================================
I checked the *.debug files as suggested, but didn't see any obvious
errors. However, there is something rather interesting in
/var/log/messages:
Dec 14 00:03:53 mail amidxtaped[85826]: Can't locate object method
"new" via package "Amanda::Xfer::Source::Recovery" (perhaps you forgot
to load "Amanda::Xfer::Source::Recovery"?) at
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Recovery/Clerk.pm line 544.
Bug or PEBKAC?
|
| Mon Dec 13, 2010 4:43 pm |
|
 |
Toomas Aas
Guest
|
 Got no header and data from server / Cant locate object meth
Hello Jean-Louis!
Do you have the
'/usr/local/lib/perl5/site_perl/5.12.2/Amanda/XferServer.pm' file?
Yes.
How do you configured amanda?
I installed Amanda from FreeBSD port, the configure line for
amanda-server looks like this:
$ ./configure --libexecdir=/usr/local/libexec/amanda
--without-amlibexecdir --with-amandahosts --with-fqdn
--with-dump-honor-nodump --prefix=/usr/local --disable-glibtest
--with-user=backup --with-group=operator --with-bsdtcp-security
--with-bsdudp-security --with-ssh-security
--with-gnutar-listdir=/var/amanda/gnutar-lists
--with-gnutar=/usr/local/bin/gtar --without-client --without-gnuplot
--disable-s3-device --prefix=/usr/local --mandir=/usr/local/man
--infodir=/usr/local/info/ --build=amd64-portbld-freebsd8.1
--
Toomas Aas
|
| Mon Dec 13, 2010 10:23 pm |
|
 |
Jean-Louis Martineau
Guest
|
 Got no header and data from server / Cant locate object meth
Toomas,
Try this one line patch, you can patch the installed Clerk.pm file
Jean-Louis
Toomas Aas wrote:
Hello Jean-Louis!
Do you have the
'/usr/local/lib/perl5/site_perl/5.12.2/Amanda/XferServer.pm' file?
Yes.
How do you configured amanda?
I installed Amanda from FreeBSD port, the configure line for
amanda-server looks like this:
$ ./configure --libexecdir=/usr/local/libexec/amanda
--without-amlibexecdir --with-amandahosts --with-fqdn
--with-dump-honor-nodump --prefix=/usr/local --disable-glibtest
--with-user=backup --with-group=operator --with-bsdtcp-security
--with-bsdudp-security --with-ssh-security
--with-gnutar-listdir=/var/amanda/gnutar-lists
--with-gnutar=/usr/local/bin/gtar --without-client --without-gnuplot
--disable-s3-device --prefix=/usr/local --mandir=/usr/local/man
--infodir=/usr/local/info/ --build=amd64-portbld-freebsd8.1
|
| Tue Dec 14, 2010 3:42 am |
|
 |
Toomas Aas
Guest
|
 Got no header and data from server / Cant locate object meth
T, 14 dets 2010 kirjutas Jean-Louis Martineau <martineau < at > zmanda.com>:
Try this one line patch, you can patch the installed Clerk.pm file
Thanks Jean-Louis, after applying this patch I could run amrecover
successfully. However, the other problem remains in that when I run
amdump or amflush, taper fails with this message:
taper: FATAL Can't locate object method "new" via package
"Amanda::Xfer::Dest::Taper::Splitter" (perhaps you forgot to load
"Amanda::Xfer::Dest::Taper::Splitter"?) at
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Taper/Scribe.pm line 706.
Maybe you have an idea about that one too?
--
Toomas Aas
|
| Wed Dec 15, 2010 10:01 am |
|
 |
Jean-Louis Martineau
Guest
|
 Got no header and data from server / Cant locate object meth
What's the output of: grep -i AMANDA_COMPONENTS
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Constants.pm
Add the same 'use Amanda::XFerServer;' in
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Taper/Scribe.pm
Jean-Louis
Toomas Aas wrote:
T, 14 dets 2010 kirjutas Jean-Louis Martineau <martineau < at > zmanda.com>:
Try this one line patch, you can patch the installed Clerk.pm file
Thanks Jean-Louis, after applying this patch I could run amrecover
successfully. However, the other problem remains in that when I run
amdump or amflush, taper fails with this message:
taper: FATAL Can't locate object method "new" via package
"Amanda::Xfer::Dest::Taper::Splitter" (perhaps you forgot to load
"Amanda::Xfer::Dest::Taper::Splitter"?) at
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Taper/Scribe.pm line 706.
Maybe you have an idea about that one too?
|
| Wed Dec 15, 2010 10:27 am |
|
 |
Toomas Aas
Guest
|
 Got no header and data from server / Cant locate object meth
Hello Jean-Louis!
What's the output of: grep -i AMANDA_COMPONENTS
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Constants.pm
$AMANDA_COMPONENTS = " client amrecover ndmp";
Add the same 'use Amanda::XFerServer;' in
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Taper/Scribe.pm
Thanks a lot, looks like this helped. I started an amflush, and it
seems to be running successfully. It's flushing the 4th DLE out of 12
as I type this.
--
Toomas Aas
|
| Wed Dec 15, 2010 12:34 pm |
|
 |
Jean-Louis Martineau
Guest
|
 Got no header and data from server / Cant locate object meth
Toomas Aas wrote:
Hello Jean-Louis!
What's the output of: grep -i AMANDA_COMPONENTS
/usr/local/lib/perl5/site_perl/5.12.2/Amanda/Constants.pm
$AMANDA_COMPONENTS = " client amrecover ndmp";
That's the problem, it looks like the server code is installed but it is
not in that line.
I don't know how the FreeBSD port collection works, but it is not
compiled correctly.
Jean-Louis
|
| Wed Dec 15, 2010 1:16 pm |
|
 |
Toomas Aas
Guest
|
 Got no header and data from server / Cant locate object meth
K, 15 dets 2010 kirjutas Jean-Louis Martineau <martineau < at > zmanda.com>:
Toomas Aas wrote:
$AMANDA_COMPONENTS = " client amrecover ndmp";
That's the problem, it looks like the server code is installed but
it is not in that line.
I don't know how the FreeBSD port collection works, but it is not
compiled correctly.
Looks like this has already been fixed in the FreeBSD ports collection
on December 3rd. I had built my new Amanda before that, so I missed
out on that update.
Quoting the cvsweb:
- Amanda/Constants.pm is installed by amanda-client, and it includes
constat variable as of client components only. When amanda-server
installed, Constants.pm should include also server components.
- To work around it, use pkg-install/pkg-deinstall script to tweak
this variable by inplace updating.
Reported by: Christian Gusenbauer <c47g < at > gmx.at>
--
Toomas Aas
|
| Wed Dec 15, 2010 1:36 pm |
|
 |
|
|