Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
My office is a windows shop. Our engineering group runs a Samba file & print server on a debian 3.0 box. This machine has run almost non-stop for about 4 years now. We have recently started having problems the printing function. We can see the shares and printer just fine from windows. When viewing the physical printer it says "lp on gcnpd Access denied, unable to connect". We get this as well for some virtual printers that are PDF generators.
I look in /var/spool/samba/log.smdb and see lots of entries like:
Code:
...
[2005/07/28 05:53:57, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/lp.tdb): rec_free_read bad magic 0x42424242 at offset=757908
[2005/07/28 05:53:57, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/lp.tdb): rec_read bad magic 0x0 at offset=28964
[2005/07/28 19:29:21, 0] lib/util_sock.c:get_peer_addr(1150)
getpeername failed. Error was Transport endpoint is not connected
[2005/07/28 19:45:01, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/lp.tdb): rec_free_read bad magic 0x42424242 at offset=757908
[2005/07/28 19:45:01, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/lp.tdb): rec_read bad magic 0x0 at offset=28964
...
If I view my specific log entry I see:
Code:
gcnpd:/var/log/samba# cat log.172.22.0.248
[2005/07/06 14:00:47, 0] smbd/nttrans.c:call_nt_transact_ioctl(2317)
call_nt_transact_ioctl(0x9009c): Currently not implemented.
[2005/07/18 02:34:03, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/lp.tdb): rec_free_read bad magic 0x42424242 at offset=757908
[2005/07/18 02:34:08, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/lp.tdb): rec_free_read bad magic 0x42424242 at offset=757908
I am assuming that "bad magic" is not a good thing. Any ideas where to look?
1 Samba server (Ubuntu 6.06) hosting a Brother HL5150D via samba
1 Linux client (Ubuntu 6.10) printing to Brother HL5150D via samba
1 Windows client (2000 Pro) printing to Brother HL5150D via samba
1 Windows client (XP Home) printing to Brother HL5150D via samba
1 Mac client (OS X 10.4.8) printing to Brother HL5150D via samba
One day, printing from the two windows clients, and the linux client stopped working. Printing via the Mac client (using samba) and the server (local printing) still worked. I futzed around with this issue for months (it's my home network, and I had a workaround.. so it wasn't a hot issue for me) before I found the problem and solution. Looking in the samba log for my linux and windows clients, and found this error message:
[2007/01/07 12:03:13, 1] smbd/service.c:make_connection_snum(693)
HOSTNAME (10.0.0.20) connect to service HL-5150D initially as user USER (uid=1000, gid=1000) (
pid 6034)
[2007/01/07 12:03:13, 0] tdb/tdbutil.c:tdb_log(772)
tdb(/var/cache/samba/printing/HL-5150D.tdb): rec_free_read bad magic 0x42424242 at offset=29516
The first entry showed it wasn't an authentication issue, and the second entry showed it was an error with a particular TDB file. A little poking around on the net told me I should just be able to delete the offending TDB file (in my case, /var/cache/samba/printing/HL-5150D.tdb), and samba would recreate it. I did this, stopped and restarted samba (sudo ./samba restart in /etc/init.d/samba) and suddenly printing via samba from all of my clients worked again. Just thought I would share.
The first entry showed it wasn't an authentication issue, and the second entry showed it was an error with a particular TDB file. A little poking around on the net told me I should just be able to delete the offending TDB file (in my case, /var/cache/samba/printing/HL-5150D.tdb), and samba would recreate it. I did this, stopped and restarted samba (sudo ./samba restart in /etc/init.d/samba) and suddenly printing via samba from all of my clients worked again. Just thought I would share.
Hi!
I know this is a 4 years old post, but it helped me to solve my similar problem, not just similar but the same problem.
So, thanks that you shared this.
My problem was: 2 Star 300 printers worked fine with a samba server, witch installed in 2002. Yes, you see well.
And about one year ago one of them stopped, but the other one stopped last week. And there was no usable printer finally.
I put out the serves winchester, and put in another pc, and browsed in its folder.
And I found in log files similar error messages.
After all I found your reply, and thanks this my problem solved too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.