After updating to samba 4.24 my print jobs are no longer disappearing from the printing queue on the clients when they are done. Additionally, whenever a client refreshes the printing queue (or even the printer list) I see this: 2026-03-21T23:59:02.956091+01:00 Samba-Server rpcd_spoolss[1831070]: [2026/03/21 23:59:02.953448, 0] source3/printing/printing.c:71(fetch_share_cache_time) 2026-03-21T23:59:02.956158+01:00 Samba-Server rpcd_spoolss[1831070]: fetch_share_cache_time: No timing record found for[My_Printer_Share]! 2026-03-21T23:59:02.956247+01:00 Samba-Server rpcd_spoolss[1831070]: [2026/03/21 23:59:02.953466, 0] source3/printing/printing.c:1273(print_cache_expired) 2026-03-21T23:59:02.956387+01:00 Samba-Server rpcd_spoolss[1831070]: print_cache_expired: Unable to get last scan timing for My_Printer_Share I have checked the tdb files, deleted them so they are automatically re-created but they stay empty. Raising the debug level to 10 shows nothing that is not shown in the default debug level. To me this looks like it is never attempting/managing to actually pull the data from cups. I also tried setting lpq cache time = 0 but that doesn't change anything. No idea how I can do additional troubleshooting or what other info to provide, I can't believe I am the only one seeing this but it looks like it was never reported anywhere before.
This is going to be resolved in this MR: https://gitlab.com/samba-team/samba/-/merge_requests/4462
Thanks! One thing I am not sure about, did the naming also change? In the old tdb that I deleted there were entries called "CACHE/$Printer_name\00" and still the message was logged. I also tried to manually create those with tdbtool (transaction_start, insert CACHE/$Printer_name\00 \00\00\00\00, transaction_commit) but the errors logged are exactly the same? Am I missing something or is there maybe something else that's also broken? I think by creating those entries manually the messages should disappear?
This bug was referenced in samba master: f3b1ce2f372d6d118df9f7fdaaae7e8db7759af9
Created attachment 18942 [details] patch from master for v4-24-test