[cups.bugs] [HIGH] STR #3186: Clients are not able to use the server's printers
Margaret Doll
margaret_Doll at brown.edu
Wed May 6 13:01:29 PDT 2009
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
I have been using RedHat systems for print servers for a long time, but the
new cups program is not working for me.
I am unable to get my new RedHat system to share its printers with other
RedHat systems or with my mac. I have 37 print queues defined on the
server for 19 different printers.
Running /usr/lib/cups/backend/snmp does not list any printers on the print
server. Using smpwalk I can see the printer. See below.
The new print server is running 2.6.18-128.1.6.el5 with cups
1.3.7-8.el5_3.4
The clients are running 2.4.21-58.ELsmp and Mac OS 10.5.6
I created the print queues on the new print server using the gui printer
configuration. I believe that is system-config-printer. The server
settings have been set to "Share published printers". I have selinux
disabled. I have iptables and ip6tables set to allow connections on port
631. If I turn off both ip services,
the status of printing across the network does not change.
I am using gc-hp106ps as my test queue on the server. Printing to
gc-hp106ps works from the server.
I have tried the Device URI with and without the :9100 port on the end.
lpstat -l -p gc-hp106ps
<Printer gc-hp106ps>
Info HP Laserjet 9000 with postscript driver
Location GeoChem 106
DeviceURI lpd://128.148.124.126
State Idle
StateTime 1241550146
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
cupsd.conf has been edited to contain.
LogLevel warn
# Administrator user group...
SystemGroup sys root
Port 631
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another
subnet
..)
BrowseAllow ALL
# Added - Changed cupsctl showing sharing=1 - mad 5/2009
#BrowseAddress ALL
BrowseAddress @LOCAL
Allow @LOCAL
# Default authentication type, when authentication is required...
# Changed from "default" - mad 5/2009
DefaultAuthType None
# Restrict access to the server... Added allow entries mad 5/2009
<Location />
Order allow,deny
Allow From *.subnet.edu
Allow From computer1.edu
</Location>
Error messages on the RedHat client:
Network host 'newserver.network.brown.edu' is busy, down, or unreachable;
will retry...
The Mac client reports:
Attempting to connect to server for printer gc-hp106ps
Network host server is busy;
The Mac' s log file contains:
D [05/May/2009:17:38:11 -0400] Get-Printer-Attributes
ipp://localhost/printers/gc_hp101_color2
D [05/May/2009:17:38:11 -0400] cupsdProcessIPPRequest: 17 status_code=0
(successful-ok)
D [05/May/2009:17:38:12 -0400] cupsdReadClient: 15 POST / HTTP/1.1
D [05/May/2009:17:38:12 -0400] cupsdAuthorize: Authorized as using
AuthRef
D [05/May/2009:17:38:12 -0400] Get-Printer-Attributes
ipp://localhost:631/printers/gc_hp106___testing_duplexing
D [05/May/2009:17:38:12 -0400] cupsdProcessIPPRequest: 15 status_code=0
(successful-ok)
D [05/May/2009:17:38:12 -0400] cupsdReadClient: 19 POST / HTTP/1.1
D [05/May/2009:17:38:12 -0400] cupsdAuthorize: No authentication data
provided.
D [05/May/2009:17:38:12 -0400] Get-Printer-Attributes
ipp://localhost:631/printers/gc_hp106
D [05/May/2009:17:38:12 -0400] cupsdProcessIPPRequest: 19 status_code=0
(successful-ok)
tail /var/log/cups/error_log on the server
D [06/May/2009:10:45:19 -0400] Report: jobs-active=0
D [06/May/2009:10:45:19 -0400] Report: printers=102
D [06/May/2009:10:45:19 -0400] Report: printers-implicit=0
D [06/May/2009:10:45:19 -0400] Report: stringpool-string-count=6672
D [06/May/2009:10:45:19 -0400] Report: stringpool-alloc-bytes=31640
D [06/May/2009:10:45:19 -0400] Report: stringpool-total-bytes=149216
D [06/May/2009:10:45:19 -0400] cupsdNetIFUpdate: "lo" = localhost...
D [06/May/2009:10:45:19 -0400] cupsdNetIFUpdate: "eth0" = geops2...
D [06/May/2009:10:45:19 -0400] cupsdNetIFUpdate: "lo" = localhost...
D [06/May/2009:10:45:19 -0400] cupsdNetIFUpdate: "eth0" =
fe80::222:19ff:fe2b:
cupsctl
MaxLogSize=20000
SystemGroup=sys root
DefaultAuthType=None
_debug_logging=0
_remote_admin=0
_remote_any=0
_remote_printers=1
_share_printers=1
_user_cancel_any=1
nmap -sT -p 631 servers.ip.address
to see if port 631 is open
edit vi snmp.conf changing the community name. You should see a printer.
CUPS_DEBUG_LEVEL=2 /usr/lib/cups/backend/snmp 2>&1 | tee snmp.log
ERROR: Unable to scan "ALL"!
DEBUG: 1.003 Scan complete!
[root at geops2 cups]# vi snmp.conf[root at geops2 cups]# CUPS_DEBUG_LEVEL=2
/usr/lib/cups/backend/snmp 2>&1 | tee snmp.log
DEBUG: Scanning for devices in "Geology" via "@LOCAL"...
DEBUG: 0.000 Sending 47 bytes to 128.148.124.255...
DEBUG: SEQUENCE 45 bytes
DEBUG: INTEGER 1 bytes 0
DEBUG: OCTET STRING 7 bytes "Geology"
DEBUG: Get-Request-PDU 31 bytes
DEBUG: INTEGER 4 bytes 1241635345
DEBUG: INTEGER 1 bytes 0
DEBUG: INTEGER 1 bytes 0
DEBUG: SEQUENCE 17 bytes
DEBUG: SEQUENCE 15 bytes
DEBUG: OID 11 bytes .1.3.6.1.2.1.25.3.2.1.2.1
DEBUG: NULL VALUE 0 bytes
DEBUG: 1.000 Scan complete!
snmpwalk -Cc -v 1 -c public gc-hp106.geo.brown.edu | tee snmpwalk.log |
grep hrDeviceType
HOST-RESOURCES-MIB::hrDeviceType.1 = OID:
HOST-RESOURCES-TYPES::hrDevicePrinter
HOST-RESOURCES-MIB::hrDeviceType.2 = OID:
HOST-RESOURCES-TYPES::hrDeviceDiskStorage
[root at geops2 cups]# snmpwalk -Cc -v 1 -c public gc-hp106.geo.brown.edu |
tee snmpwalk.log | grep hrDeviceDescr
HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: HP LaserJet 9000 Series
HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: Hewlett-Packard Dynamic RAM
Disk
Link: http://www.cups.org/str.php?L3186
Version: 1.3.7
More information about the cups-devel
mailing list