After Updating to Server 4.1 Open directory and LPAD gone

Hello,
two days ago I discovered that Open directory was not working on our Server (Mac Mini 2012). I suspect it stopped working after updating to 10.10.3 and OS-X Server 4.1. When I try to start Open directory in the Server App the Server App prompts: Unable to load Replica List. When I try to recreate my Open directory Server I Get: OD Server already exists.
I get the following log entries:
LDAP Log
Apr 11 22:03:02 server.seju.eu slapd[925]: @(#) $OpenLDAP: slapd 2.4.28 (Feb 24 2015 21:45:59) $
  [email protected]:/BinaryCache/OpenLDAP/OpenLDAP-499.32.4~1/Objects/servers/slapd
Apr 11 22:03:02 server.seju.eu slapd[925]: daemon: SLAP_SOCK_INIT: dtblsize=8192
Apr 11 22:03:02 server.seju.eu slapd[925]: TLS: OPENDIRECTORY_SSL_IDENTITY identity preference overrode configured olcTLSIdentity "APPLE:server.seju.eu"
Apr 11 22:03:02 server.seju.eu slapd[925]: slap_add_listener: opened additional listener 'ldaps:///'
Apr 11 22:03:02 server.seju.eu slapd[925]: bdb(dc=server,dc=seju,dc=eu): unable to allocate memory for mutex; resize mutex region
Apr 11 22:03:02 server.seju.eu slapd[925]: bdb_db_open: database "dc=server,dc=seju,dc=eu" cannot be opened, err 12. Restore from backup!
Apr 11 22:03:02 server.seju.eu slapd[925]: bdb(dc=server,dc=seju,dc=eu): txn_checkpoint interface requires an environment configured for the transaction subsystem
Apr 11 22:03:02 server.seju.eu slapd[925]: bdb_db_close: database "dc=server,dc=seju,dc=eu": txn_checkpoint failed: Invalid argument (22).
Apr 11 22:03:02 server.seju.eu slapd[925]: backend_startup_one (type=bdb, suffix="dc=server,dc=seju,dc=eu"): bi_db_open failed! (12)
Apr 11 22:03:02 server.seju.eu slapd[925]: bdb_db_close: database "dc=server,dc=seju,dc=eu": alock_close failed
Apr 11 22:03:02 server.seju.eu slapd[925]: slapd stopped.
Open Directory Log
2015-04-11 21:57:10.624284 CEST - AID: 0x0000000000000000 - opendirectoryd (build 382.20.2) launched...
2015-04-11 21:57:10.752590 CEST - AID: 0x0000000000000000 - Logging level limit changed to 'error'
2015-04-11 21:57:10.916732 CEST - AID: 0x0000000000000000 - Initialize trigger support
2015-04-11 21:57:10.951833 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/SystemCache.bundle'
2015-04-11 21:57:10.958469 CEST - AID: 0x0000000000000000 - Module: SystemCache - failed to load persistent state - Input/output error
2015-04-11 21:57:10.962533 CEST - AID: 0x0000000000000000 - Registered node with name '/Active Directory' as hidden
2015-04-11 21:57:10.962833 CEST - AID: 0x0000000000000000 - Registered node with name '/Configure' as hidden
2015-04-11 21:57:10.963182 CEST - AID: 0x0000000000000000 - Discovered configuration for node name '/Contacts' at path '/Library/Preferences/OpenDirectory/Configurations//Contacts.plist'
2015-04-11 21:57:10.963194 CEST - AID: 0x0000000000000000 - Registered node with name '/Contacts'
2015-04-11 21:57:10.963438 CEST - AID: 0x0000000000000000 - Registered node with name '/LDAPv3' as hidden
2015-04-11 21:57:10.966901 CEST - AID: 0x0000000000000000 - Registered node with name '/Local' as hidden
2015-04-11 21:57:10.968600 CEST - AID: 0x0000000000000000 - Registered node with name '/NIS' as hidden
2015-04-11 21:57:11.031990 CEST - AID: 0x0000000000000000 - Discovered configuration for node name '/Search' at path '/Library/Preferences/OpenDirectory/Configurations//Search.plist'
2015-04-11 21:57:11.032007 CEST - AID: 0x0000000000000000 - Registered node with name '/Search'
2015-04-11 21:57:12.343838 CEST - AID: 0x0000000000000000 - Discovered configuration for node name '/LDAPv3/127.0.0.1' at path '/Library/Preferences/OpenDirectory/Configurations/LDAPv3/127.0.0.1.plist'
2015-04-11 21:57:12.343888 CEST - AID: 0x0000000000000000 - Registered subnode with name '/LDAPv3/127.0.0.1'
2015-04-11 21:57:13.549377 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/legacy.bundle'
2015-04-11 21:57:13.551131 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/search.bundle'
2015-04-11 21:57:13.554053 CEST - AID: 0x0000000000000000 - '/Search' has registered, loading additional services
2015-04-11 21:57:13.554064 CEST - AID: 0x0000000000000000 - Initialize augmentation support
2015-04-11 21:57:13.557920 CEST - AID: 0x0000000000000000 - Successfully registered for Kernel identity service requests
2015-04-11 21:57:13.557940 CEST - AID: 0x0000000000000000 - Adjusting kernel ID cache (100 -> 250) and membership cache (100 -> 500)
2015-04-11 21:57:13.575235 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/PlistFile.bundle'
2015-04-11 21:57:13.578418 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/FDESupport.bundle'
2015-04-11 21:57:13.583810 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/AppleID.bundle'
2015-04-11 21:57:13.615788 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ConfigurationProfiles.bundle'
2015-04-11 21:57:13.619666 CEST - AID: 0x0000000000000000 - Registered subnode with name '/Local/Default'
2015-04-11 21:57:13.632498 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ldap.bundle'
2015-04-11 21:57:13.845588 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/AppleODClientLDAP.bundle'
2015-04-11 21:57:13.849664 CEST - AID: 0x0000000000000000 - Loaded bundle at path '/System/Library/OpenDirectory/Modules/AppleODClientPWS.bundle'

I had a similar problem. A couple days after upgrading, I encountered OD's "Unable to load replica" problem and had my server's certificate deleted from my system keychain!
Server.app + OD + LDAP are all extremely fragile and I just don't trust them during transitions, so I always keep an independent bootable backup with Carbon Copy Cloner and this preflight script. I'll post my notes for recovering OD below, but in my case, nothing worked this time, and I couldn't start OD robustly across reboots. Fortunately for me, my 12 hour old bootable backup was working, so I just used CCC to copy my bootable backup back. Not sure what I would have done had that not worked short of rebuilding everything from scratch.
Pre-steps:
0. Bootable backups, Time Machine backups, and dirserv backups of everything.
1. Disk Utility: Fix disk permissions, Fix disk
2. PRAM reset, Command-Option-P-R at boot
3. DiskWarrior to rebuild the disk directory
Possible steps to fix OD:
# Fix Open Directory "Unable to load replica"
# Try this first:
# https://support.apple.com/en-us/HT200018
# Quit Server.app
sudo mkdir /var/db/openldap/migration/
sudo touch /var/db/openldap/migration/.rekerberize
sudo killall PasswordService
# Open Server.app
# Try this second:
# http://apple.stackexchange.com/questions/79141/how-to-fix-failing-open-directory -database-cn-authdata-cannot-be-opened-err
sudo serveradmin stop dirserv
sudo launchctl unload -w /System/Library/LaunchDaemons/org.openldap.slapd.plist
sudo db_recover -h /var/db/openldap/authdata/
sudo /usr/libexec/slapd -Tt
sudo launchctl load -w /System/Library/LaunchDaemons/org.openldap.slapd.plist
sudo serveradmin start dirserv
# Try this third:
# https://discussions.apple.com/thread/6018956
sudo serveradmin stop dirserv
sudo slapconfig -restoredb /private/var/backups/ServerBackup_OpenDirectoryMaster.sparseimage
sudo serveradmin start dirserv
# Try this fourth (assuming ccc_preflight od backup):
# https://discussions.apple.com/thread/6018956
sudo serveradmin stop dirserv
sudo slapconfig -restoredb /private/var/backups/odbackup/od_2015-04-11.sparseimage
sudo serveradmin start dirserv
# Try this last:
sudo rsync -va /your-backup-drive-possibly-TM/private/var/db/openldap/authdata/ /private/var/db/openldap/authdata/
If your server cert gets deleted from the System keychain, you'll need to boot into the bootable backup and export the certificate+key that looks like hostname.domainname.tld, signed by IntermediateCA_HOSTNAME.DOMAINNAME.TLD_1, copy this to the server drive, import back into the System keychain. The cert should then appear within Server.app again. See here for how to do this if all you have is the System keychain file.
If anyone has reliable advice how to fix a corrupt OD that would be a huge help.

Similar Messages

  • After updates i am unable to open firefox and have to reset comp to earlier date, my comp is new please help?

    i get a prompt to update firefox and i do then when i try to start firefox i am unable to. i have back-up my computer to previous date and the uninstall and re-install firefox to find the same prompt for updates from firefox and i cant ignore it so it is always there.

    It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem does not disappear when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.

  • TS3694 after updating iphone 4s to ios7 , it restart and asking me to connect itunes , i connect it to the pc wz cable, the message appear that itunes couldn't contact iphone sofware update server coz there is no internet , i try other one and it works no

    after updating iphone 4s to ios7 , it restart and asking me to connect itunes , i connect it to the pc wz cable, the message appear that itunes couldn't contact iphone sofware update server coz there is no internet , i try other one and it works normally

    Oh ...
    That makes it difficult. My new (working) phone is a 4S and the SIM card does not fit. The old SIM card is in the 3GS but as far as I know it was was deactivated.
    But it seems that with other updates over the last couple of years this was not necessary and my partner went through the same update with her 3GS with no problems.
    Should I go to my AT&T dealer and purchase a new SIM card? Is there still a new one available?

  • After update to server 10.4.7, breaks "about this Mac"

    After updating to server 10.4.7 (used the combo updater, repaired permissions before and after), "About this Mac" no longer works - nothing happens when invoked.

    I imagine you have already tried this, but just in case. I had a similar problem with restart and shutdown in the apple menu not working after our server went down when an old battery backup died during a storm.
    reset pram and it was good to go.
    As suggested elsewhere in discussions:
    Hold down Apple (command), Option, p and r keys at a restart. Continue holding the keys down, listen for the usual startup "bong" to sound 4 times. Release the keys after the 4th "bong" and you should have reset the pram.
    Worked for me. Give it a shot.

  • OXS server 3 with mavericks, it will not load up the assistant with open directory and will not allow me to use old open directory it was not a clean install just upgrade. any help or advise appreciated as i really need the server.

    OXS server 3 with mavericks, it will not load up the assistant with open directory and will not allow me to use old opeopen directory and will not allow me to use old open directory it was not a clean install just upgrade. any help or advise appreciated as i really need the server.

    I wonder if the disk being referred to is actually your iPod which is not plugged in. Maybe something has stuck thinking the iPod should be there.
    Try completely removing all the iTunes related programs according to this method.
    http://support.apple.com/kb/HT1923
    Restart you PC and see if startup improves.
    If it doesn't improve you need to consider the possibility that there is something else going on.
    If The problem goes away, hopefully a fresh install will be OK.

  • Open Directory and passwords

    Hi, I have come across something really odd someone pointed out to me with Tiger Server, and this is something I've not been able to duplicated on Panther Server, or at least I don't think I have been able to.
    The situation is this: There are three people in my workgroup who have "administrative" privileges for our small server cluster. When logging into one of the servers, it is possible for a person with administrative privileges to log into the server with any user existing user name, and use their own password, or the global administrative password to log into any account. This does seem weird to me. Is there an article somewhere that explains this? I've done a bit of searching, but am not sure on what I am looking for here.
    I am starting to work with Open Directory and LDAP sharing of login information across a series of three servers and am wonder if it might be linked to this, and why/how, etc. Anyone with any good or bad thoughts on this.
    Thanks so much.

    Hi trotter,
    In fact this is a feature called 'masquerading' by Apple which can be very helpful, particularly when when troubleshooting permissions issues on mouted volumes. It allows admins to mount volumes via afp 'as users'.
    It was first implemented for Apple servers back in ASIP 6, and the feature exists in both Panther and Tiger.
    If you don't want this feature you can uncheck Serrver Admin > AFP > Access > Enable Administrator to masquerade... I believe the box is unchecked by default so one of the admins must have checked it.
    IMHO it would also be very useful for admins to be able to have the options to masquerade to user OD/NetInfo accounts also.
    HTH,
    b.

  • Open Directory and Mobile Home Folders

    Hi All,
    I am a bit confused about Open Directory and Mobile Accounts! here is our scenario. We have an Open Directory setup and all Accounts are set to mobile, accounts are almost 250+, my main problem is the Synchronization Conflicts, the accounts are automated to sync every 30 mins, the problem is every now and then schronization conflict windows popups, our users are complaining almost everytime, another problem is all of the users home folder has a qouta of 5GB, problem is there are users who excedd on the qouta some goes up to 60GB and 100GB, how do i solve this two problems. i am about to loose my mind. We setup like this in order for us to have a backup of all files of the users in case problem arises in the workstation. i have notice that synching file error comes up if you have temporary files used by any applications. the home folder of each user will exclude library, trash, music and entourage databse. Please Do help me.!!! Anyone who knows..?
    Environment
    OD Server - MacOS X Server Tiger 10.4.4
    Workstations - mix MacOS X Tiger 10.4.4 - 10.4.7
    AFP Home Folder - MacOS X Server Tiger 10.4.6 mounted Xsan Volume for home folders
    johnaris
    PLEASE HELP!

    Thanks for the info, by now i will look into that little utility that is very helpful (console!)
    Yes, I was thinking of synching our users at login and logout, the problem here is that, users here has bigger home folders.. mostly about 3GB, and it will took time to login a user, about 6-10 mins, depends on the network, we have networks users that that has slow networks and fast network on video editing users. What I did is that i excluded the Library in the synch options on each unit here, since we are not using Apple's Mail and iCal, it did minimize the synching error but the temp files and date discripancies are mostly that will generate an error, I am having really problems with this.
    thanks for the info i really appreciate it.

  • Terminal Commands to clean Open Directory and Profile Manager

    Hi,
    So I've made the fun decision to move to ML Server as we are just getting services up and we should be on the most recent software to start. I have had interment luck with Open Directory and Profile Manager and was looking for a way to wipe the data bases and start clean.
    I have tried getting to the  ( usr/share/devicemgr/backend and running wipDB.sh. however the database doesnot exist.
    It would be nice to clean the databases and setting instead of doing a full reinstall of MT Lion.
    Thanks!
    ~FSU IT

    So just found the fix for Profile Manger.
    http://support.apple.com/kb/HT5349
    Thanks to this post for finding it - https://discussions.apple.com/thread/4142185?tstart=0

  • Home sharing does not work after update to snow leopard 10.6.4 and iTunes 9

    I am using home sharing since about a year without any problems. After updating to snow leopard 10.6.4 and iTunes 9.2 it suddenly does not work anymore.
    On my iMac and my Mac Book Pro I get error code 3259 and it tells me to check my firewall and to enable Port 3689.
    I did not change anything in the firewall settings, itunes on both allows data traffic in both directions. I also do not find any option to activate a port ( also wondering why this is suddenly now necessary)
    I deactivated home sharing on both machines and enabled it again. It still does not work.
    On both machines iTunes displays the the library on the left side but like said it is not accessable
    With Finder I can access the other computer from both machines without any problem.
    Any help to solve this would be very much appreciated

    first of all, if you are behind a router firewall, and have your network secured (WPA2 and a long, non-dictionary password made up of letters and numbers), you don't need the software firewall on your Mac(s).
    @ least turned if off for troubleshooting purposes.
    turn home sharing off on both computers, and make sure
    (a) both Macs have access to the internet
    (b) iTunes on both machines is authorized for the same iTunes account.
    turn home sharing back on on both Macs.
    does it work ?
    JGG

  • After updating iTunes to 11.0.1.12 and updating Apple TV to 5.1.1 my Apple TV is no longer picking up my photo library. It just keeps saying "loading library" but never brings the pictures up. This didn't happen with previous versions. Any ideas?

    After updating iTunes to 11.0.1.12 and updating Apple TV to 5.1.1 my Apple TV is no longer picking up my photo library. It just keeps saying "loading library" but never brings the pictures up. It also tells me that home sharing isn't on even though it is and then I have to turn it off and on on the PC so the Apple TV even recognizes the photo library. These issues didn't happen with previous versions. Any ideas?

    Update on my previous comment. I have solved my issue. Issue was with Windows 7 firewall not operating correctly. I was unable to add itunes to the 'Allow programs to communicate through windows firewall'. Found the following page useful http://answers.microsoft.com/en-us/windows/forum/windows_7-security/windows-fire wall-cant-change-some-of-your-settings/514d78fb-39e9-47b1-b561-bc49cbdad904
    Followed the instructions to the foot of the page, restarted PC, normal service resumed on windows firewall, added itunes to list to communicate through firewall. restarted itunes, restarted appletv, success!!!
    Hope this may help somone else.

  • After restoring Windows I tries to open iTunes and got a message saying 'This version of iTunes has not been correctly localized for this language. Please run the English version.' how do I do this?

    After restoring Windows I tried to open iTunes and got a message saying 'This version of iTunes has not been correctly localized for this language. Please run the English version.
    What do I do? I don't want to lose my entire liberary!

    Hi there computerfailure,
    You may want to try removing and reinstalling iTunes as an initial troubleshooting step. Take a look at the article below for more information.
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    -Griff W.

  • TS1702 After updating to iOS 6, apps stopped installations and showing 'waiting'

    After updating to iOS 6, apps stopped installations and showing 'waiting'
    I can't delete and install again because there are almost 20 applications like this.
    iPad 2 on iOS 6
    I tried by restarting iPad. Still it's not working.
    I have almost 20 applications showing in 'updates' in App Store. I selected 'Update all'. But iPad not installing those updates.
    Thanks,
    Kumar

    It's never a good idea to select Update All - IMO. That's when things start going wonky. Only one thing can download at a time anyway.
    Make sure that you do not have a stalled download in iTunes - a song or podcast, TV show  .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.

  • After updating to iPhoto9.6 an error occurred and the iPhoto icon says it is downloading. The library seems ok

    after updating to iPhoto9.6 an error occurred and the iPhoto icon says it is downloading. The library seems ok

    Perhaps you need to wait for the download to finish. If it's going on for a long time then cancel it (which you can do in Launchpad) and try again.

  • HT6117 I don't have Safary and facetime after update with IOS 7 my Iphone 4S, and sometimes the Wife is no able.

    I don't have Safary and facetime after update with IOS 7 my Iphone 4S, and sometimes the Wife is no able.

    Howdy syafiqahmad,
    If your iMessage and FaceTime still hasn't activated by now, I would recommend you use this specific section of the following article as long as you verify you've done all the other troubleshooting from it for this issue:
    If you get an error when trying to activate iMessage or FaceTime 
    If you're using an iPhone, contact your carrier to make sure that you can receive SMS messages.
    Contact Apple Support.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Why itunes failed to install apps on iphone after update to ios 6.0.1? And how to restore my purshased apps from itunes?

    Why itunes failed to install apps on iphone after update to ios 6.0.1? And how to restore my purshased apps from itunes?

    See:
    Frequently asked questions about viewing and syncing video with iTunes and iPod
    Why can't I transfer videos to my iPod?
    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod

Maybe you are looking for

  • Problem in creation of order relevant - intercompany invoice

    Dear all , I am facing problem in creation of intercompany invoice which is sales order relevant . Please tell which settings is required to resolve this as all the settings has been made. Send ur email id so that the problem can be described if requ

  • What is the best artical for understanding Data Pump

    Hi, What is the best artical for understanding the relationship / dependency of NETWORK_LINK with FLASHBACK_SCN or FLASHBACK_TIME . Why it is manditory to have NETWORK_LINK , when we are using FLASHBACK_SCN or FLASHBACK_TIME. Can some one explain the

  • Can't find 0FYTLFP OLAP Variable in InfoPackage Data Selection tab on 3.5

    On BW 3.5, when generating an InfoPackage with the datasource as Purchasing Data(80PUR_C01), under Data Selection tab, for the InfoObject 0FISCPER, I selected 7 (OLAP variables)for the Type column, then click the button next to it and under the colum

  • ABAP Error   or    SD Error ?

    Hi All, I'm in entry stage of SD Module, Please help me, I & my computer stuck with a system error --Unable to lock Table/view V_TVAK. while going for tcode VOV8 as well as Path. --Unable to lock table/view V_TVKO while difining Sales Orgn. --Unable.

  • Account to be specifed while uploading inventory opening balance

    What is the account to be specified when I upload inventory opening balance for inventory items for the first time in Apps using Misc. Receipt?The material account(specified in Costing tab of Organization parameters form) gets debited but which accou