OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
1.09k stars 195 forks source link

CUPS network printer yields strange results with IPP everywhere #636

Closed onkobu closed 1 year ago

onkobu commented 1 year ago

I have a server with an USB attached printer (Canon Pixma iP3600) which works fine. A PDF file can be printed with 2 pages on one sheet (A4 in landscape, page 1 left, page 2 right). Command is lp -d Canon_iP3600_series -o number-up=2 multipage.pdf This printer uses the Gutenprint-driver and is exposed over the network.

Different hosts are setup to use this driver's URL with the Generic IPP Everwhere driver. The all show the same broken output. For example the command from above on that host with the same PDF yields a 4-page pattern instead. Upper half of an A4 page (portrait) holds the two pages. The lower half is empty. Switching portrait/ landscape yields a similar result but the two pages in the upper half are turned 90°.

Some print jobs even show a strange multiplication I could not find a pattern for. Without setting any copy parameter printing pages, page-ranges multiplies the entire output, pages 1-2 yields 4 copies, 3 pages yield 9 or more (cancelled the job).

Before the system used raw queues on the server and Gutenprint on all other hosts – security risk. Various combinations of PCL-drivers on the other hosts cause no prints at all. Neither Avahi nor Zeroconf are in use.

zdohnal commented 1 year ago

Hi @onkobu

what CUPS version do you have?

What OSes are on server and on clients?

What application do you use for printing the documents?

It would be great if you followed the steps from the issue template and provided the requested information - from a client and the server for the same job.

Either way the behavior looks like the options are applied twice - once on client and then on server, but the logs will tell us more.

onkobu commented 1 year ago

CUPS 2.4.2-r6 (https://gitweb.gentoo.org/repo/gentoo.git/tree/net-print/cups/cups-2.4.2-r6.ebuild, all clients and the server) Gentoo Linux (all participating hosts) Affected applications: lp (also on the clients) and any other (Gimp, Libreoffice, imagemagick)

How did I setup application of options twice? All I did was adding a printer (through CUPS web UI) on the CUPS server with Gutenprint as a driver. On the clients I added a printer, too but with ipps-URL and IPP Everywhere (CUPS web UI, too).

When creating a new issue there is no issue template. Only the three options are displayed:

The log files (error_log and access_log) don't offer anything useful with standard log levels. There's only a bunch of HTTP.200 codes with no additional attributes. Do you suggest do switch it to debug and try a new job with suspicious options?

zdohnal commented 1 year ago

CUPS 2.4.2-r6 (https://gitweb.gentoo.org/repo/gentoo.git/tree/net-print/cups/cups-2.4.2-r6.ebuild, all clients and the server) Gentoo Linux (all participating hosts) Affected applications: lp (also on the clients) and any other (Gimp, Libreoffice, imagemagick)

How did I setup application of options twice? All I did was adding a printer (through CUPS web UI) on the CUPS server with Gutenprint as a driver. On the clients I added a printer, too but with ipps-URL and IPP Everywhere (CUPS web UI, too).

There might be filters run on the client which apply the options - if I pass PDF on my F38 machine to IPP Everywhere queue, no filters are run, so this might be a difference.

When creating a new issue there is no issue template. Only the three options are displayed:

* bug report

* feature request

* security vulnerability

If you choose bug report, there is a link in ```Additional info```` - https://github.com/OpenPrinting/cups/blob/master/REPORTING_ISSUES.md .

The log files (error_log and access_log) don't offer anything useful with standard log levels. There's only a bunch of HTTP.200 codes with no additional attributes. Do you suggest do switch it to debug and try a new job with suspicious options?

Yes, there are exactly those steps and more in the link :) .

onkobu commented 1 year ago

On the client lpoptions yields

PageSize/Media Size: 3x5 EnvPersonal EnvMonarch Env9 4x6 Env10 EnvA2 Env11 Env12 5x7 5x8 Env14 Statement na_index-4x6-ext_6x8in 6x9 6.5x9.5 7x9 Executive 8x10 8x13 Quarto Letter FanFoldGerman LetterPlus FanFoldGermanLegal Oficio Legal SuperA 9x11 ARCHA LetterExtra LegalExtra 10x11 10x13 10x14 10x15 11x12 11x14 na_fanfold-us_11x14.875in 11x15 Tabloid na_eur-edp_12x14in ARCHB 12x19 SuperB 13x19 AnsiC ARCHC AnsiD ARCHD f na_wide-format_30x42in AnsiE ARCHE AnsiF A10 A9 A8 A7 A6 A5 A5Extra *A4 A4Tab A4Extra A3 iso-a4x3 iso-a4x4 iso-a4x5 iso-a4x6 iso-a4x7 iso-a4x8 iso-a4x9 A3Extra A2 iso-a3x3 iso-a3x4 iso-a3x5 iso-a3x6 iso-a3x7 A1 iso-a2x3 iso-a2x4 iso-a2x5 A0 iso-a1x3 iso-a1x4 iso_2a0_1189x1682mm iso_a0x3_1189x2523mm ISOB10 ISOB9 ISOB8 ISOB7 ISOB6 iso_b6c4_125x324mm ISOB5 ISOB5Extra ISOB4 ISOB3 ISOB2 ISOB1 ISOB0 iso-c10 iso-c9 iso-c8 EnvC7 iso_c7c6_81x162mm EnvC6 EnvC65 EnvC5 EnvC4 EnvC3 EnvC2 EnvC1 EnvC0 EnvDL iso-ra4 iso-sra4 iso-ra3 iso-sra3 iso-ra2 iso-sra2 iso-ra1 iso-sra1 iso-ra0 iso-sra0 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 jis_exec_216x330mm EnvKaku2 EnvKaku3 EnvKaku4 EnvKaku5 EnvKaku7 EnvKaku8 EnvChou4 Postcard EnvYou4 EnvYou6 jpn_chou2_111.1x146mm EnvChou3 EnvChou40 DoublePostcardRotated jpn_kahu_240x322.1mm PRC32K EnvPRC1 EnvPRC2 EnvPRC4 EnvPRC8 prc_6_120x320mm PRC16K EnvPRC7 om_juuro-ku-kai_198x275mm om_pa-kai_267x389mm om_dai-pa-kai_275x395mm roc16k roc8k 3.5x5 om_small-photo EnvItalian om_large-photo Folio FolioSP EnvInvite om_wide-photo Custom.WIDTHxHEIGHT
Duplex/Double-Sided Printing: DuplexNoTumble DuplexTumble *None
InputSlot/Media Source: *Auto Main Alternate LargeCapacity Manual Envelope Disc Photo Hagaki MainRoll AlternateRoll Top Middle Bottom Side Left Right Center Rear ByPassTray Tray1 Tray2 Tray3 Tray4 Tray5 Tray6 Tray7 Tray8 Tray9 Tray10 Tray11 Tray12 Tray13 Tray14 Tray15 Tray16 Tray17 Tray18 Tray19 Tray20 Roll1 Roll2 Roll3 Roll4 Roll5 Roll6 Roll7 Roll8 Roll9 Roll10
Resolution/Resolution: 150dpi 300dpi *600dpi 1200x600dpi 1200dpi 2400x1200dpi 2400dpi
PwgRasterDocumentType/Color Mode: Black_1 SGRay_1 Black_8 SGray_8 Black_16 SGray_16 *Rgb_8 SRgb_8 AdobeRgb_8 Rgb_16 SRgb_16 AdobeRgb_16 Cmyk_8 Cmyk_16
PrintQuality/Printout Quality: *0 3 4 5
OptionDuplex/Duplexer Installed: *False True

On the server

PageSize/Media Size: Letter Legal Executive Postcard CD5Inch CD3Inch CDCustom w216h360 w252h360 w252h360J w144h432 w288h432 w288h432J w324h495 w297h421 w288h576 w360h504 w360h504J w360h576 w432h576 w432h648 c8x10 c8x10J Statement w360h360 w576h864 *A4 A5 A6 A7 A8 A9 A10 w609h864 ISOB5 ISOB6 ISOB7 ISOB8 ISOB9 ISOB10 B5 B6 B7 B8 B9 B10 C5 w354h918 C6 C6_l DL w229h459 w229h459_l C7 C7_l C8 C8_l C9 C9_l C10 C10_l EA5 w612h936 w535h697 w569h731 w348h527 w365h561 w391h612 w442h663 w314h504 w314h513 cw365h561 w283h425 w283h420 w420h567 w340h666 w255h581 w255h581_l w297h666 w277h538 w277h538_l COM10 w315h414 Monarch Monarch_l w288h387 w288h504 w288h512 w253h337 w155h244 w155h257 w283h566 w612h935 LegalIndia Oficio B-Oficio M-Oficio Custom.WIDTHxHEIGHT
ColorModel/Color Model: Gray Black *RGB CMY CMYK KCMY
StpColorPrecision/Color Precision: *Normal Best
MediaType/Media Type: *Plain PhotoPlusGloss2 PhotoPro2 PhotoProPlat PhotoProSemiGloss GlossyPaper PhotopaperMatte Coated InkJetHagaki Hagaki TShirt Envelope PhotopaperOther
InputSlot/Media Source: *AutoSwitch Rear Cassette Continuous
StpQuality/Print Quality: None *Standard
Resolution/Resolution: *601x600dpi 600dpi 602x600dpi 603x600dpi 300dpi 301x300dpi 604x600dpi 605x600dpi 606x600dpi 607x600dpi 608x600dpi 609x600dpi 610x600dpi 611x600dpi
StpiShrinkOutput/Shrink Page If Necessary to Fit Borders: *Shrink Crop Expand
StpCDInnerRadius/CD Hub Size: *None Small
StpInkType/Ink Type: CMYKk *CMYK Gray
StpInkSet/Ink Set: *None
StpFullBleed/Borderless: *False True
StpOrientation/Orientation: *Portrait Landscape UpsideDown Seascape
StpCDOuterDiameter/CD Size (Custom): 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 *329 330 331 332 333 334 335 336 337 338 339 340 Custom.POINTS
StpCDInnerDiameter/CD Hub Size (Custom): 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 *121 Custom.POINTS
StpCDXAdjustment/CD Horizontal Fine Adjustment: -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Custom.POINTS
StpCDYAdjustment/CD Vertical Fine Adjustment: -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Custom.POINTS
StpColorCorrection/Color Correction: *None Accurate Bright Hue Uncorrected Desaturated Threshold Density Raw Predithered
StpBrightness/Brightness: 0 100 200 300 400 500 600 700 800 900 *None 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 Custom.REAL
StpFineBrightness/Brightness Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpContrast/Contrast: 0 100 200 300 400 500 600 700 800 900 *None 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 Custom.REAL
StpFineContrast/Contrast Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpSaturation/Saturation: 0 100 200 300 400 500 600 700 800 900 *None 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900 9000 Custom.REAL
StpFineSaturation/Saturation Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpImageType/Image Type: None Text Graphics *TextGraphics Photo LineArt
StpDensity/Density: 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900 6000 6100 6200 6300 6400 6500 6600 6700 6800 6900 7000 7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 *None Custom.REAL
StpFineDensity/Density Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpDitherAlgorithm/Dither Algorithm: *None EvenTone HybridEvenTone Adaptive Ordered OrderedNew Fast VeryFast Floyd Predithered Segmented SegmentedNew
StpCyanDensity/Cyan Density: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 *None Custom.REAL
StpFineCyanDensity/Cyan Density Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpMagentaDensity/Magenta Density: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 *None Custom.REAL
StpFineMagentaDensity/Magenta Density Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpYellowDensity/Yellow Density: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 *None Custom.REAL
StpFineYellowDensity/Yellow Density Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpBlackDensity/Black Density: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 *None Custom.REAL
StpFineBlackDensity/Black Density Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpGamma/Composite Gamma: 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 *None Custom.REAL
StpFineGamma/Composite Gamma Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpCyanGamma/Cyan: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 *None Custom.REAL
StpFineCyanGamma/Cyan Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpMagentaGamma/Magenta: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 *None Custom.REAL
StpFineMagentaGamma/Magenta Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpYellowGamma/Yellow: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 *None Custom.REAL
StpFineYellowGamma/Yellow Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpBlackGamma/Black: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 *None Custom.REAL
StpFineBlackGamma/Black Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpCyanBalance/Cyan Balance: 0 100 200 300 400 500 600 700 800 900 1000 *None Custom.REAL
StpFineCyanBalance/Cyan Balance Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpMagentaBalance/Magenta Balance: 0 100 200 300 400 500 600 700 800 900 1000 *None Custom.REAL
StpFineMagentaBalance/Magenta Balance Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpYellowBalance/Yellow Balance: 0 100 200 300 400 500 600 700 800 900 1000 *None Custom.REAL
StpFineYellowBalance/Yellow Balance Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpLinearContrast/Linear Contrast Adjustment: *False True
StpLightCyanTrans/Light Cyan Transition: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 *None Custom.REAL
StpFineLightCyanTrans/Light Cyan Transition Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpLightMagentaTrans/Light Magenta Transition: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 *None Custom.REAL
StpFineLightMagentaTrans/Light Magenta Transition Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpLightYellowTrans/Light Yellow Transition: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 *None Custom.REAL
StpFineLightYellowTrans/Light Yellow Transition Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpInkLimit/Ink Limit: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 *None Custom.REAL
StpFineInkLimit/Ink Limit Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpBlackTrans/GCR Transition: 0 100 200 300 400 500 600 700 800 900 1000 *None Custom.REAL
StpFineBlackTrans/GCR Transition Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpGCRLower/GCR Lower Bound: 0 100 200 300 400 500 600 700 800 900 1000 *None Custom.REAL
StpFineGCRLower/GCR Lower Bound Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
StpGCRUpper/GCR Upper Bound: 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 *None Custom.REAL
StpFineGCRUpper/GCR Upper Bound Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95
onkobu commented 1 year ago

Now after each job the printer blinks the error light. Sometimes I have to unplug the power since there is no response to any button. Also between jobs I have to start the printer again on the server (maintenance drop box). When I revert to raw queues on the server and Gutenprint on the clients everything is fine again.

Since this is a waste of resources both ink (always cleaning printing head), paper and time I simply give up. Something needs to be fixed. Either IPP Everywhere on clients and Gutenprint on the server is invalid configuration or the combination of these is broken at least for a Canon IP 3600. (Without any emotion, just the facts.)

And instead of offloading technical tasks to users I suggest to implement proper logging at least of the important technical aspects of print jobs. Makes retrieval more easy.