Bug 18165

Summary: LPRng can't print to RH6.0 lpd print server
Product: [Retired] Red Hat Linux Reporter: Steve Holland <sh1>
Component: LPRngAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dr
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-03 20:01:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Holland 2000-10-03 01:59:01 UTC
When I try to print a job from RH7.0 with LPRng to a print server running
RH6.0 (lpd), the file is queued by LPRng on the 7.0 box, and then removed
from the queue after 3 retrys and around 30 seconds. 

System log messages such as: 
Oct  2 16:35:39 timbuktu (Worker - Remote)[14539]: lp: Remote_job: fstatb
failed - Bad file descriptor
Oct  2 16:35:39 timbuktu (Worker - Remote)[14539]: lp: Remote_job: close(4)
failed - Bad file descriptor

occur during the 30 second delay on the RH 7.0 client. No log messages are
generated on the RH6.0 print server.


lpr -Pmy_printer <filename> 
works (at least sometimes)

Upgrading to the latest lpr RPM for RH6 on the print server did not help.

Comment 1 Bill Nottingham 2000-10-03 14:03:41 UTC
What version of lpr are you running on the server?

Comment 2 Crutcher Dunnavant 2000-10-03 14:16:18 UTC
This is wierd, can you post copies of:
a) Your /etc/printcap file
b) all files in this queue's spool directory (/var/spool/lpd/spoolname/)
matching *.cfg

Comment 3 Steve Holland 2000-10-03 20:00:57 UTC
lpr-0.48-1 is installed on the print server. 

I think I've discovered the real problem, based on your suggestion. 
This problem shows up if I create a remote lpd queue with printtool,
but fail to press the "select" button to pick a filter. 

On the other hand, if I create a queue and press the "select" button,
everything works fine. 

The first case (no selected print filter) works if the target print
server is another RH7 box, but not if it is running the RH6.0 lpd


Comment 4 Crutcher Dunnavant 2000-10-04 18:51:23 UTC
That makes sense, the printfilters are much smarter than they used to be.
I'm gonna close this, make sure you read the release notes about printing, there
is an lpr (and now a LPRng) errata you might want.