Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

can't load smb4.conf

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

JohnFLi

Member
Joined
Sep 26, 2016
Messages
89
I just upgraded from FreeNAS-9.10.2-U5 to FreeNAS-9.10.2-U6 needless to say, I was surprised about the non-warned reboot (but whatever)
I noticed it was taking a really long time to reboot.
I went and attached a monitor and keyboard to it and on the screen it said (it stopped there)
Code:
Can't load /usr/local/etc/smb4.conf - run testparm to debug it


I hit CTRL+c and it went on its merry way.

what do I need to do to fix that?
 

JohnFLi

Member
Joined
Sep 26, 2016
Messages
89

millst

Member
Joined
Feb 2, 2015
Messages
135
I saw that exact same warning while applying the update, but the boot process didn't get stuck and my shares are working okay.

-tm
 

JohnFLi

Member
Joined
Sep 26, 2016
Messages
89
I saw that exact same warning while applying the update, but the boot process didn't get stuck and my shares are working okay.

-tm

My shares seem to be fine as well. But having the boot process stick, is kinda uncool
 

millst

Member
Joined
Feb 2, 2015
Messages
135
Yep, not sure why mine continued. I'd have to attach a keyboard to press Ctrl+C.

-tm
 

JohnFLi

Member
Joined
Sep 26, 2016
Messages
89
just for fun, I ran testparm as it suggested. THis is the result

Code:
# testparm /usr/local/etc/smb4.conf
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[SharepointTarget]"
Processing section "[VideoStore]"
Processing section "[vRangerBackup]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_DOMAIN_MEMBER

Press enter to see a dump of your service definitions

# Global parameters
[global]
		dos charset = CP437
		realm = MyDomain.LOCAL
		server string = FreeNAS Server
		workgroup = MyDomain
		domain master = No
		lm announce = Yes
		local master = No
		preferred master = No
		nsupdate command = /usr/local/bin/samba-nsupdate -g
		client ldap sasl wrapping = plain
		logging = file
		max log size = 51200
		cache directory = /var/tmp/.cache/.samba
		kernel change notify = No
		panic action = /usr/local/libexec/samba/samba-backtrace
		pid directory = /var/run/samba
		disable spoolss = Yes
		load printers = No
		printcap name = /dev/null
		server min protocol = SMB2
		allow trusted domains = No
		map to guest = Bad User
		obey pam restrictions = Yes
		security = ADS
		server role = member server
		deadtime = 15
		hostname lookups = Yes
		max open files = 1883306
		template shell = /bin/sh
		winbind cache time = 7200
		winbind enum groups = Yes
		winbind enum users = Yes
		winbind offline logon = Yes
		winbind refresh tickets = Yes
		winbind use default domain = Yes
		dns proxy = No
		idmap config myDomain: range = 20000-90000000
		idmap config myDomain: backend = rid
		idmap config *: range = 90000001-100000000
		idmap config * : backend = tdb
		store dos attributes = Yes
		strict locking = No
		directory name cache size = 0
		dos filemode = Yes
		acl allow execute always = Yes
		ea support = Yes
		create mask = 0666
		directory mask = 0777


[SharepointTarget]
		path = /mnt/SharepointBackup
		veto files = /.snapshot/.windows/.mac/.zfs/
		read only = No
		vfs objects = zfs_space zfsacl streams_xattr aio_pthread
		zfsacl:acesort = dontcare
		nfs4:chown = true
		nfs4:acedup = merge
		nfs4:mode = special


[VideoStore]
		path = /mnt/VideoStorage
		veto files = /.snapshot/.windows/.mac/.zfs/
		read only = No
		vfs objects = zfs_space zfsacl streams_xattr aio_pthread
		zfsacl:acesort = dontcare
		nfs4:chown = true
		nfs4:acedup = merge
		nfs4:mode = special


[vRangerBackup]
		path = /mnt/vRangerBackups/vRangerBackup
		veto files = /.snapshot/.windows/.mac/.zfs/
		read only = No
		vfs objects = zfs_space zfsacl streams_xattr aio_pthread
		zfsacl:acesort = dontcare
		nfs4:chown = true
		nfs4:acedup = merge
		nfs4:mode = special
[root@G1PPFreeNas01] ~#




ANything amiss?
 

JohnFLi

Member
Joined
Sep 26, 2016
Messages
89
bug report created
 

DGenerateKane

Member
Joined
Sep 4, 2014
Messages
94
I noticed the same error while booting 11.0-U2 after updating from 11.0-U1. It booted fine however. Not sure if the error was present booting 11.0-U1.
 

1615

Newbie
Joined
Feb 23, 2019
Messages
2
I noticed the same error while booting 11.0-U2 after updating from 11.0-U1. It booted fine however. Not sure if the error was present booting 11.0-U1.
Same Issue here with 11.2-U2, it waits a little but no need to attach keyboard and press CTLR+C
 

mloiterman

Member
Joined
Jan 30, 2013
Messages
45
As another data point, I have the same issue and as far as I can remember, have had it for some time...

For me, it does not impact anything - startup is not stalled and my shares work fine.

Code:
root@host:~ # dmesg -a | grep smb4
Can't load /usr/local/etc/smb4.conf - run testparm to debug it


Code:
root@host:~ # testparm
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[Backup]"
Processing section "[Miscellaneous]"
Processing section "[Movies]"
Processing section "[Music]"
Processing section "[Pictures]"
Processing section "[Share]"
Processing section "[Temp]"
Processing section "[Torrent]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
    deadtime = 15
    disable spoolss = Yes
    dns proxy = No
    dos charset = CP437
    hostname lookups = Yes
    kernel change notify = No
    lm announce = Yes
    load printers = No
    logging = file
    map to guest = Bad User
    max log size = 51200
    max open files = 936254
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    ntlm auth = ntlmv1-permitted
    obey pam restrictions = Yes
    panic action = /usr/local/libexec/samba/samba-backtrace
    printcap name = /dev/null
    security = USER
    server min protocol = NT1
    server role = standalone server
    server string = host NAS Server
    time server = Yes
    unix extensions = No
    idmap config *: range = 90000001-100000000
    idmap config * : backend = tdb
    acl allow execute always = Yes
    create mask = 0666
    directory mask = 0777
    directory name cache size = 0
    dos filemode = Yes
    map archive = No
    map readonly = no
    strict locking = No


[Backup]
    comment = Backup
    path = "/mnt/tank/backup"
    read only = No
    veto files = /.snapshot/.windows/.mac/.zfs/
    vfs objects = zfs_space zfsacl streams_xattr
    zfsacl:acesort = dontcare
    nfs4:chown = true
    nfs4:acedup = merge
    nfs4:mode = special


[Miscellaneous]
    comment = Miscellaneous
    path = "/mnt/tank/misc"
    read only = No
    veto files = /.snapshot/.windows/.mac/.zfs/
    vfs objects = zfs_space zfsacl streams_xattr
    zfsacl:acesort = dontcare
    nfs4:chown = true
    nfs4:acedup = merge
    nfs4:mode = special


[Movies]
    comment = Movies backup
    path = "/mnt/tank/backup/movies"
    read only = No
    veto files = /.snapshot/.windows/.mac/.zfs/
    vfs objects = zfs_space zfsacl streams_xattr
    zfsacl:acesort = dontcare
    nfs4:chown = true
    nfs4:acedup = merge
    nfs4:mode = special


[Music]
    comment = iTunes backup
    path = "/mnt/tank/backup/music"
    read only = No
    veto files = /.snapshot/.windows/.mac/.zfs/
    vfs objects = zfs_space zfsacl streams_xattr
    zfsacl:acesort = dontcare
    nfs4:chown = true
    nfs4:acedup = merge
    nfs4:mode = special


[Pictures]
    comment = Pictures backup
    path = "/mnt/tank/backup/pictures"
    read only = No
    veto files = /.snapshot/.windows/.mac/.zfs/
    vfs objects = zfs_space zfsacl streams_xattr
    zfsacl:acesort = dontcare
    nfs4:chown = true
    nfs4:acedup = merge
    nfs4:mode = special


[Share]
    comment = Media share
    path = "/mnt/tank/share"
    read only = No
    veto files = /.snapshot/.windows/.mac/.zfs/
    vfs objects = zfs_space zfsacl streams_xattr
    zfsacl:acesort = dontcare
    nfs4:chown = true
    nfs4:acedup = merge
    nfs4:mode = special


[Temp]
    comment = Temporary media storage
    path = "/mnt/tank/temp"
    read only = No
    veto files = /.snapshot/.windows/.mac/.zfs/
    vfs objects = zfs_space zfsacl streams_xattr
    zfsacl:acesort = dontcare
    nfs4:chown = true
    nfs4:acedup = merge
    nfs4:mode = special


[Torrent]
    comment = Temporary Torrent storage
    path = "/mnt/tank/torrent"
    read only = No
    veto files = /.snapshot/.windows/.mac/.zfs/
    vfs objects = zfs_space zfsacl streams_xattr
    zfsacl:acesort = dontcare
    nfs4:chown = true
    nfs4:acedup = merge
    nfs4:mode = special
 

Ender117

Member
Joined
Aug 20, 2018
Messages
219
I am having the same problem, booting got hanged up by "Can't load /usr/local/etc/smb4.conf - run testparm to debug it", had to ctrl+c to finish, but after boot all smb shares seem to work just fine. Has your problem been solved?
 
Last edited:
Top