Spotlight crashes every 20 seconds
Hi all,
I hope someone can help me with a Spotlight problem on OS X Server.
It is a Mac Pro with an Apple RAID Card: 4 disks in Raid 0+1, with OS X Lion Server 10.7.5.
There are two volumes: Systeem (50GB) and Data (1.95GB)
The problem started about two weeks ago; Time Machine stopped backing up. It kept saying “Preparing backup”.
I checked the backup disks and they were fine.
I checked the volumes Systeem and Data with Disk Utility: 'Systeem' was ok, 'Data' needed minor repair.
Repair did not work, I restarted the machine and checked volume 'Data' again: then it was ok.
I verified the RAID set with RAID Utility: the RAID set was viable and all the disks were good.
But Time Machine still could not finish the backup and Spotlight kept 'estimating time to index' forever. According to the log files two shared folders seemed to be the problem. Once I had put them in the Spotlight Privacy tab and excluded them from the Time Machine backup everything went back to normal.
As this is just a workaround, I tried some other things to solve the problem.
Resetting the Spotlight index by putting both volumes in the privacy tab, and remove them, did not solve the problem.
Via terminal I removed the Spotlight files manually and forced a reindex, both for the volume ‘Systeem’ and the volume ‘Data’.
This indeed created a whole new folder .Spotlight-V100 (with Store-V1, Store-V2 and VolumeConfiguration.plist inside) on both volumes.
Unfortunately, after indexing for about half an hour the errors in the log files returned. Crash logs were created every 20 seconds.
Only when I excluded the two shared folders from Spotlight and Time Machine, everything went back to normal.
I hope someone can help me solve this problem.
I wil add part of the log files, if more information is needed, no problem!
This is part of the crash log every 20 seconds:
Process: mds [17620]
Path: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Support/mds
Identifier: mds
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-12-13 14:50:10.938 +0100
OS Version: Mac OS X Server 10.7.5 (11G63)
Report Version: 9
Crashed Thread: 6 Dispatch queue: com.apple.metadata.spotlightindex
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000bad
VM Regions Near 0xbad:
-->
__TEXT 0000000100100000-000000010020d000 [ 1076K] r-x/rwx SM=COW /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Support/mds
Application Specific Information:
[0x1071ef000]/SourceCache/Spotlight/Spotlight-627.37/core-db/log-db/ldb.c:800: failed assertion 'tags.info.type==this_tag.info.type' /Volumes/Data/.Spotlight-V100/Store-V2/196536EA-2C10-49DB-82AF-67D5A2F3EEC9 (hfs, t: 0x11, st: 0x1, f: 0x4809000)
[0x101d92000](Error) IndexPath in openReverseStore:Successfully recovered from shadow with state d00d0dd0
[0x153737000](Error) IndexPath in openReverseStore:Successfully recovered from shadow with state d00d0dd0
[0x100cf9000](Error) IndexPath in openReverseStor
objc[17620]: garbage collection is OFF
These are lines from the system log:
Dec 13 14:50:07 server mdworker[17627]: (Error) Import: Couldn't recover plist from xattr com.apple.metadata:kMDLabel_tg3rnbbjkgwee4ih4wubhe2yaa
Dec 13 14:50:08 server mdworker[17628]: (Error) Import: Couldn't recover plist from xattr com.apple.metadata:kMDLabel_tg3rnbbjkgwee4ih4wubhe2yaa
Dec 13 14:50:10: --- last message repeated 3 times ---
Dec 13 14:50:10 server mds[17620]: /SourceCache/Spotlight/Spotlight-627.37/core-db/log-db/ldb.c:800: failed assertion 'tags.info.type==this_tag.info.type' /Volumes/Data/.Spotlight-V100/Store-V2/196536EA-2C10-49DB-82AF-67D5A2F3EEC9 (hfs, t: 0x11, st: 0x1, f: 0x4809000)
Dec 13 14:50:11 server ReportCrash[17632]: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled.
Dec 13 14:50:11 server ReportCrash[17632]: Saved crash report for mds[17620] version ??? (???) to /Library/Logs/DiagnosticReports/mds_2015-12-13-145011_localhost.crash
Dec 13 14:50:11 server ReportCrash[17632]: Removing excessive log: file://localhost/Library/Logs/DiagnosticReports/mds_2015-12-12-154610_localhost .crash
Dec 13 14:52:25 server mdworker[17684]: (Error) Import: Couldn't recover plist from xattr com.apple.metadata:kMDLabel_ov4brnhn3khlkf7wjcnabza4hm
Dec 13 14:52:25: --- last message repeated 1 time ---
Dec 13 14:52:25 server com.apple.mdworker.isolation.0[17684]: invalid `Kids' array: missing or invalid dictionary at index 1.
Dec 13 14:52:51 server com.apple.mdworker.isolation.0[17684]: warning: `ET' encountered outside of text object.
Dec 13 14:52:51 server com.apple.mdworker.isolation.0[17684]: warning: already in a text object.
Dec 13 14:52:51: --- last message repeated 2 times ---
Dec 13 14:52:51 server com.apple.mdworker.isolation.0[17684]: invalid stream length 17261; should be 17007.
Dec 13 14:52:51 server com.apple.mdworker.isolation.0[17684]: warning: `ET' encountered outside of text object.
Dec 13 14:52:51 server com.apple.mdworker.isolation.0[17684]: warning: gstate stack underflow.
Dec 13 14:53:57 server com.apple.mdworker.isolation.0[17701]: font `F5.0' not found in document.
Dec 13 14:53:57 server com.apple.mdworker.isolation.0[17701]: font `F7.0' not found in document.
Dec 13 14:53:57: --- last message repeated 1 time ---
Mac Pro Server (mid 2010)-OTHER, OS X Server, 2.8GHz, 8GB, OS X Server 10.7.5