From: John C. <jci...@ro...> - 2006-11-25 21:09:44
|
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: bac...@li... [mailto:bac...@li...] 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 |