BackupPC-users

[BackupPC-users] Syntax error at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm

2012-05-11 02:57:20
Subject: [BackupPC-users] Syntax error at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm
From: "Sorin Srbu" <sorin.srbu AT orgfarm.uu DOT se>
To: "'General list for user discussion, questions and support'" <backuppc-users AT lists.sourceforge DOT net>
Date: Fri, 11 May 2012 08:39:20 +0200
Hi all,

Running BPC 3.2.1 on CentOS 6.2 x64 and have been getting the below error 
since a few days back.

The backups seem to be running fine, but when I click Host Summary in the 
web-gui, and then click a host, I get the below. It is only when I click the 
host-link I see this error. The BPC-logs say everything is fine.

Could someone please help me in decoding this error? Ie, I see what the errors 
are, but what do I do about them?

"Explicit package name" smells of some kind of lib problem but which?

Thanks in advance for any hints and help.

"Software error:

syntax error at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 251, 
near "-        if"
Global symbol "$user" requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 251.
Global symbol "$host" requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 251.
syntax error at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 251, 
near "}) "
Global symbol "$user" requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 252.
Global symbol "$user" requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 252.
Global symbol "$host" requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 252.
Global symbol "$user" requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 252.
Global symbol "$host" requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 252.
Global symbol "$statusStr" requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 255.
syntax error at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 256, 
near "}"
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm has too many errors.

For help, please send mail to the webmaster (root@localhost), giving this 
error message and the time and date of the error.
Software error:

[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: syntax error at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 251, near "-        if"
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: Global symbol "$user" requires 
explicit package name at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 
251.
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: Global symbol "$host" requires 
explicit package name at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 
251.
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: syntax error at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 251, near "}) "
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: Global symbol "$user" requires 
explicit package name at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 
252.
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: Global symbol "$user" requires 
explicit package name at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 
252.
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: Global symbol "$host" requires 
explicit package name at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 
252.
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: Global symbol "$user" requires 
explicit package name at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 
252.
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: Global symbol "$host" requires 
explicit package name at /usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 
252.
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: Global symbol "$statusStr" 
requires explicit package name at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 255.
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: syntax error at 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm line 256, near "}"
[Fri May 11 08:22:49 2012] BackupPC_Admin.pl: 
/usr/share/BackupPC/lib/BackupPC/CGI/HostInfo.pm has too many errors.
Compilation failed in require at /usr/share/BackupPC/sbin/BackupPC_Admin.pl 
line 107.

For help, please send mail to the webmaster (root@localhost), giving this 
error message and the time and date of the error."



-- 
BW,
        Sorin
-----------------------------------------------------------
# Sorin Srbu            [Sysadmin, Systems Engineer]
# Dept of Medicinal Chemistry,  Phone: +46 (0)18-4714482 >3 signals> GSM
# Div of Org Pharm Chem,        Mobile: +46 (0)70-4250229
# Box 574, Uppsala University,  Fax: +46 (0)18-4714482
# SE-751 23 Uppsala, Sweden     Visit: BMC, Husargatan 3, D5:512b
#                       Web: http://www.orgfarm.uu.se
-----------------------------------------------------------
# ()  ASCII ribbon campaign - Against html E-mail
# /\
#
# This message was not sent from an iProduct!
#
# MotD follows:
# Dear [insert deity of your choice here], give me the peace of mind to accept 
what I cannot change, curage to change what I can, and sense enough to 
understand the difference. -Me

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/