Re: [BackupPC-users] backuppc 4.2.1 perl issue
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
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
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/