I got the same error after a new install. Most change seems to give a
corrupted config.pl.  Eg after changed the "PingMaxMsec" on a new install
the config ends up being blank after a reload.

Thanks
John

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Relson
Sent: Friday, November 24, 2006 9:58 AM
To: BackupPC
Subject: [BackupPC-users] EditConfig problem with beta2

Hi Craig,

Having just installed 3.0.0-beta2 on my Gentoo system, I then attempted
to change server name from XXXXXX to OSAGE.  Got "save error; bzip2path
bad" message.  Changed bzip2 path from /usr/bin/bzip2 to /bin/bzip2
and successfully saved the conf.  Apache then reported:

  "Error: Unable to read config.pl or language strings!!"

The error log has the followign message

    [Fri Nov 24 09:45:49 2006] [error] [client 192.168.1.10] Couldn't
    execute /etc/BackupPC/config.pl: syntax error at
    /etc/BackupPC/config.pl line 991, near ".", referer:
 
http://backuppc.osagesoftware.com/cgi-bin/BackupPC_Admin?action=editConfig


Diffing the old and new config files I found a problem (shown below).
The 3 lines setting SmbClientIncrCmd should have all been replaced,
but only 1 line was replaced:

@@ -965,7 +997,7 @@
 #
 # Same variable substitutions are applied as $Conf{SmbClientFullCmd}.
 #
-$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName'
+$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName
$I_option -U $userName -E -N -d 1 -c tarmode\\ full -TcN$X_option
$timeStampFile - $fileList'; . ' $I_option -U $userName -E -N -d 1' . '
-c tarmode\\ full -TcN$X_option $timeStampFile - $fileList'; 

Complete diff of config.pl.old and config.pl is attached.

Note: there are several other places where config.pl uses multi-line
assignments and where the new config.pl is bad


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to