CIFS Service could not be started

Status
Not open for further replies.

OasisTech

Cadet
Joined
Feb 21, 2015
Messages
3
Hi,

I running a new FreeNAS server (version: FreeNAS-9.10-STABLE-201605021851) where the CIFS service will not start (all other services start without issues). I've looked through the available documentation and forums but haven't found an answer. Any suggestions?

What information do you need to help?

Thanks.

OasisTech
 
Last edited:
D

dlavigne

Guest
The contents of /var/log/messages after an unsuccessful service start.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
From the FreeNAS Documentation, Release 9.3.1 (I'm almost sure it still applies for this):


If the CIFS service will not start, run this command from Shell to see if there is an error in the configuration:
testparm /usr/local/etc/smb4.conf

You can post the results here.
 

OasisTech

Cadet
Joined
Feb 21, 2015
Messages
3
Here's the content of /var/log/messages:


May 8 00:00:00 FreeNasPrimary newsyslog[52053]: logfile turned over due to size
>100K
May 8 00:00:00 FreeNasPrimary syslog-ng[1263]: Configuration reload request rec
eived, reloading configuration;
May 8 01:25:00 FreeNasPrimary update_check.py: [freenasOS.Configuration:623] Un
able to load http://update.freenas.org/FreeNAS/trains.txt: <urlopen error [Errno
8] hostname nor servname provided, or not known>
May 8 01:25:00 FreeNasPrimary update_check.py: [freenasOS.Configuration:623] Un
able to load http://update-master.freenas.org/FreeNAS/trains.txt: <urlopen error
[Errno 8] hostname nor servname provided, or not known>
May 8 01:25:00 FreeNasPrimary update_check.py: [freenasOS.Configuration:637] Un
able to load ['http://update.freenas.org/FreeNAS/trains.txt', 'http://update-mas
ter.freenas.org/FreeNAS/trains.txt']: <urlopen error [Errno 8] hostname nor serv
name provided, or not known>
May 8 17:50:04 FreeNasPrimary notifier: invalid permissions on directory '/var/
db/samba4/private/msg.sock': has 0777 should be 0700
May 8 17:50:05 FreeNasPrimary generate_smb4_conf.py: [common.pipesubr:61] Popen
()ing: /usr/local/bin/net -d 0 getlocalsid
May 8 17:50:05 FreeNasPrimary generate_smb4_conf.py: [common.pipesubr:61] Popen
()ing: /usr/local/bin/net -d 0 setlocalsid S-1-5-21-2259028416-2204210479-713511
500
May 8 17:50:05 FreeNasPrimary notifier: Unable to set SID to S-1-5-21-225902841
6-2204210479-713511500
 

OasisTech

Cadet
Joined
Feb 21, 2015
Messages
3
From the FreeNAS Documentation, Release 9.3.1 (I'm almost sure it still applies for this):


If the CIFS service will not start, run this command from Shell to see if there is an error in the configuration:
testparm /usr/local/etc/smb4.conf

You can post the results here.

Here are the results:

Load smb config files from /usr/local/etc/smb4.conf
WARNING: The "null passwords" option is deprecated
Processing section "[sysvol]"
Processing section "[netlogon]"
Processing section "[VMWARE]"
Loaded services file OK.
Server role: ROLE_ACTIVE_DIRECTORY_DC

Press enter to see a dump of your service definitions

# Global parameters
[global]
dos charset = CP437
workgroup = OTCSOLUTIONS
realm = OTCSOLUTIONS.LAN
server string = FreeNAS Server
server role = active directory domain controller
map to guest = Bad User
null passwords = Yes
obey pam restrictions = Yes
passdb backend = samba_dsdb
logging = file
max log size = 51200
server max protocol = SMB2
max protocol = SMB2
protocol = SMB2
time server = Yes
deadtime = 15
kernel change notify = No
max open files = 231095
hostname lookups = Yes
load printers = No
printcap name = /dev/null
disable spoolss = Yes
lm announce = Yes
dns proxy = No
panic action = /usr/local/libexec/samba/samba-backtrace
dns forwarder = 192.168.10.20
nsupdate command = /usr/local/bin/samba-nsupdate -g
rpc_server:tcpip = no
rpc_daemon:spoolssd = embedded
rpc_server:spoolss = embedded
rpc_server:winreg = embedded
rpc_server:ntsvcs = embedded
rpc_server:eventlog = embedded
rpc_server:srvsvc = embedded
rpc_server:svcctl = embedded
rpc_server:default = external
winbindd:use external pipes = true
idmap_ldb:use rfc2307 = yes
idmap config *: range = 90000001-100000000
idmap config * : backend = tdb
acl allow execute always = Yes
create mask = 0666
directory mask = 0777
directory mode = 0777
ea support = Yes
directory name cache size = 0
map archive = No
map readonly = no
store dos attributes = Yes
strict locking = No
dos filemode = Yes
vfs objects = dfs_samba4 acl_xattr


[sysvol]
path = /var/db/samba4/sysvol
read only = No
vfs objects = zfs_space zfsacl
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special


[netlogon]
path = /var/db/samba4/sysvol/otcsolutions.lan/scripts
read only = No
vfs objects = zfs_space zfsacl
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Thanks for the response @OasisTech, but due to seeing VMware in the output,
I will not be able to help as I know nothing of virtualization.
Did you notice the WARNING: The "null passwords" option is deprecated?
Perhaps try unchecking that option and then try starting the service.
 
Status
Not open for further replies.
Top