All Internet Accounts disappeared after Mail index error
Hi,
This morning after opening my MacBook Pro (Late 2013, with a 500GB Solid State Disk, macOS 10.13.16 High Sierra) the following mail error appeared:
"Your Mail index has been damaged. To repair it, quit Mail".
First attempt:
- Quit Mail
- Open Mail
- Same error appears
Second attempt:
- Quit Mail and any other application
- Restart, wait a couple of minutes,
- Open Mail
- Same error appears
- All information inside Contacts, Notes, Reminders, Calendar is gone! (just inside this Mac, the information still on iCloud and iPhone).
- All Internet Accounts inside MacOs Preferences disappeared! (I had 5 accounts, including google accounts, iCloud, and ISP mail).
Third attempt (after reading other answers in the forum like https://discussions.apple.com/thread/8037522 and https://discussions.apple.com/thread/6609156):
- Quit Mail and any other application
- (I can see that all my accounts and mail messages still inside ~/Library/Mail/V5/)
- Delete "Envelope*" files inside ~/Library/Mail/V5/MailData/
- Delete "com.apple.systempreferences.plist" file inside ~/Library/Preferences/
- Restart, wait a couple of minutes
- Open Mail. Now Mail opens (damaged index files inside Enveloped were deleted), but no account is configured:
Internet Accounts (macOS Preferences) still empty (same image of 2nd attempt).
I started to dig into log files and it looks like my disk got full exactly during the "wake up" process. Inside /private/var/log/daily.out file is:
(...)
Tue Oct 2 08:31:29 CDT 2018
Removing old temporary files:
/tmp/wbxgpc.wbt
/tmp/FLEXnet/ac31c040-ff7a-4f2b-9f72-93c58b8668c7
/tmp/FLEXnet/4073728-34E9EE98-50ED-4c6c-BD0F-F539123FD064
/tmp/FLEXnet/4073728-16F7558F-328B-4dc3-BEDF-095C1F14FFF1
/tmp/FLEXnet/4073728-85A0F138-527D-4012-8175-79A3AEA4152E
/tmp/FLEXnet/11.14.1.3 build 212549Macrovisi
/etc/periodic/daily/130.clean-msgs: line 24: echo: write error: No space left on device
Cleaning out old system announcements:
(end of file)
... the point is that there was some disk space before "sleeping" the Mac and now I have 25GB of free space but It looks like exactly running out of space damaged the Accounts+Mail files...
I had activated "Optimize Storage" months ago, without problems
Any other idea to solve the problem, besides deleting all mail folders, configuring again all my accounts and download all mails from IMAP servers?
Thanks!
MacBook Pro with Retina display, macOS High Sierra (10.13.6), Late 2013