You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Spotlight fails to index on macOS High Sierra

Spotlight fails to index my internal SSD and I've failed up to now to find a way to fix it.

Note: it seems it happened after connecting an external spinning drive formatted in APFS (encrypted) but it might not be relevant. I recall reading something related to this problem, but can't find it anymore.


I've tried to force a reindex, both from the Spotlight System Preferences (adding the drive to Private and removing it) and from the command line without success.


The following errors are continually logged both for `mds` and `backupd` :


LaunchServices: store or url (null) was nil -10813, retrying

LaunchServices: Database mapping failed with result -10813, retries = 6


The retries loop between [0-9]


  • This problem occurs for all existing users, incl. a newly created one;
  • I reinstalled macOS High Sierra over the existing installation, but that didn't fix it;
  • I ran DiskUtility to check for permission issues, and found none;
  • I ran an utility called `EtreCheck` which comes up in different threads, to no avail. Nothing to clean up.


I'm a bit at a loss as I rely heavily on Spotlight in my daily workflows, both in the Finder and in Mail.


My last resort will be to reformat and clean install, but I'd rather avoid that if I can.

iMac with Retina 5K display, macOS High Sierra (10.13.1)

Posted on Nov 26, 2017 8:04 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 28, 2017 2:08 AM

I solved my issues by rebuilding the Launch Services Database following the thread in « How to rebuild Launch Services Database in Sierra? » (https://discussions.apple.com/thread/7913794).

sudo /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain u -domain s -domain l -v


This command generated numerous errors,

lsregister: error -10811 registering { application name }


I then made sure indexing was enabled, and forced a rebuild of the local stores with,

sudo mdutil -i on /
sudo mdutil -E /


And since then, the metadata server has stopped generating errors.

2 replies
Question marked as Top-ranking reply

Nov 28, 2017 2:08 AM in response to David Roessli

I solved my issues by rebuilding the Launch Services Database following the thread in « How to rebuild Launch Services Database in Sierra? » (https://discussions.apple.com/thread/7913794).

sudo /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain u -domain s -domain l -v


This command generated numerous errors,

lsregister: error -10811 registering { application name }


I then made sure indexing was enabled, and forced a rebuild of the local stores with,

sudo mdutil -i on /
sudo mdutil -E /


And since then, the metadata server has stopped generating errors.

Spotlight fails to index on macOS High Sierra

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