Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

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 "Privacy List Error"

I'm running a new Mac mini with Sonoma v. 14.0 installed and the past few days spotlight hasn't run well. I found instructions in the Community for how to re-create the Spotlight index which is to add a non-indexable location and then removing it again. I can't add a location. I'm shown the error message "Privacy List Error" and stating, "The item couldn't be added or removed because of an unknown error." There's an "OK" button and no further information.


There was a previous thread about this issue and the resolution on a different version of macOS was to delete a hidden file or folder that began with .Spotlight-V100. Anyway, no such file or folder exists in either my root directory or home directory (after showing hidden files of course) and finder couldn't find anything with that name although I'm not certain it searches hidden files/folders at all.


Meanwhile there have been other examples of permissions problems on my computer, for instance I use CleanMyMac to clean out temp files and such and yesterday for the first time ever it could not delete all of those files because my account (the admin account) didn't have permission to access them. I had to change permissions for that folder and all of its contents which seemed strange.


Any help greatly appreciated.

Mac mini

Posted on Oct 8, 2023 8:55 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 9, 2023 12:41 AM

FYI I was able to solve this by following the suggestions from a post about the same issue in another version of MacOS on Reddit.


To recap: Spotlight wasn't working and attempts to get it to reindex by adding and removing a folder from Spotlight Privacy in System Settings resulted in an error "Privacy List Error." In addition to this issue Finder would not display recent items, nor did any other app. Considered it a different issue but apparently not, because both have been fixed. And to give the developers at MacPaw some love, I removed CleanMyMac X completely and the problem was still present. I have never had a problem with CleanMyMac and I think it's a Mac essential, personally. I love it (I stand with Ukraine). Deleting my antivirus: also no effect. Reinstalling Sonoma: also no effect, strangely. Maybe one has to do a clean install not an installation-in-place. Anyhoo...


Here's the fix:


Boot into recovery mode and disable System Integrity Protection by opening the Terminal from the Utilities menu, and entering the following:

csrutil disable


Reboot (you can just type reboot into terminal and press Enter to accomplish this)


Login to your mac as an administrative user.


Open System Settings > Users & Groups


At the bottom, beside Network Account Server click the Edit... button then from the popup window click the Open Directory Utility... button.


In Directory Utility, click the lock icon at the bottom of the screen and enter your administrator password to unlock the settings.


In the Directory Utility main menu at the top of the screen, click Edit > Enable Root User and give it a password you will remember.


Close Directory Utility and System Preferences.


Open Terminal


Disable the Spotlight daemon by running

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

User your own password for sudo commands.


Disable Spotlight indexing by running

sudo mdutil -a -i off


Become the Root User by running

su


Enter the password you just made for the root user.


Delete the Spotlight index by running

rm -rf /System/Volumes/Data/.Spotlight-V100


Quit su by running

exit


Enable the Spotlight daemon by running

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist


Enable Spotlight indexing by running

sudo mdutil -a -i on


Reindex all volumes by running

sudo mdutil -aE


Go back into Directory Utility and disable the root user from the same menu where you enabled it.


Wait for indexing to finish. For me it took about an hour. You can check it with Command+[space], the indexing status appears below search bar.


When indexing is complete, reboot into recovery mode, open Terminal and run the following to enable System Integrity Protection.

csrutil enable


Reboot. Spotlight and recent items in Finder should operate as expected once again.


13 replies
Question marked as Top-ranking reply

Nov 9, 2023 12:41 AM in response to Randall_2023

FYI I was able to solve this by following the suggestions from a post about the same issue in another version of MacOS on Reddit.


To recap: Spotlight wasn't working and attempts to get it to reindex by adding and removing a folder from Spotlight Privacy in System Settings resulted in an error "Privacy List Error." In addition to this issue Finder would not display recent items, nor did any other app. Considered it a different issue but apparently not, because both have been fixed. And to give the developers at MacPaw some love, I removed CleanMyMac X completely and the problem was still present. I have never had a problem with CleanMyMac and I think it's a Mac essential, personally. I love it (I stand with Ukraine). Deleting my antivirus: also no effect. Reinstalling Sonoma: also no effect, strangely. Maybe one has to do a clean install not an installation-in-place. Anyhoo...


Here's the fix:


Boot into recovery mode and disable System Integrity Protection by opening the Terminal from the Utilities menu, and entering the following:

csrutil disable


Reboot (you can just type reboot into terminal and press Enter to accomplish this)


Login to your mac as an administrative user.


Open System Settings > Users & Groups


At the bottom, beside Network Account Server click the Edit... button then from the popup window click the Open Directory Utility... button.


In Directory Utility, click the lock icon at the bottom of the screen and enter your administrator password to unlock the settings.


In the Directory Utility main menu at the top of the screen, click Edit > Enable Root User and give it a password you will remember.


Close Directory Utility and System Preferences.


Open Terminal


Disable the Spotlight daemon by running

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

User your own password for sudo commands.


Disable Spotlight indexing by running

sudo mdutil -a -i off


Become the Root User by running

su


Enter the password you just made for the root user.


Delete the Spotlight index by running

rm -rf /System/Volumes/Data/.Spotlight-V100


Quit su by running

exit


Enable the Spotlight daemon by running

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist


Enable Spotlight indexing by running

sudo mdutil -a -i on


Reindex all volumes by running

sudo mdutil -aE


Go back into Directory Utility and disable the root user from the same menu where you enabled it.


Wait for indexing to finish. For me it took about an hour. You can check it with Command+[space], the indexing status appears below search bar.


When indexing is complete, reboot into recovery mode, open Terminal and run the following to enable System Integrity Protection.

csrutil enable


Reboot. Spotlight and recent items in Finder should operate as expected once again.


Apr 19, 2024 5:34 AM in response to pgoddin

Before I read this thread, I had already removed all the apps that I don't really need on my Mac including Zoom, HoudaSpot, CleanMyMac, and others, and also doing rm /System/Volumes/Data/.Spotlight-V100 but nothing helped to get the Spotlight indexing to work, except your method. And it only took 2 hours to reindex my Spotlight; I been waiting a month for it to complete, and trying to work out ways to speed it up. Maybe the latest 14.4.1 update broke spotlight. Now I've put all those Apps back.


I know that lots of people here don't think that CleanUps are necessary, but I like that CleanMyMac has a deep clean and that it cleans old logs and other things so that I don't need to do that manually. In the old days we were told to leave our Mac alone, but now with 2 TB hard drives and even with 32GB of RAM, we need to run cleanups even more regularly and importantly. I also use ClamXAV and have supported this app since its beginning. Although one couldn't get viruses on Mac (back on those days), I didn't want to inadvertently receive a virus and forward it to someone. I also like the new Moonlock feature in CleanMyMac and these guys are always looking for new cleanups, which keeps their program current.

Jun 27, 2024 5:40 AM in response to pgoddin

Thank you so very much - I nearly cried when I saw this post/answer because I had been googling and searching endlessly for months (no exaggeration) and not even knowing exactly what to type in google to find what I was looking for. I don't understand why little gems of the internet like this are the minority, why can the right information not be the first information we come across? Thank you again!

Oct 10, 2023 11:07 AM in response to pgoddin

pgoddin wrote:

Let me summarize the above which was a bit wordy. I can't be the only one with this problem.

(3) CleanMyMac has a reindex spotlight maintenance tool. Gave a permission error when i ran it.


Any help?



<CleanMyMac> is known to cause nothing but issues on the macOS.


It has always been recommended do not install it or uninstall it.



third party software

Look for a built-in or in-app uninstaller and use that.


for your third party app— If in doubt refer to the developers website; Support/Help/FAQ


Contact a third party vendor

Contact a third-party vendor - Apple Support


Oct 10, 2023 5:24 PM in response to pgoddin

Uninstalling CleanMyMac AND any other fixit/optimizer/cleanup software AND any anti-virus software should be enough. After removing all that, then reboot and test BEFORE re-installing Sonoma. You shouldn't need to re-install Sonoma unless there are other programs causing problems like I mentioned. Only re-install Sonoma if removing all those apps doesn't help. After the reboot, and things still seem broken, try a safe boot before re-installing Sonoma.


Start up your Mac in safe mode - Apple Support (English)


Oct 10, 2023 9:51 AM in response to pgoddin

Let me summarize the above which was a bit wordy. I can't be the only one with this problem.


(1) Spotlight won't stop indexing. It has been for literally days now. Brand new fast M2 computer.

(2) Attempts to get spotlight to reset have failed -- Adding a location under "Spotlight Privacy" button then removing it again didn't work. Attempts to add any location result in error, "Privacy List Error"

(3) CleanMyMac has a reindex spotlight maintenance tool. Gave a permission error when i ran it.

(4) From a previous OS Ventura maybe i read to delete certain files related to spotlight but they didnt exist in sonoma on my machine.


Any help?

Apr 19, 2024 5:27 AM in response to pgoddin

Thanks. It also solved a different problem that I've been having which is that I could never su - root on my computer. I assumed it was because I bought it second hand, but it turns out that the su password can be changed in a different way. :)


One tiny thing is that I cd'd into the subdirectory where the rm -rf command takes place. I didn't want to take a chance of wiping my drive. One of my jokes is to go to su - root, then cd / then rm -rf *, which is equal to cd \ and format c: on DOS (Windows), so I'm always extremely careful with rm -rf ...

Aug 5, 2024 12:32 AM in response to pgoddin

@pgoddin - Thank you for this comprehensive solution - I can offer a syntax correction (Aug 2024).


Like others here, I'm grateful for this fix - it worked for me after several days of searching on the interweb.

Similar problems for people here and elsewhere.


So, there is one change since your post. These commands didn't work for me:


sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist


the LOAD / UNLOAD options in launchctl are now deprecated in favour of BOOTOUT and BOOTSTRAP.


Also the domain specifier syntax appears to be different. It requires: system/<name-of-service> (no .plist required)


I found this worked


sudo launchctl bootout system/com.apple.metadata.mds


Also, I found that the corresponding BOOOTSTRAP option was not necessary since MDS loads automatically on a restart.. (However, you can prevent this in a way that persists between restarts, should you want to, using the DISABLE option - which you'll need to reverse with the ENABLE option).


sudo launchctl list


is helpful since it shows whether the daemon is running or not.


I recommend using:


man launchctl


To get some more clarity on all this.


Hope this is a useful addendum.


Spotlight "Privacy List Error"

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