[Samba] Can use mutexes only with MUTEX_LOCKING or NOLOCK - 4.16.6

Jeremy Allison jra at samba.org
Tue Nov 8 19:42:20 UTC 2022


On Tue, Nov 08, 2022 at 06:32:55PM +0000, Paul Griffith via samba wrote:
>Hello All,
>
>We updated Samba from 4.15.11 to 4.16.6 to try to resolve printing issues with Windows 11 22H2, but we ran into a bigger issue. We are unable to print at this time from all our Windows clients. In debugging I see the following error in the logs. I think it may be linked to our inability to print.
>
> get_printer_list_db: Failed to open printer_list.tdb
>[2022/11/08 13:22:48.239385,  1, pid=2868521, effective(0, 0), real(0, 0)] ../../lib/tdb_wrap/tdb_wrap.c:65(tdb_wrap_log)
>  tdb(/local/samba/lock/printer_list.tdb): tdb_mutex_open_ok[/local/samba/lock/printer_list.tdb]: Can use mutexes only with MUTEX_LOCKING or NOLOCK
>[2022/11/08 13:22:48.239443,  0, pid=2868521, effective(0, 0), real(0, 0)] ../../source3/printing/printer_list.c:58(get_printer_list_db)
>  get_printer_list_db: Failed to open printer_list.tdb
>
>How can I resolve this error?

This can only happen if the printer_list.tdb has
the TDB_FEATURE_FLAG_MUTEX set. It shouldn't (it's
not set on creation).

Try deleting /local/samba/lock/printer_list.tdb
and restarting.



More information about the samba mailing list