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

Re: keep getting errors on this DSA



Craig White wrote:

On Tue, 2005-02-15 at 16:59 +1100, Dave Horsfall wrote:


Feb 14 21:51:52 srv1 slapd[19039]: bdb(dc=tobyhouse,dc=com): Invalid log
file: log.0000000001: No such file or directory


This is suspicious. Have you put the log files elsewhere, and not chown'd them to ldap:ldap?


----
evidently I have...

# ls -l log.0000000001
-rw-------    1 ldap     ldap       422547 Feb 14 22:52 log.0000000001
[root@srv1 openldap-data]# ls -l ../openldap-logs/
total 8
-rw-------    1 ldap     ldap       423029 Feb 14 23:10 log.0000000001
[root@srv1 openldap-data]#

so I will retrace my steps...

# mv DB_CONFIG ../
# rm -fr *
# rm -fr ../openldap-logs/*
# > /var/log/slapd.log
# /usr/local/sbin/slapadd -l /root/slapcat.ldif
# chown ldap:ldap *bdb
# chown ldap:ldap __db.00*
# ls -l
total 2660
-rw------- 1 ldap ldap 86016 Feb 14 23:24 cn.bdb
-rw------- 1 ldap ldap 16384 Feb 14 23:24 __db.001
-rw------- 1 ldap ldap 278528 Feb 14 23:24 __db.002
-rw------- 1 ldap ldap 98304 Feb 14 23:24 __db.003
-rw------- 1 ldap ldap 450560 Feb 14 23:24 __db.004
-rw------- 1 ldap ldap 24576 Feb 14 23:24 __db.005
-rw------- 1 ldap ldap 8192 Feb 14 23:24 displayName.bdb
-rw------- 1 ldap ldap 77824 Feb 14 23:24 dn2id.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 gidNumber.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 givenName.bdb
-rw------- 1 ldap ldap 229376 Feb 14 23:24 id2entry.bdb
-rw------- 1 root root 1515849 Feb 14 23:24 log.0000000001
-rw------- 1 ldap ldap 8192 Feb 14 23:24 mail.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 memberUid.bdb
-rw------- 1 ldap ldap 20480 Feb 14 23:24 objectClass.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24
sambaDomainName.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24
sambaPrimaryGroupSID.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 sambaSID.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 sn.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 uid.bdb
-rw------- 1 ldap ldap 8192 Feb 14 23:24 uidNumber.bdb
# mv ../DB_CONFIG .
# service ldap-new start
Starting slapd: [ OK ]


Am I really dense?

You moved your DB_CONFIG file into place after the BDB environment was already created by slapadd, and then you started slapd. Apparently your non-default settings include putting the logs in a non-default location. Naturally the log settings that slapd sees disagree with the log settings in effect during the slapadd, so slapd is unable to find any valid logs.

You're supposed to set the DB_CONFIG first so that slapadd and slapd both operate with identical settings.

--
 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support