11.2 - BETA3: SAMBA broken

Status
Not open for further replies.

creativecave

Cadet
Joined
Mar 17, 2017
Messages
8
Hi, since i updated from 11.1-U6 to 11.2-BETA3 samba doesn't work anymore.
I have 3 Macs here and they all connect perfectly using AFP but SMB is not working.

I have tried to create new datasets and new shares, nothing helps.
SMB service is running!

Can someone help me to identify the problem?
Or point me to the right log file?

Thanks
Eugen
 

creativecave

Cadet
Joined
Mar 17, 2017
Messages
8
I think, this could be the reason:

Bildschirmfoto 2018-09-14 um 13.06.02.png
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Not broken here, at least not when connecting to SMB share from a linux client. 11.2-BETA3 uses an updated SAMBA package, see: https://redmine.ixsystems.com/issues/41380

But where are you seeing this error message?

For you reference:

On FreeNAS basic SAMBA checking at the CLI as root includes:

1. Checking SMB service status and any client connections with smbstaus

2. Checking SMB share names with smbclient -L locahost , just press enter when asked for a password

3. Via the webUI increase SMB service logging level to say "normal" at first. Beware, higher log levels can generate a lot of output.

4. Viewing logs at: /var/log/samba4/log.nmbd and /var/log/samba4/log.smbd

5. Checking SMB server config global section from the output of command testparm or testparm -v

One obvious change I can see is the "server min protocol" is set to SMB2 in 11.1-U6 and has a value of SMB2_02 in 11.2-BETA3. But I've no idea if this is your problem.
 

creativecave

Cadet
Joined
Mar 17, 2017
Messages
8
Thank you! I will test everything an report back.

I got this message from this little window at the bottom of the Web-UI.
Bildschirmfoto 2018-09-14 um 13.36.57.png


Pease check output.txt for the output of the suggested commands.


Thank you
 
Last edited:

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
In your case, as you are getting a winbindd errors it's also worth checking /var/log/samba4/log.winbindd and /var/log/messages

You also need to post the mount command you are using on your MAC client and any error message you see on client when trying to connect to your smb share. When you try to mount your share on the client, at the same time inspect the smbd log on FreeNAS, just use tail -f /var/lo/gsamba4/log.smbd to do that. Make sure you have the syslog written to your pool ( via System > System Dataset )

The command smbclient L -localhost on FreeNAS didn't seem to return anything, which is odd. As this is a MAC problem I'm can't be of more help. If it's not a mis-configuration of server or client and as things were working under 11.1.-U6 it could be a bug due to the samba update in 11.2-Beta3.

Try contacting @anodos whose is a iXsystem SMB expert and posts on this forum.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Let's try clearing the winbind cache:
Code:
service samba_server stop
rm /var/db/samba4/winbindd_cache*
net cache flush
service samba_server start
 

creativecave

Cadet
Joined
Mar 17, 2017
Messages
8
I already cleared the cache. Here is the output from log.winbindd:

root@freenas:~ # tail /var/log/samba4/log.winbindd

[2018/09/14 13:27:58.198932, 0] ../source3/winbindd/winbindd_cache.c:3170(initialize_winbindd_cache)

initialize_winbindd_cache: clearing cache and re-creating with version number 2

[2018/09/14 13:27:58.199502, 2] ../source3/winbindd/winbindd_util.c:283(add_trusted_domain_from_tdc)

Added domain BUILTIN (null) S-1-5-32

[2018/09/14 13:27:58.199525, 2] ../source3/passdb/pdb_interface.c:161(make_pdb_method_name)

No builtin backend found, trying to load plugin

[2018/09/14 13:27:58.200008, 2] ../source3/winbindd/winbindd_util.c:283(add_trusted_domain_from_tdc)

Added domain FREENAS (null) S-1-5-21-4283428170-355421123-3603220125

[2018/09/14 13:27:58.200382, 0] ../lib/util/become_daemon.c:124(daemon_ready)

STATUS=daemon 'winbindd' finished starting up and ready to serve connections


root@freenas:~ # tail -f /var/log/messages

Sep 14 00:15:43 freenas netatalk: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef with no ProcessReply function

Sep 14 00:15:43 freenas netatalk: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef with no ProcessReply function

Sep 14 00:15:43 freenas netatalk: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef with no ProcessReply function

Sep 14 00:15:43 freenas netatalk: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef with no ProcessReply function

Sep 14 00:15:43 freenas netatalk: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef with no ProcessReply function

Sep 14 00:15:43 freenas netatalk: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef with no ProcessReply function

Sep 14 00:28:40 freenas smbd: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1

Sep 14 11:08:00 freenas kernel: Failed to fully fault in a core file segment at VA 0x800903000 with size 0xd000 to be written at offset 0x332000 for process winbindd

Sep 14 11:08:00 freenas kernel: Failed to fully fault in a core file segment at VA 0x800903000 with size 0xd000 to be written at offset 0x332000 for process winbindd

Sep 14 11:08:00 freenas kernel: pid 457 (winbindd), uid 0: exited on signal 6 (core dumped)


this is the mount command:
Eugens-MacBook:~ eugen$ mount_smbfs //eugen@freenas.local/eugen /Volumes/eugen2

Password for freenas.local:

mount_smbfs: mount error: /Volumes/eugen2: Operation not permitted


Usually i mount the shares with "Finder" and it always worked before this update.


Thanks you for helping...
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Can you download the winbind core file from /var/db/system/cores, zip it up, and PM it to me?

Also generate a pcap on the FreeNAS server of the failed mount attempt from OS-X.
tcpdump -i <interface> -p -s0 -w /tmp/smb.pcap host <ip of mac>

i.e. "tcpdump -i em0 -p -s0 -w /tmp/smb.pcap host 192.168.42.42"

Hit control-c when the connection fails and download / zip up and PM the resulting file.
 
Last edited:
Status
Not open for further replies.
Top