Re: [BackupPC-users] backuppc 4.2.1 perl issue

2018-06-13 Thread Mark Maciolek
hi,
 After fussing with it all morning, went to lunch and started over
again using Fiddler, but you were also correct that my URL was
wrong.

Thank your for this backup solution. Works great.

Mark
> Mark,
>
> It looks like your setting for $Conf{CgiImageDirURL} is wrong.  Your html
> has hrefs like this:
>
> href="/var/www/htdocs/BackupPC/image/favicon.ico
>
>
> $Conf{CgiImageDirURL} should be set to the URL (eg: "/BackupPC/image"),
> not
> the absolute file system path.
>
> Craig
>
> On Wed, Jun 13, 2018 at 5:27 AM, Mark Maciolek  wrote:
>
>> hi,
>>   Partially fixed. I put the correct BackupPC_Admin in place and the
>> page
>> loads, now just have to figure out why every image is 404.
>>
>> Mark
>> > hi,
>> >
>> > First line:
>> > #!/bin/perl
>> > #=
>> -*-perl-*-w
>> > #
>> >
>> > selinux is in permissive mode
>> >
>> > manually run:
>> >
>> >
>> > Content-Type: text/html; charset=utf-8
>> >
>> > 
>> > 
>> > BackupPC Server Status
>> > > > href="/var/www/htdocs/BackupPC/image/BackupPC_stnd.css"
>> title="CSSFile">
>> > > > type="image/x-icon">
>> > 
>> > 
>> > > > onLoad="document.getElementById('NavMenu').style.height=document.body.
>> scrollHeight">
>> >
>> > 
>> >  Â Â Â Â Â Â Â  
>> >  Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  > > href="https://backuppc.github.io/backuppc/;>> > src="/var/www/htdocs/BackupPC/image/logo.gif">
>> >  Â Â Â Â Â Â Â  
>> > 
>> > Hosts
>> > 
>> >  Â Â Â  
>> >  Â Â Â  > > type="submit" value="Go" name="ignore">
>> >  Â Â Â  
>> > Server
>> > Status
>> > Host Summary
>> > Documentation
>> > https://github.com/backuppc/backuppc/wiki;>Wiki
>> > https://backuppc.github.io/backuppc;>Homepage
>> > 
>> >  
>> > 
>> >  Â Â Â  BackupPC Server Status
>> >
>> >
>> > 
>> >  Â Â Â  Currently Running Jobs
>> >
>> > 
>> > 
>> >  Host 
>> >  Â Â Â   Type 
>> >  Â Â Â   User 
>> >  Â Â Â   Start Time 
>> >  Â Â Â   Command 
>> >  Â Â Â   PID 
>> >  Â Â Â   Xfer PID 
>> >  Â Â Â   Status 
>> >  Â Â Â   Count 
>> >  Â Â Â  
>> >
>> > 
>> >
>> > 
>> >
>> >
>> >  Â Â Â  Failures that need attention
>> >
>> > 
>> > 
>> >  Host 
>> >  Â Â Â   Type 
>> >  Â Â Â   User 
>> >  Â Â Â   Last Try 
>> >  Â Â Â   Details 
>> >  Â Â Â   Error Time 
>> >  Â Â Â   Last error (other than no ping) 
>> >
>> > 
>> >
>> > 
>> >
>> > apache is running as backuppc user.
>> >
>> > Mark
>> >
>> >
>> > On 6/12/2018 10:25 PM, Craig Barratt via BackupPC-users wrote:
>> >> Some random questions:
>> >>
>> >> What's the very first line of BackupPC_Admin?
>> >>
>> >> Could this be some sort of selinux issue?
>> >>
>> >> What happens when you manually run BackupPC_Admin (as the backuppc
>> >> user)?  What user is apache running as?
>> >>
>> >> Craig
>> >>
>> >> On Tue, Jun 12, 2018 at 7:17 PM, mlm > >> > wrote:
>> >>
>> >>
>> >>
>> >> On 6/12/2018 8:10 PM, Holger Parplies wrote:
>> >>
>> >> Hi,
>> >>
>> >> mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users]
>> >> backuppc 4.2.1 perl issue]:
>> >>
>> >> [...]
>> >> New system running Scientific Linux 7.5, installed 4.2.1
>> >> from tar file
>> >>
>> >> Global symbol "%In" requires explicit package name at
>> >> /usr/share/BackupPC/sbin/BackupPC_Admin line 90.
>> >> [...]
>> >> Bareword "BackupPC::CGI::Lib::NewRequest" not allowed
>> >> while "strict subs" in use at
>> >> /usr/share/BackupPC/sbin/BackupPC_Admin line 56.
>> >> [...]
>> >> Any suggestions on troubleshooting further?
>> >>
>> >> what do the first few non-comment lines of your
>> BackupPC_Admin
>> >> look like
>> >> (about 12, but I don't have 4.2.1 here right now, so that
>> >> might have changed;
>> >> up to the first "my" variable declaration)? It would seem
>> that
>> >> the
>> >> BackupPC::CGI::Lib module is not correctly imported. Is the
>> >> path in the
>> >> "use lib" pragma correct for your installation? What are the
>> >> permissions on
>> >> the library file and its parent directories?
>> >>
>> >> What Perl version are you running ('perl -v')?
>> >>
>> >> Regards,
>> >> Holger
>> >>
>> >> hi
>> >> from BackupPC_Admin:
>> >>
>> >> use strict;
>> >> no  utf8;
>> >> use CGI;
>> >> use CGI::Carp qw(fatalsToBrowser);
>> >> use lib "/usr/local/BackupPC/lib";
>> >>
>> >> use BackupPC::Lib;
>> >> use BackupPC::CGI::Lib qw(:all);
>> >>
>> >> BackupPC::CGI::Lib::NewRequest;
>> >>
>> >> my %ActionDispatch = (
>> >> Â Â Â  "deleteBackup"Â Â Â Â Â Â Â Â Â Â Â Â Â Â
>>  =>
>> "DeleteBackup",
>> >>
>> >> folders all owned by backupc:
>> >> s -al /usr/local/BackupPC/lib/BackupPC/
>> >> total 108
>> >> 

Re: [BackupPC-users] backuppc 4.2.1 perl issue

2018-06-13 Thread Craig Barratt via BackupPC-users
Mark,

It looks like your setting for $Conf{CgiImageDirURL} is wrong.  Your html
has hrefs like this:

href="/var/www/htdocs/BackupPC/image/favicon.ico


$Conf{CgiImageDirURL} should be set to the URL (eg: "/BackupPC/image"), not
the absolute file system path.

Craig

On Wed, Jun 13, 2018 at 5:27 AM, Mark Maciolek  wrote:

> hi,
>   Partially fixed. I put the correct BackupPC_Admin in place and the page
> loads, now just have to figure out why every image is 404.
>
> Mark
> > hi,
> >
> > First line:
> > #!/bin/perl
> > #=
> -*-perl-*-w
> > #
> >
> > selinux is in permissive mode
> >
> > manually run:
> >
> >
> > Content-Type: text/html; charset=utf-8
> >
> > 
> > 
> > BackupPC Server Status
> >  > href="/var/www/htdocs/BackupPC/image/BackupPC_stnd.css" title="CSSFile">
> >  > type="image/x-icon">
> > 
> > 
> >  > onLoad="document.getElementById('NavMenu').style.height=document.body.
> scrollHeight">
> >
> > 
> >  Â Â Â Â Â Â Â  
> >  Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â   > href="https://backuppc.github.io/backuppc/;> > src="/var/www/htdocs/BackupPC/image/logo.gif">
> >  Â Â Â Â Â Â Â  
> > 
> > Hosts
> > 
> >  Â Â Â  
> >  Â Â Â   > type="submit" value="Go" name="ignore">
> >  Â Â Â  
> > Server
> > Status
> > Host Summary
> > Documentation
> > https://github.com/backuppc/backuppc/wiki;>Wiki
> > https://backuppc.github.io/backuppc;>Homepage
> > 
> >  
> > 
> >  Â Â Â  BackupPC Server Status
> >
> >
> > 
> >  Â Â Â  Currently Running Jobs
> >
> > 
> > 
> >  Host 
> >  Â Â Â   Type 
> >  Â Â Â   User 
> >  Â Â Â   Start Time 
> >  Â Â Â   Command 
> >  Â Â Â   PID 
> >  Â Â Â   Xfer PID 
> >  Â Â Â   Status 
> >  Â Â Â   Count 
> >  Â Â Â  
> >
> > 
> >
> > 
> >
> >
> >  Â Â Â  Failures that need attention
> >
> > 
> > 
> >  Host 
> >  Â Â Â   Type 
> >  Â Â Â   User 
> >  Â Â Â   Last Try 
> >  Â Â Â   Details 
> >  Â Â Â   Error Time 
> >  Â Â Â   Last error (other than no ping) 
> >
> > 
> >
> > 
> >
> > apache is running as backuppc user.
> >
> > Mark
> >
> >
> > On 6/12/2018 10:25 PM, Craig Barratt via BackupPC-users wrote:
> >> Some random questions:
> >>
> >> What's the very first line of BackupPC_Admin?
> >>
> >> Could this be some sort of selinux issue?
> >>
> >> What happens when you manually run BackupPC_Admin (as the backuppc
> >> user)?  What user is apache running as?
> >>
> >> Craig
> >>
> >> On Tue, Jun 12, 2018 at 7:17 PM, mlm  >> > wrote:
> >>
> >>
> >>
> >> On 6/12/2018 8:10 PM, Holger Parplies wrote:
> >>
> >> Hi,
> >>
> >> mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users]
> >> backuppc 4.2.1 perl issue]:
> >>
> >> [...]
> >> New system running Scientific Linux 7.5, installed 4.2.1
> >> from tar file
> >>
> >> Global symbol "%In" requires explicit package name at
> >> /usr/share/BackupPC/sbin/BackupPC_Admin line 90.
> >> [...]
> >> Bareword "BackupPC::CGI::Lib::NewRequest" not allowed
> >> while "strict subs" in use at
> >> /usr/share/BackupPC/sbin/BackupPC_Admin line 56.
> >> [...]
> >> Any suggestions on troubleshooting further?
> >>
> >> what do the first few non-comment lines of your BackupPC_Admin
> >> look like
> >> (about 12, but I don't have 4.2.1 here right now, so that
> >> might have changed;
> >> up to the first "my" variable declaration)? It would seem that
> >> the
> >> BackupPC::CGI::Lib module is not correctly imported. Is the
> >> path in the
> >> "use lib" pragma correct for your installation? What are the
> >> permissions on
> >> the library file and its parent directories?
> >>
> >> What Perl version are you running ('perl -v')?
> >>
> >> Regards,
> >> Holger
> >>
> >> hi
> >> from BackupPC_Admin:
> >>
> >> use strict;
> >> no  utf8;
> >> use CGI;
> >> use CGI::Carp qw(fatalsToBrowser);
> >> use lib "/usr/local/BackupPC/lib";
> >>
> >> use BackupPC::Lib;
> >> use BackupPC::CGI::Lib qw(:all);
> >>
> >> BackupPC::CGI::Lib::NewRequest;
> >>
> >> my %ActionDispatch = (
> >> Â Â Â  "deleteBackup"Â Â Â Â Â Â Â Â Â Â Â Â Â Â  =>
> "DeleteBackup",
> >>
> >> folders all owned by backupc:
> >> s -al /usr/local/BackupPC/lib/BackupPC/
> >> total 108
> >> drwxr-xr-x. 8 backuppc backuppc   160 Jun 12 21:40 .
> >> drwxr-xr-x. 4 backuppc backuppc    33 Jun 12 16:09 ..
> >> drwxr-xr-x. 2 backuppc backuppc  4096 Jun 12 21:40 CGI
> >> drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Config
> >> -r--r--r--. 1 backuppc backuppc 13638 Jun 12 21:40 DirOps.pm
> >> drwxr-xr-x. 2 backuppc backuppc   181 Jun 12 21:40 Lang
> >> -r--r--r--. 1 backuppc backuppc 38786 Jun 12 21:40 Lib.pm
> >> drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 

Re: [BackupPC-users] backuppc 4.2.1 perl issue

2018-06-13 Thread Mark Maciolek
hi,
  Partially fixed. I put the correct BackupPC_Admin in place and the page
loads, now just have to figure out why every image is 404.

Mark
> hi,
>
> First line:
> #!/bin/perl
> #= -*-perl-*-w
> #
>
> selinux is in permissive mode
>
> manually run:
>
>
> Content-Type: text/html; charset=utf-8
>
> 
> 
> BackupPC Server Status
>  href="/var/www/htdocs/BackupPC/image/BackupPC_stnd.css" title="CSSFile">
>  type="image/x-icon">
> 
> 
>  onLoad="document.getElementById('NavMenu').style.height=document.body.scrollHeight">
>
> 
>          
>                   href="https://backuppc.github.io/backuppc/;> src="/var/www/htdocs/BackupPC/image/logo.gif">
>          
> 
> Hosts
> 
>      
>       type="submit" value="Go" name="ignore">
>      
> Server
> Status
> Host Summary
> Documentation
> https://github.com/backuppc/backuppc/wiki;>Wiki
> https://backuppc.github.io/backuppc;>Homepage
> 
>  
> 
>      BackupPC Server Status
>
>
> 
>      Currently Running Jobs
>
> 
> 
>  Host 
>       Type 
>       User 
>       Start Time 
>       Command 
>       PID 
>       Xfer PID 
>       Status 
>       Count 
>      
>
> 
>
> 
>
>
>      Failures that need attention
>
> 
> 
>  Host 
>       Type 
>       User 
>       Last Try 
>       Details 
>       Error Time 
>       Last error (other than no ping) 
>
> 
>
> 
>
> apache is running as backuppc user.
>
> Mark
>
>
> On 6/12/2018 10:25 PM, Craig Barratt via BackupPC-users wrote:
>> Some random questions:
>>
>> What's the very first line of BackupPC_Admin?
>>
>> Could this be some sort of selinux issue?
>>
>> What happens when you manually run BackupPC_Admin (as the backuppc
>> user)?  What user is apache running as?
>>
>> Craig
>>
>> On Tue, Jun 12, 2018 at 7:17 PM, mlm > > wrote:
>>
>>
>>
>> On 6/12/2018 8:10 PM, Holger Parplies wrote:
>>
>> Hi,
>>
>> mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users]
>> backuppc 4.2.1 perl issue]:
>>
>> [...]
>> New system running Scientific Linux 7.5, installed 4.2.1
>> from tar file
>>
>> Global symbol "%In" requires explicit package name at
>> /usr/share/BackupPC/sbin/BackupPC_Admin line 90.
>> [...]
>> Bareword "BackupPC::CGI::Lib::NewRequest" not allowed
>> while "strict subs" in use at
>> /usr/share/BackupPC/sbin/BackupPC_Admin line 56.
>> [...]
>> Any suggestions on troubleshooting further?
>>
>> what do the first few non-comment lines of your BackupPC_Admin
>> look like
>> (about 12, but I don't have 4.2.1 here right now, so that
>> might have changed;
>> up to the first "my" variable declaration)? It would seem that
>> the
>> BackupPC::CGI::Lib module is not correctly imported. Is the
>> path in the
>> "use lib" pragma correct for your installation? What are the
>> permissions on
>> the library file and its parent directories?
>>
>> What Perl version are you running ('perl -v')?
>>
>> Regards,
>> Holger
>>
>> hi
>> from BackupPC_Admin:
>>
>> use strict;
>> no  utf8;
>> use CGI;
>> use CGI::Carp qw(fatalsToBrowser);
>> use lib "/usr/local/BackupPC/lib";
>>
>> use BackupPC::Lib;
>> use BackupPC::CGI::Lib qw(:all);
>>
>> BackupPC::CGI::Lib::NewRequest;
>>
>> my %ActionDispatch = (
>>     "deleteBackup"               => "DeleteBackup",
>>
>> folders all owned by backupc:
>> s -al /usr/local/BackupPC/lib/BackupPC/
>> total 108
>> drwxr-xr-x. 8 backuppc backuppc   160 Jun 12 21:40 .
>> drwxr-xr-x. 4 backuppc backuppc    33 Jun 12 16:09 ..
>> drwxr-xr-x. 2 backuppc backuppc  4096 Jun 12 21:40 CGI
>> drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Config
>> -r--r--r--. 1 backuppc backuppc 13638 Jun 12 21:40 DirOps.pm
>> drwxr-xr-x. 2 backuppc backuppc   181 Jun 12 21:40 Lang
>> -r--r--r--. 1 backuppc backuppc 38786 Jun 12 21:40 Lib.pm
>> drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Storage
>> -r--r--r--. 1 backuppc backuppc  3014 Jun 12 21:40 Storage.pm
>> -r--r--r--. 1 backuppc backuppc 36631 Jun 12 21:40 View.pm
>> drwxr-xr-x. 2 backuppc backuppc   101 Jun 12 21:40 Xfer
>> -r--r--r--. 1 backuppc backuppc  5002 Jun 12 21:40 Xfer.pm
>> drwxr-xr-x. 2 backuppc backuppc    27 Jun 12 21:40 Zip
>>
>>
>> This is perl 5, version 16, subversion 3 (v5.16.3) built for
>> x86_64-linux-thread-multi
>> (with 33 registered patches, see perl -V for more detail)
>>
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> 

Re: [BackupPC-users] backuppc 4.2.1 perl issue

2018-06-13 Thread mlm

hi,

First line:
#!/bin/perl
#= -*-perl-*-w
#

selinux is in permissive mode

manually run:


Content-Type: text/html; charset=utf-8



BackupPC Server Status
href="/var/www/htdocs/BackupPC/image/BackupPC_stnd.css" title="CSSFile">
type="image/x-icon">



onLoad="document.getElementById('NavMenu').style.height=document.body.scrollHeight">



    
    https://backuppc.github.io/backuppc/;>src="/var/www/htdocs/BackupPC/image/logo.gif">

    

Hosts

    
    type="submit" value="Go" name="ignore">

    
Server
Status
Host Summary
Documentation
https://github.com/backuppc/backuppc/wiki;>Wiki
https://backuppc.github.io/backuppc;>Homepage

 

    BackupPC Server Status



    Currently Running Jobs



 Host 
     Type 
     User 
     Start Time 
     Command 
     PID 
     Xfer PID 
     Status 
     Count 
    






    Failures that need attention



 Host 
     Type 
     User 
     Last Try 
     Details 
     Error Time 
     Last error (other than no ping) 





apache is running as backuppc user.

Mark


On 6/12/2018 10:25 PM, Craig Barratt via BackupPC-users wrote:

Some random questions:

What's the very first line of BackupPC_Admin?

Could this be some sort of selinux issue?

What happens when you manually run BackupPC_Admin (as the backuppc 
user)?  What user is apache running as?


Craig

On Tue, Jun 12, 2018 at 7:17 PM, mlm > wrote:




On 6/12/2018 8:10 PM, Holger Parplies wrote:

Hi,

mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users]
backuppc 4.2.1 perl issue]:

[...]
New system running Scientific Linux 7.5, installed 4.2.1
from tar file

Global symbol "%In" requires explicit package name at
/usr/share/BackupPC/sbin/BackupPC_Admin line 90.
[...]
Bareword "BackupPC::CGI::Lib::NewRequest" not allowed
while "strict subs" in use at
/usr/share/BackupPC/sbin/BackupPC_Admin line 56.
[...]
Any suggestions on troubleshooting further?

what do the first few non-comment lines of your BackupPC_Admin
look like
(about 12, but I don't have 4.2.1 here right now, so that
might have changed;
up to the first "my" variable declaration)? It would seem that the
BackupPC::CGI::Lib module is not correctly imported. Is the
path in the
"use lib" pragma correct for your installation? What are the
permissions on
the library file and its parent directories?

What Perl version are you running ('perl -v')?

Regards,
Holger

hi
from BackupPC_Admin:

use strict;
no  utf8;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use lib "/usr/local/BackupPC/lib";

use BackupPC::Lib;
use BackupPC::CGI::Lib qw(:all);

BackupPC::CGI::Lib::NewRequest;

my %ActionDispatch = (
    "deleteBackup"   => "DeleteBackup",

folders all owned by backupc:
s -al /usr/local/BackupPC/lib/BackupPC/
total 108
drwxr-xr-x. 8 backuppc backuppc   160 Jun 12 21:40 .
drwxr-xr-x. 4 backuppc backuppc    33 Jun 12 16:09 ..
drwxr-xr-x. 2 backuppc backuppc  4096 Jun 12 21:40 CGI
drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Config
-r--r--r--. 1 backuppc backuppc 13638 Jun 12 21:40 DirOps.pm
drwxr-xr-x. 2 backuppc backuppc   181 Jun 12 21:40 Lang
-r--r--r--. 1 backuppc backuppc 38786 Jun 12 21:40 Lib.pm
drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Storage
-r--r--r--. 1 backuppc backuppc  3014 Jun 12 21:40 Storage.pm
-r--r--r--. 1 backuppc backuppc 36631 Jun 12 21:40 View.pm
drwxr-xr-x. 2 backuppc backuppc   101 Jun 12 21:40 Xfer
-r--r--r--. 1 backuppc backuppc  5002 Jun 12 21:40 Xfer.pm
drwxr-xr-x. 2 backuppc backuppc    27 Jun 12 21:40 Zip


This is perl 5, version 16, subversion 3 (v5.16.3) built for
x86_64-linux-thread-multi
(with 33 registered patches, see perl -V for more detail)




--
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! 

Re: [BackupPC-users] backuppc 4.2.1 perl issue

2018-06-12 Thread Craig Barratt via BackupPC-users
Some random questions:

What's the very first line of BackupPC_Admin?

Could this be some sort of selinux issue?

What happens when you manually run BackupPC_Admin (as the backuppc user)?
What user is apache running as?

Craig

On Tue, Jun 12, 2018 at 7:17 PM, mlm  wrote:

>
>
> On 6/12/2018 8:10 PM, Holger Parplies wrote:
>
>> Hi,
>>
>> mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users] backuppc 4.2.1
>> perl issue]:
>>
>>> [...]
>>> New system running Scientific Linux 7.5, installed 4.2.1 from tar file
>>>
>>> Global symbol "%In" requires explicit package name at
>>> /usr/share/BackupPC/sbin/BackupPC_Admin line 90.
>>> [...]
>>> Bareword "BackupPC::CGI::Lib::NewRequest" not allowed while "strict
>>> subs" in use at /usr/share/BackupPC/sbin/BackupPC_Admin line 56.
>>> [...]
>>> Any suggestions on troubleshooting further?
>>>
>> what do the first few non-comment lines of your BackupPC_Admin look like
>> (about 12, but I don't have 4.2.1 here right now, so that might have
>> changed;
>> up to the first "my" variable declaration)? It would seem that the
>> BackupPC::CGI::Lib module is not correctly imported. Is the path in the
>> "use lib" pragma correct for your installation? What are the permissions
>> on
>> the library file and its parent directories?
>>
>> What Perl version are you running ('perl -v')?
>>
>> Regards,
>> Holger
>>
>> hi
> from BackupPC_Admin:
>
> use strict;
> no  utf8;
> use CGI;
> use CGI::Carp qw(fatalsToBrowser);
> use lib "/usr/local/BackupPC/lib";
>
> use BackupPC::Lib;
> use BackupPC::CGI::Lib qw(:all);
>
> BackupPC::CGI::Lib::NewRequest;
>
> my %ActionDispatch = (
> "deleteBackup"   => "DeleteBackup",
>
> folders all owned by backupc:
> s -al /usr/local/BackupPC/lib/BackupPC/
> total 108
> drwxr-xr-x. 8 backuppc backuppc   160 Jun 12 21:40 .
> drwxr-xr-x. 4 backuppc backuppc33 Jun 12 16:09 ..
> drwxr-xr-x. 2 backuppc backuppc  4096 Jun 12 21:40 CGI
> drwxr-xr-x. 2 backuppc backuppc21 Jun 12 21:40 Config
> -r--r--r--. 1 backuppc backuppc 13638 Jun 12 21:40 DirOps.pm
> drwxr-xr-x. 2 backuppc backuppc   181 Jun 12 21:40 Lang
> -r--r--r--. 1 backuppc backuppc 38786 Jun 12 21:40 Lib.pm
> drwxr-xr-x. 2 backuppc backuppc21 Jun 12 21:40 Storage
> -r--r--r--. 1 backuppc backuppc  3014 Jun 12 21:40 Storage.pm
> -r--r--r--. 1 backuppc backuppc 36631 Jun 12 21:40 View.pm
> drwxr-xr-x. 2 backuppc backuppc   101 Jun 12 21:40 Xfer
> -r--r--r--. 1 backuppc backuppc  5002 Jun 12 21:40 Xfer.pm
> drwxr-xr-x. 2 backuppc backuppc27 Jun 12 21:40 Zip
>
>
> This is perl 5, version 16, subversion 3 (v5.16.3) built for
> x86_64-linux-thread-multi
> (with 33 registered patches, see perl -V for more detail)
>
>
>
> 
> --
> 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.2.1 perl issue

2018-06-12 Thread mlm



On 6/12/2018 8:10 PM, Holger Parplies wrote:

Hi,

mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users] backuppc 4.2.1 perl 
issue]:

[...]
New system running Scientific Linux 7.5, installed 4.2.1 from tar file

Global symbol "%In" requires explicit package name at 
/usr/share/BackupPC/sbin/BackupPC_Admin line 90.
[...]
Bareword "BackupPC::CGI::Lib::NewRequest" not allowed while "strict subs" in 
use at /usr/share/BackupPC/sbin/BackupPC_Admin line 56.
[...]
Any suggestions on troubleshooting further?

what do the first few non-comment lines of your BackupPC_Admin look like
(about 12, but I don't have 4.2.1 here right now, so that might have changed;
up to the first "my" variable declaration)? It would seem that the
BackupPC::CGI::Lib module is not correctly imported. Is the path in the
"use lib" pragma correct for your installation? What are the permissions on
the library file and its parent directories?

What Perl version are you running ('perl -v')?

Regards,
Holger


hi
from BackupPC_Admin:

use strict;
no  utf8;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use lib "/usr/local/BackupPC/lib";

use BackupPC::Lib;
use BackupPC::CGI::Lib qw(:all);

BackupPC::CGI::Lib::NewRequest;

my %ActionDispatch = (
    "deleteBackup"   => "DeleteBackup",

folders all owned by backupc:
s -al /usr/local/BackupPC/lib/BackupPC/
total 108
drwxr-xr-x. 8 backuppc backuppc   160 Jun 12 21:40 .
drwxr-xr-x. 4 backuppc backuppc    33 Jun 12 16:09 ..
drwxr-xr-x. 2 backuppc backuppc  4096 Jun 12 21:40 CGI
drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Config
-r--r--r--. 1 backuppc backuppc 13638 Jun 12 21:40 DirOps.pm
drwxr-xr-x. 2 backuppc backuppc   181 Jun 12 21:40 Lang
-r--r--r--. 1 backuppc backuppc 38786 Jun 12 21:40 Lib.pm
drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Storage
-r--r--r--. 1 backuppc backuppc  3014 Jun 12 21:40 Storage.pm
-r--r--r--. 1 backuppc backuppc 36631 Jun 12 21:40 View.pm
drwxr-xr-x. 2 backuppc backuppc   101 Jun 12 21:40 Xfer
-r--r--r--. 1 backuppc backuppc  5002 Jun 12 21:40 Xfer.pm
drwxr-xr-x. 2 backuppc backuppc    27 Jun 12 21:40 Zip


This is perl 5, version 16, subversion 3 (v5.16.3) built for 
x86_64-linux-thread-multi

(with 33 registered patches, see perl -V for more detail)


--
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.2.1 perl issue

2018-06-12 Thread Holger Parplies
Hi,

mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users] backuppc 4.2.1 perl 
issue]:
> [...]
> New system running Scientific Linux 7.5, installed 4.2.1 from tar file
> 
> Global symbol "%In" requires explicit package name at 
> /usr/share/BackupPC/sbin/BackupPC_Admin line 90.
> [...]
> Bareword "BackupPC::CGI::Lib::NewRequest" not allowed while "strict subs" in 
> use at /usr/share/BackupPC/sbin/BackupPC_Admin line 56.
> [...]
> Any suggestions on troubleshooting further?

what do the first few non-comment lines of your BackupPC_Admin look like
(about 12, but I don't have 4.2.1 here right now, so that might have changed;
up to the first "my" variable declaration)? It would seem that the
BackupPC::CGI::Lib module is not correctly imported. Is the path in the
"use lib" pragma correct for your installation? What are the permissions on
the library file and its parent directories?

What Perl version are you running ('perl -v')?

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/