FreeNAS 9.2.1- RELEASE: CIFS: The service could not be started.

Status
Not open for further replies.

Ghwomb

Dabbler
Joined
Jan 10, 2012
Messages
27
First of all, I hate Microsoft for crippling Windows 7 Professional so I can't use NFS. :mad:

I have followed the guide to enable anonymous login from Windows. When I tried to make it work without the guide I could start the service but not access anything. When I followed the guide I can no longer start the CIFS-service.

As per suggestion i did the testparm thing. I just changed smb.conf to smb4.conf. I have also tried to make a symlink, as root, from smb.conf to smb4.conf, but that did not help me start the service.

from testparm /usr/local/etc/smb4.conf | less:

Code:
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                                                                                 
WARNING: Ignoring invalid value 'share' for parameter 'security'                                                                   
Processing section "[homes]"                                                                                                       
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                                                                                                         


global:

Code:
[global]                                                                                                                           
        workgroup = FAMILJENBERGER                                                                                                 
        server string = FreeNAS Server                                                                                             
        server role = standalone server                                                                                           
        map to guest = Bad Password                                                                                               
        null passwords = Yes                                                                                                       
        obey pam restrictions = Yes                                                                                               
        smb passwd file = /var/etc/private/smbpasswd                                                                               
        private dir = /var/etc/private                                                                                             
        passdb backend = tdbsam:/var/etc/private/passdb.tdb                                                                       
        guest account = guest                                                                                                     
        syslog only = Yes                                                                                                         
        max log size = 10                                                                                                         
        max xmit = 65535                                                                                                           
        deadtime = 15                                                                                                             
        load printers = No                                                                                                         
        printcap name = /dev/null                                                                                                 
        disable spoolss = Yes                                                                                                     
        dns proxy = No                                                                                                             
        pid directory = /var/run/samba                                                                                             
        idmap config * : backend = tdb                                                                                             
        force user = guest                                                                                                         
        force group = guest                                                                                                       
        create mask = 0666                                                                                                         
        directory mask = 0777                                                                                                     
        ea support = Yes                                                                                                           
        directory name cache size = 0                                                                                             
        store dos attributes = Yes                                                                                                 
        strict locking = No 


homes:

Code:
[homes]                                                                                                                           
        comment = Home Directories                                                                                                 
        path = /mnt/Spegel/guest                                                                                                   
        valid users = %U                                                                                                           
        read only = No        


FreeNAS:

Code:
[FreeNAS]                                                                                                                         
        comment = FreeNAS                                                                                                         
        path = /mnt/Spegel                                                                                                         
        read only = No                                                                                                             
        inherit acls = Yes                                                                                                         
        guest only = Yes                                                                                                           
        guest ok = Yes                                                                                                             
        hosts allow = 192.168.1.2                                                                                                 
        veto files = /.snap/.windows/.zfs/                                                                                         
        map archive = No                                                                                                           
        map readonly = no                                                                                                         
        browseable = No                                                                                                           
        vfs objects = shadow_copy2, zfsacl, streams_xattr                                                                         
        nfs4:chown = yes                                                                                                           
        nfs4:acedup = merge                                                                                                       
        nfs4:mode = special                                                                                                       
        shadow: format = auto-%Y%m%d.%H%M-1y                                                                                       
        shadow: localtime = yes                                                                                                   
        shadow: sort = desc                                                                                                       
        shadow: snapdir = .zfs/snapshot                                                                                           
        recycle:subdir_mode = 0700                                                                                                 
        recycle:directory_mode = 0777                                                                                             
        recycle:touch = yes                                                                                                       
        recycle:versions = yes                                                                                                     
        recycle:keeptree = yes                                                                                                     
        recycle:repository = .recycle/%U  
 

mlh414

Dabbler
Joined
Jun 3, 2012
Messages
12
I have a slightly different issue in the output from testparm
Code:
. . .
ERROR: the 'winbind separator' parameter must be a single character.
. . .
I can put the separator in the /usr/local/etc/smb4.conf, but any changes to shares or starting the service wipes it out. Here are the log messages I get.
Code:
Feb 8 13:30:56 NAS1 generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Feb  8 13:30:56 NAS1 generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Feb  8 13:30:56 NAS1 generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Feb  8 13:30:56 NAS1 generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Feb  8 13:30:56 NAS1 generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint,name
Feb  8 13:30:56 NAS1 generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Feb  8 13:30:56 NAS1 generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: /usr/local/bin/pdbedit -d 0 -i smbpasswd:/tmp/tmpTLBX8M -e tdbsam:/var/etc/private/passdb.tdb -s /usr/local/etc/smb4.conf
Feb  8 13:30:56 NAS1 notifier: winbindd not running? (check /var/run/samba/winbindd.pid).
Feb  8 13:30:56 NAS1 notifier: smbd not running? (check /var/run/samba/smbd.pid).
Feb  8 13:30:56 NAS1 notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
Feb  8 13:30:56 NAS1 notifier: Performing sanity check on Samba configuration: FAILED
SIGH
 
J

jkh

Guest
Errr. Are we talking about FreeNAS here or something totally different? Confused by thread.
 

mlh414

Dabbler
Joined
Jun 3, 2012
Messages
12
Errr. Are we talking about FreeNAS here or something totally different? Confused by thread.

For me it's FN 9.2.1 Release. I might delete everything on CIFS and start anew just to see if that clears up the errors.
 

ECCfrenaslover

Explorer
Joined
Dec 27, 2013
Messages
89
I am in the same boat!!! I get afp to work but I can't see my cifs shares! What gives? Is there a work around?
 

mlh414

Dabbler
Joined
Jun 3, 2012
Messages
12
Opened bug #4148 on this one. Just in case it's not a user issue.
 

ECCfrenaslover

Explorer
Joined
Dec 27, 2013
Messages
89
well, I made some progress by going thru the go link under finder and connect to server command. once there, I used cifs://192.168.x.xxx....

I can see the shares but then I can't write to them. I am like wtf?! over! Currently double checking my shares....

why is permissions on freenAS so freaking difficult? I've never had these many headaches with Qnap. Can anyone elaborate? Is freenAS this hard?
 

Ghwomb

Dabbler
Joined
Jan 10, 2012
Messages
27
Errr. Are we talking about FreeNAS here or something totally different? Confused by thread.

I am talking about not being able to start the CIFS-service on an FreeNAS 9.2.1-Release box.
 

mlh414

Dabbler
Joined
Jun 3, 2012
Messages
12
I am talking about not being able to start the CIFS-service on an FreeNAS 9.2.1-Release box.
Same thing, just mine manifested itself differently.
 
J

John Hixson

Guest
Can you guys try this: rm /usr/local/etc/smb.conf, then try and start cifs from the UI?
 

mlh414

Dabbler
Joined
Jun 3, 2012
Messages
12
Can you guys try this: rm /usr/local/etc/smb.conf, then try and start cifs from the UI?

Can't find any smb.conf file under /usr or /etc.
 

Ghwomb

Dabbler
Joined
Jan 10, 2012
Messages
27
Can you guys try this: rm /usr/local/etc/smb.conf, then try and start cifs from the UI?

  1. There is no smb.conf, as I stated earlier. But deleted the smb4.conf file.
  2. I re-ran the settings (the little wrenches) under Sharing/CIFS and Services/CIFS.
  3. The CIFS-service still won't start but there is a new smb4.conf, do you want me to post it?
 

ECCfrenaslover

Explorer
Joined
Dec 27, 2013
Messages
89
Go ahead and post it. Someone would be able to help...hopefully
 

marcevan

Patron
Joined
Dec 15, 2013
Messages
432
Mine was auto-started (Was on for 9.2.0, so remained on after upgrading to 9.2.1).

However, I posted a bug on because I cannot browse the episodes in any season folder with a GUI client like media browser. I can see them in windows explorer however.

On console I get this problem:
Code:
Feb 10 12:51:15 freenas smbd[43502]: [2014/02/10 12:51:15.461105,  0] ../source3/param/loadparm.c:3067(lp_set_enum_parm)
Feb 10 12:51:15 freenas smbd[43502]:   WARNING: Ignoring invalid value 'share' for parameter 'security'
Feb 10 12:51:16 freenas smbd[44981]: [2014/02/10 12:51:16.303602,  0] ../source3/param/loadparm.c:3067(lp_set_enum_parm)
Feb 10 12:51:16 freenas smbd[44981]:   WARNING: Ignoring invalid value 'share' for parameter 'security'
Feb 10 12:52:07 freenas smbd[43502]: [2014/02/10 12:52:07.729461,  0] ../source3/smbd/oplock.c:333(oplock_timeout_handler)
Feb 10 12:52:07 freenas smbd[43502]:   Oplock break failed for file Television/Parents/Good Wife, The (2009)/Season 1/The.Good.Wife.S01E17.720p.HDTV.x264.mkv -- replying anyway
 

Ghwomb

Dabbler
Joined
Jan 10, 2012
Messages
27
Go ahead and post it. Someone would be able to help...hopefully

Testparm:
Code:
[root@freenas ~]# testparm | less                                                                                               
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                                                                               
WARNING: Ignoring invalid value 'share' for parameter 'security'                                                                 
Processing section "[homes]"                                                                                                     
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                                                                                                     
Press enter to see a dump of your service definitions    


global:
Code:
workgroup = FAMILJENBERGER                                                                                                 
        server string = FreeNAS Server                                                                                             
        server role = standalone server                                                                                           
        map to guest = Bad Password                                                                                               
        null passwords = Yes                                                                                                       
        obey pam restrictions = Yes                                                                                               
        smb passwd file = /var/etc/private/smbpasswd                                                                               
        private dir = /var/etc/private                                                                                             
        passdb backend = tdbsam:/var/etc/private/passdb.tdb                                                                       
        guest account = guest                                                                                                     
        syslog only = Yes                                                                                                         
        max log size = 10                                                                                                         
        max xmit = 65535                                                                                                           
        deadtime = 15                                                                                                             
        load printers = No                                                                                                         
        printcap name = /dev/null                                                                                                 
        disable spoolss = Yes                                                                                                     
        dns proxy = No                                                                                                             
        pid directory = /var/run/samba                                                                                             
        idmap config * : backend = tdb                                                                                             
        force user = guest                                                                                                         
        force group = guest                                                                                                       
        create mask = 0666                                                                                                         
        directory mask = 0777                                                                                                     
        ea support = Yes                                                                                                           
        directory name cache size = 0                                                                                             
        store dos attributes = Yes                                                                                                 
        strict locking = No            


homes:
Code:
comment = Home Directories                                                                                                 
        path = /mnt/Spegel/guest                                                                                                   
        valid users = %U                                                                                                           
        read only = No                                                                                                             
                          


FreeNAS:
Code:
comment = FreeNAS                                                                                                         
        path = /mnt/Spegel                                                                                                         
        read only = No                                                                                                             
        inherit acls = Yes                                                                                                         
        guest only = Yes                                                                                                           
        guest ok = Yes                                                                                                             
        hosts allow = 192.168.1.0                                                                                                 
        veto files = /.snap/.windows/.zfs/                                                                                         
        map archive = No                                                                                                           
        map readonly = no                                                                                                         
        browseable = No                                                                                                           
        vfs objects = shadow_copy2, zfsacl, streams_xattr                                                                         
        nfs4:chown = yes                                                                                                           
        nfs4:acedup = merge                                                                                                       
        nfs4:mode = special                                                                                                       
        shadow: format = auto-%Y%m%d.%H%M-1y                                                                                       
        shadow: localtime = yes                                                                                                   
        shadow: sort = desc                                                                                                       
        shadow: snapdir = .zfs/snapshot                                                                                           
        recycle:subdir_mode = 0700                                                                                                 
        recycle:directory_mode = 0777                                                                                             
        recycle:touch = yes                                                                                                       
        recycle:versions = yes                                                                                                     
        recycle:keeptree = yes                                                                                                     
        recycle:repository = .recycle/%U
 

marcevan

Patron
Joined
Dec 15, 2013
Messages
432
I posted the same snipet of console output in the bugs forum.

Now is the above all what I need to do (make the changes shown)?
 
J

jkh

Guest
Folks, please don't put the debugging output in the forums - the developers are likely not to see it (not all of our developers read the forums - some never come here at all). Please open bug reports and/or paste the information into existing bug reports if they're relevant. It won't get lost that way! Thanks.
 

thewiep

Dabbler
Joined
Jun 12, 2011
Messages
31
I also experienced that CIFS couldn't be started anymore.
It seems to be caused by an encrypted pool I had unlocked when I first enabled CIFS, then rebooted and the disabled/enabled CIFS which caused it not to start anymore.
After unlocking the pool I could start CIFS again.

I enabled "Show console messages in the footer" in Settings - Advanced which allowed me to see
Code:
Failed to create dataset backup/.samba4: cannot create 'backup/.samba4': no such pool 'backup'


don't know if it's related to the above posts but might help someone out.
 

marcevan

Patron
Joined
Dec 15, 2013
Messages
432
I reinstalled 9.2.0 and removed the .samba4.

Because there is no downgrade I had to do a reinstall of fresh 9.2.0 and recreate my plugins, jails, sharings, etc. Only the pool was restored perfectly using GUI import.

Now I checked in /var/local/etc and see my samba config maxes at SMB2.

Reasonably, I rebooted my HTPC in Windows 7 Pro mode and my CIFs connection works fine.
Unreasonably, i rebooted my HPTC in Widnows 8.1 Pro and can see my pool, but not access any dataset or file and get console message galore.

I'm guessing this is due to Win 8.1 having SMB4.x and sending messages too large for SMB2 but if that's the case, Win8 would never work with 9.2.0?
 

Ghwomb

Dabbler
Joined
Jan 10, 2012
Messages
27
I also experienced that CIFS couldn't be started anymore.
It seems to be caused by an encrypted pool I had unlocked when I first enabled CIFS, then rebooted and the disabled/enabled CIFS which caused it not to start anymore.
After unlocking the pool I could start CIFS again.

I enabled "Show console messages in the footer" in Settings - Advanced which allowed me to see
Code:
Failed to create dataset backup/.samba4: cannot create 'backup/.samba4': no such pool 'backup'


don't know if it's related to the above posts but might help someone out.

I have no encrypted pools, and I have never created any encrypted pools.
 
Status
Not open for further replies.
Top