Bug 13962 - tdb(/var/samba/lock/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/samba/lock/gencache.tdb: Device busy
Summary: tdb(/var/samba/lock/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /va...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.10.3
Hardware: All Solaris
: P5 minor (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-22 18:33 UTC by Jorge Schrauwen
Modified: 2019-05-23 13:38 UTC (History)
0 users

See Also:


Attachments
truss log from "smbd -i" (1.45 MB, text/plain)
2019-05-22 18:33 UTC, Jorge Schrauwen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jorge Schrauwen 2019-05-22 18:33:00 UTC
Created attachment 15180 [details]
truss log from "smbd -i"

This might be related to #13961 as I just commented out the test mentioned there in waf and everything seemed to build.

But smbd is not starting and failing on illumos/solaris...

tdb(/var/samba/lock/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/samba/lock/gencache.tdb: Device busy

I did a truss log (sort of like strace on linux)

atlas# truss -o smbd_i.log smbd -i
smbd version 4.10.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
lp_load_ex: refreshing parameters
Initialising global parameters
Processing section "[global]"
Processing section "[share]"
Processing section "[documents]"
Processing section "[series]"
Processing section "[downloads]"
Processing section "[movies]"
Processing section "[music]"
Processing section "[anime]"
Processing section "[backups]"
Processing section "[timemachine]"
Processing section "[software]"
Processing section "[sjorge_photography]"
Processing section "[sjorge_targets]"
adding IPC service
interpret_interface: using netmask value 32 from config file on interface net1
added interface net1 ip=10.23.20.100 bcast=10.23.20.255 netmask=255.255.255.255
interpret_interface: Adding interface 2001:470:7ee7:20::100/128
added interface 2001:470:7ee7:2 ip=2001:470:7ee7:20::100 bcast=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff netmask=0.0.0.128
loaded services
INFO: Profiling support unavailable in this build.
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
Failed to fetch domain sid for WORKGROUP
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
tdb(/var/lock/samba/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/lock/samba/gencache.tdb: Device busy
Initialise the svcctl registry keys if needed.
Initialise the eventlog registry keys if needed.
waiting for connections
Allowed connection from 10.23.10.152 (10.23.10.152)
init_oplocks: initializing messages.
Server exit (failed to receive smb request)

The truss log is attached to the bug.
Comment 1 Jorge Schrauwen 2019-05-22 18:33:35 UTC
Looks like someone already hit this on the mailing list too http://lists-archives.com/samba/119029-gencache-tdb-device-busy.html
Comment 2 Jorge Schrauwen 2019-05-23 13:38:31 UTC
This doesn't look related to #13961 as fix provided there, has the same effect as my hacky fix I used.