CIFS cannot start, and i am stucked.

Status
Not open for further replies.

Low Chee Beng

Dabbler
Joined
Apr 12, 2014
Messages
29
Hi, I have a working config until i mess with the plugin and jail. Now my CIFS not working. FTP work well. AFP did not try as no Apple's product.

Now when start CIFS, sanity check failed. Attach below is the system messages and SMB4.conf

Pointers appreciated, Freenas is both frustrating and interesting. Devil, but i like it, ha ha

[global]
server max protocol = SMB3
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
unix extensions = no
null passwords = yes
acl allow execute always = true
server role = standalone
netbios name = FREENAS
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


[Freenas]
path = /mnt/FreeNas01
printable = no
veto files = /.snap/.windows/.zfs/
writeable = yes
browseable = yes
inherit owner = no
inherit permissions = no
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 = no
guest ok = yes
guest only = yes
inherit acls = no
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = yes
zfsacl:acesort = dontcare

Jun 14 00:26:11 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /sbin/sysctl -n 'kern.maxfilesperproc'
Jun 14 00:26:11 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Jun 14 00:26:11 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Jun 14 00:26:11 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /usr/local/bin/pdbedit -d 0 -i smbpasswd:/tmp/tmpLPQt71 -s /usr/local/etc/smb4.conf -e tdbsam:/var/etc/private/passdb.tdb
Jun 14 00:26:12 freenas notifier: Performing sanity check on Samba configuration: FAILED
Jun 14 00:26:16 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /sbin/sysctl -n 'kern.maxfilesperproc'
Jun 14 00:26:16 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Jun 14 00:26:16 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Jun 14 00:26:16 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /usr/local/bin/pdbedit -d 0 -i smbpasswd:/tmp/tmp6T6W_h -s /usr/local/etc/smb4.conf -e tdbsam:/var/etc/private/passdb.tdb
Jun 14 00:26:17 freenas notifier: winbindd not running? (check /var/run/samba/winbindd.pid).
Jun 14 00:26:17 freenas notifier: smbd not running? (check /var/run/samba/smbd.pid).
Jun 14 00:26:17 freenas notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
Jun 14 00:26:17 freenas notifier: Performing sanity check on Samba configuration: FAILED
Jun 14 00:27:50 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /sbin/sysctl -n 'kern.maxfilesperproc'
Jun 14 00:27:50 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Jun 14 00:27:50 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Jun 14 00:27:50 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /usr/local/bin/pdbedit -d 0 -i smbpasswd:/tmp/tmpoLbdPp -s /usr/local/etc/smb4.conf -e tdbsam:/var/etc/private/passdb.tdb
Jun 14 00:27:50 freenas notifier: winbindd not running? (check /var/run/samba/winbindd.pid).
Jun 14 00:27:50 freenas notifier: smbd not running? (check /var/run/samba/smbd.pid).
Jun 14 00:27:50 freenas notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
Jun 14 00:27:56 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /sbin/sysctl -n 'kern.maxfilesperproc'
Jun 14 00:27:56 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Jun 14 00:27:56 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Jun 14 00:27:56 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /usr/local/bin/pdbedit -d 0 -i smbpasswd:/tmp/tmpbVwb7V -s /usr/local/etc/smb4.conf -e tdbsam:/var/etc/private/passdb.tdb
Jun 14 00:27:56 freenas notifier: winbindd not running? (check /var/run/samba/winbindd.pid).
Jun 14 00:27:56 freenas notifier: smbd not running? (check /var/run/samba/smbd.pid).
Jun 14 00:27:56 freenas notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
Jun 14 00:27:57 freenas notifier: Performing sanity check on Samba configuration: FAILED
Jun 14 12:39:07 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /sbin/sysctl -n 'kern.maxfilesperproc'
Jun 14 12:39:07 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Jun 14 12:39:08 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Jun 14 12:39:08 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /usr/local/bin/pdbedit -d 0 -i smbpasswd:/tmp/tmpsnlQMm -s /usr/local/etc/smb4.conf -e tdbsam:/var/etc/private/passdb.tdb
Jun 14 12:39:08 freenas notifier: winbindd not running? (check /var/run/samba/winbindd.pid).
Jun 14 12:39:08 freenas notifier: smbd not running? (check /var/run/samba/smbd.pid).
Jun 14 12:39:08 freenas notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
Jun 14 12:39:08 freenas notifier: Performing sanity check on Samba configuration: FAILED
Jun 14 12:40:24 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /sbin/sysctl -n 'kern.maxfilesperproc'
Jun 14 12:40:24 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Jun 14 12:40:24 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Jun 14 12:40:24 freenas generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /usr/local/bin/pdbedit -d 0 -i smbpasswd:/tmp/tmpgrIsOg -s /usr/local/etc/smb4.conf -e tdbsam:/var/etc/private/passdb.tdb
Jun 14 12:40:24 freenas notifier: winbindd not running? (check /var/run/samba/winbindd.pid).
Jun 14 12:40:24 freenas notifier: smbd not running? (check /var/run/samba/smbd.pid).
Jun 14 12:40:24 freenas notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
Jun 14 12:40:24 freenas notifier: Performing sanity check on Samba configuration: FAILED
 

krikboh

Patron
Joined
Sep 21, 2013
Messages
209
Which version of FreeNAS are you using? You may want to try the 9.2.1.6 beta if you are using the current 9.2.1.5 which had CIFS issues.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
The 9.2.1.6 beta also has SMB3 set as the default, you will need to change that to SMB2. This has already been fixed for the Release Candidate.

So you might be able to fix your issue if you just change to SMB2.
 

Low Chee Beng

Dabbler
Joined
Apr 12, 2014
Messages
29
Thanks for the pointers.
I have had issues on 9.2.1.5, so i tried 9.2.1.6 beta.
Still have the issue when go on the nightly build.

BTW, how to change to SMB2, if i may ask?

Thanks, Noob here, pardon me.
 

krikboh

Patron
Joined
Sep 21, 2013
Messages
209
When you "messed" with plugins and jails did you make permission changes?


Sent from my iPhone using Tapatalk
 

Low Chee Beng

Dabbler
Joined
Apr 12, 2014
Messages
29
I sure did, in fact i had it working from 9.2.1.4 thru 9.2.1.5.

Then i start to config Plex plugin. Along the way change some setting.

And CIFS refused to stop.

Applied the patch for bug (I think it Fixup.sh). and reboot

I was able to stop the service, but never start again.

Reinstall 9.2.1.5 (the upgrade not the full) but no joy.

Upgrade to 9.2.1.6 beta still not joy.

Reading other posting and learn to display the system message. That is when i learn that sanity check failed.

Must have screw up the system big time. Lucky ftp still work and manage to transfer out the data.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Run 'testparm' and post output.

I also noticed that you are sharing '/mnt/FreeNas01 via CIFS. I assume that this is your zpool. This is a bad idea. You should create and share datasets.

This is because (now I haven't tried this myself) if you recursively chmod or do an action that sets ACLs across /mnt/FreeNas01 you will probably mess up permissions on your .system dataset.
 

Low Chee Beng

Dabbler
Joined
Apr 12, 2014
Messages
29
Thanks Anodos, you have a point, Freenaso1 is my main vol. My idea is to make it a dumping point. Not concern about security. data not that important and it for home use.

But such config sure mess the .system dataset.

I will tried to created another dataset to share.
 

Low Chee Beng

Dabbler
Joined
Apr 12, 2014
Messages
29
testparm output


Load smb config files from /usr/local/etc/smb4.conf
max_open_files: increasing sysctl_max (11095) to minimum Windows limit (16384)
rlimit_max: increasing rlimit_max (11095) to minimum Windows limit (16384)
WARNING: The "null passwords" option is deprecated
Processing section "[Freenas]"
Loaded services file OK.
WARNING: lock directory /var/db/samba4 should have permissions 0755 for browsing to work
WARNING: state directory /var/db/samba4 should have permissions 0755 for browsing to work
WARNING: cache directory /var/db/samba4 should have permissions 0755 for browsing to work
Server role: ROLE_STANDALONE
 

Low Chee Beng

Dabbler
Joined
Apr 12, 2014
Messages
29
ok got it done, seem working, service started, will test out if sharing is working tomorrow. Thanks pal.

BTW, /var/db /samba4 is actually a symlink from source /mnt/Freenas01/.system/samba4

I thought changing the permission on /mnt/Freenas01/.system/samba4 , will work but apparently not.

Instead i have to change the permission on /var/db/samba4, as instructed to get it work.

Changing the permission on the source won't affect a symlink permission? They have to set separately?

Thanks.
 
Status
Not open for further replies.
Top