On Wed, Jun 13, 2018 at 1:37 AM, Dieter Klünter <dieter@dkluenter.de> wrote:
Am Tue, 12 Jun 2018 11:56:23 -0500
schrieb Scott Mayo <smayo@bps14.org>:

> I just started getting this early this morning.  I set this server up
> a number of years ago.  I am getting ready to put a new one in place,
> but need to get this back up and going in the mean time.
>
> Openldap version is 2.4.12
>
> /sbin/service ldap start
>
> Checking configuration files for slapd:                    [FAILED]
> Logging region out of memory; you may need to increase its size
> db_open(/var/lib/ldap/id2entry.bdb) failed: Cannot allocate memory
> (12). backend_startup_one: bi_db_open failed! (12)
> slap_startup failed (test would succeed using the -u switch)
> stale lock files may be present in /var/lib/ldap           [WARNING]
>
> Any ideas on what I need to check there?  Thanks.

The reference to -u switch leads to the impression that filesystem
owwnership of slapd.conf and bdb database files is not appropriate.
In addition you may check the database with BerkeleyDB tools, i.e.
db_stat.

Thanks. I forgot to reply yesterday.  I ended up tweaking the  set_cachesize and set_lg_regionmax up just a bit in the DB_CONFIG and that let ldap run and everything is working now.  Anytime I have ever had problems in the past was usually some power failure and as you say the file permissions got changed and I would change them back.

I found it odd that I needed to move those up any though, since I have not added any users or anything in quite some time.

--
Scott Mayo - System Administrator
Bloomfield Schools PH: 573-568-5669  FA: 573-568-4565