Finder or Spotlight Searching SMB folders
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
We have a new iMac with shared folders set up. For the first few months, any share that was mounted was easily searchable. Now at random different shares become unsearchable through spotlight or Finder. we can still use Easy Find. What we have found is that propagating permissions does not fix the issue only a computer restart where the shares are.
So my questions in no particular order are:
- why did the issue take months to show up
- why do only certain folders become unsearchable
- why can Easy Find still search and Finder and Spotlight cannot
- What happens on a restart that allows the search to work again.
Some information: all iMacs. All running High Sierra. All connected via Ethernet. All sitting on the same LAN including the shared folders. All connect using SMB.
We actually bought a new iMac in the hopes that this behavior would not show up again. NO such luck.
Any help would be wonderul,
Debbie
15 replies
Sign in or join Beachball Help to reply.
- 0
BDAqua ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'd try this then Delete .DS_Store files on the server...
- 0
singerdf ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Ok. I have some information. Search failed yesterday. Here is what we did:
- Force restart Finder on the client computer. No change
- Force restart Finder on the server. No change
- Looked in console on the client but not sure what to look for
- restart the server imac and all works again.
- I unchecked Bookmarks and History from Spotlight on the server a week ago. Obviously did not help.
so it is clear that after a certain amount of "time" which means reading and writing files to the share, native spotlight or Finder search no longer works.
I understand there is a cached file that must get corrupted.
Hopefully with some guidance from you, you can tell me what preference file I can trash or what I should be looking for in Console.
While we can use a third party program, most of us still turn to spotlight.
Thanks in advance
- 0
rccharles ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
problem could be related to the share. You could try another sharing protocol. Like NFS. Apple provides the NFS software but not a GUI for NFS. You can use NFS Manager.
https://www.bresink.com/osx/NFSManager.html
Set up the mount on the server. The would be your computer that you want to share a folder.
You need to access the share. I did a manual access.
Finder > Connect to server...
then I entered the nfs share as such. I set up my server with a fixed ip address.
nfs://192.168.0.55/Users/mac/Documents
showmount is a useful terminal command
mac $ showmount -e 192.168.0.55
Exports list on 192.168.0.55:
/Users/mac/Documents 192.168.0.0
on the left finder pane you will see the share:
- 0
BDAqua ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Debbie, Another great search tool...
Find Any File...
http://apps.tempel.org/FindAnyFile/index.php
Hold Option or alt key when selecting Find to Find All.
Try this bizarre cure for Spotlight...
Sys Prefs>Spotlight, uncheck Bookmarks & History, rebuild Spotlight Index if needed then.
- 0
singerdf ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thank you. the link takes me to a blank page.
We have had little success rebuilding the spotlight index. The question is where do you rebuild it: on each users computer or on the computer where the shares are???
- 0
BDAqua ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Sorry about the link, looks to be new now...
http://apps.tempel.org/FindAnyFile/index.php
Hmmm, looks the same...
Did you uncheck Bookmarks & History yet?
The rebuild needs to be done on the Mac(s) doing the searching, but it may or may not need rebuilding after unchecking Bookmarks & History on each Mac doing the searching.
- 0
singerdf ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
We use a similar program. It is slower and not as simple as clicking on Finder or spotlight.
Any idea what runs when you restart the computer where the shares are located that search works again?
Thanks,
Debbie
- 0
BDAqua ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
3... Easy Find & find any file do immediate queries of the File System, where Spotlight builds a Database for later use, so most of Spotlight searches aren't in real time
4... Been pondering that, can picture several scenarios but not clear enough pictures to verbalize, sorry.
Do these Mace have any Anti Virus or cleaning SW installed?
- 0
BDAqua ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
One thing in distant memory is that SMB had certain limitations as to the number of Files/Folders it could handle, which may explain why a restart works, as a test might force quit the Finder & try a search again once it fails.
- 0
singerdf ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thank you as always. I assume the linked sites are meant to be tweaked on the client macs?
Also, when looking at .DS_Store files there are so many. would I delete the files for the top folder of the share?
- 0
rccharles ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
<p>some background.</p><p><em>restart the server imac and all works again.</em></p><p>This would be some problem with server communications. I guess it could be the clients who again notice the server after the boot. </p><p><br></p><p><em>I unchecked Bookmarks and History from Spotlight on the server a week ago. Obviously did not help.</em></p><p>Spotlight builds the database on the client/local machine. Every machine is building it's own copy of the database. </p><p><br></p><p>Using console is all very confusing. You want to take a few minutes every once in awhile to look at it. You should start to see patterns so when you look at the console log when the problem occurs you will notice problems. Are there any messages coming out of Spotlight? should start with md* like mdworker. </p><p><br></p><p><br></p><p>I'd run etrecheck on the server. The proprietary stuff gets filtered.</p><p><br></p><p>-- Download etrecheck. Click on the download link at the bottom of the screen.</p><p> http://etrecheck.com/</p><p>-- Run etrecheck. The first five runs are free.</p><p>-- Using EtreCheck by etresoft, the author</p><p> <a href="https://discussions.apple.com/docs/DOC-11591" target="_blank">https://discussions.apple.com/docs/DOC-11591</a></p><p><br></p><p><br></p><p><br></p><p>How to post etrecheck findings:</p>
<p>1) click on "Share report"</p>
<p><img alt="Screen Shot 2018-07-13 at 2.43.50 PM.png"
class="image-0 jive-image"
src="/servlet/JiveServlet/downloadImage/2-33628892-1003319/Screen+Shot+2018-07-13+at+2.43.50+PM.png"
style="max-width: 80%; height: auto;" __jive_id="1003319"
/></p>
<p>2) click on "Copy report"</p>
<p><img alt="Screen Shot 2018-07-13 at 2.44.19 PM.png"
class="jive-image image-2"
src="/servlet/JiveServlet/downloadImage/2-33628892-1003324/Screen+Shot+2018-07-13+at+2.44.19+PM.png"
style="max-width: 80%; height: auto;" __jive_id="1003324"
/></p>
<p>3) Paste the information into an ASC forum reply.</p>
<p></p>
- 0
rccharles ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
That was my mistake. Copied html instead of plan text 😉 . I've known bdaqua for awhile. Great problem solver.
I'd run etrecheck on the server. The proprietary stuff gets filtered.
-- Download etrecheck. Click on the download link at the bottom of the screen.
-- Run etrecheck. The first five runs are free.
-- Using EtreCheck by etresoft, the author
https://discussions.apple.com/docs/DOC-11591
How to post etrecheck findings:
1) click on "Share report"

2) click on "Copy report"

3) Paste the information into an ASC forum reply.
Well, that's how etrecheck posting worked the last time I check. The author is upgrading etrecheck all the time.
R
- 0
singerdf ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
The support article at Apple refers to Browsing SMB shares. Not searching. I think we will try the first suggestion on one client and see how long we go before we cannot search.
Debbie
more to come as this often can take a week between
- 0
singerdf ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I am back. Search failed on one of our shares for one of our users. We confirmed that it failed for a number of other users in the same share. We watched the console while we were doing the search. Here is what errorred out:
error 18:56:07.843021 -0500 mds Can't init <private> -- too many objects for MDSTaskRegistry
default 18:56:07.849423 -0500 rpcsvchost Boolean MDSChannelPeerRequest(MDSChannelPeerRef, MDSChannelAccessTokenRef, MDPlistBytesRef, MDPlistBytesRef *): (ipc/send) invalid destination port
default 18:56:07.849453 -0500 rpcsvchost MDSChannelRequestTransact - MDSChannelPeerRequest failed
We had run the terminal command on the share that has the issues most often. It clearly did not solve the problem.
We are baffled at this point.
As always restarting the "server" solves the issue. Maybe the answer is to restart the computer hosting the shares once a week?
So now I ask when you restart a Mac what files or Stores get recreated at that point? Or what routines take place that allow us to search again. Can we run a macro rather than restarting? I have tried searching for that information and have come up blank.
Thank you as always,
Debbie
- 0
rccharles ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
How many messages did you post? This seems like a better format.
error
18:56:07.843021 -0500 mds Can't init <private> -- too many objects for MDSTaskRegistry
default
18:56:07.849423 -0500 rpcsvchost Boolean MDSChannelPeerRequest(MDSChannelPeerRef, MDSChannelAccessTokenRef, MDPlistBytesRef, MDPlistBytesRef *): (ipc/send) invalid destination port
default
18:56:07.849453 -0500 rpcsvchost MDSChannelRequestTransact - MDSChannelPeerRequest failed
trimmed some more i do not know where error and default go.
18:56:07.843021 -0500 mds Can't init <private> -- too many objects for MDSTaskRegistry
18:56:07.849423 -0500 rpcsvchost Boolean MDSChannelPeerRequest(MDSChannelPeerRef, MDSChannelAccessTokenRef,
MDPlistBytesRef, MDPlistBytesRef *): (ipc/send) invalid destination port
18:56:07.849453 -0500 rpcsvchost MDSChannelRequestTransact - MDSChannelPeerRequest failed
Look on the server and see if it's seeing any thing.
At least the second message and probably the third look like a communication glitch.
perhaps you can down the port then up the port on the server. Perhaps add a wait. Use the ifconfig command on the server. I never quite figured this command out.
You could restart your server sometime in the night.
It's possible to have the log message automatically distributed to other machines. There are apps around to look for these message and do things based on the message.
Have you called apple about this?
I don't know the status of NFS, but is the native unix file transfer protocol. Is built into macos in Yosemite. While nfs is bult-in, the gui isn't. I use "NFS Manager.app". Technically, you could use both on the server and try one client.
R