LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-07-2005, 10:16 AM   #1
fishsponge
Member
 
Registered: Apr 2003
Location: Cambridge, UK
Distribution: Debian/Solaris
Posts: 147

Rep: Reputation: 15
various LPD errors occuring on RH8.0


we have a network here, consisting mainly of RedHat 8.0 machines. We also have a PostScript print plugged into the network called "printer.domain".

All RedHat 8.0 machines have this printer configured as "raw@printer.domain", and this is the only (and the default) printer installed.

All machines can print to the printer with no problems whatsoever, but one machine keeps having problems every few days, and it seems that the only thing that fixes it is a reboot.

The most recent error we have received is as follows:

Code:
job 'username@client+167' transfer to raw@localhost failed
error 'ERROR TRANSFERRING DATA'
error msg: '^B server load too high'
...or something very much like that anyway.

Also, we can successfully stop lpd from running by typing '/etc/init.d/lpd stop' and when we start it up again using the same method it says it started fine, but in actualy fact, the lp daemon is not running and when '/etc/init.d/lpd status' is run, it says:

Code:
lpd is dead but subsys is locked
Does anyone have any idea what is happening here?

I have looked in Google already and all i can find are referenced to name lookups, but putting the following into '/etc/hosts' doesn't make any difference:

Code:
192.168.1.50 printer.domain printer
Any help is massively appreciated!
 
Old 07-07-2005, 10:27 AM   #2
Inhibit
Member
 
Registered: Apr 2004
Distribution: Mandrake, Gentoo, SuSe, JDS
Posts: 53

Rep: Reputation: 15
I'm not sure about the problem entirely, but if you're getting an error reading "transfer to raw@localhost failed" and you don't have "localhost" as an alias for 127.0.0.1 in your /etc/hosts file, it might be causing a problem. Something like:

Code:
127.0.0.1                   localhost.localdomain           localhost
to define localhost should exist at the head of /etc/hosts. Sounds like it might be having trouble transfering the printjob to the local spooler to send out if it really is related to the system's name. Might be something else entirely though.
 
Old 07-07-2005, 10:30 AM   #3
fishsponge
Member
 
Registered: Apr 2003
Location: Cambridge, UK
Distribution: Debian/Solaris
Posts: 147

Original Poster
Rep: Reputation: 15
we do actually have that line in /etc/hosts, but i was only showing you the line i added.

With regards to "raw@localhost", this is probably part of the problem... the default printer is "raw@printer.domain", so it shouldn't even be trying to print to "raw@localhost".

Any ideas?? lol
 
Old 07-07-2005, 10:57 AM   #4
Inhibit
Member
 
Registered: Apr 2004
Distribution: Mandrake, Gentoo, SuSe, JDS
Posts: 53

Rep: Reputation: 15
Heh, knew that'd be too easy . Wish I had actually used RH 8.0. The only other thing that comes to mind is something funky with the target of the printjob. the @localhost makes me think it's printing to the spooler "raw" on the local machine and then that's spooling out to the printer. Could be it's choking somewhere in there (on a tmp file or something).

The lock error usually means there's a file hanging out in "/var/lock/subsys" (or your systems equivalent). Those get removed on boot on some of the Unix systems I've used.

As for the error, if you know which spooler RH8 uses or if someone else does it might help diagnose the problem. One place to check for additional errors would be the /var/log lp or cups logs, and those would depend on what type of spooler it's got. Also, you may be able to run the spooler in a more verbose mode or run it interactively to get better output for a handle on what's happening.
 
Old 07-08-2005, 04:34 AM   #5
fishsponge
Member
 
Registered: Apr 2003
Location: Cambridge, UK
Distribution: Debian/Solaris
Posts: 147

Original Poster
Rep: Reputation: 15
the log entries show the following right up until we rebooted the machine (which did fix the problem temporarily):

Code:
./messages:Jul  7 13:32:12 stg-mkc6 Waiting[846]: lpd: fork() failed - Resource temporarily unavailable
./messages:Jul  7 14:53:41 stg-mkc6 Waiting[846]: lpd: fork() failed - Resource temporarily unavailable
./messages:Jul  7 14:55:11 stg-mkc6 Waiting[846]: lpd: fork() failed - Resource temporarily unavailable
./messages:Jul  7 14:55:11 stg-mkc6 Waiting[846]: lpd: fork() failed - Resource temporarily unavailable
./messages:Jul  7 14:55:22 stg-mkc6 lpd: lpd shutdown succeeded
./messages:Jul  7 14:55:26 stg-mkc6 MAIN[31423]: lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:55:26 stg-mkc6 lpd: 2005-07-07-14:55:26.286 stg-mkc6 lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:55:26 stg-mkc6 lpd: lpd startup succeeded
./messages:Jul  7 14:55:44 stg-mkc6 lpd: lpd shutdown failed
./messages:Jul  7 14:55:44 stg-mkc6 MAIN[31454]: lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:55:44 stg-mkc6 lpd: 2005-07-07-14:55:44.508 stg-mkc6 lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:55:44 stg-mkc6 lpd: lpd startup succeeded
./messages:Jul  7 14:58:57 stg-mkc6 lpd: lpd shutdown failed
./messages:Jul  7 14:58:58 stg-mkc6 MAIN[31552]: lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:58:58 stg-mkc6 lpd: 2005-07-07-14:58:58.004 stg-mkc6 lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:58:58 stg-mkc6 lpd: lpd startup succeeded
./messages:Jul  7 14:59:51 stg-mkc6 lpd: lpd shutdown failed
./messages:Jul  7 14:59:51 stg-mkc6 MAIN[31590]: lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:59:51 stg-mkc6 lpd: 2005-07-07-14:59:51.987 stg-mkc6 lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:59:51 stg-mkc6 lpd: lpd startup succeeded
./messages:Jul  7 14:59:55 stg-mkc6 lpd: lpd shutdown failed
./messages:Jul  7 14:59:57 stg-mkc6 MAIN[31615]: lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:59:57 stg-mkc6 lpd: 2005-07-07-14:59:57.065 stg-mkc6 lpd: main() dofork failed - Resource temporarily unavailable
./messages:Jul  7 14:59:57 stg-mkc6 lpd: lpd startup succeeded
it'd be nice if it said *which* resource is unavailable, wouldn't it! lol
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor problem still occuring rmckayfleming Linux - Hardware 1 10-15-2005 10:04 AM
Odd hardware problem occuring in linux and windows. RoaCh Of DisCor Linux - Hardware 7 04-18-2005 05:59 PM
Re-occuring ATI driver install problem Gamezace Linux - Hardware 7 02-11-2005 12:26 PM
Package dependecy errors when installing KDE 3.1.1 in RH8 kierl Linux - General 23 04-10-2003 01:16 PM
rh8.0 apr-get update errors pk21 Linux - Software 3 12-23-2002 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration