I am trying to upgrade from 2.2.13 to 2.3.35 in order to (possibly) fix another problem.
But, I am having a ton of problems. At this point, I just want to scratch the current DB and start over. However, if I try this, slapd complains about not being able to find the database:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
Which makes sense... so, how do I create an empty one?
TIA!
--On Thursday, May 24, 2007 6:10 PM -0700 Craig craig5@pobox.com wrote:
I am trying to upgrade from 2.2.13 to 2.3.35 in order to (possibly) fix another problem.
But, I am having a ton of problems. At this point, I just want to scratch the current DB and start over. However, if I try this, slapd complains about not being able to find the database:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
Which makes sense... so, how do I create an empty one?
Create an initial ldif file to load it with.
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Uh... it won't start without the id2entry file:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
Any other ideas?
Quanah Gibson-Mount wrote:
--On Thursday, May 24, 2007 6:10 PM -0700 Craig craig5@pobox.com wrote:
I am trying to upgrade from 2.2.13 to 2.3.35 in order to (possibly) fix another problem.
But, I am having a ton of problems. At this point, I just want to scratch the current DB and start over. However, if I try this, slapd complains about not being able to find the database:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
Which makes sense... so, how do I create an empty one?
Create an initial ldif file to load it with.
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
--On May 25, 2007 11:32:48 AM -0700 Craig craig5@pobox.com wrote:
Uh... it won't start without the id2entry file:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
Any other ideas?
I said, load the server with your initial LDIF file (i.e., use slapadd). That will create the id2entry file.
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Sorry, I had only used ldapadd up till now.
Thanx so much!
BTW, I accidently used an older version of slapadd at first (2.2.13) and I get the following error:
# slapadd -f /etc/openldap/slapd.conf -l base.ldif /etc/openldap/schema/core.schema: line 366: AttributeType not found: "description" slapadd: bad configuration file!
Does anyone know what changed? I looked at the CHANGES file for 2.3.35 and saw a few changes related to schema handling, but am not sure which is directly related to the above. (BTW, I am just curious... The add works just fine when I use slapadd from the 2.3.35 release.)
Again, it all works now. Thanx again!
Craig
Quanah Gibson-Mount wrote:
--On May 25, 2007 11:32:48 AM -0700 Craig craig5@pobox.com wrote:
Uh... it won't start without the id2entry file:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
Any other ideas?
I said, load the server with your initial LDIF file (i.e., use slapadd). That will create the id2entry file.
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
--On May 25, 2007 11:54:30 AM -0700 Craig craig5@pobox.com wrote:
Sorry, I had only used ldapadd up till now.
Thanx so much!
BTW, I accidently used an older version of slapadd at first (2.2.13) and I get the following error:
# slapadd -f /etc/openldap/slapd.conf -l base.ldif /etc/openldap/schema/core.schema: line 366: AttributeType not found: "description" slapadd: bad configuration file!
Does anyone know what changed? I looked at the CHANGES file for 2.3.35 and saw a few changes related to schema handling, but am not sure which is directly related to the above. (BTW, I am just curious... The add works just fine when I use slapadd from the 2.3.35 release.)
Again, it all works now. Thanx again!
OpenLDAP 2.2 and OpenLDAP 2.3 use different schemes for storing the data in the BDB database, so db's created with a 2.2 slapadd are not compatible with 2.3.
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Quanah Gibson-Mount wrote:
--On May 25, 2007 11:32:48 AM -0700 Craig craig5@pobox.com wrote:
Uh... it won't start without the id2entry file:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
This is just coming from a slaptest invocation in your init script. Comment out the slaptest, or start slapd by hand.
Howard Chu wrote:
Quanah Gibson-Mount wrote:
--On May 25, 2007 11:32:48 AM -0700 Craig craig5@pobox.com wrote:
Uh... it won't start without the id2entry file:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
This is just coming from a slaptest invocation in your init script. Comment out the slaptest, or start slapd by hand.
Adding the data via slapadd worked perfectly. (I had only used ldapadd before, which, obviously, requires slapd to be running.)
Yes, that dir existed. It had a few files, like DB_CONFIG.
Anyway, I couldn't add any entries with ldapadd because the server wouldn't come up. Someone else suggested "slapadd" which worked perfectly.
So, it's all taken care of. :)
Michael Ströder wrote:
Craig wrote:
Checking configuration files for : bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)
Does the directory /var/lib/ldap/ exist?
Ciao, Michael.
openldap-software@openldap.org