SMB Shares Failure

John Radtke

Dabbler
Joined
Oct 14, 2021
Messages
11
I am running 11.3-U4.
FreeNas server has been running fine for a couple of years now.

The FreeNas server is on CyberPower UPS and has the UPS service running.
Yesterday there was a power failure while I was off site and the System has automatically powered down.

I re-started the system and it booted fine.

HOWEVER...... I cannot access the server SMB share from any Windows PC.
I used to be able to access from any of 8 - Windows 10 PC's, and One PC running Windows 7 Pro.

I can access the FreeNas server through a browser using the IP.. no problem

Any ideas on what might have happened ?

I do not have/get any errors or faults from the FreeNas server.

I have tried to create a new User added to ACL .. still no access

Windows computers either show a permissions error message or pop-up then entry of User and Password - fails.

I need a reliable way to recover and access my files without loosing any data.

Thank You
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Any ideas on what might have happened ?

I do not have/get any errors or faults from the FreeNas server.
Well, both of those lines don't give us much to go on...

Is the SMB service running? (service smbd status in the shell to confirm it really is)

Is your pool healthy (you should see errors reported if it isn't)? (under Storage | Pools, Cogwheel and select status in the GUI)

Network would seem fine if you can get to the Web GUI.

I need a reliable way to recover and access my files without loosing any data.
If your pool is healthy, the data is there.

You have many options at your disposal to get to the files (you could use FileZilla for example and use SFTP to connect, browse and download files) even without SMB.

Essentially you're saying it was all working, nothing changed except a power down of the server and then it stopped working over SMB.

I suspect the SMB service crashed or something, so check that first and let's see.
 

John Radtke

Dabbler
Joined
Oct 14, 2021
Messages
11
reply is smbd is running as pid 1109 (I had stopped and restarted the service ...no change.
Yes you are correct, nothing changed except a power down of the server(by the UPS service) and then it stopped working over SMB.
Pool status is Errors 0 ...Online
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
What does /var/log/samba4/log.smbd say about the failed accesses?
 

John Radtke

Dabbler
Joined
Oct 14, 2021
Messages
11
/var/log/samba4/log.smbd



[2021/10/14 14:08:48.402899, 0] ../../source3/smbd/server.c:1788(main)
smbd version 4.10.16 started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
[2021/10/14 14:08:48.420750, 1] ../../source3/profile/profile_dummy.c:30(set_profile_level)
INFO: Profiling support unavailable in this build.
[2021/10/14 14:08:48.660780, 1] ../../source3/smbd/files.c:227(file_init_global)
file_init_global: Information only: requested 706446 open files, 59392 are available.
[2021/10/14 14:08:48.683895, 0] ../../lib/util/become_daemon.c:136(daemon_ready)
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Looks like the log rolled over. What about the log.smbd.* logs in that directory?
 

John Radtke

Dabbler
Joined
Oct 14, 2021
Messages
11
Look the same....
What about the line ... INFO: Profiling support unavailable in this build.
Also
I read this as a possible solution....
Try clearing the idmap cache. midclt call idmap.clear_idmap_cache. This will stop samba, remove caches, and restart it (service disruption).

To answer sretalla on SFTP and FileZila.... Yes, I enabled the services and I can access all files though FileZilla no problem.
 

John Radtke

Dabbler
Joined
Oct 14, 2021
Messages
11
Yes they are

root@freenas[~]# pdbedit -L
Mlib:1002:John Radtke
Lab:1001:John Radtke
Amateur:1003:John Radtke
MrLion:1000:John Radtke

root@freenas[~]# net groupmap list
Guests (S-1-5-32-546) -> 90000003
LION (S-1-5-21-977432042-74647675-2487552452-1010) -> LION
RadioRM (S-1-5-21-977432042-74647675-2487552452-1007) -> RadioRM
jradtke (S-1-5-21-977432042-74647675-2487552452-1008) -> jradtke
Administrators (S-1-5-32-544) -> 90000001
AMT (S-1-5-21-977432042-74647675-2487552452-1000) -> AMT
Users (S-1-5-32-545) -> 90000002

root@freefreenas[~]#
 

John Radtke

Dabbler
Joined
Oct 14, 2021
Messages
11
root@freenas[~]# testparm -s
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
aio max threads = 2
bind interfaces only = Yes
client NTLMv2 auth = No
disable spoolss = Yes
dns proxy = No
enable web service discovery = Yes
kernel change notify = No
load printers = No
logging = file
max log size = 51200
nsupdate command = /usr/local/bin/samba-nsupdate -g
ntlm auth = ntlmv1-permitted
restrict anonymous = 2
server min protocol = NT1
server role = standalone server
server string = FreeNAS Server
username map = /usr/local/etc/smbusername.map
username map cache time = 60
idmap config *: range = 90000001-100000000
idmap config * : backend = tdb
allocation roundup size = 0
directory name cache size = 0
dos filemode = Yes
include = /usr/local/etc/smb4_share.conf


[Master-Server]
aio write size = 0
ea support = No
mangled names = illegal
path = /mnt/Master-Server
read only = No
vfs objects = streams_xattr shadow_copy_zfs ixnas
nfs4:acedup = merge
nfs4:chown = true


[SMB_Win_Share1]
aio write size = 0
ea support = No
mangled names = illegal
path = /mnt/Master-Server/SMB_Windows1
read only = No
vfs objects = streams_xattr shadow_copy_zfs ixnas
nfs4:acedup = merge
nfs4:chown = true
root@freenas[~]#
 

John Radtke

Dabbler
Joined
Oct 14, 2021
Messages
11
root@freenas[~]# getfacl /mnt/Master-Server
# file: /mnt/Master-Server
# owner: root
# group: wheel
owner@:rwxp--aARWcCos:-------:allow
group@:r-x---a-R-c--s:-------:allow
everyone@:r-x---a-R-c--s:-------:allow
root@freenas[~]#



root@freenas[~]# getfacl /mnt/Master-Server/SMB_Windows1
# file: /mnt/Master-Server/SMB_Windows1
# owner: root
# group: wheel
owner@:rwxp--aARWcCos:fd-----:allow
group@:r-x---a-R-c--s:fd-----:allow
everyone@:r-x---a-R-c--s:fd-----:allow
root@freenas[~]#
 
Top