I just pushed the change
<https://github.com/backuppc/backuppc/commit/11e025b8df164634617bbff920bf2410638acfca>
I mentioned in (1).  I confirmed that in perl 5.28, version() gives the
error you mentioned due to the trailing period (while perl 5.22 does not).

Craig

On Mon, Oct 22, 2018 at 10:08 AM Craig Barratt <
cbarr...@users.sourceforge.net> wrote:

> What are the versions of rsync_bpc and perl are you running?
> Specifically, what's the output from
>
> rsync_bpc --version
>
> perl -v
>
>
> I assume rsync_bpc is 3.1.2.beta0.  For some reason the "version" package
> complains about a trailing ".", perhaps in only newer versions of perl (on
> perl 5.22.1 it works fine).
>
> Here are two options:
>
> 1) change this line
>
> $version = $1 if ( $output =~
> /rsync_bpc\s+version\s+([\d.]+)(beta\d+)?\s+protocol/ );
>
> to
>
> $version = $1 if ( $output =~
> /rsync_bpc\s+version\s+([\d.]+?)(\.beta\d+)?\s+protocol/ );
>
>
> 2) installing rsync_bpc 3.0.9 instead.  The latest release is here
> <https://github.com/backuppc/rsync-bpc/releases/tag/3.0.9.12>.
>
> Craig
>
> On Mon, Oct 22, 2018 at 5:10 AM Sorin Srbu <sorin.s...@ilk.uu.se> wrote:
>
>> Hi all,
>>
>> Finally found time to upgrade an old BackupPC install from v3.3.1 to the
>> latest v4.
>>
>> I read up on the prerequisites, gotchas' etc and installed
>> BackupPC-XS-0.57,
>> rsync-bpc 0.01 and version 0.9924 using cpan.
>> I've never used cpan before, but I didn't get any errors here. Installs
>> should be fine.
>> After that, I continued with installing the latest BPC 4.2.1 and it went
>> w/o
>> a hitch.
>>
>> The end remarks after BPC-installation mentioned restarting httpd so I did
>> that.
>> I also restarted the backuppc daemon for good measure
>>
>> And this is where the problem started, I got this:
>> "Starting BackupPC: Invalid version format (trailing decimal) at
>> /usr/share/BackupPC/bin/BackupPC line 125"
>>
>> The lines in /usr/share/BackupPC/bin/BackupPC is about this:
>>
>>     $version = $1 if ( $output =~
>> /rsync_bpc\s+version\s+([\d.]+)(beta\d+)?\s+protocol/ );
>>     if ( $version eq "unknown" || version->parse($1) <
>> version->parse($PackageVersion->{rsync_bpc}) ) {
>>         print(STDERR "BackupPC: rsync_bpc at $Conf{RsyncBackupPCPath}
>> needs
>> to be upgraded (got version $1; need >= $PackageVersion->{rsync_bpc});
>> exiting in 30s\n");
>>         sleep(30);
>>         exit(1);
>>     }
>>
>>
>> I've no idea how to proceed. I can't find any information pertinent to the
>> error message.
>> Is version too old? Too new? Something else?
>>
>> Any help appreciated!
>> Thanks.
>>
>>
>> --
>> BW,
>>         Sorin
>> -----------------------------------------------------------
>> # Sorin Srbu, Sysadmin
>> # Uppsala University
>> # Dept of Medicinal Chemistry
>> # Div of Org Pharm Chem
>> # Box 574
>> # SE-75123 Uppsala
>> # Sweden
>> #
>> # Phone: +46 (0)18-4714482
>> # Visit: BMC, Husargatan 3, B5:404b
>> # Web: https://www.ilk.uu.se/
>> -----------------------------------------------------------
>> # O<  ASCII ribbon campaign - Against html E-mail
>> # http://tinyurl.com/ascii-ribbon-campaign
>> #
>> # This message was not sent from an iProduct!
>> #
>> # Please consider the environment before printing this email.
>> # Join the campaign at http://thinkBeforePrinting.org
>> #
>> # MotD follows:
>> The Internet? Is that thing still around? -Homer Simpson.
>>
>>
>> --
>> BW,
>>         Sorin
>> -----------------------------------------------------------
>> # Sorin Srbu, Sysadmin
>> # Uppsala University
>> # Dept of Medicinal Chemistry
>> # Div of Org Pharm Chem
>> # Box 574
>> # SE-75123 Uppsala
>> # Sweden
>> #
>> # Phone: +46 (0)18-4714482
>> # Visit: BMC, Husargatan 3, B5:404b
>> # Web: https://www.ilk.uu.se/
>> -----------------------------------------------------------
>> # O<  ASCII ribbon campaign - Against html E-mail
>> # http://tinyurl.com/ascii-ribbon-campaign
>> #
>> # This message was not sent from an iProduct!
>> #
>> # Please consider the environment before printing this email.
>> # Join the campaign at http://thinkBeforePrinting.org
>> #
>> # MotD follows:
>> Alimony is like buying oats for a dead horse.
>>
>> _______________________________________________
>> 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 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/

Reply via email to