Skip navigation

Spotlight not working correctly

57587 Views 148 Replies Latest reply: Feb 21, 2014 10:18 AM by Todd Jacobs RSS
  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Oct 3, 2012 11:21 AM (in response to kilgo)

    Oh and Spotlight and Time Machine aren't even partition aware. They only care about JHFS+/X volumes.

  • stcinder Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 3, 2012 12:43 PM (in response to Christopher Murphy)

    Another data point:

     

    I bought a new hard drive yesterday to do a TM backup onto.

     

    I formatted it with the LaCie software, and then formatted and encrypted it with Disk Utilities.

     

    When I tried to do the TM backup, I was back to the same problem. I had to turn Spotlight off, do the backup and then turn it back on again. When I turned it on, Spotlight was stuck on the indexing again...

    Did the /var thing again, and back to normal.

     

    So is it something in Disk Utilities which is putting a file in the folder which is catching Spotlight out?

  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Oct 3, 2012 1:20 PM (in response to stcinder)

    I don't know. I only become (inconclusively) suspicious of the contents of /var/folders because one of those random-name folders contained items mds and sandbox-cache.db which mdworker kept getting stalled on according to the command

    sudo opensnoop -n mdworker

     

    You could try using that the next time Spotlight slows down and see where it's stalling out. Not all of these reported Spotlight slow downs necessarily have the same source problem or fix.

     

    And also the next time someone has this problem they should try manually adding /private/var/folders to the Privacy tab of Spotlight in System Preferences, instead of deleting those folders. Since I can't reproduce the conditions of the slow down yet so far, I can't do anymore testing.

  • baltwo Level 9 Level 9 (59,170 points)
    Currently Being Moderated
    Oct 3, 2012 1:38 PM (in response to stcinder)

    stcinder wrote:

    I bought a new hard drive yesterday to do a TM backup onto.

     

    I formatted it with the LaCie software, and then formatted and encrypted it with Disk Utilities.

    Bad move using LaCie's software. All that 3rd-party SW is crapola, especially the stuff Western Digital puts out. Wipe the HD and just use DU to format it properly. Then, try TM and Spotlight.

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.2), G4 450 MP w/Leopard, 9.2.2
  • baltwo Level 9 Level 9 (59,170 points)
    Currently Being Moderated
    Oct 3, 2012 1:45 PM (in response to Christopher Murphy)

    All Intel Mac have (U)EFI firmware, which requires an EFI System partition. This partition is hidden. There's no reason it needs to be visible because it relates to the firmware and bootloaders, and isn't considered user domain. Same for the Recovery HD partition that appeared with Lion. It's a hidden partition, users aren't meant to interact with the contents directly.

    But do note that one can enable DU's Debug menu and it's Show all partitions option, which displays all partitions. That allows users to ascertain with of many bootable volumes on a partitioned disk might have the Recovery HD. I find it very useful, since I six bootable ones, one for each OS and their clones. Some have the Recovery HD and some don't.

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.2), G4 450 MP w/Leopard, 9.2.2
  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Oct 3, 2012 1:54 PM (in response to baltwo)

    I've read elsewhere that slow downs recur for some people merely when mounting any additional (non-boot) JHFS+/X volumes. So I don't think there's a relationship between what software is used.

     

    Further, any GUI application necessarily obscures what it's actually doing to the disk. You'd have to permute the features in the software and scan the disk with utilities that truly show the on-disk effect in order to correlate any GUI app's capabilities to reality. Even Disk Utility obscures "hidden" partitions, and as I've exhaustively detailed in the Boot Camp discussion lists, Disk Utility will nuke critical partition information rendering Boot Camp unbootable in certain (and not unreasonable) instances, such as adding an additional partition to a disk, and will not warn you in advance that doing so will cause Boot Camp to become non-bootable. And the only prescribed method to fix it is to blow away your whole drive, and reinstall everything from scratch and from backups (fortunately I've discovered a number of ways around the prescribed method rather than starting over but it's 100% command line based, because again the GUI utils basically lie, just by their nature of trying to make complicated things simpler).

  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Oct 3, 2012 2:00 PM (in response to baltwo)

    DU's Debug menu and it's Show all partitions option

     

    The Terminal command,

    diskutil list

    will show all partitions on all devices.

     

    sudo gpt -r -vv show disk0

    where disk0 is one of the disks listed in the first command, typically the boot disk, will show a fairly complete listing of the GPT entries for the disk, including the partition type GUIDs (which you can look up in the partition type grid on Wikipedia).

  • baltwo Level 9 Level 9 (59,180 points)
    Currently Being Moderated
    Oct 3, 2012 2:03 PM (in response to Christopher Murphy)

    Some people are Terminal adverse and prefer using a GUI. Both of which are user tools, which was my basic point.

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.2), G4 450 MP w/Leopard, 9.2.2
  • somewhitechick1 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 3, 2012 2:47 PM (in response to somewhitechick1)

    My big update is that I have no update. After speaking to a senior tech at Apple Care, he called me back yesterday. I missed the call. His voicemail said the engineers had given him some additional commands they wanted me to run. I called back but he is off until Tuesday. I tried speaking with another senior tech and they cannot access the first tech's notes. I spent 45 minutes holding and being transferred around for nothing. I guess I wait until Tuesday. This is so awesome. I'm starting to get extremely frustrated. And I find it absolutely beyond that no one at Apple Care has heard that this problem exists.

  • kilgo Calculating status...
    Currently Being Moderated
    Oct 3, 2012 3:04 PM (in response to Jean-Luc)

    Upgraded to Mountain Lion 10.8.2 and this fixed everything.

     

    I caved...I'm ashamed to say. I paid Apple the extortion fee and downloaded and installed ML 10.8.2. Spotlight does index but normally...It took 15 min to index 200g HD. Then Time Machine worked fine.

     

    I hate myself.

     

    Now, until a new paid OSX system comes out were safe to run the current one! Then they break the old one forcing you to upgrade...tricky.

  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Oct 3, 2012 3:09 PM (in response to somewhitechick1)

    Yeah well some as|hat has posted a work around, so there are that many few people complaining about the problem. I have posted opensnoop output in this discussion thread if it helps them narrow the actual problem.

     

    https://discussions.apple.com/thread/4271843

  • kilgo Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 3, 2012 3:16 PM (in response to somewhitechick1)

    I was on the phone the other day for over 2 hours! Still nothing was resolved. Same old stuff, do this try this "no I haven't head of the problem" "yes we read the discussion forums"...bla, bla, bla,...lie, lie, lie...

     

    most of these "teck-nuckle-heads" are just young kids with no knowledge of how to fix a problem which they are kept in the dark about anyway!

     

    The purpose of these discussion boards are not for the users to help each other, they are a test lab for the coders. Apple senior programmers release this crap then set back and pool complaint results. That tells them where the problem is most likely.

     

    In the mean time they kick back and wait for critical mass.

     

    YOU, are i a sense just a component in a vast circuit board.

  • andi islinger Calculating status...
    Currently Being Moderated
    Oct 3, 2012 7:09 PM (in response to Christopher Murphy)

    hi christopher,

     

    i am having the same issues with spotlight and timemachine, send bug report to apple....

     

    have been for hours online researching how to fix this, its driving me nuts...

     

    i want to try your suggestion... but i am weary to make mistakes... my question starts with not finding /var/folders can't do a search as spotlight indexing for months... do i have to delete the contents of this folder, put into trash and empty trash?

     

    i have found the terminal, never used it so i want to make sure.... you say entering the 2 commands, but are't there 3 commands?

    sudo mdutil -i off /

    sudo mdutil -E /

    sudo rm -Rf /var/folders/*

     

    do i have to copy each of the 3 seperately or copy paste in one go and then hit enter?

     

    then i reboot and then go to terminal paste

     

    sudo mdutil -i on / and hit enter?

    sorry for my ignorance this tech stuff is all fairly new to me

     

    is this still all working for you?

     

    thanks so much

    andi

     

    I might have a working "fix". Based on the constant stalling on sandbox-cache.db I decided to take a chance and delete all folders found in /var/folders using the command. What I actually did, in order:

     

    Restored Evernote, Colloquy, LibreOffice back to /Applications (from the Trash).

    Quit all applications except Terminal, issued the following two commands:

    sudo mdutil -i off /

    sudo mdutil -E /

    sudo rm -Rf /var/folders/*

     

    Reboot.

     

    sudo mdutil -i on /

  • ptoal Calculating status...
    Currently Being Moderated
    Oct 3, 2012 7:46 PM (in response to Christopher Murphy)

    Okay... So I have tried:

     

    1. Wiping out my spotlight indexes

    2. Rebooting in Safe Mode

    3. Removing /var/folders contents.

     

    #1 and #2 helped me get my spotlight index back for my files (this was my major issue).

     

    I was still having problems with my Time Machine backups, though.  They would stall at a few kb or a few mb of backup.

     

    #3 Seems to have fixed the rest of everything.  I'm currently creating a new backup and it is now working at maximum speed.  I'm going to give it a couple of days to make sure, but I think that wiping out /var/folders was the magic ticket.

     

    Regards,
    Pat

  • andi islinger Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 3, 2012 7:57 PM (in response to andi islinger)

    i googled a bit more and worked out

     

    finder

    got to

    /private/var/folders/

     

    its located in macintosh HD private (which seems to be inactive)

    var

    folders

     

    i have 3 folders in there

    1. 9w

    2. xc

    3. zz

     

    do i have to delete the 3 folders or do i have to delete the root folder called "folders"

    just put in trash or empty trash?

     

    thanks so much....

1 ... 6 7 8 9 10 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (12)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.