Re: [BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-14 Thread Craig Barratt
Tim writes:

 This is a new install so I thought I would try the beta version
 do you recommend I go back to the stable version?

If you are willing to test the beta version some more that
would be great.  You've already found one bug :).

Holger told you where to get the File::Listing module.
Another workaround is to simply comment out this line in

use File::Listing qw/parse_dir/;

in

lib/BackupPC/Xfer/Ftp.pm

(ie: add a single # character at the start of the line, or
delete it altogether).  You won't be able to use ftp, but
everything else should work.

Craig

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-14 Thread Tim Hall
Hi Thanks for the support.  I installed
the File:Listing module and my backups
are working now.

 Craig Barratt cbarr...@users.sourceforge.net 4/13/2009 11:33 PM 
Tim writes:

 This is a new install so I thought I would try the beta version
 do you recommend I go back to the stable version?

If you are willing to test the beta version some more that
would be great.  You've already found one bug :).

Holger told you where to get the File::Listing module.
Another workaround is to simply comment out this line in

use File::Listing qw/parse_dir/;

in

lib/BackupPC/Xfer/ftp.pm 

(ie: add a single # character at the start of the line, or
delete it altogether).  You won't be able to use ftp, but
everything else should work.

Craig
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-13 Thread Craig Barratt
Holger writes:

 two things are really confusing me:
 
 1.) The title claims that it is supposed to be an *rsync* xfer, the error
 message clearly indicates that *ftp* is attempted (and fails). Tim, could
 you please clarify which transfer method you are trying to use?

The code loads all the Xfer modules and the failure happens
when there is a module that isn't found.  The Xfer method
doesn't matter at that point.

  Looks like you need to install the File::Listing module.
 
  Paul - the code should check for this and it should be in the
  docs too.
 
 Isn't the same true for Archive::Zip and XML::RSS? I'm not sure those two
 *can* be handled in a sane way, but I'll have a look in the next few days and
 try to provide a patch.

Yes, like other non-builtin modules, the ftp code should load this
module inside an eval() in the BEGIN block, and set a flag if it
fails.  In particular, this line:

use File::Listing qw/parse_dir/;

in lib/BackupPC/Xfer/Ftp.pm should be moved inside the BEGIN block and
used with an eval.  It's not quite as simple as adding File::Listing to
this list:

my @FTPLibs = qw( Net::FTP Net::FTP::RetrHandle );

since it needs the qw/parse_dir/.

Craig

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-13 Thread Paul Mantz
On Mon, Apr 13, 2009 at 12:57 AM, Craig Barratt
cbarr...@users.sourceforge.net wrote:
 Yes, like other non-builtin modules, the ftp code should load this
 module inside an eval() in the BEGIN block, and set a flag if it
 fails.  In particular, this line:

    use File::Listing qw/parse_dir/;

 in lib/BackupPC/Xfer/Ftp.pm should be moved inside the BEGIN block and
 used with an eval.  It's not quite as simple as adding File::Listing to
 this list:

    my @FTPLibs = qw( Net::FTP Net::FTP::RetrHandle );

 since it needs the qw/parse_dir/.

 Craig

I've got a patch that I'll submit tomorrow after I test it.


Adios,

-- 
Paul Mantz
http://www.mcpantz.org
BackupPC - Network Backup with De-Duplication http://www.backuppc.com
Zmanda - Open source backup and recovery http://www.zmanda.com/

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-13 Thread Tim Hall
Hi Thanks for the Reply.  The xfer method ftp in the error
confused me as well, from the CGI interface it is set to
rsync  When I check the hosts config file there is NO line
for xfer method if I manually add it, it seems to ignore it.
 
This is a new install so I thought I would try the beta version
do you recommend I go back to the stable version?
 
Thanks

 Craig Barratt cbarr...@users.sourceforge.net 4/12/2009 10:57 PM 
Holger writes:

 two things are really confusing me:
 
 1.) The title claims that it is supposed to be an *rsync* xfer, the error
 message clearly indicates that *ftp* is attempted (and fails). Tim, could
 you please clarify which transfer method you are trying to use?

The code loads all the Xfer modules and the failure happens
when there is a module that isn't found.  The Xfer method
doesn't matter at that point.

  Looks like you need to install the File::Listing module.
 
  Paul - the code should check for this and it should be in the
  docs too.
 
 Isn't the same true for Archive::Zip and XML::RSS? I'm not sure those two
 *can* be handled in a sane way, but I'll have a look in the next few days and
 try to provide a patch.

Yes, like other non-builtin modules, the ftp code should load this
module inside an eval() in the BEGIN block, and set a flag if it
fails.  In particular, this line:

use File::Listing qw/parse_dir/;

in lib/BackupPC/Xfer/ftp.pm should be moved inside the BEGIN block and
used with an eval.  It's not quite as simple as adding File::Listing to
this list:

my @FTPLibs = qw( Net::FTP Net::FTP::RetrHandle );

since it needs the qw/parse_dir/.

Craig
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-13 Thread Holger Parplies
Hi,

Tim Hall wrote on 2009-04-13 10:30:19 -0700 [Re: [BackupPC-users] RSYNC xfer 
failing backuppc version?3.2.0beta0]:
 Hi Thanks for the Reply.  The xfer method ftp in the error
 confused me as well, from the CGI interface it is set to
 rsync  When I check the hosts config file there is NO line
 for xfer method if I manually add it, it seems to ignore it.

as Craig explained, the error message does *not* mean that BackupPC is
trying to use 'ftp' as XferMethod. You can't avoid the error by changing
the XferMethod, you need to install File::Listing (for Debian, that's in
libwww-perl - 'apt-get install libwww-perl').

 This is a new install so I thought I would try the beta version
 do you recommend I go back to the stable version?

Well, you've just found a bug that nobody would have noticed who happens
to have File::Listing installed. That's a good thing. If you want to help
test the beta version before it is released, I'm sure that will be
appreciated. If you prefer to have a working setup with as little hassle
as possible (not that I'd expect many problems with the beta version), use
the stable version. You can check the changelog to see if 3.2.0 has any
improvements you really need (such as XferMethod ftp), but most of us do
just fine with 3.x or even 2.x versions.

Regards,
Holger

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-12 Thread Tim Hall
Hi I just installed the latest backuppc
version 3.2.0beta0.  When I try to do
a full backup of a test host I'm seeing
this error in the log
 
2009-04-12 11:07:14 User backuppc requested backup of scvffs09 (scvffs09)
Can't locate File/Listing.pm in @INC (@INC contains: /usr/local/BackupPC/lib 
/usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 
/usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at 
/usr/local/BackupPC/lib/BackupPC/Xfer/ftp.pm line 49.
BEGIN failed--compilation aborted at 
/usr/local/BackupPC/lib/BackupPC/Xfer/ftp.pm line 49.
Compilation failed in require at /usr/local/BackupPC/lib/BackupPC/Xfer.pm line 
46.
BEGIN failed--compilation aborted at /usr/local/BackupPC/lib/BackupPC/Xfer.pm 
line 46.
Compilation failed in require at /usr/local/BackupPC/bin/BackupPC_dump line 92.
BEGIN failed--compilation aborted at /usr/local/BackupPC/bin/BackupPC_dump line 
92.
 
Did I not install the product correctly or missing something?
 
Thanks.
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-12 Thread Craig Barratt
Tim writes:

 Hi I just installed the latest backuppc
 version 3.2.0beta0.  When I try to do
 a full backup of a test host I'm seeing
 this error in the log
 
 2009-04-12 11:07:14 User backuppc requested backup of scvffs09 (scvffs09)
 Can't locate File/Listing.pm in @INC (@INC contains: /usr/local/BackupPC/lib 
 /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 
 /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi 
 /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl 
 /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi 
 /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at 
 /usr/local/BackupPC/lib/BackupPC/Xfer/Ftp.pm line 49.

Looks like you need to install the File::Listing module.

Paul - the code should check for this and it should be in the
docs too.

Craig

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] RSYNC xfer failing backuppc version 3.2.0beta0

2009-04-12 Thread Holger Parplies
Hi,

Craig Barratt wrote on 2009-04-12 12:10:06 -0700 [Re: [BackupPC-users] RSYNC 
xfer failing backuppc version 3.2.0beta0]:
 Tim writes:
 
  Hi I just installed the latest backuppc
  version 3.2.0beta0.  When I try to do
  a full backup of a test host I'm seeing
  this error in the log
  
  2009-04-12 11:07:14 User backuppc requested backup of scvffs09 (scvffs09)
  Can't locate File/Listing.pm in @INC (@INC contains: 
  /usr/local/BackupPC/lib /usr/lib/perl5/5.8.8/i586-linux-thread-multi 
  /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi 
  /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl 
  /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi 
  /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at 
  /usr/local/BackupPC/lib/BackupPC/Xfer/Ftp.pm line 49.

two things are really confusing me:

1.) The title claims that it is supposed to be an *rsync* xfer, the error
message clearly indicates that *ftp* is attempted (and fails). Tim, could
you please clarify which transfer method you are trying to use?

2.) The text mime part of Tim's message includes ftp.pm (with lower case f),
the HTML mime part has it right (as quoted). Weird.

 Looks like you need to install the File::Listing module.
 
 Paul - the code should check for this and it should be in the
 docs too.

Isn't the same true for Archive::Zip and XML::RSS? I'm not sure those two
*can* be handled in a sane way, but I'll have a look in the next few days and
try to provide a patch.

Regards,
Holger

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/