Re: [BackupPC-users] XferLOG.z is all trashed

2017-03-22 Thread Les Mikesell
On Wed, Mar 22, 2017 at 11:48 PM, B  wrote:
>
> Got remote protocol 1297237332
> Fatal error (bad version): TERM environment variable not set.
>
> Sent exclude: /1.8EB_01
> …
>
>
> The bad listing issued is all trashed (many characters like little
> boxes w/ points in, no text alignement, almost unreadable).
>
> I see the "Got remote protocol" is wrong, but can't figure why; I
> do not understand either the "TERM envvar not set" as it is set!
>
> as the BPC user:
> $ echo $TERM
> xterm
>
> Does anybody have a clue about that ?


The remote system is sending some output before starting rsync over
the ssh login.There is probably something being started in
/etc/profile, /etc/bashrc or root's .profile or .bashrc that is
complaining about not having TERM set - which it won't with ssh trying
to start a command remotely.

-- 
  Les Mikesell
 lesmikes...@gmail.com

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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] XferLOG.z is all trashed

2017-03-22 Thread Bzzzz
debian jessie
===

Hi folks,

I had this problem some times ago, it disappeared I don't know how an
now it's back :/  The machine was left alone more than a month, but I
don't recall any major intervention on it.
ssh is working normally and is ok w/ BPC.

When I run BPC from the a command line:

/usr/share/backuppc/bin/BackupPC_dump -v -f computer.domain

on a good machine, I get this:

CheckHostAlive: returning 0.196
full backup started for directory / (baseline backup #82)
started full dump, share=/
Running: /usr/bin/ssh -q -x -l root srv0ae1.local /usr/bin/rsync
--server --sender --numeric-ids --perms --owner --group -D --links
--hard-links --times --block-size=2048 --recursive --checksum-seed=32761
--ignore-times . /
Xfer PIDs are now 11441
xferPids 11441
Got remote protocol 31
Negotiated protocol version 28
Checksum caching enabled (checksumSeed = 32761)
Sent exclude: /1.8EB_01
…

on the bad computer (the BPC srv itself), that:

CheckHostAlive: returning 0.059
full backup started for directory / (baseline backup #35)
started full dump, share=/
Running: /usr/bin/ssh -q -x -l root srv0860.local /usr/bin/rsync
--server --sender --numeric-ids --perms --owner --group -D --links
--hard-links --times --block-size=2048 --recursive --checksum-seed=32761
--ignore-times . /
Xfer PIDs are now 11524
xferPids 11524
Got remote protocol 1297237332
Fatal error (bad version): TERM environment variable not set.

Sent exclude: /1.8EB_01
…


The bad listing issued is all trashed (many characters like little
boxes w/ points in, no text alignement, almost unreadable).

I see the "Got remote protocol" is wrong, but can't figure why; I
do not understand either the "TERM envvar not set" as it is set!

as the BPC user:
$ echo $TERM
xterm

Does anybody have a clue about that ?

Jean-Yves

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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] BackupPC 4.0.0 released

2017-03-22 Thread Craig Barratt
Steve,

I'm not sure what caused that error.  It sounds like you had an old or
broken version of Socket, and re-installing it with cpan appears to have
fixed it.

Craig

On Wed, Mar 22, 2017 at 3:26 PM, Steve Palm  wrote:

> I had installed BackupPC-XS and rsync-bpc, but I re-installed BackupPC-XS
> after the other module changes I made below, and now it is working.
>
> Very strange.  Don't know what I could have done wrong, but oh well
> Wouldn't be the first time. LOL
>
> BTW: I really like the more modern look from GitHub.
>
>
> > On Mar 22, 2017, at 4:43 PM, Steve Palm  wrote:
> >
> > Okay, I installed from Github to take advantage of recent fixes, and the
> upgrade worked fine. The web interface came up straight away, no problems.
> >
> > If these problems are BECAUSE I used the GitHub version, please advise
> and I will back it out or wait for resolution.  Actually, I did install the
> released 4.0.0 version after this and it seems to make no difference.
> >
> > I am documenting some things I already fixed here in case others find it
> useful, but in the end I still do not have it working.
> >
> > However, trying to backup the localhost (previous v3 backup), I received
> this error:
> >
> > backuppc: getaddrinfo is not a valid Socket macro at
> /usr/local/BackupPC/lib/BackupPC/Lib.pm line 1413
> >
> > It did a delete pass, but when I tell it to do a full backup I get the
> above error in the log.
> >
> > The strangest thing is, looking in the config, the host is defined as
> 127.0.0.1, so how can that not be a valid address for
> Socket::getaddrinfo($host); ?
> >
> > I thought perhaps it was trying to use Socket::GetAddrInfo, which I was
> able to install after having to install these:
> >
> > File::Path File::Spec Test::More ExtUtils::CBuilder ExtUtils::CChecker
> >
> > But still the same error.
> >
> > For context, it is here in BackupPC:Lib, failing on the
> Socket::getaddrinfo line.
> >
> > sub getHostAddrInfo
> > {
> >my($bpc, $host) = @_;
> >my($err, @addrs) = Socket::getaddrinfo($host);
> >return undef if ( $err );
> >return (($addrs[0])->{'family'} == Socket::AF_INET6) ? 6 : 4;
> > }
> >
> > Installed `cpan install Socket` and the line went away from the logs,
> but it still is not making any backups. I don't know how to be sure all the
> modules are up-to-date without causing problems. :(
> >
> > Where to look, every log I look at doesn't show anything, it just logs
> that the backup was requested but it never does anything. :(
> >
> > Steve
> >
> >
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > 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/
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> 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/
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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] BackupPC 4.0.0 released

2017-03-22 Thread Steve Palm
I had installed BackupPC-XS and rsync-bpc, but I re-installed BackupPC-XS after 
the other module changes I made below, and now it is working.

Very strange.  Don't know what I could have done wrong, but oh well 
Wouldn't be the first time. LOL

BTW: I really like the more modern look from GitHub.


> On Mar 22, 2017, at 4:43 PM, Steve Palm  wrote:
> 
> Okay, I installed from Github to take advantage of recent fixes, and the 
> upgrade worked fine. The web interface came up straight away, no problems.
> 
> If these problems are BECAUSE I used the GitHub version, please advise and I 
> will back it out or wait for resolution.  Actually, I did install the 
> released 4.0.0 version after this and it seems to make no difference.
> 
> I am documenting some things I already fixed here in case others find it 
> useful, but in the end I still do not have it working.
> 
> However, trying to backup the localhost (previous v3 backup), I received this 
> error:
> 
> backuppc: getaddrinfo is not a valid Socket macro at 
> /usr/local/BackupPC/lib/BackupPC/Lib.pm line 1413
> 
> It did a delete pass, but when I tell it to do a full backup I get the above 
> error in the log.
> 
> The strangest thing is, looking in the config, the host is defined as 
> 127.0.0.1, so how can that not be a valid address for 
> Socket::getaddrinfo($host); ?
> 
> I thought perhaps it was trying to use Socket::GetAddrInfo, which I was able 
> to install after having to install these:
> 
> File::Path File::Spec Test::More ExtUtils::CBuilder ExtUtils::CChecker
> 
> But still the same error.
> 
> For context, it is here in BackupPC:Lib, failing on the Socket::getaddrinfo 
> line.
> 
> sub getHostAddrInfo
> {
>my($bpc, $host) = @_;
>my($err, @addrs) = Socket::getaddrinfo($host);
>return undef if ( $err );
>return (($addrs[0])->{'family'} == Socket::AF_INET6) ? 6 : 4;
> }
> 
> Installed `cpan install Socket` and the line went away from the logs, but it 
> still is not making any backups. I don't know how to be sure all the modules 
> are up-to-date without causing problems. :(
> 
> Where to look, every log I look at doesn't show anything, it just logs that 
> the backup was requested but it never does anything. :(
> 
> Steve
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> 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/


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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] BackupPC 4.0.0 released

2017-03-22 Thread Steve Palm
Okay, I installed from Github to take advantage of recent fixes, and the 
upgrade worked fine. The web interface came up straight away, no problems.

If these problems are BECAUSE I used the GitHub version, please advise and I 
will back it out or wait for resolution.  Actually, I did install the released 
4.0.0 version after this and it seems to make no difference.

I am documenting some things I already fixed here in case others find it 
useful, but in the end I still do not have it working.

However, trying to backup the localhost (previous v3 backup), I received this 
error:

backuppc: getaddrinfo is not a valid Socket macro at 
/usr/local/BackupPC/lib/BackupPC/Lib.pm line 1413

It did a delete pass, but when I tell it to do a full backup I get the above 
error in the log.

The strangest thing is, looking in the config, the host is defined as 
127.0.0.1, so how can that not be a valid address for 
Socket::getaddrinfo($host); ?

I thought perhaps it was trying to use Socket::GetAddrInfo, which I was able to 
install after having to install these:

File::Path File::Spec Test::More ExtUtils::CBuilder ExtUtils::CChecker

But still the same error.

For context, it is here in BackupPC:Lib, failing on the Socket::getaddrinfo 
line.

sub getHostAddrInfo
{
my($bpc, $host) = @_;
my($err, @addrs) = Socket::getaddrinfo($host);
return undef if ( $err );
return (($addrs[0])->{'family'} == Socket::AF_INET6) ? 6 : 4;
}

Installed `cpan install Socket` and the line went away from the logs, but it 
still is not making any backups. I don't know how to be sure all the modules 
are up-to-date without causing problems. :(

Where to look, every log I look at doesn't show anything, it just logs that the 
backup was requested but it never does anything. :(

Steve


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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] BackupPC 4.0.0 released

2017-03-22 Thread Steve Palm
Thanks so much, Craig!  I really appreciate it. Looking forward to trying it 
out, although reading the list it might be better to wait for your 4.1.0 
release or grab the current from GitHub, as it seemed there are a few issues 
that are resolved which would affect us upgrading from v3.


> On Mar 22, 2017, at 11:17 AM, Craig Barratt  > wrote:
> 
> Steve,
> 
> The error is that you don't have the required module "version" installed (ie, 
> running "perl -e 'use version;'" would fail).  Yes, the error is confusing 
> since "version" is such a generic name.
> 
> You can use CPAN (or your linux installer if that's what you normally use) to 
> install it:
> 
> sudo cpan
> install version
> 
> Craig
> 
> On Wed, Mar 22, 2017 at 7:40 AM, Steve Palm  > wrote:
> Sorry, I sent this to the developer list, should probably have gone to the 
> users list... :(
> 
> On Mar 4, 2017, at 1:12 PM, Craig Barratt  > wrote:
>> I'm happy to announce that BackupPC 4.0.0 has been released on Github 
>>  and SourceForge 
>> .  
> 
>  I was excited to read this, congratulations on a huge milestone!
> 
>> BackupPC 4.0.0 requires the perl module BackupPC::XS 
>>  (>= 0.50) and rsync-bpc 
>>  (>= 3.0.9.5). 
> 
>  I installed these.
> 
>> After installing those two packages, BackupPC 4.0.0 can be installed from 
>> the tar ball with:
>> 
>> tar zxf BackupPC-4.0.0.tar.gz
>> cd BackupPC-4.0.0
>> perl configure.pl 
>  And I was greeted with a very unhelpful
> 
> BackupPC needs the package version.  Please install version
> before installing BackupPC.
> 
> Even running with a trace is not helping me much, not sure what I'm looking 
> at here:
> 
> perl -d:Trace configure.pl 
> >> configure.pl:54 : my @ConfigureBinList = qw(
> >> configure.pl:79 : my @ConfigureLibList = qw(
> >> configure.pl:137 : if ( $ConfigureBinList[0] eq 
> >> "__" . "CONFIGURE_BIN_LIST__" ) {
> >> configure.pl:145 : my @Packages = qw(version 
> >> Encode File::Path File::Spec File::Copy DirHandle
> >> configure.pl:149 : my $PackageVersion = {
> >> configure.pl:154 : foreach my $pkg ( @Packages ) 
> >> {
> >> configure.pl:155 : eval "use $pkg";
> >> (eval 1)[configure.pl:155]:2: ;>> configure.pl:156 
> >> : if ( !$@ ) {
> >> configure.pl:169 : if ( $pkg =~ 
> >> /BackupPC::Lib/ ) {
> >> configure.pl:184 : die < 
> BackupPC needs the package version.  Please install version
> before installing BackupPC.
> 
> Any ideas?
> 
>  Steve
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org ! 
> http://sdm.link/slashdot 
> ___
> 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/ 
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org ! 
> http://sdm.link/slashdot___ 
> 
> 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/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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: 

Re: [BackupPC-users] BackupPC 4.0.0 released

2017-03-22 Thread Craig Barratt
Steve,

The error is that you don't have the required module "version" installed
(ie, running "perl -e 'use version;'" would fail).  Yes, the error is
confusing since "version" is such a generic name.

You can use CPAN (or your linux installer if that's what you normally use)
to install it:

sudo cpan
install version


Craig

On Wed, Mar 22, 2017 at 7:40 AM, Steve Palm  wrote:

> Sorry, I sent this to the developer list, should probably have gone to the
> users list... :(
>
> On Mar 4, 2017, at 1:12 PM, Craig Barratt 
> wrote:
>
> I'm happy to announce that BackupPC 4.0.0 has been released on Github
>  and SourceForge
> .
>
>
>  I was excited to read this, congratulations on a huge milestone!
>
> BackupPC 4.0.0 requires the perl module BackupPC::XS
>  (>= 0.50) and rsync-bpc
>  (>= 3.0.9.5).
>
>
>  I installed these.
>
> After installing those two packages, BackupPC 4.0.0 can be installed from
> the tar ball with:
>
> tar zxf BackupPC-4.0.0.tar.gz
> cd BackupPC-4.0.0
> perl configure.pl
>
>
>  And I was greeted with a very unhelpful
>
> BackupPC needs the package version.  Please install version
> before installing BackupPC.
>
> Even running with a trace is not helping me much, not sure what I'm
> looking at here:
>
> perl -d:Trace configure.pl
> >> configure.pl:54: my @ConfigureBinList = qw(
> >> configure.pl:79: my @ConfigureLibList = qw(
> >> configure.pl:137: if ( $ConfigureBinList[0] eq "__" .
> "CONFIGURE_BIN_LIST__" ) {
> >> configure.pl:145: my @Packages = qw(version Encode File::Path
> File::Spec File::Copy DirHandle
> >> configure.pl:149: my $PackageVersion = {
> >> configure.pl:154: foreach my $pkg ( @Packages ) {
> >> configure.pl:155: eval "use $pkg";
> >> (eval 1)[configure.pl:155]:2: ;>> configure.pl:156: if ( !$@ ) {
> >> configure.pl:169: if ( $pkg =~ /BackupPC::Lib/ ) {
> >> configure.pl:184: die <
> BackupPC needs the package version.  Please install version
> before installing BackupPC.
>
> Any ideas?
>
>  Steve
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> 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/
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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/