[Kolab-devel] kolab_bootstrap fails on a fresh installed system
Richard Bos
ml at radoeka.nl
Mon Dec 28 22:20:03 CET 2009
Op maandag 28 december 2009 21:39:12 schreef Richard Bos:
> Hi,
>
> 'kolab_bootstrap -b' fails with the following error:
>
> IMPORTANT NOTE:
> use login=manager and passwd=xxxxx when you log into the webinterface!
>
> Enter fully qualified hostname of slave kolab server e.g.
> thishost.domain.tld (empty when done): prepare LDAP database...
> DEBUG: tpl = /etc/kolab/templates/slapd.access.template.in
> Use of uninitialized value $cfg in concatenation (.) or string at
> /usr/lib/perl5/vendor_perl/5.10.0/Kolab/Conf.pm line 622, <TEMPLATE> line
> 3978. DEBUG: cfg =
> Use of uninitialized value $cfg in hash element at
> /usr/lib/perl5/vendor_perl/5.10.0/Kolab/Conf.pm line 623, <TEMPLATE> line
> 3978. Use of uninitialized value $cfg in hash element at
> /usr/lib/perl5/vendor_perl/5.10.0/Kolab/Conf.pm line 623, <TEMPLATE> line
> 3978. Use of uninitialized value $cfg in hash element at
> /usr/lib/perl5/vendor_perl/5.10.0/Kolab/Conf.pm line 623, <TEMPLATE> line
> 3978. Use of uninitialized value in scalar assignment at
> /usr/lib/perl5/vendor_perl/5.10.0/Kolab/Conf.pm line 119, <TEMPLATE> line
> 3978.
>
> I added the "DEBUG:" statements.
>
> This is in the following part of the code:
> 615 # defaults to all templates
> 616 $args{templates} = [ keys %templates ] if !exists $args{templates};
> 617 my $cfg;
> 618 my $tpl;
> 619 foreach $tpl (@{$args{templates}}) {
> 620 $cfg = $templates{$tpl};
> 621 print "DEBUG: tpl = $tpl\n";
> 622 print "DEBUG: cfg = $cfg\n";
> 623 build($tpl, $cfg, $ownership{$cfg}, $permissions{$cfg},
> $commentchar{$cfg}); 624 }
>
> The function is called with:
> 477 Kolab::Conf::rebuildTemplates(
> 478 dorunonchange =>0,
> 479 templates => [
> 480 "$templatedir/slapd.access.template.in",
> 481 "$templatedir/slapd.conf.template.in",
> 482 "$templatedir/slapd.replicas.template.in"
> 483 ],
> 484 );
>
> Any idea what is wrong?
Found the culprit! The above templates should have been used without ".in"
suffix.
Something else that happens during bootstrap is this:
Enter fully qualified hostname of slave kolab server e.g. thishost.domain.tld
(empty when done):
prepare LDAP database...
Use of uninitialized value $Kolab::config{"is_master"} in string eq at
/usr/lib/perl5/vendor_perl/5.10.0/Kolab/Conf.pm line 470, <GEN5> line 16.
This did not happen before. Can this be fixed?
--
Richard
More information about the devel
mailing list