MacOS support search in SMB shares

Mik3Silv3r

Cadet
Joined
Jan 11, 2014
Messages
7
I have TrueNAS 13 CORE
I have 1 Pool of 10TB
I have 2 dataset in the Pool
I have 2 shares of SMB

User.. Groups.. Done

I can navigate in the shares, the permisions are correct, BUT....

MacOS users cannot search for content within shared folders, but, if they can browse the files

searchMacOS.png


Does anyone know how to fix it?
 

kapitainsky

Dabbler
Joined
Sep 30, 2022
Messages
46
And what exactly will be resolved? TrueNAS does not support Spotlight search out of the box (and there are no plans to change it as I know) but only allows Spotlight elasticsearch integration in Samba (which is broken BTW)
 

kapitainsky

Dabbler
Joined
Sep 30, 2022
Messages
46
I have TrueNAS 13 CORE
I have 1 Pool of 10TB
I have 2 dataset in the Pool
I have 2 shares of SMB

User.. Groups.. Done

I can navigate in the shares, the permisions are correct, BUT....

MacOS users cannot search for content within shared folders, but, if they can browse the files

View attachment 58962

Does anyone know how to fix it?

If you are after only searching by filenames it is broken in Samba 4.15.9 TrueNAS 13 uses at the moment.

Samba has fix and hopefully TrueNAS will port it to their Samba fork.


In the meantime disable Samba Spotlight RPC service - it is broken anyway so you can't use it.

In Services add to auxiliary parameters:

Code:
rpc_daemon:mdssd = disabled
rpc_server:mdssvc = disabled


to Samba
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
any idea why when I click your link I only see:

You don't have access to this issue​

I have jirra account and can see other tickets but not this one
Oh, right. Issues are locked while users have private info uploaded to ticket.
If you are after only searching by filenames it is broken in Samba 4.15.9 TrueNAS 13 uses at the moment.

Samba has fix and hopefully TrueNAS will port it to their Samba fork.


In the meantime disable Samba Spotlight RPC service - it is broken anyway so you can't use it.

In Services add to auxiliary parameters:

Code:
rpc_daemon:mdssd = disabled
rpc_server:mdssvc = disabled


to Samba

We already have samba 4.15.10 merged for U3 release and already have the parameters you mentioned added for the U3 release.
 

kapitainsky

Dabbler
Joined
Sep 30, 2022
Messages
46
Oh, right. Issues are locked while users have private info uploaded to ticket.


We already have samba 4.15.10 merged for U3 release and already have the parameters you mentioned added for the U3 release.

This is cool news! Thank you for explanation.

But does not look like ES integration issue is fixed - at least not in these PRs
 

kapitainsky

Dabbler
Joined
Sep 30, 2022
Messages
46
@anodos - maybe you know

rpc_daemon:mdssd = disabled
rpc_server:mdssvc = disabled

set by PR #9953 is permanent or can be overwritten in aux parameters of SMB service?
 

kapitainsky

Dabbler
Joined
Sep 30, 2022
Messages
46
Also re ES integration I think you can find interesting findings in this old thread:


read only from like page 4 when it was revived
 

kapitainsky

Dabbler
Joined
Sep 30, 2022
Messages
46
@anodos - I see it is actually you who is Samba guru) Maybe you can help us (thread link in the post above) how to proceed? Should we open TrueNAS ticket? or Samba ticket?

Your comment will help to make it as efficient as possible.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
@anodos - I see it is actually you who is Samba guru) Maybe you can help us (thread link in the post above) how to proceed? Should we open TrueNAS ticket? or Samba ticket?

Your comment will help to make it as efficient as possible.
I can open an upstream samba PR with the fix from freebsd ports. It's one of those fixes that never really got upstreamed.
 

kapitainsky

Dabbler
Joined
Sep 30, 2022
Messages
46
But it looks like it would finally make ES integration with Samba work - I do understand that it is not on the radar a lot as mostly benefits home NAS users where it is probably one of the most missed features.
 
Top