Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released
For what it's worth, I was able to resolve this (for now) by updating CPAN itself. I noticed when running certain commands that it complained that CPAN was at version 1.x and version 2.28 was available. It suggested running: install CPAN reload cpan But those are clearly not bash commands. They need to be run in the CPAN shell: # perl -MCPAN -e shell After completing, I again ran the following as the backuppc user and it reported the correct version: $ /usr/bin/perl -e 'use BackupPC::XS; print("$BackupPC::XS::VERSION\n")' 0.62 This is likely not the best way to resolve a mismatched cpan module version but it does appear to have worked for me, for now. I promise not to complain next time an update comes through and I end up having to rebuild from .iso From: Craig Barratt via BackupPC-users Sent: Thursday, June 25, 2020 5:43 PM To: General list for user discussion, questions and support Cc: Craig Barratt Subject: Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released You can install the perl module Module::Path to find the path for a module. After installing, do this: perl -e 'use Module::Path "module_path"; print(module_path("BackupPC::XS")."\n");' Example output: /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/BackupPC/XS.pm Now try as root and the BackupPC user to see the difference. Does the BackupPC user have permission to access the version root uses? You can also print the module search path with: perl -e 'print join("\n", @INC),"\n"' Does that differ between root and the BackupPC user? Craig On Thu, Jun 25, 2020 at 9:48 AM Les Mikesell mailto:lesmikes...@gmail.com>> wrote: > The system got itself into this state from a standard yum update. That's why you want to stick to all packaged modules whenever possible. Over time, dependencies can change and the packaged versions will update together. You can probably update a cpan module to the correct version manually but you need to track all the version dependencies yourself. There are some different approaches to removing modules: https://www.perlmonks.org/?node_id=1134981 ___ 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/ ___ 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-devel] BackupPC 4.4.0 released
You can install the perl module Module::Path to find the path for a module. After installing, do this: perl -e 'use Module::Path "module_path"; print(module_path("BackupPC::XS")."\n");' Example output: /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/BackupPC/XS.pm Now try as root and the BackupPC user to see the difference. Does the BackupPC user have permission to access the version root uses? You can also print the module search path with: perl -e 'print join("\n", @INC),"\n"' Does that differ between root and the BackupPC user? Craig On Thu, Jun 25, 2020 at 9:48 AM Les Mikesell wrote: > > The system got itself into this state from a standard yum update. > > That's why you want to stick to all packaged modules whenever > possible. Over time, dependencies can change and the packaged > versions will update together. You can probably update a cpan module > to the correct version manually but you need to track all the version > dependencies yourself. There are some different approaches to > removing modules: https://www.perlmonks.org/?node_id=1134981 > > > ___ > 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/
Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released
> The system got itself into this state from a standard yum update. That's why you want to stick to all packaged modules whenever possible. Over time, dependencies can change and the packaged versions will update together. You can probably update a cpan module to the correct version manually but you need to track all the version dependencies yourself. There are some different approaches to removing modules: https://www.perlmonks.org/?node_id=1134981 ___ 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-devel] BackupPC 4.4.0 released
The system got itself into this state from a standard yum update. I only intervened once the BackupPC service failed to start after a reboot. >From what I found it looked like updating to .62 was the right direction. And >now I learned that there is no way to cleanly uninstall a cpan module. Ugh. So am I looking at a purge and a reinstall? If so, is there a guide on how to do that? Thanks for any tips! From: Richard Shaw Sent: Thursday, June 25, 2020 10:08 AM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released On Thu, Jun 25, 2020 at 10:02 AM Mike Hughes mailto:m...@visionary.com>> wrote: Certainly a mismatch. Here's my output. Hopefully it formats cleanly. How can I fix this while waiting for the patch to roll out? Well, I'm not sure how to clean up the mess, but the problem is simple. You don't want to mix manual cpan installs with packages. There's no reason to use cpan at all if you're using my packages. My guess is the cpan installs are going into /usr/local which is overriding the package installs. Thanks, Richard ___ 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-devel] BackupPC 4.4.0 released
On Thu, Jun 25, 2020 at 10:02 AM Mike Hughes wrote: > Certainly a mismatch. Here's my output. Hopefully it formats cleanly. How > can I fix this while waiting for the patch to roll out? > Well, I'm not sure how to clean up the mess, but the problem is simple. You don't want to mix manual cpan installs with packages. There's no reason to use cpan at all if you're using my packages. My guess is the cpan installs are going into /usr/local which is overriding the package installs. Thanks, Richard ___ 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-devel] BackupPC 4.4.0 released
Certainly a mismatch. Here's my output. Hopefully it formats cleanly. How can I fix this while waiting for the patch to roll out? # head /usr/share/BackupPC/bin/BackupPC -n1 #!/usr/bin/perl # grep "use\ lib" /usr/share/BackupPC/bin/BackupPC use lib "/usr/share/BackupPC/lib"; # which cpan /bin/cpan # /usr/bin/perl -e 'use BackupPC::XS; print("$BackupPC::XS::VERSION\n")' 0.57 # cpan install BackupPC::XS ... # /usr/bin/perl -e 'use BackupPC::XS; print("$BackupPC::XS::VERSION\n")' 0.62 # su backuppc - $ /usr/bin/perl -e 'use BackupPC::XS; print("$BackupPC::XS::VERSION\n")' 0.57 $ cpan install BackupPC::XS ... ERROR: Can't create '/root/perl5/lib/perl5/x86_64-linux-thread-multi/BackupPC' $ /usr/bin/perl -e 'use BackupPC::XS; print("$BackupPC::XS::VERSION\n")' 0.57 From: Richard Shaw Sent: Wednesday, June 24, 2020 12:42 PM To: General list for user discussion, questions and support Cc: Craig Barratt Subject: Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released On Wed, Jun 24, 2020 at 12:19 PM Craig Barratt via BackupPC-users mailto:backuppc-users@lists.sourceforge.net>> wrote: Mike, It's possible you have two different versions of perl installed, or for some reason the BackupPC user is seeing an old version of BackupPC::XS. Try some of the suggestions here: https://github.com/backuppc/backuppc/issues/351. Yes, I just did a fresh install and didn't have any issues (with BackupPC-XS). I DID find that /var/run/BackupPC is not created by the package and cannot be created automatically since BackupPC is run as the backuppc user. Looking into that now. Thanks, Richard ___ 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-devel] BackupPC 4.4.0 released
On Wed, Jun 24, 2020 at 12:19 PM Craig Barratt via BackupPC-users < backuppc-users@lists.sourceforge.net> wrote: > Mike, > > It's possible you have two different versions of perl installed, or for > some reason the BackupPC user is seeing an old version of BackupPC::XS. > > Try some of the suggestions here: > https://github.com/backuppc/backuppc/issues/351. > Yes, I just did a fresh install and didn't have any issues (with BackupPC-XS). I DID find that /var/run/BackupPC is not created by the package and cannot be created automatically since BackupPC is run as the backuppc user. Looking into that now. Thanks, Richard ___ 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-devel] BackupPC 4.4.0 released
Mike, It's possible you have two different versions of perl installed, or for some reason the BackupPC user is seeing an old version of BackupPC::XS. Try some of the suggestions here: https://github.com/backuppc/backuppc/issues/351. Craig On Wed, Jun 24, 2020 at 10:12 AM Richard Shaw wrote: > On Wed, Jun 24, 2020 at 11:58 AM Mike Hughes wrote: > >> I'm getting a service startup failure claiming my version of BackupPC-XS >> isn't up-to-snuff but it appears to meet the requirements: >> >> BackupPC: old version 0.57 of BackupPC::XS: need >= 0.62; exiting in 30s >> > > I don't have a CentOS 7 machine handy so I'm downloading the minimal ISO > for boxes... > > Thanks, > Richard > ___ > 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/
Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released
On Wed, Jun 24, 2020 at 11:58 AM Mike Hughes wrote: > I'm getting a service startup failure claiming my version of BackupPC-XS > isn't up-to-snuff but it appears to meet the requirements: > > BackupPC: old version 0.57 of BackupPC::XS: need >= 0.62; exiting in 30s > I don't have a CentOS 7 machine handy so I'm downloading the minimal ISO for boxes... Thanks, Richard ___ 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-devel] BackupPC 4.4.0 released
I'm getting a service startup failure claiming my version of BackupPC-XS isn't up-to-snuff but it appears to meet the requirements: BackupPC: old version 0.57 of BackupPC::XS: need >= 0.62; exiting in 30s # rpm -qa | grep -i backuppc BackupPC-XS-0.62-1.el7.x86_64 BackupPC-4.4.0-1.el7.x86_64 From: Richard Shaw Sent: Tuesday, June 23, 2020 10:47 AM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released On Tue, Jun 23, 2020 at 8:24 AM Mike Hughes mailto:m...@visionary.com>> wrote: Thanks so much Richard! Will COPR installations auto-update via yum repository updates or do we need to specifically run a COPR update manually? Yes, as long as you install the repo file it will work just like any other repository. Thanks, Richard ___ 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-devel] BackupPC 4.4.0 released
On Tue, Jun 23, 2020 at 8:24 AM Mike Hughes wrote: > Thanks so much Richard! Will COPR installations auto-update via yum > repository updates or do we need to specifically run a COPR update manually? > Yes, as long as you install the repo file it will work just like any other repository. Thanks, Richard ___ 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-devel] BackupPC 4.4.0 released
On 6/23/2020 8:22 AM, Mike Hughes wrote: Thanks so much Richard! Will COPR installations auto-update via yum repository updates or do we need to specifically run a COPR update manually? I have been using COPR for a few years and yes, it will update when you "yum update". -- Bob Wooden ___ 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-devel] BackupPC 4.4.0 released
Thanks so much Richard! Will COPR installations auto-update via yum repository updates or do we need to specifically run a COPR update manually? From: Richard Shaw Sent: Monday, June 22, 2020 7:01 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] [BackupPC-devel] BackupPC 4.4.0 released Builds complete and updates submitted for Fedora and CentOS 8 https://bodhi.fedoraproject.org/updates/?packages=BackupPC CentOS 7 builds available via COPR: https://copr.fedorainfracloud.org/coprs/hobbes1069/BackupPC/ Thanks, Richard ___ 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-devel] BackupPC 4.4.0 released
Builds complete and updates submitted for Fedora and CentOS 8 https://bodhi.fedoraproject.org/updates/?packages=BackupPC CentOS 7 builds available via COPR: https://copr.fedorainfracloud.org/coprs/hobbes1069/BackupPC/ Thanks, Richard ___ 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/