Symptoms

During PBA update installation on the step of post-configuration (configure.pl run) configureLocale.pl script fails with the following error:

[Tue Aug 12 15:49:51 2014] Execute: '/usr/bin/perl "/usr/local/bm/tools/configureLocale.pl" syncLocalesFromDB -w -t en,'
Bad formed string '
' in PBA locale file /usr/local/bm/conf/locale/locale.en.custom line 36 at /usr/local/bm/tools/locale_tools.pm line 265.
[Tue Aug 12 15:49:51 2014] Connect 'dbi:Pg:database=pba;host=192.168.42.16;', pba
[Tue Aug 12 15:49:51 2014] Syncronize multilang fields for locale(s): en
[Tue Aug 12 15:49:51 2014] [Call stack]:
[Tue Aug 12 15:49:52 2014]     'helper::msystemex' at helper.pm line 574
[Tue Aug 12 15:49:52 2014]     'helper::msystem' at /usr/local/bm/tools/configure.pl line 585
[Tue Aug 12 15:49:52 2014]     'main::configure_locales' at /usr/local/bm/tools/configure.pl line 650
[Tue Aug 12 15:49:52 2014]     'main::configure' at /usr/local/bm/tools/configure.pl line 161
[Tue Aug 12 15:49:52 2014] PWD: /usr/local/bm/tools
Command '/usr/bin/perl "/usr/local/bm/tools/configureLocale.pl" syncLocalesFromDB -w -t en,' exited with error code 65280 at helper.pm line 576.
Configuration of pba failed.

Cause

There is a blank line in PBA locale file.

Resolution

If exact file name is not clear from the error, it can be found using the following command:

grep -cvP '\S' /usr/local/bm/conf/locale/locale.*

F.e.:

[root@pba ~]# grep -cvP '\S' /usr/local/bm/conf/locale/locale.*
/usr/local/bm/conf/locale/locale.en:0
/usr/local/bm/conf/locale/locale.en.custom:1

To resolve the issue it is needed to edit affected file (/usr/local/bm/conf/locale/locale.en.custom in above example) and remove the blank line

Internal content