Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've had quite a fight with the server I'm trying to configure in the last few weeks and thanks to serverfault I've been able to smoke out a few issues (thank you for all the help on that!) I'm a rookie in this field and have to deal with an Apple Server running on OS X 10.8.

The big problem looming over my work is sporadic performance issues with the data server service of the Server app. I've been trying to troubleshoot this for quite some time. And while my assumptions have fixed solutions to other problems in the past, they haven't led me to the fix I'm looking for.

Hoping again that a fix to another issue might solve the slow performance issues users have with the data server, I've located another problem and hope to repair it:

The Open Directory service of the apple server keeps on corrupting. This thread https://discussions.apple.com/thread/4149695 usually helps and repairs the broken databases, but the fix doesn't last for long. While the Open Directory service can be booted again afterwards, it starts spitting out the following errors in the LDAP log:

PANIC: fatal region error detected; run recovery

It does that multiple times per second. After that comes this message:

file id2entry.bdb has LSN1/1199762, past end of log at 1/726463. Commonly caused by moving the database from one database environment to another without clearing the database LSNs, or by removing all of the log files from a database environment.

/var/db/openldap/authdata/id2entry.bdb: unexpected file type or format

bdb_db_open: database "cn=authdata": db_open(/var/db/openldap/authdata/id2entry.bdb) failed: Invalid argument (22).

backend_startup_one (type=bdb, suffix="cn=authdata"): bi_db_open failed! (22)

bdb_db_close: database "cn_authdata": alock_close failed

I've tried setting the Open Directory up from scratch and recovering it from a backup. The problem persists. So how do I fix this? Could it be the source of the performance problems?

Thank you a million in advance.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.