Bug 17785 - Printing to remote (Samba) printer does not work.
Summary: Printing to remote (Samba) printer does not work.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lpr
Version: 6.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Crutcher Dunnavant
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2000-09-22 06:04 UTC by Harry Hart
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2000-09-26 02:29:30 UTC

Attachments (Terms of Use)

Description Harry Hart 2000-09-22 06:04:21 UTC
Configure remote samba printer, using printtool.
Try printing ASCII test page; fails with error message 
"Error printing test page to queue lp0"
"Error reason: lpr: connect: Connection refused"
"jobs queued, but cannot start daemon."

I've tried restarting lpd, manually killing & restarting lpd, uninstalling
and replacing lpr rpm.
I've checked /etc/services to be sure that TCP port 515 is defined for
I've also tried LPRng (from Rawhide).  It fails with a different message
about failed connection.
I've observed this problem when printing to a remote LPD printer, as well.
I'm using this version:   lpr-0.50-4

Any suggestions ?
Thanks - Harry

Comment 1 Harry Hart 2000-09-26 02:29:28 UTC
More info about problem.  Even when printer is connected directly to parallel port, printtool tests don't work (fail with same message), except for "print 
directly to port" test.  When I telnet localhost 515 (or telnet from another machine), I get the following message, followed by an immediate 
"lpd: lp: Malformed from address"
Using lpc, even when 'ps ax' shows two lpd daemons running, 'lpc status' says "no daemon present".  
Basically, the only printing I can do is the printtool direct-to-port test.
However, Windows machines can connect via Samba and print with no problem.

Comment 2 Preston Brown 2000-09-26 20:49:48 UTC
also, maybe you haven't set up /etc/hosts.lpd...in this file you need to list
the remote hosts line-by-line that are allowed to use the printer.

Comment 3 m.bizzarri 2000-10-01 14:37:27 UTC
Ok, I don't know if this is the case, but it seems to me a bug I've seen a
number of time in the
lpd daemon. The problem seems to be in files to be printed in the print queue,
and in a remote printer (lpd) which is not reachable at the time the local lpd
is started. You can verify this to
be the problem since you should see two ldp running. Also, you can't print on
any printer.

To solve this, the solution is to stop the daemon printer, remove all the files
from the spool area (lprm -Pprinter -), and then starts the daemon printer

Note You need to log in before you can comment on or make changes to this bug.