LoadBalanced CUPS

Ralf Schade catalysm at gmx.de
Wed Nov 10 13:12:58 PST 2010


Hi all again ;)

Another simple problem (I hope)
I have to CUPS-Servers, 10.0.0.1 and 10.0.0.2, both 1.3.11 on RHEL5

A service address to be independent for such reasons, don't ask, I'll 
have to do it :-(
The address is 10.0.0.100, which is on one of the cups (Clustering)

On each CUPSD.CONF the following lines:
BrowsePoll 10.0.0.1:631
BrowsePoll 10.0.0.2:631
BrowseRelay 10.0.0.100 @LOCAL

Additional on CUPS #1
Listen 10.0.0.1:631
Listen 127.0.0.1:631
Listen 10.0.0.100:631 (when CUPS #1 has service address, otherwise it's 
on CUPS #2)

<Location />
....
Allow from 10.0.0.0/24
....
</Location>
printers.conf on each CUPS-Server are identical, here the TESTPRINTER:
<Printer TESTPRINTER>
Info POSTSCRIPT Generic postscript printer
DeviceURI file:/dev/null <-- This is right! Have an own filter for that ;)
State Idle
StateTime 1288330191
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>


Now, when I try to print from a remote system via another CUPS
(with DeviceUri: ipp://10.0.0.100:631/printers/TESTPRINTER?waitjob=false)

I get the following errors in cups.error_log:
D [10/Nov/2010:21:50:49 +0100] cupsdAcceptClient: 16 from 10.0.0.150:631 
(IPv4)
D [10/Nov/2010:21:50:49 +0100] cupsdReadClient: 16 GET 
/printers/TESTPRINTER?waitjob=false.ppd HTTP/1.1
<- Where the heck comes the ".ppd" from??? ->
D [10/Nov/2010:21:50:49 +0100] cupsdAuthorize: No authentication data 
provided.
D [10/Nov/2010:21:50:49 +0100] cupsdSendError: 16 code=404 (Not Found)
D [10/Nov/2010:21:50:49 +0100] cupsdCloseClient: 16
D [10/Nov/2010:21:50:49 +0100] cupsdAcceptClient: 16 from 
10.2.48.150:631 (IPv4)
D [10/Nov/2010:21:50:49 +0100] cupsdReadClient: 16 POST 
/printers/TESTPRINTER?waitjob=false HTTP/1.1
D [10/Nov/2010:21:50:49 +0100] cupsdAuthorize: No authentication data 
provided.
D [10/Nov/2010:21:50:49 +0100] Get-Printer-Attributes 
ipp://10.0.0.100:631/printers/TESTPRINTER?waitjob=false
D [10/Nov/2010:21:50:49 +0100] Get-Printer-Attributes 
client-error-not-found: The printer or class was not found.
D [10/Nov/2010:21:50:49 +0100] cupsdProcessIPPRequest: 16 
status_code=406 (client-error-not-found)

Have I missed something? Anyone a suggestion? ;-)

Your's
Ralf




More information about the cups mailing list