lpoptions -l on remote printer class returns error on localhost

Brian Kroth bpkroth at gmail.com
Tue Jul 14 14:47:59 PDT 2009


Here is essentially the problem: classes presented to a host through browsing
don't return the printer options (like duplex capabilities) by default.
When issued on the command line, the following error occurs:

# lpoptions -h localhost -p cae-170-laser -l
lpoptions: Unable to get PPD file for cae-170-laser: No printer-uri found for class!

In more detail the situation is this:
- A remote print server, printserver, that has a class, cae-170-laser,
  with members, cae-170-laser[12].  The members are not shared (though I
  have tried this with them shared with the same results), so they don't
  show up in the available printers list, but the clients can still
  access them directly if they know about them.

- The clients receive browsing information by BrowsePoll
  printserver.cae.wisc.edu.

- Everyone's running Debian Lenny's cups 1.3.8-1+lenny6.

Now, if I issue the following on client (ie: simulating what a
gui applications is doing), it throws an error:
# lpoptions -h localhost -p cae-170-laser -l
lpoptions: Unable to get PPD file for cae-170-laser: No printer-uri found for class!

However, if I ask the server directly, it works:
# lpoptions -h printserver -p cae-170-laser -l
PageSize/Page Size: *Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
PageRegion/PageRegion: Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
Resolution/Resolution: *default 150x150dpi 300x300dpi 600x600dpi 1200x1200dpi
InputSlot/Media Source: *Default Tray1 Tray2 Tray3 Manual
Duplex/Double-Sided Printing: *DuplexNoTumble DuplexTumble None

# lpoptions -h printserver -p cae-170-laser1 -l
PageSize/Page Size: *Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
PageRegion/PageRegion: Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
Resolution/Resolution: *default 150x150dpi 300x300dpi 600x600dpi 1200x1200dpi
InputSlot/Media Source: *Default Tray1 Tray2 Tray3 Manual
Duplex/Double-Sided Printing: *DuplexNoTumble DuplexTumble None

# lpoptions -h printserver -p cae-170-laser2 -l
PageSize/Page Size: *Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
PageRegion/PageRegion: Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
Resolution/Resolution: *default 150x150dpi 300x300dpi 600x600dpi 1200x1200dpi
InputSlot/Media Source: *Default Tray1 Tray2 Tray3 Manual
Duplex/Double-Sided Printing: *DuplexNoTumble DuplexTumble None

I've worked around the problem for the moment by adding "ServerName
printserver" to /etc/cups/client.conf, but that sort of defeats the
whole point of polling.  Is this a bug?  Is there a fix?

Also, I stumbled across this in my searching, which seemed a little
similar:
https://bugzilla.redhat.com/show_bug.cgi?id=499687

>From the strace I did it seemed to be making an IPP request to
ipp://localhost/printers/cae-170-laser rather than
/classes/cae-170-laser as I would have excpected.  Don't know if that's
anything though.

Thanks,
Brian




More information about the cups-devel mailing list