Bug 7488
Summary: | Remote printing problems in Red Hat 6.1 | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Tim Herwig <herwigt> |
Component: | lpr | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | alfred.reibenschuh, daniel.deimert, f.j.bosscha, jkopp, skarkkai |
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-07-17 15:16:28 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
Tim Herwig
1999-12-01 17:55:36 UTC
I have noticed the same problem on my site. We are using quit a number op hp with JetDirect interface cards in it. There is although one printer which does work fine, and I was wondering if the firmware of the JetDirect card could possible be the problem. Running on a SCO-box with the hpnpf software is no problem. Could you please indicate if this could be the problem of a fireware level. HP Ethernet Multi-Environment Firmware-revision A.03.03 Works Firmware-revision A.02.01 Works not. F.J. Bosscha I have similar problems with both a RH5.2 and a clean RH6.1 install. In both cases the linux-server has samba 2.0.5a installed and is sharing a printer attached to the network thru a "AXIS NPS 550" box on the same subnet. Things getting really weird if printing to the lp-queue from a Solaris 2.6 or AIX 4.2.1.4 is tried, the lpd refusing any connection attempts and exits. I tried installing the openbsd-lp-1.0 package in the RH5.2 which showed similar troubles, on the RH6.1 it wouldn't even compile. It seems to me that the bug described by debian bug #40842 (http://cgi.debian.org/cgi-bin/bugreport.cgi?bug=40842&archive=yes) still exists in Redhat lpr rpm, even in the newest one in 6.2beta. This bug causes /dev/printer to disappear when lpd can't connect remote lpd, which in turn makes lpr say lpr: connect: Connection refused jobs queued, but cannot start daemon. when printing is attempted. This is apparently fixed in current Debian. When this situation occurs, it can be worked around by fixing the remote lpd, manually recreating /dev/printer as srw------- 1 root root 0 Mar 20 13:56 /dev/printer= and then restarting lpd. This may be the same as bug as numerous others in bugzilla, such as #5540, #9084, #10070, #10076 I can always reproduce this behaviour on 6.1 with lpr-0.50-4 by doing: /etc/rc.d/init.d/lpd restart While doing this, I straced the lpd: select(20, [5 6], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted) --- SIGTERM (Terminated) --- brk(0x8062000) = 0x8062000 time([957282620]) = 957282620 getpid() = 12050 rt_sigaction(SIGPIPE, {0x2ab70bf0, [], 0x4000000}, {SIG_DFL}, 8) = 0 send(3, "<54>May 2 17:50:20 lpd[12050]: "..., 39, 0) = 39 rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0 unlink("/dev/printer") = 0 --- SIGCHLD (Child exited) --- _exit(0) = ? Note the unlink() of /dev/printer. Now I did: root@picard:lpd# /etc/rc.d/init.d/lpd start Starting lpd: [ OK ] root@picard:lpd# ps -axuf |grep lpd root 15124 0.0 0.0 1152 440 ? S 18:54 0:00 lpd -l root 15132 0.0 0.0 1468 812 ? S 18:54 0:00 \_ lpd -l root@picard:lpd# strace -p 15124 wait4(15132, <unfinished ...> root@picard:lpd# strace -p 15132 read(6, The read() never exits. Doing "lpc abort all" kills the child, 15132, and thus the parent can exit the wait4(). A "lpc start all" now makes printing work again. I note that this bug has been open since 1999-12, that is four months! This is fixed in rawhide with the move to LPRng. |