Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

open directory fails upon set up

Hi my name is Alan and I'm using a 2012 mac mini running 10.9.2. I was having problems with my open directory service so i made an archive of the master then deleted and tried to restore it. When I try to restore it or create a new open directory master I receive an error stating my server was successfully configured as a directory server, but an error occured. I have tried restarting server and rebooting the device to fix the issue with no luck. I have other services that are working like time machine and caching. Any thoughts? Thanks.

Mac mini, OS X Mavericks (10.9.2)

Posted on Apr 23, 2014 8:04 PM

Reply
4 replies

Apr 24, 2014 5:44 AM in response to Alanlca

Hi Alan,


What kind of error did you get, and how does this error affect your server at this moment? Does the opendirectoryd log contain any specific errors? Timemachine and caching are not really depending on OpenDirectory so that's really not an indication of your server's health.

We need a bit more info, what was the error or issue before you decided to archive the master?

How is your DNS setup?

Can you do a check in the terminal with: sudo changeip -checkhostname ?

Let me know!

Kind regards,


Jeffrey Epping

StarPine Support

May 1, 2014 10:16 AM in response to Alanlca

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

May 1, 2014 11:11 AM in response to Stephane JOUVE

This is OK here , just after I figure how to use slapconfig options


slapconfig -getstyle which tells me that my server was a standalone one

slapconfig -getmasterconfig wich tells me that the server isn't a LDAP server


and this google link http://goo.gl/yaZi1O


and specially this command


slapconfig -createldapmasterandadmin diradmin "Directory Administrator" 1000


that's do the magic for me !


Message was edited by: Stephane JOUVE

open directory fails upon set up

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.