cups
cups copied to clipboard
Can't add Canon ipp printer after cups version 2.4.6
Before you write the report Read the REPORTING_ISSUES.md file in the main repository and prepare data mentioned there which looks relevant to you issue.
Describe the bug Can't add Canon ipp printer after cups version 2.4.6. Tested with all ubuntu versions one by one from 22.04 to 24.04. Mantic is the last one that works. I use Fedora 40 as the daily driver which also does not work.
To Reproduce
hannu@hannu-Standard-PC-Q35-ICH9-2009:~$ lpadmin -p canon -v ipp://192.168.20.7/ipp/print -E -m everywhere
lpadmin: Unable to create PPD: No IPP attributes.
- with cups 2.4.7 and ubuntu
- same behaviour with Fedora 40 cups-2.4.10-3.fc40.x86_64
Expected behavior Printer was added
Screenshots If applicable, add screenshots to help explain your problem.
System Information:
- OS and its version: Ubuntu 24.04, Fedora 40
- CUPS version 2.4.7, 2.7.10
Additional context I tested with ipptool. this does not work even on older cups versions, however the printer can be added and works when adding with lpadmin and manually changing the driver to generic IPP driver via Gnome printer settings on older versions.
ipptool
ipptool -tv ipp://192.168.20.7/ get-printer-attributes.test
"get-printer-attributes.test":
Get-Printer-Attributes:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri (uri) = ipp://192.168.20.7:631/
requested-attributes (keyword) = all
Get printer attributes using get-printer-attributes [FAIL]
RECEIVED: 0 bytes in response
status-code = server-error-internal-error (Unable to read response.)
IPP request failed with status server-error-internal-error (Unable to read response.)
I captured traffic with wireshark during the above command. Printer responds and gives IPP parameters, however the ipptool says it did not get any. I will attach the wireshark capture to this report. Same behaviour with older or newer versions of the tested operating systems and cups versions
** Text representation of the reply from printer, whole capture as an attachment **
- github would not allow wireshrk pcapng files so zipped it
Internet Printing Protocol
[Request In: 5]
[Response Time: 0.014304757 seconds]
version: 2.0
status-code: Successful (successful-ok)
request-id: 20825
operation-attributes-tag
attributes-charset (charset): 'utf-8'
name: attributes-charset
charset value: utf-8
attributes-natural-language (naturalLanguage): 'en-fi'
name: attributes-natural-language
naturalLanguage value: en-fi
printer-attributes-tag
printer-uri-supported (1setOf uri): 'ipp://192.168.20.7:631/ipp/print','ipp://192.168.20.7:631/ipp'
name: printer-uri-supported
uri value: ipp://192.168.20.7:631/ipp/print
uri value: ipp://192.168.20.7:631/ipp
uri-security-supported (1setOf keyword): 'none','none'
name: uri-security-supported
keyword value: none
keyword value: none
uri-authentication-supported (1setOf keyword): 'none','none'
name: uri-authentication-supported
keyword value: none
keyword value: none
printer-name (nameWithoutLanguage): 'MF645C'
name: printer-name
nameWithoutLanguage value: MF645C
printer-location (textWithoutLanguage): ''
name: printer-location
textWithoutLanguage value:
printer-info (textWithoutLanguage): 'http://www.canon.com'
name: printer-info
textWithoutLanguage value: http://www.canon.com
printer-more-info (uri): 'http://192.168.20.7:80/airprint.html'
name: printer-more-info
uri value: http://192.168.20.7:80/airprint.html
printer-make-and-model (textWithoutLanguage): 'CNMF645C'
name: printer-make-and-model
textWithoutLanguage value: CNMF645C
printer-state (enum): idle
name: printer-state
printer-state: idle (3)
printer-state-reasons (keyword): 'none'
name: printer-state-reasons
keyword value: none
ipp-versions-supported (1setOf keyword): '2.0','1.1','1.0'
name: ipp-versions-supported
keyword value: 2.0
keyword value: 1.1
keyword value: 1.0
ipp-features-supported (keyword): 'airprint-1.8'
name: ipp-features-supported
keyword value: airprint-1.8
operations-supported (1setOf enum): Print-Job,Validate-Job,Create-Job,Send-Document,Cancel-Job,Get-Job-Attributes,Get-Jobs,Get-Printer-Attributes,Identify-Printer
name: operations-supported
operations-supported: Print-Job (2)
operations-supported: Validate-Job (4)
operations-supported: Create-Job (5)
operations-supported: Send-Document (6)
operations-supported: Cancel-Job (8)
operations-supported: Get-Job-Attributes (9)
operations-supported: Get-Jobs (10)
operations-supported: Get-Printer-Attributes (11)
operations-supported: Identify-Printer (60)
charset-configured (charset): 'utf-8'
name: charset-configured
charset value: utf-8
charset-supported (charset): 'utf-8'
name: charset-supported
charset value: utf-8
color-supported (boolean): true
name: color-supported
boolean value: True
compression-supported (keyword): 'none'
name: compression-supported
keyword value: none
copies-default (integer): 1
name: copies-default
integer value: 1
copies-supported (rangeOfInteger): 1-99
name: copies-supported
rangeOfInteger value: 1-99
document-format-default (mimeMediaType): 'application/octet-stream'
name: document-format-default
mimeMediaType value: application/octet-stream
document-format-supported (1setOf mimeMediaType): 'application/octet-stream','image/urf','image/pwg-raster','image/jpeg','application/pdf'
name: document-format-supported
mimeMediaType value: application/octet-stream
mimeMediaType value: image/urf
mimeMediaType value: image/pwg-raster
mimeMediaType value: image/jpeg
mimeMediaType value: application/pdf
generated-natural-language-supported (naturalLanguage): 'en-fi'
name: generated-natural-language-supported
naturalLanguage value: en-fi
jpeg-features-supported (keyword): 'none'
name: jpeg-features-supported
keyword value: none
jpeg-k-octets-supported (rangeOfInteger): 0-51200
name: jpeg-k-octets-supported
rangeOfInteger value: 0-51200
jpeg-x-dimension-supported (rangeOfInteger): 0-15000
name: jpeg-x-dimension-supported
rangeOfInteger value: 0-15000
jpeg-y-dimension-supported (rangeOfInteger): 1-15000
name: jpeg-y-dimension-supported
rangeOfInteger value: 1-15000
media-default (keyword): 'iso_a4_210x297mm'
name: media-default
keyword value: iso_a4_210x297mm
media-bottom-margin-supported (integer): 500
name: media-bottom-margin-supported
integer value: 500
media-left-margin-supported (integer): 500
name: media-left-margin-supported
integer value: 500
media-right-margin-supported (integer): 500
name: media-right-margin-supported
integer value: 500
media-top-margin-supported (integer): 500
name: media-top-margin-supported
integer value: 500
multiple-document-jobs-supported (boolean): false
name: multiple-document-jobs-supported
boolean value: False
natural-language-configured (naturalLanguage): 'en-fi'
name: natural-language-configured
naturalLanguage value: en-fi
orientation-requested-default (enum): portrait
name: orientation-requested-default
orientation: portrait (3)
orientation-requested-supported (1setOf enum): portrait,landscape,reverse-landscape,reverse-portrait,none
name: orientation-requested-supported
orientation: portrait (3)
orientation: landscape (4)
orientation: reverse-landscape (5)
orientation: reverse-portrait (6)
orientation: none (7)
pdl-override-supported (keyword): 'attempted'
name: pdl-override-supported
keyword value: attempted
printer-device-id (textWithoutLanguage): 'MFG:Canon;MDL:MF645C UFR II;CLS:PRINTER;DES:Canon MF645C UFR II;CID:CA_XPS_OIP;CMD:LIPSLX,CPCA;PESP:V1;'
name: printer-device-id
textWithoutLanguage value: MFG:Canon;MDL:MF645C UFR II;CLS:PRINTER;DES:Canon MF645C UFR II;CID:CA_XPS_OIP;CMD:LIPSLX,CPCA;PESP:V1;
printer-icons (1setOf uri): 'http://192.168.20.7:80/en/media/dev_icon_128x128.png','http://192.168.20.7:80/en/media/dev_icon_512x512.png'
name: printer-icons
uri value: http://192.168.20.7:80/en/media/dev_icon_128x128.png
uri value: http://192.168.20.7:80/en/media/dev_icon_512x512.png
printer-is-accepting-jobs (boolean): true
name: printer-is-accepting-jobs
boolean value: True
print-quality-default (enum): normal
name: print-quality-default
print-quality: normal (4)
print-quality-supported (1setOf enum): draft,normal
name: print-quality-supported
print-quality: draft (3)
print-quality: normal (4)
printer-resolution-default (resolution): 300x300dpi
name: printer-resolution-default
resolution value: 300x300dpi
printer-resolution-supported (resolution): 300x300dpi
name: printer-resolution-supported
resolution value: 300x300dpi
printer-up-time (integer): 56785
name: printer-up-time
integer value: 56785
printer-uuid (uri): 'urn:uuid:6d4ff0ce-6b11-11d8-8020-f4a997cc5b53'
name: printer-uuid
uri value: urn:uuid:6d4ff0ce-6b11-11d8-8020-f4a997cc5b53
queued-job-count (integer): 0
name: queued-job-count
integer value: 0
urf-supported (1setOf keyword): 'ADOBERGB24','CP255','DM1','PQ4','RS300','SRGB24','W8-16','FN3','IS1-4','OB10-40','V1.4'
name: urf-supported
keyword value: ADOBERGB24
keyword value: CP255
keyword value: DM1
keyword value: PQ4
keyword value: RS300
keyword value: SRGB24
keyword value: W8-16
keyword value: FN3
keyword value: IS1-4
keyword value: OB10-40
keyword value: V1.4
pdf-versions-supported (keyword): 'iso-32000-1_2008'
name: pdf-versions-supported
keyword value: iso-32000-1_2008
printer-dns-sd-name (nameWithoutLanguage): 'Canon MF645C'
name: printer-dns-sd-name
nameWithoutLanguage value: Canon MF645C
printer-firmware-name (nameWithoutLanguage): 'Main Controller'
name: printer-firmware-name
nameWithoutLanguage value: Main Controller
printer-firmware-string-version (textWithoutLanguage): '13.01'
name: printer-firmware-string-version
textWithoutLanguage value: 13.01
printer-firmware-version (octetString): '1301\000\000\000\000\000\000\000\000\000\000\000\000'
name: printer-firmware-version
octetString value: 1301
media-col-supported (1setOf keyword): 'media-size','media-bottom-margin','media-left-margin','media-right-margin','media-top-margin','media-type','media-source','media-source-properties','media-auto-dimension'
name: media-col-supported
keyword value: media-size
keyword value: media-bottom-margin
keyword value: media-left-margin
keyword value: media-right-margin
keyword value: media-top-margin
keyword value: media-type
keyword value: media-source
keyword value: media-source-properties
keyword value: media-auto-dimension
collection {x-dimension,y-dimension}
[truncated]job-creation-attributes-supported (1setOf keyword): 'copies','finishings','media','orientation-requested','output-bin','print-quality','printer-resolution','sides','media-col','output-mode','print-color-mode','ipp-attribute-fid
name: job-creation-attributes-supported
keyword value: copies
keyword value: finishings
keyword value: media
keyword value: orientation-requested
keyword value: output-bin
keyword value: print-quality
keyword value: printer-resolution
keyword value: sides
keyword value: media-col
keyword value: output-mode
keyword value: print-color-mode
keyword value: ipp-attribute-fidelity
keyword value: job-name
keyword value: multiple-document-handling
keyword value: page-ranges
[truncated]media-col-default (collection): {media-size{x-dimension,y-dimension},media-bottom-margin,media-left-margin,media-right-margin,media-top-margin,media-type,media-source,media-source-properties{media-source-feed-direction,media-so
name: media-col-default
collection {media-size{x-dimension,y-dimension},media-bottom-margin,media-left-margin,media-right-margin,media-top-margin,media-type,media-source,media-source-properties...}
print-color-mode-default (keyword): 'auto'
name: print-color-mode-default
keyword value: auto
print-color-mode-supported (1setOf keyword): 'auto','color','monochrome','auto-monochrome'
name: print-color-mode-supported
keyword value: auto
keyword value: color
keyword value: monochrome
keyword value: auto-monochrome
printer-geo-location (uri): 'geo:0.000000,0.000000'
name: printer-geo-location
uri value: geo:0.000000,0.000000
page-ranges-supported (boolean): true
name: page-ranges-supported
boolean value: True
multiple-operation-time-out (integer): 60
name: multiple-operation-time-out
integer value: 60
print-scaling-default (keyword): 'auto'
name: print-scaling-default
keyword value: auto
print-scaling-supported (1setOf keyword): 'auto','auto-fit','fill','fit','none'
name: print-scaling-supported
keyword value: auto
keyword value: auto-fit
keyword value: fill
keyword value: fit
keyword value: none
print-content-optimize-default (keyword): 'auto'
name: print-content-optimize-default
keyword value: auto
print-content-optimize-supported (keyword): 'auto'
name: print-content-optimize-supported
keyword value: auto
multiple-document-handling-default (keyword): 'separate-documents-collated-copies'
name: multiple-document-handling-default
keyword value: separate-documents-collated-copies
multiple-document-handling-supported (1setOf keyword): 'separate-documents-collated-copies','separate-documents-uncollated-copies'
name: multiple-document-handling-supported
keyword value: separate-documents-collated-copies
keyword value: separate-documents-uncollated-copies
multiple-operation-time-out-action (keyword): 'abort-job'
name: multiple-operation-time-out-action
keyword value: abort-job
printer-config-change-date-time (dateTime): 2024-08-13T19:32:49.0+0300
name: printer-config-change-date-time
dateTime value: 2024-08-13T19:32:49.0+0300
printer-state-change-date-time (dateTime): 2024-08-14T11:19:14.0+0300
name: printer-state-change-date-time
dateTime value: 2024-08-14T11:19:14.0+0300
printer-state-change-time (integer): 1723623554
name: printer-state-change-time
integer value: 1723623554
document-format-preferred (mimeMediaType): 'application/pdf'
name: document-format-preferred
mimeMediaType value: application/pdf
printer-current-time (dateTime): 2024-08-14T11:19:14.0+0300
name: printer-current-time
dateTime value: 2024-08-14T11:19:14.0+0300
printer-strings-languages-supported (naturalLanguage): 'en'
name: printer-strings-languages-supported
naturalLanguage value: en
printer-strings-uri (no-value)
out-of-band value: no-value (0x13)
finishings-default (enum): none
name: finishings-default
finishings: none (3)
finishings-supported (enum): none
name: finishings-supported
finishings: none (3)
identify-actions-default (keyword): 'flash'
name: identify-actions-default
keyword value: flash
identify-actions-supported (1setOf keyword): 'flash','sound'
name: identify-actions-supported
keyword value: flash
keyword value: sound
[truncated]media-col-ready (collection): {media-size{x-dimension,y-dimension},media-bottom-margin,media-left-margin,media-right-margin,media-top-margin,media-type,media-source,media-source-properties{media-source-feed-direction,media-sour
name: media-col-ready
collection {media-size{x-dimension,y-dimension},media-bottom-margin,media-left-margin,media-right-margin,media-top-margin,media-type,media-source,media-source-properties...}
media-ready (keyword): 'iso_a4_210x297mm'
name: media-ready
keyword value: iso_a4_210x297mm
output-bin-default (keyword): 'face-down'
name: output-bin-default
keyword value: face-down
output-bin-supported (keyword): 'face-down'
name: output-bin-supported
keyword value: face-down
pages-per-minute (integer): 21
name: pages-per-minute
integer value: 21
pages-per-minute-color (integer): 21
name: pages-per-minute-color
integer value: 21
[truncated]printer-input-tray (1setOf octetString): 'type=other;mediafeed=0;mediaxfeed=0;maxcapacity=1;level=0;status=3;name=auto;','type=sheetFeedAutoNonRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=1;level=0;status=3;name=Stack Byp
name: printer-input-tray
octetString value: type=other;mediafeed=0;mediaxfeed=0;maxcapacity=1;level=0;status=3;name=auto;
octetString value: type=sheetFeedAutoNonRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=1;level=0;status=3;name=Stack Bypass;
octetString value: type=sheetFeedAutoRemovableTray;mediafeed=29700;mediaxfeed=21000;maxcapacity=150;level=150;status=0;name=Drawer1;
printer-output-tray (octetString): 'type=unRemovableBin;maxcapacity=100;remaining=-2;status=5;name=Tray1;stackingorder=firstToLast;pagedelivery=faceDown;'
name: printer-output-tray
octetString value: type=unRemovableBin;maxcapacity=100;remaining=-2;status=5;name=Tray1;stackingorder=firstToLast;pagedelivery=faceDown;
printer-supply-info-uri (uri): 'http://192.168.20.7:80/airprint.html'
name: printer-supply-info-uri
uri value: http://192.168.20.7:80/airprint.html
sides-default (keyword): 'one-sided'
name: sides-default
keyword value: one-sided
sides-supported (1setOf keyword): 'one-sided','two-sided-long-edge','two-sided-short-edge'
name: sides-supported
keyword value: one-sided
keyword value: two-sided-long-edge
keyword value: two-sided-short-edge
number-up-default (integer): 1
name: number-up-default
integer value: 1
number-up-supported (1setOf integer): 1,2,4,6,8,9,16
name: number-up-supported
integer value: 1
integer value: 2
integer value: 4
integer value: 6
integer value: 8
integer value: 9
integer value: 16
presentation-direction-number-up-default (keyword): 'toright-tobottom'
name: presentation-direction-number-up-default
keyword value: toright-tobottom
presentation-direction-number-up-supported (1setOf keyword): 'toright-tobottom','toleft-tobottom'
name: presentation-direction-number-up-supported
keyword value: toright-tobottom
keyword value: toleft-tobottom
landscape-orientation-requested-preferred (enum): 4
name: landscape-orientation-requested-preferred
enum value: 4
marker-colors (1setOf nameWithoutLanguage): '#000000','#00FFFF','#FF00FF','#FFFF00'
name: marker-colors
nameWithoutLanguage value: #000000
nameWithoutLanguage value: #00FFFF
nameWithoutLanguage value: #FF00FF
nameWithoutLanguage value: #FFFF00
marker-high-levels (1setOf integer): 100,100,100,100
name: marker-high-levels
integer value: 100
integer value: 100
integer value: 100
integer value: 100
marker-levels (1setOf integer): 78,98,99,96
name: marker-levels
integer value: 78
integer value: 98
integer value: 99
integer value: 96
marker-low-levels (1setOf integer): 7,7,7,7
name: marker-low-levels
integer value: 7
integer value: 7
integer value: 7
integer value: 7
marker-names (1setOf nameWithoutLanguage): 'Canon Cartridge 054 Black Toner','Canon Cartridge 054 Cyan Toner','Canon Cartridge 054 Magenta To','Canon Cartridge 054 Yellow Ton'
name: marker-names
nameWithoutLanguage value: Canon Cartridge 054 Black Toner
nameWithoutLanguage value: Canon Cartridge 054 Cyan Toner
nameWithoutLanguage value: Canon Cartridge 054 Magenta To
nameWithoutLanguage value: Canon Cartridge 054 Yellow Ton
marker-types (1setOf keyword): 'toner','toner','toner','toner'
name: marker-types
keyword value: toner
keyword value: toner
keyword value: toner
keyword value: toner
media-source-supported (1setOf keyword): 'auto','by-pass-tray','tray-1'
name: media-source-supported
keyword value: auto
keyword value: by-pass-tray
keyword value: tray-1
media-type-supported (1setOf keyword): 'stationery','stationery-lightweight','stationery-heavyweight','envelope','labels'
name: media-type-supported
keyword value: stationery
keyword value: stationery-lightweight
keyword value: stationery-heavyweight
keyword value: envelope
keyword value: labels
output-mode-default (keyword): 'auto'
name: output-mode-default
keyword value: auto
output-mode-supported (1setOf keyword): 'auto','monochrome','auto-monochrome','color'
name: output-mode-supported
keyword value: auto
keyword value: monochrome
keyword value: auto-monochrome
keyword value: color
pdf-k-octets-supported (rangeOfInteger): 0-256000
name: pdf-k-octets-supported
rangeOfInteger value: 0-256000
printer-kind (1setOf keyword): 'document','envelope','postcard'
name: printer-kind
keyword value: document
keyword value: envelope
keyword value: postcard
finishings-col-database (collection): {finishing-template}
name: finishings-col-database
collection {finishing-template}
finishings-col-default (collection): {finishing-template}
name: finishings-col-default
collection {finishing-template}
finishings-col-ready (collection): {finishing-template}
name: finishings-col-ready
collection {finishing-template}
finishings-col-supported (keyword): 'finishing-template'
name: finishings-col-supported
keyword value: finishing-template
finishings-ready (enum): none
name: finishings-ready
finishings: none (3)
finishing-template-supported (keyword): 'none'
name: finishing-template-supported
keyword value: none
job-pages-per-set-supported (boolean): true
name: job-pages-per-set-supported
boolean value: True
overrides-supported (1setOf keyword): 'media','media-col','document-numbers','pages'
name: overrides-supported
keyword value: media
keyword value: media-col
keyword value: document-numbers
keyword value: pages
pwg-raster-document-sheet-back (keyword): 'normal'
name: pwg-raster-document-sheet-back
keyword value: normal
pwg-raster-document-resolution-supported (resolution): 300x300dpi
name: pwg-raster-document-resolution-supported
resolution value: 300x300dpi
pwg-raster-document-type-supported (1setOf keyword): 'srgb_8','sgray_8','rgb_8'
name: pwg-raster-document-type-supported
keyword value: srgb_8
keyword value: sgray_8
keyword value: rgb_8
mopria-certified (textWithoutLanguage): '1.3'
name: mopria-certified
textWithoutLanguage value: 1.3
print_wfds (nameWithoutLanguage): 'T'
name: print_wfds
nameWithoutLanguage value: T
end-of-attributes-tag
Also the printer has the latest firmware from Canon. I have had this printer for several years and working with cups
I had bad filter on the original wireshark capture. I did a new one and now I can also see the error canon-part2.zip
- This is the one the printer does not like
Frame 39: 188 bytes on wire (1504 bits), 188 bytes captured (1504 bits) on interface enp59s0u1u1u2, id 0
Ethernet II, Src: 52:54:00:99:eb:51 (52:54:00:99:eb:51), Dst: Canon_cc:5b:53 (f4:a9:97:cc:5b:53)
Internet Protocol Version 4, Src: 192.168.20.171, Dst: 192.168.20.7
Transmission Control Protocol, Src Port: 45114, Dst Port: 631, Seq: 229, Ack: 1, Len: 134
[2 Reassembled TCP Segments (362 bytes): #37(228), #39(134)]
Hypertext Transfer Protocol
POST /ipp/print HTTP/1.1\r\n
Content-Length: 134\r\n
Content-Type: application/ipp\r\n
Date: Wed, 14 Aug 2024 09:04:06 GMT\r\n
Host: 192.168.20.7:631\r\n
User-Agent: CUPS/2.4.7 (Linux 6.8.0-40-generic; x86_64) IPP/2.0\r\n
Expect: 100-continue\r\n
\r\n
[Full request URI: http://192.168.20.7:631/ipp/print]
[HTTP request 1/1]
[Response in frame: 46]
File Data: 134 bytes
Internet Printing Protocol
[Response In: 46]
version: 2.0
operation-id: Get-Printer-Attributes (0x000b)
request-id: 4
operation-attributes-tag
attributes-charset (charset): 'utf-8'
name: attributes-charset
charset value: utf-8
attributes-natural-language (naturalLanguage): 'en-us'
name: attributes-natural-language
naturalLanguage value: en-us
printer-uri (uri): ''
name: printer-uri
uri value:
requested-attributes (keyword): 'media-col-database'
name: requested-attributes
keyword value: media-col-database
end-of-attributes-tag
Hmm, the printer-uri is blank on the second request. Investigating...
The wrong URI was being sent in all of the cases:
[master 4bada6c6c] Fix IPP everywhere printer setup (Issue #1033)
[2.4.x 313c388db] Fix IPP everywhere printer setup (Issue #1033)
Hi, compiled this commit as Fedora RPMs. Now I can add the printer but there is still different problem.
There is an error when adding but i get the printer added
lpadmin -p canon -v ipp://192.168.20.7/ipp/print -E -m everywhere
lpadmin: Unable to create PPD: No IPP attributes.
The printer is added as RAW and I'm able to change the driver to the "Generic IPP Everywhere Printer" (drv:///cupsfilters.drv/pwgrast.ppd). This flow works with the "old" versions which I tested earlier.
However printing test page does not work. Printer cancels the job after receiving it.
Log:
elo 15 12:01:34 hannu-xps cupsd[223334]: REQUEST localhost - - "POST /printers/canon HTTP/1.1" 200 352 Create-Job successful-ok
elo 15 12:01:34 hannu-xps cupsd[223334]: REQUEST localhost - - "POST /printers/canon HTTP/1.1" 200 494 Send-Document successful-ok
elo 15 12:01:49 hannu-xps cupsd[223334]: [Job 7] Print job canceled at printer.
elo 15 12:01:49 hannu-xps cupsd[223334]: canon hannu 7 [15/Aug/2024:12:01:49 +0300] total 1 - localhost Testisivu - -
elo 15 12:01:49 hannu-xps cupsd[223334]: [Job 7] Backend ipp returned status 5 (cancel job)
I'm not sure if I test this properly. First I compiled RPMs from latest fedora package and only adding the new patch. Then I downloaded cups from this excact commit (2.4.x branch) and replaced the Fedora provided tgz with it. Compiled and installed both variants. Might the other cups related other default fedora packages cause issues with this?
I can try to capture what happens if it's helpful. During printing the whole test page is sent via network and wireshark gets very slow and unresponsive when capturing so much traffic. thsark command line works fast but reading the captures with wireshark takes veeeeery long time because of the payload of the page
@michaelrsweet Should I open a new issue or can we continue with this?
I printed a smaller document and captured that. captures.zip
Same as before. Add printer with lpadmin -p canon -v ipp://192.168.20.7/ipp/print -E -m everywhere, change printer type from RAW to Generic IPP, print
I assume that -e everywhere should do the right thing. However with this printer the manually changing the Generic IPP has been the only way to get it working with older versions of cups.
➜ ~ rpm -qa | grep -i -e cups -e ghostscript
python3-cups-2.0.4-1.fc40.x86_64
cups-pk-helper-0.2.7-7.fc40.x86_64
ghostscript-tools-fonts-10.02.1-12.fc40.noarch
ghostscript-tools-printing-10.02.1-12.fc40.noarch
ghostscript-10.02.1-12.fc40.x86_64
libcupsfilters-2.0.0-7.fc40.x86_64
cups-browsed-2.0.0-6.fc40.x86_64
cups-filters-driverless-2.0.0-6.fc40.x86_64
cups-filters-2.0.0-6.fc40.x86_64
bluez-cups-5.77-1.fc40.x86_64
gutenprint-cups-5.3.4-16.fc40.x86_64
cups-libs-313c388dbc023bbcb75d1efed800d0cfc992a6cc-0.fc40.x86_64
cups-client-313c388dbc023bbcb75d1efed800d0cfc992a6cc-0.fc40.x86_64
cups-filesystem-313c388dbc023bbcb75d1efed800d0cfc992a6cc-0.fc40.noarch
cups-313c388dbc023bbcb75d1efed800d0cfc992a6cc-0.fc40.x86_64
cnrdrvcups-ufr2-uk-6.00-1.00.x86_64
cups-ipptool-313c388dbc023bbcb75d1efed800d0cfc992a6cc-0.fc40.x86_64
➜ ~ lpadmin -p canon -v ipp://192.168.20.7/ipp/print -E -m everywhere
lpadmin: Unable to create PPD: No IPP attributes.
➜ ~ avahi-browse -rt _ipp._tcp
+ wlp0s20f3 IPv4 Canon MF645C _ipp._tcp local
= wlp0s20f3 IPv4 Canon MF645C _ipp._tcp local
hostname = [Canoncc5b53.local]
address = [192.168.20.7]
port = [631]
txt = ["mopria-certified=1.3" "print_wfds=T" "rfo=ipp/faxout" "kind=document,envelope,postcard" "URF=ADOBERGB24,CP255,DM1,PQ4,RS300,SRGB24,W8-16,FN3,IS1-4,OB10-40,V1.4" "Fax=T" "Scan=T" "TLS=1.2" "usb_CMD=LIPSLX,CPCA" "UUID=6d4ff0ce-6b11-11d8-8020-f4a997cc5b53" "PaperMax=legal-A4" "Punch=0" "Staple=F" "Sort=F" "Collate=F" "Bind=F" "PaperCustom=T" "Duplex=T" "Copies=T" "Color=T" "TBCP=F" "Binary=F" "Transparent=F" "usb_MDL=MF645C" "usb_MFG=Canon" "adminurl=http://Canoncc5b53.local:80/airprint.html" "pdl=application/octet-stream,image/urf,image/pwg-raster,image/jpeg,application/pdf" "product=(CNMF645C)" "ty=Canon MF645C" "priority=10" "qtotal=1" "note=" "rp=ipp/print" "txtvers=1"]
elo 16 08:47:26 hannu-xps cupsd[5704]: canon: PPD creation failed: No IPP attributes.
elo 16 08:47:26 hannu-xps cupsd[5704]: [Client 28] Returning IPP server-error-device-error for CUPS-Add-Modify-Printer (ipp://localhost:631/print>
elo 16 08:47:26 hannu-xps cupsd[5704]: REQUEST localhost - hannu "POST /admin/ HTTP/1.1" 200 275 CUPS-Add-Modify-Printer server-error-device-error
elo 16 08:47:59 hannu-xps cupsd[5704]: REQUEST localhost - - "POST / HTTP/1.1" 200 345 Create-Printer-Subscriptions successful-ok
elo 16 08:48:01 hannu-xps cupsd[5704]: REQUEST localhost - - "POST / HTTP/1.1" 200 3979414 CUPS-Get-PPDs -
elo 16 08:48:21 hannu-xps cupsd[5704]: REQUEST localhost - - "POST / HTTP/1.1" 200 3979414 CUPS-Get-PPDs -
elo 16 08:48:33 hannu-xps cupsd[5704]: REQUEST localhost - - "POST /admin/ HTTP/1.1" 401 0 - -
elo 16 08:48:33 hannu-xps cupsd[5704]: CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'canon-Gray..' already exists
elo 16 08:48:33 hannu-xps cupsd[5704]: CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'canon-RGB..' already exists
elo 16 08:48:33 hannu-xps cupsd[5704]: REQUEST localhost - root "POST /admin/ HTTP/1.1" 200 220 CUPS-Add-Modify-Printer successful-ok
elo 16 08:49:33 hannu-xps cupsd[5704]: REQUEST localhost - - "POST /printers/canon HTTP/1.1" 200 212 Create-Job successful-ok
elo 16 08:49:33 hannu-xps cupsd[5704]: REQUEST localhost - - "POST /printers/canon HTTP/1.1" 200 8277 Send-Document successful-ok
elo 16 08:49:34 hannu-xps cupsd[5704]: [Job 13] Print job canceled at printer.
elo 16 08:49:34 hannu-xps cupsd[5704]: canon hannu 13 [16/Aug/2024:08:49:34 +0300] total 1 - localhost Nimetön 1 - -
elo 16 08:49:34 hannu-xps cupsd[5704]: [Job 13] Backend ipp returned status 5 (cancel job)
We can continue here…
@hannut another problem is that your printer does not provide "media-col-database" attribute on request (at least wireshark does not show it or ), which is required for IPP Everywhere and AirPrint. This is something which manufacturer has to fix to be AirPrint certified. Please report the issue to Canon - you probably can find some instructions on their webpage.
The reason why it works when you set the driver manually is because the driver contains the generic pregenerated data, which would be generated on the fly if the printer provided all requested data.
@michaelrsweet I was interested how IPP should work if an unsupported attribute is requested from the destination, and found out the attributes which were requested but are not on the destination are ignored and we return successful-ok...
@zdohnal If the Printer ignores one or more attributes or values but is otherwise successful, it is supposed to return 'successful-ok-ignored-or-substituted-attributes' with the ignored attributes or values in the unsupported attributes group in the response (so you know what was ignored). Some printers return 'successful-ok' without the requested attributes (wrong), some return a 'client-error-bad-request' status code (also wrong), but we try to work around those issues by querying the "media-col-database" attribute separately if we don't get it the first time. This was the original issue (the second request had a blank "printer-uri"), but it looks like that printer just doesn't support "media-col-database" at all and the cupsd code needs to tolerate that because the PPD generator can still work with "media-supported" and default margins.
@hannut
OK, so I'm looking at the capture more closely and am seeing errors in the printer's response - look at the media-col-supported attribute, where in the middle of the list of member attribute names we see a collection value that looks like it is for the media-size-supported attribute? There should be an error before the "PPD creation failed" message for Get-Printer-Attributes.
I can reproduce the printing issue.
Same as before. Add printer with
lpadmin -p canon -v ipp://192.168.20.7/ipp/print -E -m everywhere, change printer type from RAW to Generic IPP, printI assume that
-e everywhereshould do the right thing. However with this printer the manually changing the Generic IPP has been the only way to get it working with older versions of cups.
After setting the queue as above:
- on Debian10.3 (with cups 2.2.10 and cups-filter 1.28.x), cups sends pwg-raster-format document to device, and the printing is OK.
- on Ubuntu24.04 (with cups 2.4.7 and cups-filter 2.0), cups sends cups-raster-format document to device, and the device returns error code
client-error-document-format-error.
But I don’t know why does cups send cups-raster-format document to the device on Ubuntu24.04.
@tangyanli is the installed printer on Debian still raw, or does it have a PPD file generated by IPP Everywhere model?
EDIT: scratch that, now I see "After setting as above", so you did the magic by setting existing Generic IPP PPD into existing raw queue, am I correct?
The printer is added as RAW and I'm able to change the driver to the "Generic IPP Everywhere Printer" (drv:///cupsfilters.drv/pwgrast.ppd).
My reproduce steps on Unbunt24.04:
- Add the queue by the command:
#lpadmin -p canon -v deivce-uri -E -m everywhere-> Cups sends the pdf document to device and the printing is OK. - On localhost:631, modify the new added queue "canon" and update its model as "Generic IPP Everywhere Printer (en)"
-> Cups sends the
cups-rasterformant document to device and the printing is NG.
@tangyanli can you provide the PPD files for the printer from Debian and Ubuntu, debug logs from both machines (enable debug logs by cupsctl LogLevel=debug2 and print the job) and network capture when you install the printer and print?
I don't know if you have the same model as @hannut , but his model claims to support image/urf, so raster format should work (Generic IPP Everywhere Printer PPD enforces raster format). If the printer installation does not work with "everywhere" model, the queue stays raw and sending PDF prints ok, then the model supports plain PDF at least.
I am experiencing this same issue with my Canon MF743C running LinuxMint 22 (based upon Ubuntu 24.04) . I also tested when booting live images of both Fedora Cinnamon 40 and LinuxMint Edge (based upon Debian 12) with the same results.
The printer just stopped working where it had been working fine the day before. If there is info I can provide to help identify the issues, direct me. Would providing the output of the same commands that @hannut provided be helpful?
BTW: I can still access this printer from my Android 14 mobile and from a Windows 11 system. Nothing changed with them so it definitely appears to be limited to CUPS.
UPDATE I just did a firmware update and I was successful adding and printing a test page. I also noticed some CUPS updates (I'd been gone a week). So, between the two, it seems to be working now.
I have a similar issue with Canon MF460 printer, but it returns invalid naturalLanguage attribute:
$ ipptool -tv ipps://Canonf47eae.local:443/ get-printer-attributes.test
"/usr/share/cups/ipptool/get-printer-attributes.test":
Get-Printer-Attributes:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri (uri) = ipps://Canonf47eae.local:443/
requested-attributes (1setOf keyword) = all,media-col-database
Get printer attributes using get-printer-attributes [FAIL]
RECEIVED: 373901 bytes in response
status-code = client-error-bad-request ("natural-language-configured": Bad naturalLanguage value "en- " - bad characters (RFC 8011 section 5.1.9).)
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en-
Second problem with it – media-col-database attribute value size is greater than 65536 symbols, what is limit in cupsfilters/ipp.c in cups-filters.
@jekhor have you tried the firmware update for fixing the ipptool error?
Having the same issue with an HP DeskJet 2710. It used to work just fine from Gnome's autodiscovery without even having to add it through CUPS. Now it fails with status successful-ok ((null)):
ipptool -tv ipps://DeskJet2710._ipp._tcp.local get-printer-attributes.test
"/usr/share/cups/ipptool/get-printer-attributes.test":
Get-Printer-Attributes:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri (uri) = ipp://HP38CA840B80FC.local:631/ipp/print
requested-attributes (1setOf keyword) = all,media-col-database
Get printer attributes using get-printer-attributes [FAIL]
RECEIVED: 0 bytes in response
status-code = successful-ok ((null))
IPP request failed with status successful-ok ((null))
Still works fine from under Windows.
@somepaulo have you tried updating the printer firmware? If you did, please attach network traffic capture between your machine and the printer when you enter the ipptool command. Thank you!
@zdohnal Here's the gzipped .pcapng file. The 201 IP is my laptop, the 253 IP is the DeskJet 2710. deskjet2710.pcapng.gz
The packet capture doesn't actually contain any of the actual data, just the TCP headers...
The packet capture doesn't actually contain any of the actual data, just the TCP headers...
I'm new to Wireshark. Is the data missing because of wrong capture configuration or because it's not there to begin with?
I think you need to go out of your way to remove the data, so either there isn't any or maybe there is a permission or networking issue preventing you from getting the actual traffic.
Are you running Wireshark on the machine that is running ipptool? How is the printer connected to the network? Your computer?
Yes, I'm running it on the same machine, my laptop. The printer is connected over WiFi, same as laptop. Running Arch, up to date. Everything used to work just fine before, but I can't really say when things broke since I rarely use the printer. Last time was around Christmas. No major changes to the system though, just regular updates.
I ran Wireshark GUI with sudo from the terminal because it wouldn't see my wireless interface in regular mode and I didn't have time to set my user up for Wireshark. So I imagine permissions are not the issue here.
Furthermore, today the printer wasn't even getting seen, so I rebooted it, after which the laptop saw it again and I even managed to print out a document from LibreOffice, but then it refused to print anything else from any software, even with further reboots. Jobs hang as 'processing'. Back to where I was yesterday.
@somepaulo tbh I use wireshark mostly for investigating the capture, I use tcpdump for capturing the traffic, since IMO it is easier to define you want to listen on all interfaces. The other thing which I recall there can be an issue with wireshark not showing IPPS correctly, so it would be better to pass plain IPP URI to ipptool.
So you can do something like this:
$ sudo tcpdump -w cups.pcap -s0 -i any &
$ ipptool -tv ipp://DeskJet2710._ipp._tcp.local get-printer-attributes.test
(get ipptool results)
$ sudo kill `pidof tcpdump`
And one more thing I recall - try plain IP or hostname of the printer in the URI as well to be sure (e.g. ipp://<ip_or_hostname>/ipp/print) - mDNS support in Linux is flaky and additionally I saw some routers messing with printer's mDNS record, botching it for CUPS.
First, I checked the network:
$ lpinfo -v
file cups-pdf:/
network beh
network http
network lpd
network socket
network https
network ipps
direct hp
network ipp
network smb
network dnssd://DeskJet2710._ipps._tcp.local/?uuid=02a46fab-2cb7-fb8e-926c-969ab5ecb6f9
network ipps://DeskJet2710._ipps._tcp.local/
network socket://192.168.0.253:9100
Then I ran tcpdump as per your suggestions (with IP filter to only get printer related comms):
$ sudo tcpdump -w cups.pcap -s0 -i any host 192.168.0.253 & ipptool -tv ipp://DeskJet2710._ipp._tcp.local get-printer-attributes.test
[3] 78624
tcpdump: WARNING: any: That device doesn't support promiscuous mode
(Promiscuous mode not supported on the "any" device)
tcpdump: listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
ipptool: Bad URI "ipp://DeskJet2710._ipp._tcp.local".
$ sudo tcpdump -w cups.pcap -s0 -i any host 192.168.0.253 & ipptool -tv ipp://192.168.0.253/ipp/print get-printer-attributes.test
[4] 93707
"/usr/share/cups/ipptool/get-printer-attributes.test":
Get-Printer-Attributes:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri (uri) = ipp://192.168.0.253:631/ipp/print
requested-attributes (1setOf keyword) = all,media-col-database
Get printer attributes using get-printer-attributes [tcpdump: WARNING: any: That device doesn't support promiscuous mode
(Promiscuous mode not supported on the "any" device)
FAIL]
RECEIVED: 0 bytes in response
status-code = server-error-internal-error (No request sent.)
IPP request failed with status server-error-internal-error (No request sent.)
tcpdump: listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
$ sudo tcpdump -w cups.pcap -s0 -i wlp2s0 host 192.168.0.253 & ipptool -tv ipp://192.168.0.253/ipp/print get-printer-attributes.test
[5] 94065
tcpdump: listening on wlp2s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
"/usr/share/cups/ipptool/get-printer-attributes.test":
Get-Printer-Attributes:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri (uri) = ipp://192.168.0.253:631/ipp/print
requested-attributes (1setOf keyword) = all,media-col-database
Get printer attributes using get-printer-attributes [FAIL]
RECEIVED: 0 bytes in response
status-code = server-error-internal-error (No request sent.)
IPP request failed with status server-error-internal-error (No request sent.)
Here's the dump file:
cups.pcap.gz
Double checked all printer settings through its own web interface. All comms modes are enabled: IPP/IPPS, socket, etc.
Running ipptool yields more now for whatever reason, but only when using the printer's IP address despite what lpinfo -v shows:
$ ipptool -tv ipps://DeskJet2710._ipp._tcp.local get-printer-attributes.test
ipptool: Bad URI "ipps://DeskJet2710._ipp._tcp.local".
$ ipptool -tv ipps://192.168.0.253/ipp/print get-printer-attributes.test
"/usr/share/cups/ipptool/get-printer-attributes.test":
Get-Printer-Attributes:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri (uri) = ipps://192.168.0.253:631/ipp/print
requested-attributes (1setOf keyword) = all,media-col-database
Get printer attributes using get-printer-attributes [PASS]
RECEIVED: 35078 bytes in response
status-code = successful-ok (successful-ok)
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri-supported (uri) = ipps://192.168.0.253:631/ipp/print
uri-security-supported (keyword) = tls
uri-authentication-supported (keyword) = requesting-user-name
printer-settable-attributes-supported (keyword) = none
printer-wifi-ssid (nameWithoutLanguage) = SKYW4AFU
printer-wifi-state (enum) = 8
printer-name (nameWithoutLanguage) = HP0B80FC
printer-location (textWithoutLanguage) = Desk
printer-more-info (uri) = http://192.168.0.253/#hId-pgAirPrint
printer-info (textWithoutLanguage) = DeskJet2710
printer-dns-sd-name (nameWithoutLanguage) = DeskJet2710
printer-make-and-model (textWithoutLanguage) = HP DeskJet 2700 series
printer-state (enum) = idle
printer-state-reasons (keyword) = none
printer-state-message (textWithoutLanguage) =
ipp-versions-supported (1setOf keyword) = 1.0,1.1,2.0
operations-supported (1setOf enum) = Print-Job,Validate-Job,Cancel-Job,Cancel-My-Jobs,Get-Job-Attributes,Get-Jobs,Get-Printer-Attributes,Create-Job,Send-Document,Set-Printer-Attributes,Print-URI,Send-URI,Close-Job,Identify-Printer
charset-configured (charset) = utf-8
charset-supported (charset) = utf-8
natural-language-configured (naturalLanguage) = en
generated-natural-language-supported (1setOf naturalLanguage) = en,fr,de,es,it,sv,da,no,nl,fi,ja,pt,pl,tr,zh-tw,zh-cn,ru,cs,hu,ko,he,el,ar,bg,hr,ro,sk,sl
document-format-default (mimeMediaType) = application/octet-stream
document-format-supported (1setOf mimeMediaType) = application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster,application/octet-stream
document-format-version-supported (1setOf textWithoutLanguage) = PCL3GUI,PJL,Automatic,JPEG,PCLM,AppleRaster,PWGRaster
printer-is-accepting-jobs (boolean) = true
queued-job-count (integer) = 0
pdl-override-supported (keyword) = attempted
printer-up-time (integer) = 83011
printer-current-time (no-value) = no-value
compression-supported (1setOf keyword) = none,deflate,gzip
color-supported (boolean) = true
job-creation-attributes-supported (1setOf keyword) = copies,finishings,finishings-col,job-pages-per-set,sides,orientation-requested,media,print-quality,printer-resolution,output-bin,media-col,output-mode,print-content-optimize,pclm-source-resolution,print-color-mode,ipp-attribute-fidelity,job-name,page-ranges,multiple-document-handling,job-mandatory-attributes,print-rendering-intent,print-scaling
reference-uri-schemes-supported (1setOf uriScheme) = http,https
hp-outputbins-supported (collection) = {name=2 mode=1 page-delivery=1 physical-fold-unit=false}
printer-device-id (textWithoutLanguage) = MFG:HP;MDL:DeskJet 2700 series;CMD:PCL3GUI,PJL,Automatic,JPEG,PCLM,AppleRaster,PWGRaster,DW-PCL,802.11,DESKJET,DYN;CLS:PRINTER;DES:26K72B;CID:HPDeskjet_P976D;LEDMDIS:USB#FF#CC#00,USB#07#01#02,USB#FF#04#01;SN:CN28GFZ8MP;S:038000C480a00001002c240005ac1400046;Z:05000009000009,12000,17000000000000,181;
printer-uuid (uri) = urn:uuid:02a46fab-2cb7-fb8e-926c-969ab5ecb6f9
landscape-orientation-requested-preferred (enum) = 5
job-constraints-supported (collection) = {resolver-name=fullbleed-sizes media-top-margin=0 media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media=na_executive_7.25x10.5in,na_letter_8.5x11in,na_legal_8.5x14in,na_govt-letter_8x10in,iso_a5_148x210mm,iso_a4_210x297mm,jis_b5_182x257mm,jpn_hagaki_100x148mm,iso_a6_105x148mm,na_index-4x6_4x6in,na_index-5x8_5x8in,na_number-10_4.125x9.5in,iso_dl_110x220mm,iso_c6_114x162mm,jpn_chou3_120x235mm,jpn_chou4_90x205mm,oe_photo-l_3.5x5in,jpn_photo-2l_127x177.8mm,na_5x7_5x7in,iso_b5_176x250mm,om_small-photo_100x150mm}
job-resolvers-supported (collection) = {resolver-name=fullbleed-sizes media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296}
ipp-features-supported (1setOf keyword) = airprint-2.1,ipp-everywhere
which-jobs-supported (1setOf keyword) = completed,not-completed,all
job-ids-supported (boolean) = true
requesting-user-uri-supported (boolean) = true
multiple-operation-time-out-action (keyword) = process-job
printer-geo-location (unknown) = unknown
hp-pc-version-major (integer) = 0
hp-pc-version-minor (integer) = 72
hp-default-duplex-standard (boolean) = false
hp-easycolor-default (keyword) = ec-conservative
hp-print-quality-supported (1setOf collection) = {type=3 imaging-technology=4000 display-string=3000 pq-mode=1 optimal-resolution=300},{type=4 imaging-technology=4005 display-string=3001 pq-mode=2 optimal-resolution=600},{type=5 imaging-technology=4010 display-string=3002 pq-mode=3 optimal-resolution=600}
mopria-certified (textWithoutLanguage) = 2.0
preferred-attributes-supported (boolean) = false
printer-config-change-date-time (no-value) = no-value
printer-config-change-time (integer) = 0
printer-state-change-date-time (no-value) = no-value
printer-state-change-time (integer) = 892
document-password-supported (integer) = 0
printer-kind (1setOf keyword) = document,envelope,photo,postcard
media-supported (1setOf keyword) = na_executive_7.25x10.5in,na_letter_8.5x11in,na_legal_8.5x14in,na_govt-letter_8x10in,iso_a5_148x210mm,iso_a4_210x297mm,jis_b5_182x257mm,jpn_hagaki_100x148mm,iso_a6_105x148mm,na_index-4x6_4x6in,na_index-5x8_5x8in,na_number-10_4.125x9.5in,iso_dl_110x220mm,iso_c6_114x162mm,jpn_chou3_120x235mm,jpn_chou4_90x205mm,oe_photo-l_3.5x5in,jpn_photo-2l_127x177.8mm,na_5x7_5x7in,iso_b5_176x250mm,om_small-photo_100x150mm,custom_min_3.5x5in,custom_max_8.5x14in
media-default (keyword) = iso_a4_210x297mm
media-col-supported (1setOf keyword) = media-type,media-size,media-top-margin,media-left-margin,media-right-margin,media-bottom-margin,media-source,media-size-name
media-col-default (collection) = {media-size={x-dimension=21000 y-dimension=29700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery}
media-col-database (1setOf collection) = {media-size={x-dimension=18415 y-dimension=26670} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=18415 y-dimension=26670} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=18415 y-dimension=26670} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=18415 y-dimension=26670} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=21590 y-dimension=27940} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=21590 y-dimension=27940} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=21590 y-dimension=27940} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=21590 y-dimension=27940} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=21590 y-dimension=35560} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=21590 y-dimension=35560} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=21590 y-dimension=35560} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=21590 y-dimension=35560} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=20320 y-dimension=25400} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=20320 y-dimension=25400} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=20320 y-dimension=25400} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=20320 y-dimension=25400} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=14800 y-dimension=21000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=14800 y-dimension=21000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=14800 y-dimension=21000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=14800 y-dimension=21000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=21000 y-dimension=29700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=21000 y-dimension=29700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=21000 y-dimension=29700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=21000 y-dimension=29700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=18200 y-dimension=25700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=18200 y-dimension=25700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=18200 y-dimension=25700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=18200 y-dimension=25700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=10000 y-dimension=14800} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=10000 y-dimension=14800} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=10000 y-dimension=14800} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=10000 y-dimension=14800} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=10500 y-dimension=14800} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=10500 y-dimension=14800} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=10500 y-dimension=14800} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=10500 y-dimension=14800} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=10160 y-dimension=15240} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=10160 y-dimension=15240} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=10160 y-dimension=15240} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=10160 y-dimension=15240} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=12700 y-dimension=20320} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=12700 y-dimension=20320} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=12700 y-dimension=20320} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=12700 y-dimension=20320} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=10477 y-dimension=24130} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=10477 y-dimension=24130} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=10477 y-dimension=24130} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=10477 y-dimension=24130} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=11000 y-dimension=22000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=11000 y-dimension=22000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=11000 y-dimension=22000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=11000 y-dimension=22000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=11400 y-dimension=16200} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=11400 y-dimension=16200} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=11400 y-dimension=16200} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=11400 y-dimension=16200} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=12000 y-dimension=23500} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=12000 y-dimension=23500} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=12000 y-dimension=23500} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=12000 y-dimension=23500} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=9000 y-dimension=20500} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=9000 y-dimension=20500} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=9000 y-dimension=20500} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=9000 y-dimension=20500} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=8890 y-dimension=12700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=8890 y-dimension=12700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=8890 y-dimension=12700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=8890 y-dimension=12700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=12700 y-dimension=17780} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=12700 y-dimension=17780} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=12700 y-dimension=17780} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=12700 y-dimension=17780} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=12700 y-dimension=17780} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=12700 y-dimension=17780} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=12700 y-dimension=17780} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=12700 y-dimension=17780} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=17600 y-dimension=25000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=17600 y-dimension=25000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=17600 y-dimension=25000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=17600 y-dimension=25000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte},{media-size={x-dimension=10000 y-dimension=15000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery},{media-size={x-dimension=10000 y-dimension=15000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=photographic-glossy},{media-size={x-dimension=10000 y-dimension=15000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-glossy},{media-size={x-dimension=10000 y-dimension=15000} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=com.hp-specialty-matte}
finishings-col-database (no-value) = no-value
media-left-margin-supported (integer) = 296
media-right-margin-supported (integer) = 296
media-top-margin-supported (integer) = 296
media-bottom-margin-supported (integer) = 1270
media-source-supported (keyword) = main
media-type-supported (1setOf keyword) = stationery,photographic-glossy,com.hp-specialty-glossy,com.hp-specialty-matte
media-size-supported (1setOf collection) = {x-dimension=18415 y-dimension=26670},{x-dimension=21590 y-dimension=27940},{x-dimension=21590 y-dimension=35560},{x-dimension=20320 y-dimension=25400},{x-dimension=14800 y-dimension=21000},{x-dimension=21000 y-dimension=29700},{x-dimension=18200 y-dimension=25700},{x-dimension=10000 y-dimension=14800},{x-dimension=10500 y-dimension=14800},{x-dimension=10160 y-dimension=15240},{x-dimension=12700 y-dimension=20320},{x-dimension=10477 y-dimension=24130},{x-dimension=11000 y-dimension=22000},{x-dimension=11400 y-dimension=16200},{x-dimension=12000 y-dimension=23500},{x-dimension=9000 y-dimension=20500},{x-dimension=8890 y-dimension=12700},{x-dimension=12700 y-dimension=17780},{x-dimension=12700 y-dimension=17780},{x-dimension=17600 y-dimension=25000},{x-dimension=10000 y-dimension=15000},{x-dimension=8890-21590 y-dimension=12700-35560}
media-ready (keyword) = iso_a4_210x297mm
media-col-ready (collection) = {media-size={x-dimension=21000 y-dimension=29700} media-top-margin=296 media-bottom-margin=1270 media-left-margin=296 media-right-margin=296 media-source=main media-type=stationery}
finishings-col-ready (no-value) = no-value
finishings-col-supported (keyword) = finishing-template
printer-finisher (octetString) =
printer-finisher-description (octetString) =
pages-per-minute (integer) = 7
pages-per-minute-color (integer) = 5
jpeg-k-octets-supported (rangeOfInteger) = 0-16384
jpeg-x-dimension-supported (rangeOfInteger) = 0-16384
jpeg-y-dimension-supported (rangeOfInteger) = 1-16384
pdf-versions-supported (keyword) = none
urf-supported (1setOf keyword) = CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,FN3,IS1,V1.5
marker-names (1setOf nameWithoutLanguage) = tri-color ink,black ink
marker-colors (1setOf nameWithoutLanguage) = #00FFFF#FF00FF#FFFF00,#000000
marker-types (1setOf keyword) = ink-cartridge,ink-cartridge
marker-low-levels (1setOf integer) = 2,2
marker-high-levels (1setOf integer) = 100,100
marker-levels (1setOf integer) = 90,70
printer-supply (1setOf octetString) = type=inkCartridge;maxcapacity=100;level=90;class=supplyThatIsConsumed;unit=percent;colorantname=multi-color;,type=inkCartridge;maxcapacity=100;level=70;class=supplyThatIsConsumed;unit=percent;colorantname=black;
printer-supply-description (1setOf textWithoutLanguage) = Tri-color Cartridge,Black Cartridge
printer-firmware-name (nameWithoutLanguage) = TCP1FN2424DR
printer-firmware-string-version (textWithoutLanguage) = TCP1FN2424DR
printer-firmware-version (octetString) = TCP1FN2424DR
printer-input-tray (octetString) = type=sheetFeedAutoNonRemovable;dimunit=micrometers;mediafeed=297000;mediaxfeed=210000;maxcapacity=-2;level=-2;status=0;name=Tray\ 1
printer-output-tray (octetString) = type=unknown;maxcapacity=-2;remaining=-2;status=5;stackingorder=unknown;pagedelivery=faceUp;name=OutputTray1
copies-default (integer) = 1
finishings-default (enum) = none
finishings-col-default (no-value) = no-value
orientation-requested-default (enum) = portrait
print-quality-default (enum) = normal
printer-resolution-default (resolution) = 300dpi
sides-default (keyword) = one-sided
output-bin-default (keyword) = face-up
output-mode-default (keyword) = auto
print-color-mode-default (keyword) = auto
multiple-document-handling-default (keyword) = separate-documents-uncollated-copies
number-up-default (integer) = 1
presentation-direction-number-up-default (keyword) = toright-tobottom
print-rendering-intent-default (keyword) = auto
print-scaling-default (keyword) = auto
copies-supported (rangeOfInteger) = 1-99
finishings-supported (enum) = none
job-pages-per-set-supported (boolean) = true
orientation-requested-supported (enum) = portrait
print-quality-supported (1setOf enum) = draft,normal,high
printer-resolution-supported (resolution) = 300dpi
sides-supported (keyword) = one-sided
output-bin-supported (keyword) = face-up
output-mode-supported (1setOf keyword) = auto,auto-monochrome,monochrome,color
print-color-mode-supported (1setOf keyword) = auto,auto-monochrome,monochrome,color,process-monochrome
page-ranges-supported (boolean) = true
multiple-document-handling-supported (1setOf keyword) = separate-documents-uncollated-copies,separate-documents-collated-copies
number-up-supported (integer) = 1
presentation-direction-number-up-supported (keyword) = toright-tobottom
print-rendering-intent-supported (1setOf keyword) = auto,perceptual
print-scaling-supported (1setOf keyword) = auto,auto-fit,fill,fit,none
printer-icons (1setOf uri) = http://192.168.0.253/webApps/images/printer-small.png,http://192.168.0.253/webApps/images/printer.png,http://192.168.0.253/webApps/images/printer-large.png
printer-supply-info-uri (uri) = http://192.168.0.253/#hId-pgInkConsumables
print-content-optimize-default (keyword) = auto
print-content-optimize-supported (1setOf keyword) = auto,photo,graphics,text,text-and-graphics
pwg-raster-document-sheet-back (keyword) = rotated
pwg-raster-document-type-supported (1setOf keyword) = sgray_8,srgb_8,adobe-rgb_8,sgray_16,srgb_16,adobe-rgb_16,rgb_8,rgb_16
pwg-raster-document-resolution-supported (resolution) = 300dpi
epcl-version-supported (textWithoutLanguage) = 1.0
manual-duplex-supported (boolean) = false
pclm-source-resolution-supported (resolution) = 300dpi
pclm-source-resolution-default (resolution) = 300dpi
pclm-strip-height-supported (integer) = 16
pclm-strip-height-preferred (integer) = 16
pclm-raster-back-side (keyword) = rotated
pclm-compression-method-preferred (1setOf keyword) = jpeg,flate,rle
document-format-varying-attributes (keyword) = copies
printer-get-attributes-supported (keyword) = document-format
printer-organization (textWithoutLanguage) =
printer-organizational-unit (textWithoutLanguage) =
identify-actions-default (keyword) = flash
identify-actions-supported (1setOf keyword) = flash,pin
limit-operations-supported (enum) = 10
multiple-operation-time-out (integer) = 120
multiple-document-jobs-supported (boolean) = false
jpeg-features-supported (keyword) = none
Seeing this, I ran tcpdump again. Here's the second file:
HPDJ2710.cups.pcap.gz
All this suggests network configuration issues, but doesn't explain (to me) why it worked before and why it worked only once yesterday after rebooting the printer despite no configuration or system package changes. And it doesn't make it clear either whether this is actually related to the original issue being discussed in this thread. Don't want to be spamming if my issue is unrelated.
For what it's worth, I'm perfectly fine with not having printers autodiscovered and working without any installation. I'm happy to add printers manually through CUPS or Gnome settings as long as they just work. So any further pointers greatly appreciated.
@somepaulo it looks like your printer sometimes returns "Not found" for IPP Get-Printer-Attributes request, which looks like a printer issue :( - URI looks good and attrs too... Unfortunately the second capture is useless without session keys - all traffic is encrypted, but the output passed the test, so connection to the printer via the URI supports IPP Everywhere, so it can be installed with 'everywhere' model and work.
Is the URI from the one before the last ipptool command really the one from lpinfo -v ? I forgot to mention libcups or avahi encodes ipp/ipps into the mDNS hostname, so you should not get ipps scheme with _ipp service name in the mDNS hostname.
Thank you for your help and guidance.
I think it's more of an mDNS issue since the printer always prints fine from a Windows machine, but from Arch, when it refuses to print, it doesn't print over socket with a driver either. I'll see if disabling or reconfiguring mDNS will make things better.
I'm having the same issues with my very new Brother DCP-T426W and cups 2.4.11 in arch 6.13.4-arch1-1
sudo ipptool -tv ipps://192.168.77.45:443/ipp/print get-printer-attributes.test
"/usr/share/cups/ipptool/get-printer-attributes.test":
Get-Printer-Attributes:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
printer-uri (uri) = ipps://192.168.77.45:443/ipp/print
requested-attributes (1setOf keyword) = all,media-col-database
Get printer attributes using get-printer-attributes [PASS]
RECEIVED: 22278 bytes in response
status-code = successful-ok (successful-ok)
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = es
copies-default (integer) = 1
finishings-default (enum) = none
media-default (keyword) = iso_a4_210x297mm
media-col-default (collection) = {media-type=stationery media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=auto media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}}
orientation-requested-default (enum) = portrait
output-bin-default (keyword) = face-up
print-quality-default (enum) = normal
printer-resolution-default (resolution) = 600dpi
sides-default (keyword) = one-sided
print-color-mode-default (keyword) = color
print-content-optimize-default (keyword) = auto
print-scaling-default (keyword) = auto
copies-supported (rangeOfInteger) = 1-99
finishings-supported (enum) = none
media-supported (1setOf keyword) = iso_a4_210x297mm,na_letter_8.5x11in,na_legal_8.5x14in,na_executive_7.25x10.5in,iso_a5_148x210mm,iso_a6_105x148mm,na_number-10_4.125x9.5in,iso_dl_110x220mm,iso_c5_162x229mm,na_monarch_3.875x7.5in,na_foolscap_8.5x13in,na_oficio_8.5x13.4in,om_india-legal_215x345mm,na_index-4x6_4x6in,oe_photo-l_3.5x5in,na_5x7_5x7in,na_index-5x8_5x8in,custom_min_88.9x127mm,custom_max_215.9x355.6mm
media-col-supported (1setOf keyword) = media-type,media-size,media-top-margin,media-left-margin,media-right-margin,media-bottom-margin,media-source,media-source-properties
orientation-requested-supported (1setOf enum) = portrait,landscape
output-bin-supported (keyword) = face-up
print-quality-supported (1setOf enum) = normal,high,draft
printer-resolution-supported (resolution) = 600dpi
sides-supported (keyword) = one-sided
print-color-mode-supported (1setOf keyword) = auto,color,monochrome,auto-monochrome
print-content-optimize-supported (keyword) = auto
print-scaling-supported (1setOf keyword) = auto,auto-fit,fill,fit,none
generated-natural-language-supported (naturalLanguage) = es
printer-uri-supported (1setOf uri) = ipp://192.168.77.45/ipp/print,ipps://192.168.77.45:443/ipp/print
uri-security-supported (1setOf keyword) = none,tls
uri-authentication-supported (1setOf keyword) = none,none
printer-name (nameWithoutLanguage) = fowler
printer-location (textWithoutLanguage) = Peconia
printer-info (textWithoutLanguage) = Brother DCP-T426W
printer-make-and-model (textWithLanguage) = Brother DCP-T426W[en]
printer-state (enum) = idle
printer-state-reasons (keyword) = none
ipp-versions-supported (1setOf keyword) = 1.0,1.1,2.0
operations-supported (1setOf enum) = Print-Job,Validate-Job,Create-Job,Send-Document,Cancel-Job,Get-Job-Attributes,Get-Jobs,Get-Printer-Attributes,Close-Job,Identify-Printer
multiple-document-jobs-supported (boolean) = false
multiple-operation-time-out (integer) = 150
natural-language-configured (naturalLanguage) = es
charset-configured (charset) = utf-8
charset-supported (charset) = utf-8
document-format-supported (1setOf mimeMediaType) = application/octet-stream,image/pwg-raster,application/vnd.brother-hbp
document-format-default (mimeMediaType) = application/octet-stream
printer-is-accepting-jobs (boolean) = true
queued-job-count (integer) = 0
pdl-override-supported (keyword) = attempted
printer-up-time (integer) = 104
compression-supported (1setOf keyword) = none,gzip
color-supported (boolean) = true
job-creation-attributes-supported (1setOf keyword) = copies,finishings,ipp-attribute-fidelity,job-name,media,media-col,orientation-requested,output-bin,output-mode,print-quality,printer-resolution,requesting-user-name,sides,print-color-mode
media-bottom-margin-supported (1setOf integer) = 300,0,1200,1200
media-left-margin-supported (1setOf integer) = 300,0,300,300
media-right-margin-supported (1setOf integer) = 300,0,300,300
media-source-supported (1setOf keyword) = auto,main
media-top-margin-supported (1setOf integer) = 300,0,1200,1200
media-type-supported (1setOf keyword) = stationery,photographic-glossy,stationery-inkjet,com.brother-bp71
media-size-supported (1setOf collection) = {x-dimension=21000 y-dimension=29700},{x-dimension=21590 y-dimension=27940},{x-dimension=21590 y-dimension=35560},{x-dimension=18415 y-dimension=26670},{x-dimension=14800 y-dimension=21000},{x-dimension=10500 y-dimension=14800},{x-dimension=10477 y-dimension=24130},{x-dimension=11000 y-dimension=22000},{x-dimension=16200 y-dimension=22900},{x-dimension=9842 y-dimension=19050},{x-dimension=21590 y-dimension=33020},{x-dimension=21590 y-dimension=34036},{x-dimension=21500 y-dimension=34500},{x-dimension=10160 y-dimension=15240},{x-dimension=8890 y-dimension=12700},{x-dimension=12700 y-dimension=17780},{x-dimension=12700 y-dimension=20320},{x-dimension=8890-21590 y-dimension=12700-35560}
pages-per-minute (integer) = 28
pages-per-minute-color (integer) = 11
printer-alert (octetString) = code=other
printer-alert-description (textWithoutLanguage) = Listo
printer-device-id (textWithLanguage) = MFG:Brother;CMD:HBP,PJL;MDL:DCP-T426W;CLS:PRINTER;CID:Brother Generic Jpeg Type2;[en]
printer-icons (1setOf uri) = https://192.168.77.45/icons/device-icons-128.png,https://192.168.77.45/icons/device-icons-512.png
printer-more-info (uri) = http://192.168.77.45/
printer-uuid (uri) = urn:uuid:e3248000-80ce-11db-8000-38d57a9b78d0
job-impressions-supported (rangeOfInteger) = 1-999
printer-geo-location (unknown) = unknown
printer-supply-info-uri (uri) = https://192.168.77.45
media-ready (keyword) = iso_a4_210x297mm
media-col-ready (1setOf collection) = {media-type=stationery media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}}
identify-actions-supported (keyword) = display
ipp-features-supported (keyword) = none
printer-input-tray (1setOf octetString) = type=other;mediafeed=296926;mediaxfeed=209973;maxcapacity=150;level=-2;status=0;name=AUTO;index=1;dimunit=micrometers;unit=sheets;medianame=REGULAR;mediaweight=-2;mediatype=stationery;mediacolor=Unknown;,type=sheetFeedAutoNonRemovableTray;mediafeed=296926;mediaxfeed=209973;maxcapacity=150;level=-2;status=0;name=TRAY1;index=2;dimunit=micrometers;unit=sheets;medianame=REGULAR;mediaweight=-2;mediatype=stationery;mediacolor=Unknown;
printer-output-tray (octetString) = type=unRemovableBin;maxcapacity=50;remaining=-2;status=0;name=face-up;index=1;unit=sheets;stackingorder=lastToFirst;pagedelivery=faceUp;offsetstacking=notPresent;
document-format-varying-attributes (keyword) = copies
multiple-operation-time-out-action (keyword) = abort-job
printer-organization (textWithoutLanguage) =
printer-organizational-unit (textWithoutLanguage) =
printer-get-attributes-supported (keyword) = document-format
which-jobs-supported (1setOf keyword) = completed,not_completed
printer-current-time (dateTime) = 2025-03-08T05:15:43Z
printer-config-change-time (integer) = 1
printer-config-change-date-time (dateTime) = 2022-01-01T00:49:40Z
printer-state-change-time (integer) = 1
printer-state-change-date-time (dateTime) = 2022-01-01T00:49:40Z
printer-strings-languages-supported (1setOf naturalLanguage) = en,ja
printer-strings-uri (uri) = https://192.168.77.45/ipp/strings/dict/en.txt
printer-mandatory-job-attributes (1setOf keyword) = attributes-charset,attributes-natural-language,printer-uri
marker-colors (1setOf nameWithLanguage) = #FF00FF[en],#00FFFF[en],#FFFF00[en],#000000[en]
marker-high-levels (1setOf integer) = 100,100,100,100
marker-levels (1setOf integer) = -2,-2,-2,-2
marker-low-levels (1setOf integer) = 1,1,1,1
marker-names (1setOf nameWithLanguage) = M[en],C[en],Y[en],BK[en]
marker-types (1setOf keyword) = ink-cartridge,ink-cartridge,ink-cartridge,ink-cartridge
pdf-versions-supported (keyword) = none
printer-dns-sd-name (nameWithoutLanguage) = Brother DCP-T426W
printer-kind (1setOf keyword) = document,envelope,postcard,photo
job-pages-per-set-supported (boolean) = false
mopria-certified (textWithoutLanguage) = 2.0
pwg-raster-document-resolution-supported (1setOf resolution) = 600dpi,300dpi
pwg-raster-document-sheet-back (keyword) = rotated
pwg-raster-document-type-supported (1setOf keyword) = sgray_8,srgb_8
media-col-database (1setOf collection) = {media-type=stationery media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-inkjet media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=photographic-glossy media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=com.brother-bp71 media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-inkjet media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=photographic-glossy media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=com.brother-bp71 media-size={x-dimension=21000 y-dimension=29700} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-inkjet media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=photographic-glossy media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=com.brother-bp71 media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=stationery-inkjet media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=photographic-glossy media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-type=com.brother-bp71 media-size={x-dimension=21590 y-dimension=27940} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=18415 y-dimension=26670} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=21590 y-dimension=35560} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=14800 y-dimension=21000} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=10500 y-dimension=14800} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=10500 y-dimension=14800} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=10477 y-dimension=24130} media-bottom-margin=1200 media-left-margin=300 media-right-margin=300 media-top-margin=1200 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=11000 y-dimension=22000} media-bottom-margin=1200 media-left-margin=300 media-right-margin=300 media-top-margin=1200 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=16200 y-dimension=22900} media-bottom-margin=1200 media-left-margin=300 media-right-margin=300 media-top-margin=1200 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=6}},{media-size={x-dimension=9842 y-dimension=19050} media-bottom-margin=1200 media-left-margin=300 media-right-margin=300 media-top-margin=1200 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=21590 y-dimension=33020} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=21590 y-dimension=34036} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=21500 y-dimension=34500} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=10160 y-dimension=15240} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=10160 y-dimension=15240} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=8890 y-dimension=12700} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=8890 y-dimension=12700} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=12700 y-dimension=17780} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=12700 y-dimension=17780} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=12700 y-dimension=20320} media-bottom-margin=300 media-left-margin=300 media-right-margin=300 media-top-margin=300 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}},{media-size={x-dimension=12700 y-dimension=20320} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0 media-source=main media-source-properties={media-source-feed-direction=short-edge-first media-source-feed-orientation=3}}
The output doesn't seem to have any errors, but :
sudo lpadmin -p DCPT426W -E -v "ipps://192.168.77.45:443/ipp/print" -m everywhere
lpadmin: Unable to create PPD: Printer does not support required IPP attributes or document formats.
( wireshark_lpadmin.pcapng.gz where .45 is the printer and .2 my laptop )
This creates the queue as raw just as @hannut commented. If I change manually the model to Generic > Generic IPP Everywhere Printer (en) then the status of the jobs halt a bit at Connected to printer but after a few seconds it changes to Print job canceled at printer.
Also I already updated the firmware of the printer to the latest version (i.e. 1.27) and I'm not using the avahi + nss-mdns approach since I know the address of the printer, as the Arch docs say:
It is not required to rely on dynamic printer discovery on the network (DNS-SD/mDNS) when the address of the printer is known
EDIT: I'm an idiot, Brother DCP-T426W doesn't support IPP Everywhere. I did however download the proprietary drivers but still can't make it work
sudo lpadmin -p "DCPT426W-IPP" -E -v "ipps://192.168.77.45:443/ipp/print" -m lsb/usr/Brother/brother_dcpt426w_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
This creates the queue but none of the jobs I've tried have worked (status are either completed at but nothing happens or pending since indefinitely). Here I'm assuming that some basic functionalities (like Print Test Page) should work over ipp when using the proprietary drivers even if IPP Everywhere is nor supported.