GUI versions of command line utilities failing
A while back mail searches only showed some of the expected results, then soon after most failed and canned searches failed. I found several suggestions on the web and followed them, namely:
- rebooting (obviously!)
- various incantations of mdutil to disable and enable indexing
- removing the envelope* files in the MailData directory
- System Preferences / Spotlight: removing and putting back Mail & Messages
- rebooting in safe mode
- rebooting in recovery mode and re-installing the OS
In each case mail searches failed. After re-installing the OS (10.13.6), a new problem started: the system fails to shut down or restart when invoked from the main apple menu.
I am now at a point where
- mdfind works fine, searching for filenames and in messages
- spotlight fails
- “mdfind -interpret” (which is supposed to be the same as spotlight) works
- Finder search fails to find files
- Finder’s “Recents” isn’t being updated and has a list of files from 2020
- from the Apple menu both “Restart” and “Shutdown” cause programs to exit, the screen to go grey with the mouse cursor positioned at the top left position; mouse movements work, key cause p beep sounds (and the system stays up)
- in that situation I can ssh in from another local machine and “sudo halt” works fine
- instead of trying to shutdown from the apple menu, from Terminal a “sudo halt” works fine
So it seems that basic command line programs mdutil, shutdown, halt work fine; but gui interfaces on them (Finder, Mail, Apple-Menu) fail.
Strange, eh? Any ideas?
iMac 27″, macOS 10.13