Samba 4 - Error Messages Each Hour

I get the below smbd errors every hour since I went to OpenWRT Stable 19.07.4 and I still get them on 19.07.5.

I have looked around and cannot find a way to fix the errors (if they are actually errors)

Any ideas on what settings I need to chnage?

System log output of each hour SAMBA 4 error:

Thu Dec 17 16:50:34 2020 daemon.err smbd[13333]: [2020/12/17 16:50:34.695488,  0] ../../source3/locking/locking.c:717(remove_share_mode_lease)
Thu Dec 17 16:50:34 2020 daemon.err smbd[13333]:   remove_share_mode_lease: leases_db_del failed: NT_STATUS_OK
Thu Dec 17 16:50:34 2020 daemon.err smbd[13333]: [2020/12/17 16:50:34.706488,  0] ../../source3/locking/locking.c:717(remove_share_mode_lease)
Thu Dec 17 16:50:34 2020 daemon.err smbd[13333]:   remove_share_mode_lease: leases_db_del failed: NT_STATUS_OK
Thu Dec 17 16:50:37 2020 daemon.err smbd[13333]: [2020/12/17 16:50:37.466397,  0] ../../source3/locking/locking.c:717(remove_share_mode_lease)
Thu Dec 17 16:50:37 2020 daemon.err smbd[13333]:   remove_share_mode_lease: leases_db_del failed: NT_STATUS_OK
Thu Dec 17 16:50:38 2020 daemon.err smbd[13333]: [2020/12/17 16:50:38.096934,  0] ../../source3/locking/locking.c:717(remove_share_mode_lease)
Thu Dec 17 16:50:38 2020 daemon.err smbd[13333]:   remove_share_mode_lease: leases_db_del failed: NT_STATUS_OK
Thu Dec 17 16:50:45 2020 daemon.err smbd[13333]: [2020/12/17 16:50:45.342826,  0] ../../source3/locking/locking.c:717(remove_share_mode_lease)
Thu Dec 17 16:50:45 2020 daemon.err smbd[13333]:   remove_share_mode_lease: leases_db_del failed: NT_STATUS_OK
Thu Dec 17 16:50:50 2020 daemon.err smbd[13333]: [2020/12/17 16:50:50.719765,  0] ../../source3/locking/locking.c:717(remove_share_mode_lease)
Thu Dec 17 16:50:50 2020 daemon.err smbd[13333]:   remove_share_mode_lease: leases_db_del failed: NT_STATUS_OK
Thu Dec 17 16:50:50 2020 daemon.err smbd[13333]: [2020/12/17 16:50:50.721836,  0] ../../source3/locking/locking.c:717(remove_share_mode_lease)
Thu Dec 17 16:50:50 2020 daemon.err smbd[13333]:   remove_share_mode_lease: leases_db_del failed: NT_STATUS_OK

Samba Version 4.11.12
|Model|Linksys WRT3200ACM|
|Architecture|ARMv7 Processor rev 1 (v7l)|
|Firmware Version|OpenWrt 19.07.5 r11257-5090152ae3 / LuCI openwrt-19.07 branch git-20.341.57626-51f55b5|
|Kernel Version|4.14.209|

Samba4 - Config

config samba
	option charset 'UTF-8'
	option homes '0'
	option name 'Router1'
	option description 'Router1'
	option workgroup 'RouterHome'
	option interface 'lan'

config sambashare
	option name 'WRT3200ACM_4TB_HDD'
	option path '/mnt/sda1'
	option read_only 'no'
	option guest_ok 'yes'
	option create_mask '0777'
	option dir_mask '0777'

config sambashare
	option name 'WRT3200ACM_64GB_USB'
	option path '/mnt/sdb1'
	option read_only 'no'
	option guest_ok 'yes'
	option create_mask '0777'
	option dir_mask '0777'

Content of the file '/etc/samba/smb.conf.template' :

 [global]
	netbios name = |NAME| 
	interfaces = |INTERFACES|
	server string = |DESCRIPTION|
	unix charset = |CHARSET|
	deadtime = 15
	enable core files = no
	security = auto
	invalid users = root
	map to guest = Bad User
	null passwords = yes
	passdb backend = smbpasswd
	socket options = IPTOS_LOWDELAY TCP_NODELAY
	load printers = No
	printcap name = /dev/null
	disable spoolss = yes
	printing = bsd
	mdns name = mdns
	local master = yes				  
	preferred master = yes					  
	delete veto files = yes

This is a minor log error bug and was fixed in 4.11.14

PS: This reminds me that i need to update the stable 19.07.x branch asap :slight_smile:

@Andy2244

Thanks for the confirmation.

I'm wondering why Stable 19.07.5 does not have the updated Samba 4 i.e. 4.11.14. I suppose this may be the normal situation since they want the Stable image to stay Stable. Correct?

I will just need to wait for the next Stable image to be put out and hopefully this minor issue will be solved.

Nope, i was just busy in RL and mainly updated the snapshot builds. I have setup a new PR for samba-4.11.17 on stable, which should be merged "soon". So just update samba4 via package manager in luci than.

1 Like

Thanks, now I understand the situation.

Thank for your help and work. I will keep checking for a newer Samba4 version as you noted.

Samba Version 4.11.17 was in my updates in the GUI today so upgraded with no errors. I expect, that as you mentioned, it will fix my issue.

It has been 24 hours after the upgrade to Samba Version 4.11.17 and the issue has not re-appeared so I would say the issue is fixed for me.

@Andy2244 - Thanks for the assistance.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.