Direct SMB connection works, Finder left pane returns "connection failed"

Status
Not open for further replies.

nationalism

Cadet
Joined
Aug 4, 2014
Messages
9
This problem just cropped up after I reset my FreeNAS server to defaults and redid my zpool. It was working fine before. I'm running the latest version of FreeNAS with a Supermicro board.

I can connect to my CIFS share just fine by using Finder -> Go -> Connect to Server... and entering the smb:// plus the IP. However, selecting the share by name under "Shared" in Finder nets me a "Connection Failed" error. Selecting the "Connect As" button does nothing.
 
D

dlavigne

Guest
Is there a DNS server in the network that knows the IP address and hostname of the FreeNAS system? If not, is there a hosts directory for the FreeNAS system on the client system?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Can you ping your FreeNAS server by FQDN? Is your Mac set up to use your DNS server?
One time I had similar issue on a Mac. It turned out I configured Ethernet to use the proper DNS, but forgot to change DNS on wireless (which is what the person used).
 

nationalism

Cadet
Joined
Aug 4, 2014
Messages
9
As I stated above, the problem is client-agnostic. It happens on every Mac on the network.
 

nationalism

Cadet
Joined
Aug 4, 2014
Messages
9
Which log are you referring to? Here's my smb4.conf.

[global]
server max protocol = SMB2
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 15
max log size = 51200
max open files = 11070
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
getwd cache = yes
guest account = nobody
map to guest = Bad User
obey pam restrictions = Yes
directory name cache size = 0
kernel change notify = no
panic action = /usr/local/libexec/samba/samba-backtrace
server string = FreeNAS Server
ea support = yes
store dos attributes = yes
hostname lookups = yes
time server = yes
acl allow execute always = true
local master = yes
idmap config *:backend = tdb
idmap config *:range = 90000000-100000000
server role = standalone
netbios name = ILLMATIC
workgroup = WORKGROUP
security = user
pid directory = /var/run/samba
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
create mask = 0666
directory mask = 0777
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 1


[illmatic]
path = /mnt/illmatic
printable = no
veto files = /.snap/.windows/.zfs/
writeable = yes
browseable = yes
recycle:repository = .recycle/%U
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:directory_mode = 0777
recycle:subdir_mode = 0700
vfs objects = zfsacl streams_xattr aio_pthread
hide dot files = yes
guest ok = no
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = yes
zfsacl:acesort = dontcare
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
/var/log/samba/log.smbd
you may have to increase verbosity of logging to see what is happening when you try to select the share in Finder.
Verify that you macs are in the same workgroup "WORKGROUP" as your FreeNAS server.
Do you have "zeroconf share discovery" enabled in CIFS?
Does it work if you set the share to allow guest access?
What version of FreeNAS are you using?
 

nationalism

Cadet
Joined
Aug 4, 2014
Messages
9
1. Macs are also in WORKGROUP.
2. Zeroconf share discovery is enabled.
3. Enabling guest access doesn't fix the problem.
4. I am on 9.2.1.6-RELEASE-x64 (ddd1e39).
5. Server-side log.smbd:

Code:
[2014/08/06 11:55:39,  0] ../source3/smbd/server.c:1205(main)
  smbd version 4.1.9 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/08/06 11:55:40.566347,  0] ../lib/util/become_daemon.c:136(daemon_ready)
[2014/08/06 11:59:30,  0] ../source3/smbd/server.c:1205(main)
  smbd version 4.1.9 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/08/06 11:59:30.962050,  0] ../lib/util/become_daemon.c:136(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsmatchname: host name/name mismatch: 192.168.128.68 != (NULL)
[2014/08/06 12:00:46.545340,  0] ../source3/lib/util_sock.c:1199(get_remote_hostname)
  matchname failed on 192.168.128.68
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsmatchname: host name/name mismatch: 192.168.128.68 != (NULL)
[2014/08/06 12:00:46.546144,  0] ../source3/lib/util_sock.c:1199(get_remote_hostname)
  matchname failed on 192.168.128.68
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsmatchname: host name/name mismatch: 192.168.128.234 != (NULL)
[2014/08/06 12:03:13.834307,  0] ../source3/lib/util_sock.c:1199(get_remote_hostname)
  matchname failed on 192.168.128.234
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsmatchname: host name/name mismatch: 192.168.128.234 != (NULL)
[2014/08/06 12:03:13.837647,  0] ../source3/lib/util_sock.c:1199(get_remote_hostname)
  matchname failed on 192.168.128.234
[2014/08/06 12:03:47.410678,  1] ../source3/smbd/service.c:1130(close_cnum)
  workstation (ipv4:192.168.128.234:52587) closed connection to service illmatic
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsmatchname: host name/name mismatch: 192.168.128.48 != (NULL)
[2014/08/06 12:23:06.409293,  0] ../source3/lib/util_sock.c:1199(get_remote_hostname)
  matchname failed on 192.168.128.48
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsmatchname: host name/name mismatch: 192.168.128.48 != (NULL)
[2014/08/06 12:55:11.769689,  0] ../source3/lib/util_sock.c:1199(get_remote_hostname)
  matchname failed on 192.168.128.48
[2014/08/06 12:55:12.086058,  1] ../source3/smbd/service.c:1130(close_cnum)
  workstation (ipv4:192.168.128.68:52730) closed connection to service illmatic
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsmatchname: host name/name mismatch: 192.168.128.48 != (NULL)
[2014/08/06 13:27:17.057424,  0] ../source3/lib/util_sock.c:1199(get_remote_hostname)
  matchname failed on 192.168.128.48
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsmatchname: host name/name mismatch: 192.168.128.48 != (NULL)
[2014/08/06 13:59:22.302415,  0] ../source3/lib/util_sock.c:1199(get_remote_hostname)
  matchname failed on 192.168.128.48
 

gundam212

Dabbler
Joined
Mar 16, 2014
Messages
10
I'm having exactly the same issue. Very irritating. Love to see if anyone has a solution for this.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Nationalism, the errors in your log indicate that you don't have a DNS reverse lookup zone and so you should disable hostname lookups in your CIFS config. Increase logging verbosity and try authenticating again (and attach your log.smbd file).
Can you connect via 'connect to server' and typing 'smb://hostname' or 'smb://hostname.local'?
Are you using both AFP and CIFS on your server?

You may also want to run tcpdump to get a packet capture to see what's really happening when you click on the FreeNas server's name in the finder pane.
 
Status
Not open for further replies.
Top