Apple did a really bad ****** of testing the upgrade to Sonoma.
I struggled with this issue for weeks and tried every workaround offered in these forms and elsewhere ( Reddit ) . Nothing worked.
Computer : MacBookPro with an Apple M1 Pro Chip runing Sonoma 14.1.1
Symptoms on my computer :
- Spotlight totally stopped working
- Mail search totally busted - Mail always shows status as Indexing
What all i tried unsuccessfully
- erase and rebuild of Spotlight Index
- Rebuild Mail Database
- all the mdUtil Workarounds from Terminal (mdutil -ai off / on etc )
- login / logoff from icloud
What i discovered
- The problem is that after the Sonoma installation the secure token got corrupted and i saw "authentication disabled" errors on trying to do admin actions.
What finally fixed the issue
Did the following operation from a local admin account
- sysadminctl -secureTokenOff
- sysadminctl -secureTokenOn
logged back into my account . Everythign works !
Thank you Apple for killing my productivity and shame on you for not testing this workflow properly , to add ti this so many months after release you dont even have a fix !