SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Errors running BackupPC Admin
Author Message
Reply with quote
Post Errors running BackupPC Admin 
William McKee a =E9crit:
Quote:
Hi all,
=20
I'm just getting familiar with BackupPC and am in the process of trying
to setup the BackupPC Admin script under mod_perl. I have setup my
httpd.conf as follows (www is the user that my Apache server runs as):
=20
# BackupPC Administrator Script Configuration
<Location /cgi-bin/BackupPC/BackupPC_Admin> # <--- change path as
needed
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
# WARNING: THIS IS UNSAFE. FIX IT IF THE SERVER
# IS NOT BEHIND A FIREWALL.
Setenv REMOTE_USER www
</Location>


hello,

first at all, which unix user do you to make backupPC daemon run ? user=20
"www" ?

If it's not the case, you'd better run both with the same unix user, as=20
specified in the documentation.

Quote:
After fixing some problems with permissions in my config.pl (had to
chgrp to www in order for the admin script to see it), the script is
running but I'm receiving an error. The apache error_log reports the
following long message:
=20
Subroutine Z_OK redefined at /usr/local/lib/perl/5.6.1/Compress/Zlib.pm
line 1
Subroutine Z_STREAM_END redefined at
/usr/local/lib/perl/5.6.1/Compress/Zlib.pm line 1
Ambiguous call resolved as CORE::open(), qualify as such or use & at
/usr/local/backuppc/lib/BackupPC/FileZIO.pm line 346 (#1)
(W ambiguous) A subroutine you have declared has the same name as a
Perl keyword, and you have used the name without qualification for
calling one or the other. Perl decided to call the builtin because
the subroutine is not imported.
=20
To force interpretation as a subroutine call, either put an
ampersand before the subroutine name, or qualify the name with its
package. Alternatively, you can import the subroutine (or pretend
that it's imported with the use subs pragma).
=20
To silently interpret it as the Perl operator, use the CORE:: prefix
on the operator (e.g. CORE::log($x)) or by declaring the subroutine
to be an object method (see perlsub/"Subroutine Attributes" or
attributes).
=20
[Tue Apr 1 06:41:49 2003] FileZIO.pm: Ambiguous call resolved as
CORE::open(), qualify as such or use & at
/usr/local/backuppc/lib/BackupPC/FileZIO.pm line 346. Ambiguous
call resolved as CORE::close(), qualify as such or use & at
/usr/local/backuppc/lib/BackupPC/FileZIO.pm line 350 (#1)
=20
[Tue Apr 1 06:41:49 2003] FileZIO.pm: Ambiguous call resolved as
CORE::close(), qualify as such or use & at
/usr/local/backuppc/lib/BackupPC/FileZIO.pm line 350.
=20
"my" variable $dirUM masks earlier declaration in same scope at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 1542 (#2) (W misc) A
"my" or "our" variable has been redeclared in the current scope or
statement, effectively eliminating all access to the previous
instance. This is almost always a typographical error. Note that
the earlier variable will still exist until the end of the scope or
until all closure referents to it are destroyed.
=20
[Tue Apr 1 06:41:49 2003] BackupPC_Admin: "my" variable $dirUM masks
earlier declaration in same scope at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 1542.
=20
Use of uninitialized value in concatenation (.) or string at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 2241 (#3) (W
uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a
mistake. To suppress this warning assign a defined value to your
variables.
=20
To help you figure out what was undefined, perl tells you what
operation you used the undefined value in. Note, however, that perl
optimizes your program and the operation displayed in the warning
may not necessarily appear literally in your program. For example,
"that $foo" is usually optimized into "that " . $foo, and the
warning will refer to the concatenation (.) operator, even though
there is no . in your program.
=20
[Tue Apr 1 06:41:49 2003] null: Use of uninitialized value in
concatenation (.) or string at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 2241.
=20
[Tue Apr 1 06:41:49 2003] [error] [Tue Apr 1 06:41:49 2003] null:
Can't use an undefined value as a HASH reference at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 2435.
=20
=20
The last error is what is displayed in my browser. Has anyone seen this
problem before? Any suggestions?

On my side, I neved had such errors with the 2.0.0beta0 version.

which version of backupPC are you using ?

Pierre Bourgin



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply with quote
Post Errors running BackupPC Admin 
Hi all,

I'm just getting familiar with BackupPC and am in the process of trying
to setup the BackupPC Admin script under mod_perl. I have setup my
httpd.conf as follows (www is the user that my Apache server runs as):

# BackupPC Administrator Script Configuration
<Location /cgi-bin/BackupPC/BackupPC_Admin> # <--- change path as
needed
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
# WARNING: THIS IS UNSAFE. FIX IT IF THE SERVER
# IS NOT BEHIND A FIREWALL.
Setenv REMOTE_USER www
</Location>

After fixing some problems with permissions in my config.pl (had to
chgrp to www in order for the admin script to see it), the script is
running but I'm receiving an error. The apache error_log reports the
following long message:

Subroutine Z_OK redefined at /usr/local/lib/perl/5.6.1/Compress/Zlib.pm
line 1
Subroutine Z_STREAM_END redefined at
/usr/local/lib/perl/5.6.1/Compress/Zlib.pm line 1
Ambiguous call resolved as CORE::open(), qualify as such or use & at
/usr/local/backuppc/lib/BackupPC/FileZIO.pm line 346 (#1)
(W ambiguous) A subroutine you have declared has the same name as a
Perl keyword, and you have used the name without qualification for
calling one or the other. Perl decided to call the builtin because
the subroutine is not imported.

To force interpretation as a subroutine call, either put an
ampersand before the subroutine name, or qualify the name with its
package. Alternatively, you can import the subroutine (or pretend
that it's imported with the use subs pragma).

To silently interpret it as the Perl operator, use the CORE:: prefix
on the operator (e.g. CORE::log($x)) or by declaring the subroutine
to be an object method (see perlsub/"Subroutine Attributes" or
attributes).

[Tue Apr 1 06:41:49 2003] FileZIO.pm: Ambiguous call resolved as
CORE::open(), qualify as such or use & at
/usr/local/backuppc/lib/BackupPC/FileZIO.pm line 346. Ambiguous
call resolved as CORE::close(), qualify as such or use & at
/usr/local/backuppc/lib/BackupPC/FileZIO.pm line 350 (#1)

[Tue Apr 1 06:41:49 2003] FileZIO.pm: Ambiguous call resolved as
CORE::close(), qualify as such or use & at
/usr/local/backuppc/lib/BackupPC/FileZIO.pm line 350.

"my" variable $dirUM masks earlier declaration in same scope at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 1542 (#2) (W misc) A
"my" or "our" variable has been redeclared in the current scope or
statement, effectively eliminating all access to the previous
instance. This is almost always a typographical error. Note that
the earlier variable will still exist until the end of the scope or
until all closure referents to it are destroyed.

[Tue Apr 1 06:41:49 2003] BackupPC_Admin: "my" variable $dirUM masks
earlier declaration in same scope at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 1542.

Use of uninitialized value in concatenation (.) or string at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 2241 (#3) (W
uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a
mistake. To suppress this warning assign a defined value to your
variables.

To help you figure out what was undefined, perl tells you what
operation you used the undefined value in. Note, however, that perl
optimizes your program and the operation displayed in the warning
may not necessarily appear literally in your program. For example,
"that $foo" is usually optimized into "that " . $foo, and the
warning will refer to the concatenation (.) operator, even though
there is no . in your program.

[Tue Apr 1 06:41:49 2003] null: Use of uninitialized value in
concatenation (.) or string at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 2241.

[Tue Apr 1 06:41:49 2003] [error] [Tue Apr 1 06:41:49 2003] null:
Can't use an undefined value as a HASH reference at
/var/www/cgi-bin/BackupPC/BackupPC_Admin line 2435.


The last error is what is displayed in my browser. Has anyone seen this
problem before? Any suggestions?

Thanks,
William

--
Knowmad Services Inc.
http://www.knowmad.com


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply with quote
Post Errors running BackupPC Admin 
William McKee a =E9crit:
Quote:
Hi Pierre,

Quote:
first at all, which unix user do you to make backupPC daemon run ? use=
r
Quote:
Quote:
"www" ?

Thanks for you quick reply. That would definitely be my problem. I mus=
t
Quote:
have missed that spec in the docs. Thanks for pointing it out.

I had the same problems not so far Wink

Quote:
I'm installing 1.5.0 right now. Do you have an example of a simple
httpd.conf file that I could use to start a new apache daemon for just
backuppc?

Here my httpd.conf for backup-2.0.0beta0 (only relevant entries) :

--------<cut here>-------------------------------------------------------
User backuppc
Group backup

# directory containing images for the web interface
DocumentRoot "/s_dev01/apache/backupPC_mod_perl/htdocs"

LoadModule perl_module /usr/pkg/lib/httpd/mod_perl.so

ScriptAlias /cgi-bin/ "/s_dev01/apache/backupPC_mod_perl/cgi-bin/"

<IfModule mod_perl.c>
PerlModule Apache::Registry
PerlTaintCheck On
<Location /cgi-bin/BackupPC_Admin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
AuthType Basic
AuthName "BackupPC login"
AuthUserFile /t200/divers/backupPC/conf/htpasswd
require valid-user
</Location>
</IfModule>
--------<cut here>-------------------------------------------------------


Play well with backupPC, it's really an amazing software Smile

Regards,

Pierre Bourgin




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply with quote
Post Errors running BackupPC Admin 
Hi Pierre,

Quote:
first at all, which unix user do you to make backupPC daemon run ? user
"www" ?

Thanks for you quick reply. That would definitely be my problem. I must
have missed that spec in the docs. Thanks for pointing it out.

I'm installing 1.5.0 right now. Do you have an example of a simple
httpd.conf file that I could use to start a new apache daemon for just
backuppc?

Thanks,
William

--
Knowmad Services Inc.
http://www.knowmad.com


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply with quote
Post Errors running BackupPC Admin 
William McKee a =E9crit:

Quote:
On Tue, Apr 01, 2003 at 02:41:16PM +0200, Pierre Bourgin wrote:
=20
Quote:
Quote:
Thanks for you quick reply. That would definitely be my problem. I mus=
t
Quote:
Quote:
Quote:
have missed that spec in the docs. Thanks for pointing it out.

I had the same problems not so far Wink
=20
That makes me feel better. Thanks for sending the httpd.conf. I ended u=
p
Quote:
creating a VirtualHost which uses suexec to run the BackupPC_Admin
script. It's working nicely now!

of course, it's designed to Wink

Quote:
Now to figure out how to get the system configured. I was hoping that
the web interface would provide a bit easier time of it, but it looks
like it's back to the config files.

yes, but it's providing an easy way to really control the main config and
host config : just copy file and edit it ... if you have some servers and
slow link inbetween, it's just fine Smile

Quote:
On a slightly different topic, would you recommend that I upgrade to 2.=
0
Quote:
now or wait til the final release is available? I'd rather stumble
across a few bugs than have to relearn the system if it is significantl=
y
Quote:
different in 2.0.0.

I don't know what to say, i'm only a 15 days old user of backupPC Wink

I choosed 2.0.0beta0 mainly because of support of rsync transport I plan =
to
use, and despites some minor bug in interface (as far as I notice), it's =
really
stable.

I must also say I'm still on configuration tests at this moment.

Pierre Bourgin


Quote:
Regards,
William
=20




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply with quote
Post Errors running BackupPC Admin 
On Tue, Apr 01, 2003 at 02:41:16PM +0200, Pierre Bourgin wrote:
Quote:
Quote:
Thanks for you quick reply. That would definitely be my problem. I must
have missed that spec in the docs. Thanks for pointing it out.

I had the same problems not so far Wink

That makes me feel better. Thanks for sending the httpd.conf. I ended up
creating a VirtualHost which uses suexec to run the BackupPC_Admin
script. It's working nicely now!

Now to figure out how to get the system configured. I was hoping that
the web interface would provide a bit easier time of it, but it looks
like it's back to the config files.

On a slightly different topic, would you recommend that I upgrade to 2.0
now or wait til the final release is available? I'd rather stumble
across a few bugs than have to relearn the system if it is significantly
different in 2.0.0.

Regards,
William

--
Knowmad Services Inc.
http://www.knowmad.com


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply with quote
Post Errors running BackupPC Admin 
Quote:
I'm just getting familiar with BackupPC and am in the process of trying
to setup the BackupPC Admin script under mod_perl. I have setup my
httpd.conf as follows (www is the user that my Apache server runs as):

# BackupPC Administrator Script Configuration
<Location /cgi-bin/BackupPC/BackupPC_Admin> # <--- change path as
needed
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
# WARNING: THIS IS UNSAFE. FIX IT IF THE SERVER
# IS NOT BEHIND A FIREWALL.
Setenv REMOTE_USER www
</Location>

After fixing some problems with permissions in my config.pl (had to
chgrp to www in order for the admin script to see it), the script is
running but I'm receiving an error. The apache error_log reports the
following long message:

It looks like you have PerlWarn defaulting to on. Please check for

PerlWarn On

somewhere in your httpd.conf. Or try adding

PerlWarn Off

(I assume this is the right syntax) inside your location directive.

Craig


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB