Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > suddenly can't print

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-31-2005   #1 (permalink)
Just Joined!
 
Join Date: Jan 2005
Location: Canada
Posts: 9
suddenly can't print

Linux newbie!
We have a windows 98 client machine trying to print from a paradox 4.0 application behaving very strangely. This morning, could print no problem from windows as well as the pdox application. Now can still print from windows (as in windows test page), but nothing from paradox.
The samba log for this particular user is full of lines like:
[2005/01/31 14:07:00, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/printer.tdb): rec_read bad magic 0x42424242 at offset=42868

I read on another newsgroup that it sometimes works to delete the printer.tdb file, tried that and no help. All the other machines on the network can still print to that printer with Win 98 & Win XP running paradox.

Help!
epicurean is offline  



Reply With Quote
Old 01-31-2005   #2 (permalink)
Linux Engineer
 
adrenaline's Avatar
 
Join Date: Aug 2004
Location: Seattle, Washington
Posts: 1,059
check lpq (in command line) for errors and maybe look at /var/log/messages for clues.

cd /var/log
tail -100 messages or
tail -f messages # and try and print and see if it kicks out an error

the -f switch keeps the file going the -100 show the last 100
__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
adrenaline is offline   Reply With Quote
Old 01-31-2005   #3 (permalink)
Just Joined!
 
Join Date: Jan 2005
Location: Canada
Posts: 9
I tried your suggestion of tail -f messages # and sent another print job from the problem machine.
There doesn't seem to be a particular error message, the message are the same as the ones from the users.log file:

[2005/01/31 16:05:12, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/printer.tdb): rec_free_read bad magic 0x42424242 at offset=43248
[2005/01/31 16:05:12, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/printing/printer.tdb): rec_read bad magic 0x42424242 at offset=42868
epicurean is offline   Reply With Quote
Old 01-31-2005   #4 (permalink)
Linux Engineer
 
adrenaline's Avatar
 
Join Date: Aug 2004
Location: Seattle, Washington
Posts: 1,059
Do a df -h to make sure that there are no full partitions
Then check /var/spool/cups or var/spool/lpd for any stuck print jobs.
Have you checked lpq?
try
/etc/init.d/lpd restart
then cycle your printer and try it again.
This has worked for me in the past.
__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
adrenaline is offline   Reply With Quote
Old 01-31-2005   #5 (permalink)
Just Joined!
 
Join Date: Jan 2005
Location: Canada
Posts: 9
there are no full partitions. drives are 9%, 10% and 0% full. the lpq command states: printer is ready no entries

there doesn't seem to be a problem with print jobs getting stuck in the queue because there is only two machines in the building unable to print (was one win 98 machine, now one win98 & one winXP).

I can still send print jobs to this printer via paradox on other machines, via Windows on all the machines, and with the fedora server itself.

Bizarre to say the least. I will try re-starting the printer after everyone has gone home.
epicurean is offline   Reply With Quote
Old 01-31-2005   #6 (permalink)
Linux Engineer
 
adrenaline's Avatar
 
Join Date: Aug 2004
Location: Seattle, Washington
Posts: 1,059
If some can print and some can't it sounds more like a network issue than a printer issue. Can the winboxes that can't print see the network? Can they see files on the Fedora server? Can they see shares on the other computers. Are you working with a domain or a workgroup? I am sure you have already done this but I have to suggest it anyway. Reboot the windows machines you are having problems with.
I had sort of he same setup as you and I had a win98 machine that would drop the printer inadvertantly somethimes. (My printer is on a RH 9.0 box) I finally upgraded to XP and so far that seems to have done the trick for now. Now that I think about it I have Advanced Win 2k server and the printer just inadvetantly stopped working on that. I am going to have to figure that out too. I am suspecting I might have to reload the driver on mine. (on the Advanced server box)
__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
adrenaline is offline   Reply With Quote
Old 01-31-2005   #7 (permalink)
Just Joined!
 
Join Date: Jan 2005
Location: Canada
Posts: 9
I think we've solved the problem. I uninstalled the printer object on the win98 machine, re-captured the printer port and re-installed the printer object, and it works....for now anyways, however tomorrow is another day!
Thanks for your help!
epicurean is offline   Reply With Quote
Old 01-31-2005   #8 (permalink)
Linux Engineer
 
adrenaline's Avatar
 
Join Date: Aug 2004
Location: Seattle, Washington
Posts: 1,059
Anytime, I think that is the exact same problem with my Advanced Server.

Cheers,
Mike
__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
adrenaline is offline   Reply With Quote
Old 02-02-2005   #9 (permalink)
Just Joined!
 
Join Date: Jan 2005
Location: Canada
Posts: 9
Here's an update..
After thinking that we fixed the problem on Monday, same thing happened on tuesday, with a different networked printer, and three different client machines (2 w/ win98 & 1 xp pro).

Tried deleting printer objects, no help, deleted printer off the server and re-installed, no help..

Today, we decided to kill everything, shut down servers, shut down modem & router, long story short, everything seems to be working again...
epicurean is offline   Reply With Quote
Old 02-02-2005   #10 (permalink)
Linux Engineer
 
adrenaline's Avatar
 
Join Date: Aug 2004
Location: Seattle, Washington
Posts: 1,059
I have tried that at my house didn't fix it for me. I haven't given up I just haven't had the time to research further yet. Thanks for the update.
Mike
__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
adrenaline is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:00 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1