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

High Sierra: qmasterd/opendirectoryd: Too many corpses being created

Hi all, on our family white Macbook (2009), which used to work fine, we have since yesterday a spinning boot.


In verbose mode can be seen:


Waiting for DSMOS...

Process[187] crashed: qmasterd. Too many corpses being created.

Process[188] crashed: opendirectoryd. Too many corpses being created.


Disk tool first help and fsck are ok, I did not see errors in the details when I ran it.

I can also find thru the harddisk without issues at the recovery console.

So the filesystem is ok, and since it can boot in recovery mode, I assume hardware and filesystem are generally ok. Disk space is plenty.


Creating rc.server did not help. I reinstalled OS without a resulting change.

/var link also seems ok. I can change directories and ls in single-user mode, but not create files since mounted in read-only.

I removed the Mac from my WLAN (Fritzbox), so it cannot connect any more. No change.

I renamed the directores of the virus scanner as an attempt to isolate that. No change.


Attempts to start in safe mode are also unsuccessful. If anyone has a hint to start in safe mode with verbose, appreciated.


I don´t want to USB attach the disk to my other MPB to backup, and to later reformat/reinstall, without understanding the root cause of this.


I saw quite few other discussions on similar topics, without having found the right hint or solution.


Can you please help?


Many thanks / Stefan

VIN, MacBook (13-inch Late 2009), macOS High Sierra (10.13.2), Assume it is 10.13.2 - cannot check

Posted on Jan 10, 2018 9:14 AM

Reply
42 replies

Feb 10, 2018 12:27 AM in response to Beauvoir17

You should reinstall the operating system but not from Time Machine unless you use a earlier backup other than the current one as it will hold the corrupted files. Better to install a new system an make sure it works before using Time Machine to install your files otherwise you just corrupt what you have installed. Time Machine works well if it backs up a working environment but if it is set to backup everything then that is what you get.


My computer seems stable since removing old kexts files, no more corpse files so far!

Feb 17, 2018 7:41 AM in response to kraemies

This should solve the problem:

If you want to remove all users (without removing home folders)

If you suspect that the local database which stores user accounts is damaged, follow the steps for the version of OS X you're using below. These steps remove all user accounts without removing their related Home folders, and make Setup Assistant open again.


Start up in Single-User Mode by holding Command-S when you turn on the computer. Wait until white text appears.

At the prompt, type each of these commands on single line as they appear below, and press Return at the end of each line.


mount -uw /

cd /var/db

mv dslocal dslocal.old

mkdir -p dslocal/nodes

cp -Rp /System/Library/DirectoryServices/DefaultLocalDB/Default dslocal/nodes/

rm .AppleSetupDone

reboot


Once the computer restarts, complete Setup Assistant to create the administrator user account again. When creating the account, the short name entered into the Account Name field should match the name of the user's home folder in /Users, so that the new user will use the existing home folder.

After Setup Assistant, open Terminal and type this command:


sudo chown -R username:staff /Users/username


Note: There is a space before "/Users/". Replace "username" with the user's short name that was entered in Account Name field during the previous step.


If there was more than user on the computer, use the Accounts pane of System Preferences to re-create any remaining users. When creating each account, the short name entered into the Account Name field should match the name of that user's home folder in /Users, so that the new user will use the existing home folder.

Feb 19, 2018 9:17 AM in response to kraemies

This same problem came up to me out of nowhere. I've been running OSX High Sierra for some time on my 6 year old iMac now without any problems really (haven't reinstalled once in all those years). This morning out of nowhere my iMac quit working (rc.server not found, along with the corpse process messages).


I have not updated my system anytime recently (maybe 2 weeks ago last time) so that should not be the issue. I've scrolled over dozens of topics on apple, macrumor but in my experience 90% of the people here who suppose to give "support" on Apple forums are not even close to tech savy, I myself have an extensive background in Unix/Linux systems so first thing I did was all sorts of diagnostics and tried several "fixes" which resulted in absolutly nothing. It saddens me every time when I search for some fix for a particular problem in OSX Apple support forums are the worst of any kind when it comes to these actually having understanding of the problem and the system and clogs up my google search results with worthless answers or solutions. 99% of the comments are worthless junk and mainly boils down to, put back a timemachine backup or reinstall it... and that's exactly what I'm going to do now because I've been working for more than 5 hours to fix this ***** problem which came out of nowhere with no apparent cause.

Feb 22, 2018 12:05 PM in response to masthax

No need to rant about the support forum! At least it provides a quick solution without data loss. Apple should be blamed for not fixing it or pubicize it on its websites.

See a solution to the issue from frankv or another similar from rew10000, also look at: http://capitoladesign.com/2018/02/10/osx-too-many-corpses-the-30-minute-fix-no-d ata-loss/

Here is probably the quickest solution from frankv:

If you want to remove all users (without removing home folders)

If you suspect that the local database which stores user accounts is damaged, follow the steps for the version of OS X you're using below. These steps remove all user accounts without removing their related Home folders, and make Setup Assistant open again.


Start up in Single-User Mode by holding Command-S when you turn on the computer. Wait until white text appears.

At the prompt, type each of these commands on single line as they appear below, and press Return at the end of each line.


mount -uw /

cd /var/db

mv dslocal dslocal.old

mkdir -p dslocal/nodes

cp -Rp /System/Library/DirectoryServices/DefaultLocalDB/Default dslocal/nodes/

rm .AppleSetupDone

reboot


Once the computer restarts, complete Setup Assistant to create the administrator user account again. When creating the account, the short name entered into the Account Name field should match the name of the user's home folder in /Users, so that the new user will use the existing home folder.

After Setup Assistant, open Terminal and type this command:


sudo chown -R username:staff /Users/username


Note: There is a space before "/Users/". Replace "username" with the user's short name that was entered in Account Name field during the previous step.


If there was more than user on the computer, use the Accounts pane of System Preferences to re-create any remaining users. When creating each account, the short name entered into the Account Name field should match the name of that user's home folder in /Users, so that the new user will use the existing home folder.

Feb 24, 2018 4:07 AM in response to masthax

I have to say, ditto on everything you've stated. I have a mid 2012 MBP and have been using High Sierra for a couple of months without any problems. Just like you stated, woke up one morning, tried to boot it up and it was taking forever. Went to verbose mode and saw that it hung on "crashed: too many corpses being created". The OS was up to date and I had not installed an update in weeks - so that didn't cause the problem. I tried everything. Went to my nearest Apple Store and had their techs look at the problem. They tested the HD - no problem. They ran some other tests - no hardware problems. They tried to re-boot several times - same negative result. They did not wipe the hard drive rather tried to re-install High Sierra - no luck. Now, this doesn't sound like it took a long time, but I was in the Apple Store for literally 5 hours because everything they tried took hours. Finally, the techs, with my permission, erased the hard drive and installed a clean version of High Sierra. It finally booted up like a new computer, of course. I took my MBP home and the next day started to rebuild my accounts. I received a pop up message that there was an update to High Sierra that I should install. Thinking that I should install that update before I went too far in my rebuilding process, I installed the update. WOW! Right back where I started - failure to boot. I started to get "files missing or corrupted file" messages. I was ready to throw the MBP in the trash. Fortunately, several months before I updated to High Sierra, I made a bootable copy of my computer on an external drive. You might ask why I didn't go to this backup right away, but I had some data, since that backup was performed, that I didn't want to lose. That back up was still using El Capitan. Reinstalled from that backup and everything is working perfectly again. In conclusion, I think there are some major problems using High Sierra on older Macs at least. Makes me wonder if Apple cares about older computers. Kudos to the Apple Store techs though, no other computer company would do what they did - for free.

Feb 26, 2018 4:18 AM in response to GLaker33

There is a fix if this happens without data loss. It takes about 30min. Newer Macs are affected as well. The Apple Helpdesks should know about the solution and not have to spend 5h on it an d Apple should fix the issue.

See a solution to the issue from frankv or another similar from rew10000, also look at: http://capitoladesign.com/2018/02/10/osx-too-many-corpses-the-30-minute-fix-no-d ata-loss/

Here is probably the quickest solution from frankv:

If you want to remove all users (without removing home folders)

If you suspect that the local database which stores user accounts is damaged, follow the steps for the version of OS X you're using below. These steps remove all user accounts without removing their related Home folders, and make Setup Assistant open again.


Start up in Single-User Mode by holding Command-S when you turn on the computer. Wait until white text appears.

At the prompt, type each of these commands on single line as they appear below, and press Return at the end of each line.


mount -uw /

cd /var/db

mv dslocal dslocal.old

mkdir -p dslocal/nodes

cp -Rp /System/Library/DirectoryServices/DefaultLocalDB/Default dslocal/nodes/

rm .AppleSetupDone

reboot


Once the computer restarts, complete Setup Assistant to create the administrator user account again. When creating the account, the short name entered into the Account Name field should match the name of the user's home folder in /Users, so that the new user will use the existing home folder.

After Setup Assistant, open Terminal and type this command:


sudo chown -R username:staff /Users/username


Note: There is a space before "/Users/". Replace "username" with the user's short name that was entered in Account Name field during the previous step.


If there was more than user on the computer, use the Accounts pane of System Preferences to re-create any remaining users. When creating each account, the short name entered into the Account Name field should match the name of that user's home folder in /Users, so that the new user will use the existing home folder.

Feb 28, 2018 1:55 AM in response to rew10000

Solved! Thank you so much for your instructions. I also kept the "Volumes" folder but renamed the "home" one (it was empty). I also deleted the Spotlight and PKInstallSandboxManager-SystemSoftware files. Now the Mac is booting again! I hope this bug will be solved officially by Apple, we all should open a ticket with their tech support.


How did you delete the old system folders? With the usual "sudo rm" or else? I got an error with that, do I need to boot in Recovery or is it possible to delete them in another way? TIA.

Mar 1, 2018 5:48 PM in response to kraemies

Same thing here! I shut down my MacMINI last night and, when I went to boot it up this morning, the screen got stuck at white timeline at the end. Ive been trying all day to get this fixed. It Won’t start in Safe mode. Or recovery mode. No luck with DiskWarrior. Nothing.Nada. Zilch!!!

In verbose mode, i get the “opendirectoryd Too many dead corpses” error message. !

I need my MacMINI to be operating 100% soon. It’s beginning to look like this is some OS glitch from the recent update yesterday. Hope fully someone will find a fix long before Apple does.
Thanks in advance.

Mar 1, 2018 5:49 PM in response to kraemies

Same thing here! I shut down my MacMINI last night and, when I went to boot it up this morning, the screen got stuck at white timeline at the end. Ive been trying all day to get this fixed. It Won’t start in Safe mode. Or recovery mode. No luck with DiskWarrior. Nothing.Nada. Zilch!!!

In verbose mode, i get the “opendirectoryd Too many dead corpses” error message. !

I need my MacMINI to be operating 100% soon. It’s beginning to look like this is some OS glitch from the recent update yesterday. Hope fully someone will find a fix long before Apple does.
Thanks in advance.

Apr 5, 2018 8:47 PM in response to kraemies

let's try this one on for size. the error tells us the problem is related to opendirectory(d), which appears to be cache related.


using your method of choice, let's remove the file that (hopefully) is the cause of the issues.


/StartupDisk/var/db/caches/opendirectory/mbr_cache


you could use terminal from the recovery partition, boot the problematic OS in single user mode, or do it all from a different OS if you happen to have one of those handy.


Good luck!

May 23, 2018 8:06 AM in response to kraemies

I had the same problem. I tried all of the fixes mentioned here and none of them worked for me. I tried FirstAid and reinstalling macOS and I got a message that it couldn’t find my server. I found this solution through a google search and it worked for me. When my laptop restarted, it went to the sign-in page. I entered my password and after a few minutes, Set-up started. I went through set-up, and when it finished, all of my files were there. Nothing was lost. I hope this helps someone else.

https://mrsystems.co.uk/blogs/news/too-many-corpses-being-created


By the way, I called Apple support and they got me into Terminal but I kept getting a message saying there was no server found (or something to that effect.). They said they couldn’t do anything beyond that and set up an appointment for me at the Apple store. When I did what was suggested in the link above for my hard drive name and just typed “Ma” for Macintosh and then hit “tab”, it filled in my hard drive name. Then the commands typed into Terminal worked.

High Sierra: qmasterd/opendirectoryd: Too many corpses being created

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