Skip to main content
Question

ML Compiled Image but Spotlight doens't work

  • August 17, 2012
  • 10 replies
  • 40 views

ImAMacGuy
Forum|alt.badge.img+23

Had a couple people complain about when they go to spotlight to find an app it doesn't display results. They got around it by doing some mdutil commands.

Has anybody else heard of this or tried it to see if they get similar results from their Casper 8.6 compiled images?

10 replies

Forum|alt.badge.img+7
  • Contributor
  • August 17, 2012

Since upgrading to 8.6 I've seen an issue with Spotlight. After imaging a machine with Casper (not a complied image in my case) Spotlight does not function. If I look at the root of the imaged drive I see a hidden file called ".metadata_never_index" which I have to manually remove and restart the machine for the Spotlight indexing to restart. I'm almost sure that this file was not there before I upgraded to 8.6.
I tried creating a simple non booted image with no extra stuff and still saw this file after imaging a machine. I should call it in to my Casper rep, but it's a busy time of year so it's on the backburner right now.


Forum|alt.badge.img+17
  • Contributor
  • August 17, 2012

Is this happeneing to all OS clients? Can you confirm the client OS please?


Forum|alt.badge.img+3
  • New Contributor
  • August 17, 2012

We've also run into this issue. I ended up creating a script to remove the .metadata_never_index file & put it in a policy that would restart the machine once the script ran. It seems to be working for now.


Forum|alt.badge.img+7
  • Contributor
  • August 17, 2012

I see this on 10.6.X and 10.7.x images (not sure about 10.8).
Our JSS runs on OS X 10.6.8


Forum|alt.badge.img+17
  • Contributor
  • August 17, 2012

@jenski
can I have a look at your script if possible please?


ImAMacGuy
Forum|alt.badge.img+23
  • Author
  • Esteemed Contributor
  • August 17, 2012

this is the manual method i have.

sudo mdutil -i off /
sudo mdutil -sv /
cd /
ls -la .m*
sudo rm .metadata_never_index 
sudo mdutil -i on /

Forum|alt.badge.img+17
  • Contributor
  • August 17, 2012

@jwojda
do you need to reboot after this?


Forum|alt.badge.img+3
  • New Contributor
  • August 17, 2012

There is a bug in 8.6 imaging where /.metadata_never_index and /.fseventsd/no_log are created but not cleaned up, https://jamfnation.jamfsoftware.com/discussion.html?id=4939.


Forum|alt.badge.img+17
  • Contributor
  • August 17, 2012

@wdfraser
thanks!


Forum|alt.badge.img+17
  • Contributor
  • August 17, 2012

https://jamfnation.jamfsoftware.com/discussion.html?id=4939
I will save you guys the hassle for copy/paste :)