Spotlight and Time Machine completely broken
I noticed a while ago that my Spotlight results were incomplete and Time Machine backups weren't finishing. I tried to reset Spotlight via System Preferences (adding and removing the disk in the privacy pane) and via terminal (mdutil -E, -i off/on, rm -r .Spotligh-V100) but without success.
The console reports thousands of the following errors:
error | 16:19:03.743202 +0100 | mds | LaunchServices: store or url (null) was nil -10813, retrying |
error | 16:19:03.743247 +0100 | mds | LaunchServices: Database mapping failed with result -10813, retries = 7 |
If I try to make a Time Machine backup, the errors are similar:
error | 21:22:27.968375 +0100 | backupd | LaunchServices: Database mapping failed with result -10813, retries = 1 |
error | 21:22:36.887358 +0100 | backupd | LaunchServices: store or url (null) was nil -10813, retrying |
I even did a re-install of macOS High Sierra (no clean install).
Any idea what's going on there and how to fix it? My searches are coming up short.
MacBook Pro TouchBar and Touch ID, macOS High Sierra (10.13.1)