[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: linux slapadd: backend_startup: bi_db_open failed! (-1)



Hi,

On Tuesday 04 March 2003 17:07, Brian Bisaillon wrote:
> slapd is able to start using the following configs:
>
> [.. lots of slapd.conf stuff deleted ...]
suffix          "dc=itarchitect,dc=ca"
> #suffix          "o=itarchitect"
> #suffix          "dc=ldap,dc=itarchitect,dc=ca"
> rootdn          "cn=DirectoryAdmin,dc=itarchitect,dc=ca"
>
> OR
>
> #suffix         "dc=itarchitect,dc=ca"
> suffix          "o=itarchitect"
> #suffix         "dc=ldap,dc=itarchitect,dc=ca"
> rootdn          "cn=DirectoryAdmin,o=itarchitect"
>
> OR
>
> #suffix         "dc=itarchitect,dc=ca"
> suffix          "o=itarchitect,dc=itarchitect,dc=ca"
> #suffix         "dc=ldap,dc=itarchitect,dc=ca"
> rootdn          "cn=DirectoryAdmin,o=itarchitect,dc=itarchitect,dc=ca"
>
> However, slapd is UNABLE to start using the following configs:
>
> #suffix         "dc=itarchitect,dc=ca"
> suffix          "o=itarchitect"
> suffix          "dc=ldap,dc=itarchitect,dc=ca"
> rootdn          "cn=DirectoryAdmin,o=itarchitect"
>
> OR
>
> #suffix         "dc=itarchitect,dc=ca"
> suffix          "o=itarchitect"
> suffix          "dc=itarchitect,dc=ca"
> rootdn          "cn=DirectoryAdmin,o=itarchitect"
>
> With the above configs where slapd is UNABLE to start it will return the
> following:
>
> Mar  4 10:48:32 linux slapd[4889]: bdb_db_init: Initializing BDB database
> Mar  4 10:48:32 linux slapd[4890]: backend_startup: bi_db_open(0) failed!
> (-1) Mar  4 10:48:32 linux slapd[4890]: slapd stopped.
> Mar  4 10:48:32 linux slapd[4890]: connections_destroy: nothing to destroy.
>
> Now is this because of a pure configuration error on my part is is there
> something else wrong? You will notice that the tutorial at the following
> URL shows the following:
>
> http://yolinux.com/TUTORIALS/LinuxTutorialLDAP-SLAPD-LDIF-V2-config.html
>
> suffix          "o=domain-name"
> suffix          "dc=ldap,dc=domain-name,dc=org"
> rootdn          "cn=Manager,o=domain-name"
>
> This is why I used the following (and of course it didn't work):
>
> suffix          "o=itarchitect"
> suffix          "dc=ldap,dc=itarchitect,dc=ca"
> rootdn          "cn=DirectoryAdmin,o=itarchitect"
>
> This is all I found so far... I will look at the archives you suggested and
> see what they show me.

I knew it was somewhere in the CSV logs:
  CVS log for servers/slapd/back-bdb/init.c

  1.109 Thu Jan 30 21:00:16 2003 UTC; 4 weeks, 4 days ago by hyc 
  Changed since 1.108: +13 -1 lines
  Diffs to 1.108 (colored diff) 
  Disallow multiple suffixes by default. Otherwise subtree index optimization
  breaks. #define BDB_MULTIPLE_SUFFIXES if you want multiple suffix support.
  If you use it, subtree indexing will slow down by factor of 2.

It was a change between OpenLDAP 2.1.12 and 2.1.2.13.
Since then a bdb database can only have one suffix.

Using a separate database in a separate file system directory
for each suffix might help.

Peter

-- 
Peter Marschall     |   eMail: peter.marschall@mayn.de
Scheffelstraße 15   |          peter.marschall@adpm.de
D-97072 Würzburg    |   Tel:   +49 931 14721
PGP: 0BB1 04A3 0FB0 E27F 8018 52BA A286 7B23 9C22 2C83