[Announce] Samba 4.3.1 Available for Download

Jeremy Allison jra at samba.org
Fri Oct 23 19:22:44 UTC 2015


On Fri, Oct 23, 2015 at 08:23:39PM +0200, Thomas Bork wrote:
> Am 21.10.2015 um 10:55 schrieb Karolin Seeger:
> 
> >This is the latest stable release of Samba 4.3.
> 
> If starting 4.3.1 I see the following message on my console:
> 
> tdb_mutex_open_ok[/var/lock/samba/gencache_notrans.tdb]: Can use
> mutexes only with MUTEX_LOCKING or NOLOCK
> Failed to open /var/lock/samba/gencache_notrans.tdb
> 
> 1.
> What does it mean?

Hmmm. It's coming from here...

lib/tdb/common/open.c:tdb_mutex_open_ok()

274         if (!(tdb->flags & TDB_MUTEX_LOCKING)) {
275                 TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_mutex_open_ok[%s]: "
276                          "Can use mutexes only with "
277                          "MUTEX_LOCKING or NOLOCK\n",
278                          tdb->name));
279                 return false;
280         }

which is being called from here:

source3/lib/gencache.c:gencache_init()

124         DEBUG(5, ("Opening cache file at %s\n", cache_fname));
125
126         cache_notrans = tdb_wrap_open(NULL, cache_fname, 0,
127                                       TDB_CLEAR_IF_FIRST|
128                                       TDB_INCOMPATIBLE_HASH|
129                                       TDB_SEQNUM|
130                                       TDB_NOSYNC|
131                                       TDB_MUTEX_LOCKING,
132                                       open_flags, 0644);

which looks like TDB_MUTEX_LOCKING is being requested...

> How can I fix it?

Can you try shutting down samba and removing /var/lock/samba/gencache_notrans.tdb
and restarting ?

> Why is the message printed to the console and not to the log files?

Probably log files not initialized yet (still in
startup sequence).



More information about the samba-technical mailing list