Hi Alan , same conf as you , and curiously same issue. Can't figure how get this to work , any thoughts of what do they found in logs.
Here I do as root
# slapconfig -destroylapdserver
Then I remove /var/db/openldap
But just it seems that I added a bunch of newnproblems to the one that I already have.
# changeip -checkhostname stats no issues since he got's a primary address and current hotname equals DNS hostname which is by the way my FQDN so names match and dirserv:success = "success"
But if we fire this one
penelope:~ root# serveradmin fullstatus dirserv
dirserv:logPaths:opendirectorydLog = "/var/log/opendirectoryd.log"
dirserv:logPaths:ldapLog = "/var/log/slapd.log"
dirserv:logPaths:passwordServiceServerLog = "/Library/Logs/PasswordService/ApplePasswordServer.Server.log"
dirserv:logPaths:passwordServiceErrorLog = "/Library/Logs/PasswordService/ApplePasswordServer.Error.log"
dirserv:logPaths:kdcLog = "/var/log/krb5kdc/kdc.log"
dirserv:logPaths:slapconfigLog = "/Library/Logs/slapconfig.log"
dirserv:LDAPServerType = "standalone"
dirserv:state = "STOPPED"
dirserv:readWriteSettingsVersion = 1
Then try manual start up from the terminal
penelope:~ root# serveradmin start dirserv
2014-05-01 18:55:28.221 serveradmin[53764:507] servermgr_dirserv: received request to start the Directory Server
2014-05-01 18:55:28.236 serveradmin[53764:507] servermgr_dirserv: an error occurred when starting the Directory Server: Directory Server is not configured - nothing to start
dirserv:error = "Directory Server is not configured - nothing to start"
penelope:~ root#
uh oh ??
What was logged in /var/log/slapd.log ?
May 1 19:00:33 penelope.alliancejr.eu slapd[53941]: @(#) $OpenLDAP: slapd 2.4.28 (Nov 12 2013 12:02:47) $
root@hikkaduwa.apple.com:/private/var/tmp/OpenLDAP/OpenLDAP-491.1~1/servers/slapd
May 1 19:00:33 penelope.alliancejr.eu slapd[53941]: daemon: SLAP_SOCK_INIT: dtblsize=8192
May 1 19:00:33 penelope.alliancejr.eu slapd[53941]: /etc/openldap/slapd_macosxserver.conf: line 229: invalid path: No such file or directory
May 1 19:00:33 penelope.alliancejr.eu slapd[53941]: slapd stopped.
So what is this line tells us ?
227 # The database directory MUST exist prior to running slapd AND
228 # should only be accessible by the slapd/tools. Mode 700 recommended.
229 directory "/var/db/openldap/openldap-data"
So I guess I will Time MAchine this directory at once and see if it's do the trick
Get back right after retoring the missing directory ... Get almost a bit farther but ...
May 1 19:11:50 penelope.alliancejr.eu slapd[54425]: main: Enabling TLS failed; continuing with TLS disabled.
May 1 19:11:51 penelope.alliancejr.eu slapd[54425]: bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
May 1 19:11:52 penelope.alliancejr.eu slapd[54425]: slapd starting
May 1 19:11:52 penelope.alliancejr.eu slapd[54425]: daemon: posting com.apple.slapd.startup notification
May 1 19:12:04 penelope.alliancejr.eu slapd[54425]: daemon: shutdown requested and initiated.
May 1 19:12:04 penelope.alliancejr.eu slapd[54425]: slapd shutdown: waiting for 4 operations/tasks to finish
May 1 19:12:05 penelope.alliancejr.eu slapd[54425]: daemon: posting daemon shutdown notification.
May 1 19:12:10 penelope.alliancejr.eu slapd[54425]: slapd stopped.
May 1 19:12:11 penelope.alliancejr.eu slapd[54436]: @(#) $OpenLDAP: slapd 2.4.28 (Nov 12 2013 12:02:47) $
root@hikkaduwa.apple.com:/private/var/tmp/OpenLDAP/OpenLDAP-491.1~1/servers/slapd
May 1 19:12:11 penelope.alliancejr.eu slapd[54436]: daemon: SLAP_SOCK_INIT: dtblsize=8192
May 1 19:12:11 penelope.alliancejr.eu slapd[54436]: main: Enabling TLS failed; continuing with TLS disabled.
May 1 19:12:11 penelope.alliancejr.eu slapd[54436]: bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
May 1 19:12:11 penelope.alliancejr.eu slapd[54436]: slapd starting
May 1 19:12:11 penelope.alliancejr.eu slapd[54436]: daemon: posting com.apple.slapd.startup notification
May 1 19:12:14 penelope.alliancejr.eu slapd[54436]: daemon: shutdown requested and initiated.
May 1 19:12:14 penelope.alliancejr.eu slapd[54436]: slapd shutdown: waiting for 0 operations/tasks to finish
May 1 19:12:14 penelope.alliancejr.eu slapd[54436]: daemon: posting daemon shutdown notification.
May 1 19:12:17 penelope.alliancejr.eu slapd[54436]: slapd stopped.
May 1 19:12:17 penelope.alliancejr.eu slapd[54455]: @(#) $OpenLDAP: slapd 2.4.28 (Nov 12 2013 12:02:47) $
root@hikkaduwa.apple.com:/private/var/tmp/OpenLDAP/OpenLDAP-491.1~1/servers/slapd
May 1 19:12:17 penelope.alliancejr.eu slapd[54455]: daemon: SLAP_SOCK_INIT: dtblsize=8192
May 1 19:12:17 penelope.alliancejr.eu slapd[54455]: main: Enabling TLS failed; continuing with TLS disabled.
May 1 19:12:17 penelope.alliancejr.eu slapd[54455]: bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
May 1 19:12:17 penelope.alliancejr.eu slapd[54455]: slapd starting
May 1 19:12:17 penelope.alliancejr.eu slapd[54455]: daemon: posting com.apple.slapd.startup notification
May 1 19:12:18 penelope.alliancejr.eu slapd[54455]: odusers_copy_primarymasterip: Could not locate apple-password-server-location attribute
May 1 19:12:18 penelope.alliancejr.eu slapd[54455]: odusers_add_aa: could not locate Primary Master's IP address; trying System Configuration
May 1 19:12:20 penelope.alliancejr.eu slapd[54455]: odusers_response: processing response to add of uid=diradmin,cn=users,dc=penelope,dc=alliancejr,dc=eu
May 1 19:12:20 penelope.alliancejr.eu slapd[54455]: odusers_response: entryUUID 80ec9b6c-dcf6-4d9c-977c-079ec4727a0b
May 1 19:12:20 penelope.alliancejr.eu slapd[54455]: odusers_response: Found uuid: c01067c2-d153-11e3-bd19-406c8f0281a2
May 1 19:12:20 penelope.alliancejr.eu slapd[54455]: passwd_extop: (null) changed password for uid=diradmin,cn=users,dc=penelope,dc=alliancejr,dc=eu
May 1 19:12:20 penelope.alliancejr.eu slapd[54455]: => bdb_idl_insert_key: c_get failed: DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock (-30994)
May 1 19:12:20 penelope.alliancejr.eu slapd[54455]: conn=1003 op=8: attribute "entryCSN" index add failure
May 1 19:12:20 penelope.alliancejr.eu slapd[54455]: odusers_copy_primarymasterip: Could not locate apple-password-server-location attribute
May 1 19:12:20 penelope.alliancejr.eu slapd[54455]: odusers_add_aa: could not locate Primary Master's IP address; trying System Configuration
May 1 19:12:21 penelope.alliancejr.eu slapd[54455]: odusers_response: processing response to add of cn=penelope.alliancejr.eu$,cn=computers,dc=penelope,dc=alliancejr,dc=eu
May 1 19:12:21 penelope.alliancejr.eu slapd[54455]: odusers_response: entryUUID 49fbd148-ca73-4d0d-9772-ae20a5f0de6a
May 1 19:12:21 penelope.alliancejr.eu slapd[54455]: odusers_response: Found uuid: c16239f2-d153-11e3-bd19-406c8f0281a2
May 1 19:12:21 penelope.alliancejr.eu slapd[54455]: passwd_extop: (null) changed password for cn=penelope.alliancejr.eu$,cn=computers,dc=penelope,dc=alliancejr,dc=eu
May 1 19:12:21 penelope.alliancejr.eu slapd[54455]: conn=1004 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
May 1 19:12:23 penelope.alliancejr.eu slapd[54455]: daemon: shutdown requested and initiated.
May 1 19:12:23 penelope.alliancejr.eu slapd[54455]: slapd shutdown: waiting for 0 operations/tasks to finish
May 1 19:12:23 penelope.alliancejr.eu slapd[54455]: daemon: posting daemon shutdown notification.
May 1 19:12:27 penelope.alliancejr.eu slapd[54455]: slapd stopped.
Still stuck ...
Message was edited by: Stephane JOUVE