Finder or Spotlight Searching SMB folders

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:

  1. why did the issue take months to show up
  2. why do only certain folders become unsearchable
  3. why can Easy Find still search and Finder and Spotlight cannot
  4. 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

iMac Line (2012 and Later)

Posted on Jan 10, 2019 10:17 AM

Reply

Similar questions

37 replies

Jan 24, 2019 12:51 PM in response to rccharles

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.

http://etrecheck.com/

-- 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"


Screen Shot 2018-07-13 at 2.43.50 PM.png



2) click on "Copy report"


Screen Shot 2018-07-13 at 2.44.19 PM.png



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





Feb 1, 2019 8:16 PM in response to rccharles

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:


Feb 2, 2019 12:21 PM in response to singerdf

Did we get what versions of macOS are you running on the server and the clients?

I think you need to try other network protocols. afp first and then if afp gives you problems nfs.

interesting reading, how long will afp be around? [ I thought it had gone away. ]

https://apple.stackexchange.com/questions/285417/is-afp-slated-to-be-removed-from-future-versions-of-macos


I am not sure it is one share per se. the share that most often fails the search is the one that is searched most often.

This point to a race condition with accessing the files. Or some other i/o issue.


Can you have both NFS and normal apple file structure on the same drive ?

yes. These shares don't change the file structure. You should think of them as app that reads files and directories on the server and sends them to the client.


i was under the impression spotlight could not search an NFS share.

Oh, I hadn't heard of that. I did see problem references, but they were years ago. Helios claims there are limitations.


Here is an interesting web page.

https://www.helios.de/web/EN/news/AFP_vs_SMB-NFS.html


You may want to check out their fileserver:

https://www.helios.de/web/EN/solutions/webshare-connectivity.html


Another approach, would be to upgrade all you systems to mojave. Cross your fingers and hope for the best.


R



Feb 2, 2019 1:58 PM in response to singerdf

AFP is really old and being phased out.

I thought is was gone already, but you are looking for something that works. My reading is that time machine uses AFP for it remote backup. Is a good endorsement. AFP only works with hps/hps+.


You want to get something that works. You could file a bug report with apple and wait. Another tech workers said to me one, "There is always another way".


Here are my recommendations:

-- schedule reboot of server in early morning.

-- try afp

-- try nfs


I worked on OSs a long time ago. a reboot is a re-building of the running OS from the ground up. All the internal buffers and connections get re-established. All software get reloaded. There were always a lot of strange bugs. A lot of timing bugs that were infrequent, but relied on a strange combination of events. a reboot can throw a monkey wrench into the comulative bug chains.


R

Feb 1, 2019 7:54 PM in response to BDAqua

spotlight could have gone crazy in a loop of sometime allocation space for something. 😱 But??? Restarting the client doesn't help. Server fails. Client goes crazy filling up space.


re-boot has been the standard computer fix since the dawn of computers. What is does is clean house. Everything is freshly cleaned. You need to look at the logs on the server around the time of failure.


R

Jan 24, 2019 6:01 AM in response to BDAqua

Ok. I have some information. Search failed yesterday. Here is what we did:


  1. Force restart Finder on the client computer. No change
  2. Force restart Finder on the server. No change
  3. Looked in console on the client but not sure what to look for
  4. restart the server imac and all works again.
  5. 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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Finder or Spotlight Searching SMB folders

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.