[winswitch] Unable to print from the GTK2 client

Antoine Martin antoine at nagafix.co.uk
Thu Oct 20 16:47:17 BST 2016


On 20/10/16 21:29, Eric Grammatico wrote:
> Sorry, my mistake...
> 
> Failed again. Here are the logs:
(snip)
> 2016-10-20 16:20:30,600 pycups.print_files('Xerox_Phaser_3250', ['/home/eric/Downloads/2063309e720547981b7a1bdb85b93ff4306c5c78-3.pdf'], 'Untitled1', {'copies': '1', 'sha1': '37ac67174f772c608d1517c0590a639428f39add', 'options': {'job-uuid': 'urn:uuid:7fa60444-cc4f-3f82-6e6e-cfb4f2636ca9', 'time-at-creation': '1476973230', 'job-originating-host-name': '172.19.0.1', 'PageSize': 'A4', 'time-at-processing': '1476973230'}, 'printer': 'Xerox_Phaser_3250', 'title': 'Untitled1'})                                                                              
> 2016-10-20 16:20:30,602 Error: pycups printing on 'Xerox_Phaser_3250' failed for file
> 2016-10-20 16:20:30,603  /home/eric/Downloads/2063309e720547981b7a1bdb85b93ff4306c5c78-3.pdf
> 2016-10-20 16:20:30,603  using cups server connection: <cups.Connection object for /var/run/cups/cups.sock at 0x7fe5280ca930>
> 2016-10-20 16:20:30,603  printer options:
> 2016-10-20 16:20:30,603   sha1                     : 37ac67174f772c608d1517c0590a639428f39add
> 2016-10-20 16:20:30,603   title                    : Untitled1
> 2016-10-20 16:20:30,603   fit-to-page              : True
> 2016-10-20 16:20:30,604   copies                   : 1
> 2016-10-20 16:20:30,604   printer                  : Xerox_Phaser_3250
> 2016-10-20 16:20:30,604   options                  : {'job-uuid': 'urn:uuid:7fa60444-cc4f-3f82-6e6e-cfb4f2636ca9', 'time-at-creation': '1476973230', 'job-originating-host-name': '172.19.0.1', 'PageSize': 'A4', 'time-at-processing': '1476973230'}                                                                                                                             
> 2016-10-20 16:20:30,604 printing /home/eric/Downloads/2063309e720547981b7a1bdb85b93ff4306c5c78-3.pdf, job=0
> 2016-10-20 16:20:30,607 printing failed and returned 0
I've just tried it and it looks like some things have changed since this
was last tested (not so long ago..), sorry about that:
* the SELinux policy needs updating again, until then you may need to
disable SELinux with "setenforce 0"
* Some of the printer options we forwarded were rejected with the
following error found in the cupsd log (use journalctl on Fedora):
"Returning IPP client-error-attributes-or-values-not-supported for
Create-Job (ipp://localhost:631/printers/iP2700-series) from localhost"

So I've just fixed up the whitelisting code and the only safe bits we'll
actually forward by default are: "Resolution" and "PageSize". (this can
be changed)
Hopefully this will not cause cups to reject your jobs anymore.

Tested here without a printer since I don't have one at hand, but the
jobs did get submitted to the virtual offline printer.

New beta Fedora 24 builds posted. (r14232)

Cheers
Antoine



More information about the shifter-users mailing list