Re: [BackupPC-users] Error ' getaddrinfo is not a valid Socket macro' after upgrading to 4.1

2017-03-29 Thread Craig Barratt
Holger,

Good points.  I'll change it so that it just quietly falls back on IPV4
ping if Socket::getaddrinfo fails.

Unfortunately I can't find an old Socket-1.0XX.tar.gz distribution to test
it.

Craig

On Wed, Mar 29, 2017 at 6:59 AM, Holger Parplies <wb...@parplies.de> wrote:

> Hi,
>
> John Barton wrote on 2017-03-29 00:30:30 + [Re: [BackupPC-users] Error
> ' getaddrinfo is not a valid Socket macro' after upgrading to 4.1]:
> > [...]
> > # perl -e 'use Socket; print $Socket::VERSION . "\n"'
> > 1.82
>
> for reference, I get the following for different Debian releases:
>
> etch1.78   (for the fun of it)
> squeeze 1.82
> wheezy  1.94
> jessie  2.013
>
> > From: Craig Barratt [mailto:cbarr...@users.sourceforge.net]
> > [...]
> > Try upgrading Socket.pm:
> >
> > sudo cpan
> > install Socket
>
> I'm not sure I agree with that idea. You're mixing a package manager
> installation with a manual upgrade here. That's not only a cause of
> headaches
> in the BackupPC case. I believe Socket is part of the base Perl
> distribution
> (package perl-base in Debian), so you're messing up an essential core
> package,
> and the package might even get its revenge by silently reverting your
> changes
> on package upgrade. Or you might get a broken system. Or it might work (by
> putting the module somewhere else in the module path).
>
> For Debian, at a quick glance, I find the package
> libsocket-getaddrinfo-perl,
> which sounds promising. I haven't got time to go more into detail right
> now,
> though.
>
> > I'll add a version check on Socket to configure.pl<http://configure.pl>.
>
> Which version of Socket is required? Or rather, what is the exact
> requirement
> - is it even a minimum version of Socket or rather the availability of a
> specific function? I'm not sure if libsocket-getaddrinfo-perl adds this
> functionality to the Socket class or provides an alternative in a different
> namespace (or does something completely different) - I'll try to have a
> closer
> look soon ...
>
> Regards,
> Holger
>
> 
> --
> 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] Error ' getaddrinfo is not a valid Socket macro' after upgrading to 4.1

2017-03-29 Thread Holger Parplies
Hi,

John Barton wrote on 2017-03-29 00:30:30 + [Re: [BackupPC-users] Error ' 
getaddrinfo is not a valid Socket macro' after upgrading to 4.1]:
> [...]
> # perl -e 'use Socket; print $Socket::VERSION . "\n"'
> 1.82

for reference, I get the following for different Debian releases:

etch1.78   (for the fun of it)
squeeze 1.82
wheezy  1.94
jessie  2.013

> From: Craig Barratt [mailto:cbarr...@users.sourceforge.net]
> [...]
> Try upgrading Socket.pm:
> 
> sudo cpan
> install Socket

I'm not sure I agree with that idea. You're mixing a package manager
installation with a manual upgrade here. That's not only a cause of headaches
in the BackupPC case. I believe Socket is part of the base Perl distribution
(package perl-base in Debian), so you're messing up an essential core package,
and the package might even get its revenge by silently reverting your changes
on package upgrade. Or you might get a broken system. Or it might work (by
putting the module somewhere else in the module path).

For Debian, at a quick glance, I find the package libsocket-getaddrinfo-perl,
which sounds promising. I haven't got time to go more into detail right now,
though.

> I'll add a version check on Socket to configure.pl<http://configure.pl>.

Which version of Socket is required? Or rather, what is the exact requirement
- is it even a minimum version of Socket or rather the availability of a
specific function? I'm not sure if libsocket-getaddrinfo-perl adds this
functionality to the Socket class or provides an alternative in a different
namespace (or does something completely different) - I'll try to have a closer
look soon ...

Regards,
Holger

--
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] Error ' getaddrinfo is not a valid Socket macro' after upgrading to 4.1

2017-03-28 Thread John Barton
Here is info from my machine, currently running CentOS 6.8. I was able to 
resolve the problem by manually installing both ExtUtils-Constant-0.23 and 
Socket-2.024 by hand, they would not compile with CPAN.
Thanks,
-John

# perl -v

This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

# perl -e 'use Socket; print $Socket::VERSION . "\n"'
1.82



From: Craig Barratt [mailto:cbarr...@users.sourceforge.net]
Sent: Monday, March 27, 2017 10:34 PM
To: General list for user discussion, questions and support 
<backuppc-users@lists.sourceforge.net>
Subject: Re: [BackupPC-users] Error ' getaddrinfo is not a valid Socket macro' 
after upgrading to 4.1

Steve Palm reported that error last week on this list.  It relates to a patch 
included in 4.x to make ipv6 work.

It's likely you have an old version of perl and Socket.pm.  Could you tell us 
your versions?  Run this:

perl -v
perl -e 'use Socket; print $Socket::VERSION . "\n"'

Try upgrading Socket.pm:

sudo cpan
install Socket

I'll add a version check on Socket to configure.pl<http://configure.pl>.

Craig

On Mon, Mar 27, 2017 at 6:25 PM, John Barton 
<jbar...@sts-llc.net<mailto:jbar...@sts-llc.net>> wrote:
I recently upgraded from BackupPC 3.3.0 to version 4.1. The upgrade process 
itself seemed to go OK, and I only had to fix a few unquoted items in my config 
file for BackupPC to successfully restart. Now, however, when I try to run a 
backup on a client that was working prior to the upgrade, I get the following 
error in my log, and the backup never attempts to run, nor is there any error 
in the web interface. Any input is appreciated.

2017-03-27 20:16:17 User admin requested backup of 
hostname.domain.com<http://hostname.domain.com> 
(hostname.domain.com<http://hostname.domain.com>)
2017-03-27 20:16:17 hostname.domain.com<http://hostname.domain.com>: 
getaddrinfo is not a valid Socket macro at 
/usr/local/BackupPC/lib/BackupPC/Lib.pm line 1413

John Barton
Specialized Tech Solutions, LLC
jbar...@sts-llc.net<mailto:jbar...@sts-llc.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<mailto: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] Error ' getaddrinfo is not a valid Socket macro' after upgrading to 4.1

2017-03-27 Thread Craig Barratt
Steve Palm reported that error last week on this list.  It relates to a
patch included in 4.x to make ipv6 work.

It's likely you have an old version of perl and Socket.pm.  Could you tell
us your versions?  Run this:

perl -v
perl -e 'use Socket; print $Socket::VERSION . "\n"'


Try upgrading Socket.pm:

sudo cpan

install Socket


I'll add a version check on Socket to configure.pl.

Craig

On Mon, Mar 27, 2017 at 6:25 PM, John Barton  wrote:

> I recently upgraded from BackupPC 3.3.0 to version 4.1. The upgrade
> process itself seemed to go OK, and I only had to fix a few unquoted items
> in my config file for BackupPC to successfully restart. Now, however, when
> I try to run a backup on a client that was working prior to the upgrade, I
> get the following error in my log, and the backup never attempts to run,
> nor is there any error in the web interface. Any input is appreciated.
>
>
>
> 2017-03-27 20:16:17 User admin requested backup of hostname.domain.com (
> hostname.domain.com)
>
> 2017-03-27 20:16:17 hostname.domain.com: getaddrinfo is not a valid
> Socket macro at /usr/local/BackupPC/lib/BackupPC/Lib.pm line 1413
>
>
>
> John Barton
>
> Specialized Tech Solutions, LLC
>
> *jbar...@sts-llc.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/


[BackupPC-users] Error ' getaddrinfo is not a valid Socket macro' after upgrading to 4.1

2017-03-27 Thread John Barton
I recently upgraded from BackupPC 3.3.0 to version 4.1. The upgrade process 
itself seemed to go OK, and I only had to fix a few unquoted items in my config 
file for BackupPC to successfully restart. Now, however, when I try to run a 
backup on a client that was working prior to the upgrade, I get the following 
error in my log, and the backup never attempts to run, nor is there any error 
in the web interface. Any input is appreciated.

2017-03-27 20:16:17 User admin requested backup of hostname.domain.com 
(hostname.domain.com)
2017-03-27 20:16:17 hostname.domain.com: getaddrinfo is not a valid Socket 
macro at /usr/local/BackupPC/lib/BackupPC/Lib.pm line 1413

John Barton
Specialized Tech Solutions, LLC
jbar...@sts-llc.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/