Sometimes (rarely, very rarely) i spot a <printername>.tdb error that seems to prevent the communication between samba and CUPS. In log i see: [2019/06/26 15:15:49.633876, 0] ../source3/lib/util_tdb.c:316(tdb_log) tdb(/var/cache/samba/printing/sml5010-2.tdb): tdb_rec_read bad magic 0x25 at offset=26096 the only solution i've found, pretty drastic, is: systemctl stop smbd.service; sleep 2; rm /var/cache/samba/printing/sml5010-2.tdb ; systemctl start smbd.service There's some better way to manage this? Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Hai marco, Hm, it looks like something is corrupting that tdb file. Even if you thing this is a rare problem, i suggest report this, because we really dont want tdb file to get corrupted. Few questions. What is the underlaying filesystem? Have you checked on for bad sectors on your disk ( in logs) Which drivers are you using for that Samsung ML-5010ND printer currently? .. how i know it printer name, google, that showed a message of last year ;-) And the output of: dpkg -l | grep tdb And for now that workaround it the only i know/would suggest. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Marco Gaiarin via samba > Verzonden: woensdag 26 juni 2019 18:44 > Aan: samba at lists.samba.org > Onderwerp: [Samba] <printername>.tdb error management... > > > Sometimes (rarely, very rarely) i spot a <printername>.tdb error that > seems to prevent the communication between samba and CUPS. > > In log i see: > > [2019/06/26 15:15:49.633876, 0] > ../source3/lib/util_tdb.c:316(tdb_log) > tdb(/var/cache/samba/printing/sml5010-2.tdb): tdb_rec_read > bad magic 0x25 at offset=26096 > > the only solution i've found, pretty drastic, is: > > systemctl stop smbd.service; sleep 2; rm > /var/cache/samba/printing/sml5010-2.tdb ; systemctl start smbd.service > > > There's some better way to manage this? Thanks. > > -- > dott. Marco Gaiarin GNUPG > Key ID: 240A3D66 > Associazione ``La Nostra Famiglia'' > http://www.lanostrafamiglia.it/ > Polo FVG - Via della Bont?, 7 - 33078 - San Vito al > Tagliamento (PN) > marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 > f +39-0434-842797 > > Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! > http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 > (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA) > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Mandi! L.P.H. van Belle via samba In chel di` si favelave...> Hm, it looks like something is corrupting that tdb file. > Even if you thing this is a rare problem, i suggest report this, because we really dont want tdb file to get corrupted.Ok. I add a note: looking better at logs, i've noted that other printer's .tdb files seems corrupted, but printing work as expected...> Few questions. > What is the underlaying filesystem?ext4.> Have you checked on for bad sectors on your disk ( in logs)It is a proxmox cluster, with storage on a SAN. Sme month ago i've got some ('software') disk trouble, now fixed. So, corruption could be ''historical''.> Which drivers are you using for that Samsung ML-5010ND printer currently?Samsung Postscript.> .. how i know it printer name, google, that showed a message of last year ;-)?!> And the output of: dpkg -l | grep tdbroot at vdmsv1:~# dpkg -l | grep tdb ii libtdb1:amd64 1.3.16+nmu-1.1~deb9 amd64 Trivial Database - shared library ii python-tdb 1.3.16+nmu-1.1~deb9 amd64 Python bindings for TDB ii tdb-tools 1.3.16+nmu-1.1~deb9 amd64 Trivial Database - bundled binaries> And for now that workaround it the only i know/would suggest.Ok. Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)