I have similar problem recently. The error message you got is indeed caused by
BackupPC can not find (or read) config.pl.
I solved my problem by replace the config.pl with a known good config.pl file.
Guayhaur
> On Mar 17, 2016, at 12:44 PM, Mauro Condarelli <[email protected]> wrote:
>
> Thanks Dan,
> I have a config.pl:
> backuppc@syno0:~/BackupPC/conf$ ls -la
> total 96
> drwxr-x--- 2 backuppc users 4096 Mar 13 12:31 .
> drwxr-xr-x 9 backuppc users 4096 Mar 13 12:39 ..
> -rw-r----- 1 backuppc users 85652 Mar 13 12:31 config.pl
> -rw-r--r-- 1 backuppc users 2214 Mar 13 12:31 hosts
> athough I did not (yet) configure it in any way (I plan to do it from the web
> IF) it already contains the
> $Conf{Language} = 'en';
> line.
>
> My guess is BackupPC is unable to find (or read) config.pl, but I can't
> understand why.
> What should I check?
>
> Any pointer welcome.
>
> Regards
> Mauro
>
>
> Il 17/03/2016 17:15, Dan Pritts ha scritto:
>> I know nothing about a synology nas, but i found this in the source:
>>
>> Lib.pm: return "No language setting" if (
>> !defined($bpc->{Conf}{Language}) );
>>
>> My config.pl file has
>>
>> $Conf{Language} = 'en';
>>
>>
>> I wonder if you aren't getting a config.pl file at all, perhaps the source
>> installation doesn't give you one, just an example with a different name
>> that you are supposed to customize.
>>
>> hope this helps.
>>> Mauro Condarelli <mailto:[email protected]> March 17, 2016 at 6:58 AM
>>> I already tried sending this, but it never showed in ML, so I'm trying
>>> again (sorry if You get a duplicate).
>>> __________________________________________________________________________________________
>>> Hi,
>>> I am trying to install BackupPC-3.3.1 (the latest, AFAIK) on a Synology NAS.
>>> Obviously I have no way to use pre-packaged distributions and thus I
>>> resorted to install from .tar
>>>
>>> I installed using:
>>>
>>> ==================================================
>>> #!/bin/bash
>>>
>>> user=backuppc
>>> home=/opt/backuppc
>>> pdir=$home/BackupPC
>>> ddir=$home/data
>>>
>>> cd BackupPC-3.3.1
>>>
>>> perl configure.pl --batch --backuppc-user=$user --compress-level=3
>>> --config-dir $pdir/conf \
>>> --cgi-dir $pdir/cgi-bin --data-dir $ddir --no-fhs \
>>> --hostname syno0 --html-dir $pdir/images --html-dir-url /images \
>>> --install-dir $pdir --log-dir $pdir/log --uid-ignore
>>> ==================================================
>>>
>>> User backuppc exists and its HOME dir is /opt/backuppc.
>>> /opt/backuppc is a mount point for a ext4 filesystem (actually mounted "-o
>>> bind", if it matters).
>>>
>>> Trying a very basic:
>>>
>>> backuppc@syno0:~/sandbox$ /opt/backuppc/BackupPC/bin/BackupPC
>>> No language setting
>>> BackupPC::Lib->new failed
>>>
>>> Same result if I try the command as "root".
>>> This is strange because I checked and Lib->new() always prints something to
>>> STDERR before returning in error (without a return value).
>>> I also checked permissions, but everything looks good to me:
>>>
>>> backuppc@syno0:~/BackupPC/lib/BackupPC$ ls -la
>>> total 172
>>> drwxr-xr-x 8 backuppc users 4096 Mar 13 12:31 .
>>> drwxr-xr-x 4 backuppc users 4096 Mar 13 12:31 ..
>>> -r--r--r-- 1 backuppc users 8794 Mar 13 12:31 Attrib.pm
>>> drwxr-xr-x 2 backuppc users 4096 Mar 13 12:31 CGI
>>> drwxr-xr-x 2 backuppc users 4096 Mar 13 12:31 Config
>>> -r--r--r-- 1 backuppc users 11310 Mar 13 12:31 Config.pm
>>> -r--r--r-- 1 backuppc users 12963 Mar 13 12:31 FileZIO.pm
>>> drwxr-xr-x 2 backuppc users 4096 Mar 13 12:31 Lang
>>> -r--r--r-- 1 backuppc users 42427 Mar 13 12:31 Lib.pm
>>> -r--r--r-- 1 backuppc users 21079 Mar 13 12:31 PoolWrite.pm
>>> drwxr-xr-x 2 backuppc users 4096 Mar 13 12:31 Storage
>>> -r--r--r-- 1 backuppc users 2764 Mar 13 12:31 Storage.pm
>>> -r--r--r-- 1 backuppc users 19728 Mar 13 12:31 View.pm
>>> drwxr-xr-x 2 backuppc users 4096 Mar 13 12:31 Xfer
>>> -r--r--r-- 1 backuppc users 5070 Mar 13 12:31 Xfer.pm
>>> drwxr-xr-x 2 backuppc users 4096 Mar 13 12:31 Zip
>>>
>>> Also the "No language setting" bit is strange, since I have:
>>>
>>> backuppc@syno0:~/BackupPC/lib/BackupPC$ echo $LANG
>>> en_US.UTF-8
>>>
>>> I also did some other checks, but nothing looked wrong (to me).
>>> Can someone, pretty please, help me?
>>> TiA
>>> Mauro
>>>
>>> ------------------------------------------------------------------------------
>>> Transform Data into Opportunity.
>>> Accelerate data analysis in your applications with
>>> Intel Data Analytics Acceleration Library.
>>> Click to learn more.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
>>> <http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140>
>>> _______________________________________________
>>> BackupPC-users mailing list
>>> [email protected]
>>> <mailto:[email protected]>
>>> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
>>> <https://lists.sourceforge.net/lists/listinfo/backuppc-users>
>>> Wiki: http://backuppc.wiki.sourceforge.net
>>> <http://backuppc.wiki.sourceforge.net/>
>>> Project: http://backuppc.sourceforge.net/ <http://backuppc.sourceforge.net/>
>>
>> --
>> Dan Pritts
>> ICPSR Computing & Network Services
>> University of Michigan
>> +1 (734) 615-9529
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
>> <http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140>
>>
>> _______________________________________________
>> BackupPC-users mailing list
>> [email protected]
>> <mailto:[email protected]>
>> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> <https://lists.sourceforge.net/lists/listinfo/backuppc-users>
>> Wiki: http://backuppc.wiki.sourceforge.net
>> <http://backuppc.wiki.sourceforge.net/>
>> Project: http://backuppc.sourceforge.net/ <http://backuppc.sourceforge.net/>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140_______________________________________________
> BackupPC-users mailing list
> [email protected]
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/