WARNING: failed to start nmbd

Kanky

Dabbler
Joined
Feb 17, 2015
Messages
38
Hi,

I am having trouble with our FreeNAS server. This morning I was getting errors, after what I suspect was a power outtage.

I noticed that SMB was not started. The service would not start. I deleted all of the shares and tried again, but no matter what I do I get the following errors:

Feb 25 12:16:56 FileServer root: /usr/local/etc/rc.d/samba_server: WARNING: failed to start nmbd
Feb 25 12:16:49 FileServer root: /usr/local/etc/rc.d/samba_server: WARNING: failed to start smbd
Feb 25 12:16:49 FileServer root: /usr/local/etc/rc.d/samba_server: WARNING: failed to start winbindd

I have verified the Install and it was fine.

When I try restart Samba via Putty CLI I get:
Error: unable to open database "/data/freenas-v1.db": unable to open database file

Error: unable to open database "/data/freenas-v1.db": unable to open database file
override rw------- root/wheel for /var/tmp/rc.conf.freenas? (y/n [n])

When I run it from within Shell with service samba_server onerestart I get:

Performing sanity check on Samba configuration: OK
winbindd not running? (check /var/run/samba4/winbindd.pid).
smbd not running? (check /var/run/samba4/smbd.pid).
nmbd not running? (check /var/run/samba4/nmbd.pid).
Performing sanity check on Samba configuration: OK
Starting nmbd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start nmbd
Starting smbd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start smbd
Starting winbindd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start winbindd


Is this simply a permission issue? And if so is there anyway to fix it? Thanks!
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Hi,

I am having trouble with our FreeNAS server. This morning I was getting errors, after what I suspect was a power outtage.

I noticed that SMB was not started. The service would not start. I deleted all of the shares and tried again, but no matter what I do I get the following errors:

Feb 25 12:16:56 FileServer root: /usr/local/etc/rc.d/samba_server: WARNING: failed to start nmbd
Feb 25 12:16:49 FileServer root: /usr/local/etc/rc.d/samba_server: WARNING: failed to start smbd
Feb 25 12:16:49 FileServer root: /usr/local/etc/rc.d/samba_server: WARNING: failed to start winbindd

I have verified the Install and it was fine.

When I try restart Samba via CLI I get:
Error: unable to open database "/data/freenas-v1.db": unable to open database file

Error: unable to open database "/data/freenas-v1.db": unable to open database file
override rw------- root/wheel for /var/tmp/rc.conf.freenas? (y/n [n])

Is this simply a permission issue? And if so is there anyway to fix it? Thanks!
Are you running that command service samba_server start as root?
 

Kanky

Dabbler
Joined
Feb 17, 2015
Messages
38
Are you running that command service samba_server start as root?

When I run it as root in Putty I get:

Cannot 'start' samba_server. Set samba_server_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.

root@FileServer[~]# service samba_server onestart

Gives:

Starting nmbd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start nmbd
Starting smbd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start smbd
Starting winbindd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start winbindd

I couple of different threads had mentioned that it could be due to the time being out of sync?

ntpq>Peers shows:

ntpq> peers
remote refid st t when poll reach delay offset jitter
==============================================================================
10.10.10.10 .LOCL. 1 u 7 64 377 0.407 -15685. 7.833
+tom.linocomm.ne 130.149.17.21 2 u 64 64 377 30.890 -4.017 14.124
*haggar.mcl.gg 193.67.79.202 2 u 1 64 377 31.683 -0.316 10.469
+ntp.gnc.am 42.204.179.159 2 u 4 64 377 93.373 0.661 8.841

Does this look like it might be the issue?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
When I run it as root in Putty I get:

Cannot 'start' samba_server. Set samba_server_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.

root@FileServer[~]# service samba_server onestart

Gives:

Starting nmbd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start nmbd
Starting smbd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start smbd
Starting winbindd.
/usr/local/etc/rc.d/samba_server: WARNING: failed to start winbindd

I couple of different threads had mentioned that it could be due to the time being out of sync?

ntpq>Peers shows:

ntpq> peers
remote refid st t when poll reach delay offset jitter
==============================================================================
10.10.10.10 .LOCL. 1 u 7 64 377 0.407 -15685. 7.833
+tom.linocomm.ne 130.149.17.21 2 u 64 64 377 30.890 -4.017 14.124
*haggar.mcl.gg 193.67.79.202 2 u 1 64 377 31.683 -0.316 10.469
+ntp.gnc.am 42.204.179.159 2 u 4 64 377 93.373 0.661 8.841

Does this look like it might be the issue?
No. Samba would start then. Let's try launching smbd in interactive mode. smbd -i -d 5
 

Kanky

Dabbler
Joined
Feb 17, 2015
Messages
38
No. Samba would start then. Let's try launching smbd in interactive mode. smbd -i -d 5

Processing section "[global]"
doing parameter server min protocol = SMB2_02
doing parameter server max protocol = SMB3
doing parameter encrypt passwords = yes
doing parameter dns proxy = no
doing parameter strict locking = no
doing parameter oplocks = yes
doing parameter deadtime = 15
doing parameter max log size = 51200
doing parameter max open files = 941780
doing parameter logging = file
doing parameter load printers = no
doing parameter printing = bsd
doing parameter printcap name = /dev/null
doing parameter disable spoolss = yes
doing parameter getwd cache = yes
doing parameter guest account = nobody
doing parameter map to guest = Bad User
doing parameter obey pam restrictions = yes
doing parameter ntlm auth = no
doing parameter directory name cache size = 0
doing parameter kernel change notify = no
doing parameter panic action = /usr/local/libexec/samba/samba-backtrace
doing parameter nsupdate command = /usr/local/bin/samba-nsupdate -g
doing parameter server string = FreeNAS Server
doing parameter ea support = yes
doing parameter store dos attributes = yes
doing parameter lm announce = yes
doing parameter hostname lookups = yes
doing parameter time server = yes
doing parameter acl allow execute always = true
doing parameter dos filemode = yes
doing parameter multicast dns register = yes
doing parameter domain logons = no
doing parameter local master = yes
doing parameter idmap config *: backend = tdb
doing parameter idmap config *: range = 90000001-100000000
doing parameter server role = standalone
doing parameter netbios name = FILESERVER
doing parameter workgroup = WORKGROUP
doing parameter security = user
doing parameter create mask = 0666
doing parameter directory mask = 0777
doing parameter client ntlmv2 auth = yes
doing parameter dos charset = CP437
doing parameter unix charset = UTF-8
doing parameter log level = 1
pm_process() returned Yes
get_current_groups: user is in 1 groups: 0
directory_create_or_exist_strict: invalid ownership on directory /var/db/samba4/private/msg.sock
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Processing section "[global]"
doing parameter server min protocol = SMB2_02
doing parameter server max protocol = SMB3
doing parameter encrypt passwords = yes
doing parameter dns proxy = no
doing parameter strict locking = no
doing parameter oplocks = yes
doing parameter deadtime = 15
doing parameter max log size = 51200
doing parameter max open files = 941780
doing parameter logging = file
doing parameter load printers = no
doing parameter printing = bsd
doing parameter printcap name = /dev/null
doing parameter disable spoolss = yes
doing parameter getwd cache = yes
doing parameter guest account = nobody
doing parameter map to guest = Bad User
doing parameter obey pam restrictions = yes
doing parameter ntlm auth = no
doing parameter directory name cache size = 0
doing parameter kernel change notify = no
doing parameter panic action = /usr/local/libexec/samba/samba-backtrace
doing parameter nsupdate command = /usr/local/bin/samba-nsupdate -g
doing parameter server string = FreeNAS Server
doing parameter ea support = yes
doing parameter store dos attributes = yes
doing parameter lm announce = yes
doing parameter hostname lookups = yes
doing parameter time server = yes
doing parameter acl allow execute always = true
doing parameter dos filemode = yes
doing parameter multicast dns register = yes
doing parameter domain logons = no
doing parameter local master = yes
doing parameter idmap config *: backend = tdb
doing parameter idmap config *: range = 90000001-100000000
doing parameter server role = standalone
doing parameter netbios name = FILESERVER
doing parameter workgroup = WORKGROUP
doing parameter security = user
doing parameter create mask = 0666
doing parameter directory mask = 0777
doing parameter client ntlmv2 auth = yes
doing parameter dos charset = CP437
doing parameter unix charset = UTF-8
doing parameter log level = 1
pm_process() returned Yes
get_current_groups: user is in 1 groups: 0
directory_create_or_exist_strict: invalid ownership on directory /var/db/samba4/private/msg.sock
What is the output of following:
Code:
stat /var/db/samba4/private/msg.sock
stat /var/db/samba4/private
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
i have the same problem, but i don't understand why i am getting this error.
I have enabled ws-discovery in the network global settings, and have not checked netbios because i don't need it.

I have not checked enabled SMB v1 support under services, smb but i also can't see where to add
parameter server min protocol = SMB2_02

why is it expecting to start nmbd anyway
 
Top