Eu encontrei um arquivo PPD para minha impressora física e configurei uma impressora cups de acordo:
lpadmin -p printer_office_v2 -E -v ipp://1.2.3.4 -P /etc/cups/ppd/laserjet.ppd
Agora sou capaz de imprimir arquivos.
Não consigo imprimir nenhum arquivo (txt, pdf, ect) usando xícaras no EL7.
O trabalho parece ser aceito, mas configurando xícaras de nível para depurar estou vendo o seguinte:
D [01/May/2017:10:36:52 -0400] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [01/May/2017:10:36:52 -0400] [Job 18] Looking up "1.2.3.4"...
D [01/May/2017:10:36:52 -0400] Discarding unused printer-state-changed event...
D [01/May/2017:10:36:52 -0400] [Job 18] Connecting to 1.2.3.4:631
I [01/May/2017:10:36:52 -0400] [Job 18] Connecting to printer.
D [01/May/2017:10:36:52 -0400] cupsdMarkDirty(---J-)
D [01/May/2017:10:36:52 -0400] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [01/May/2017:10:36:52 -0400] [Job 18] Set job-printer-state-message to "Connecting to printer.", current level=INFO
D [01/May/2017:10:36:52 -0400] Discarding unused job-progress event...
D [01/May/2017:10:36:52 -0400] Discarding unused printer-state-changed event...
D [01/May/2017:10:36:52 -0400] [Job 18] update_reasons(attr=0(), s="-cups-certificate-error")
D [01/May/2017:10:36:52 -0400] [Job 18] update_reasons(attr=0(), s="-connecting-to-device")
D [01/May/2017:10:36:52 -0400] [Job 18] STATE: -connecting-to-device
D [01/May/2017:10:36:52 -0400] cupsdMarkDirty(---J-)
D [01/May/2017:10:36:52 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Dirty files"
I [01/May/2017:10:36:52 -0400] [Job 18] Connected to printer.
D [01/May/2017:10:36:52 -0400] cupsdMarkDirty(---J-)
D [01/May/2017:10:36:52 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:52 -0400] [Job 18] Set job-printer-state-message to "Connected to printer.", current level=INFO
D [01/May/2017:10:36:52 -0400] [Job 18] Connected to 1.2.3.4:631...
D [01/May/2017:10:36:52 -0400] [Job 18] Getting supported attributes...
D [01/May/2017:10:36:52 -0400] Discarding unused job-progress event...
D [01/May/2017:10:36:52 -0400] Discarding unused printer-state-changed event...
D [01/May/2017:10:36:53 -0400] [Job 18] Get-Printer-Attributes: successful-ok (successful-ok)
D [01/May/2017:10:36:53 -0400] [Job 18] copies-supported=1-32000
D [01/May/2017:10:36:53 -0400] [Job 18] document-format-supported (7 values)
D [01/May/2017:10:36:53 -0400] [Job 18] [0] = "text/plain"
D [01/May/2017:10:36:53 -0400] [Job 18] [1] = "application/octet-stream"
D [01/May/2017:10:36:53 -0400] [Job 18] [2] = "application/vnd.hp-PCL"
D [01/May/2017:10:36:53 -0400] [Job 18] [3] = "application/vnd.hp-PCLXL"
D [01/May/2017:10:36:53 -0400] [Job 18] [4] = "application/postscript"
D [01/May/2017:10:36:53 -0400] [Job 18] [5] = "application/pdf"
D [01/May/2017:10:36:53 -0400] [Job 18] [6] = "image/urf"
D [01/May/2017:10:36:53 -0400] [Job 18] media-col-supported (8 values)
D [01/May/2017:10:36:53 -0400] [Job 18] [0] = "media-type"
D [01/May/2017:10:36:53 -0400] [Job 18] [1] = "media-size"
D [01/May/2017:10:36:53 -0400] [Job 18] [2] = "media-top-margin"
D [01/May/2017:10:36:53 -0400] [Job 18] [3] = "media-left-margin"
D [01/May/2017:10:36:53 -0400] [Job 18] [4] = "media-right-margin"
D [01/May/2017:10:36:53 -0400] [Job 18] [5] = "media-bottom-margin"
D [01/May/2017:10:36:53 -0400] [Job 18] [6] = "media-source"
D [01/May/2017:10:36:53 -0400] [Job 18] [7] = "duplex-supported"
D [01/May/2017:10:36:53 -0400] [Job 18] operations-supported (11 values)
D [01/May/2017:10:36:53 -0400] [Job 18] [0] = Print-Job
D [01/May/2017:10:36:53 -0400] [Job 18] [1] = Print-URI
D [01/May/2017:10:36:53 -0400] [Job 18] [2] = Validate-Job
D [01/May/2017:10:36:53 -0400] [Job 18] [3] = Create-Job
D [01/May/2017:10:36:53 -0400] [Job 18] [4] = Send-Document
D [01/May/2017:10:36:53 -0400] [Job 18] [5] = Send-URI
D [01/May/2017:10:36:53 -0400] [Job 18] [6] = 0x003c
D [01/May/2017:10:36:53 -0400] [Job 18] [7] = Cancel-Job
D [01/May/2017:10:36:53 -0400] [Job 18] [8] = Get-Job-Attributes
D [01/May/2017:10:36:53 -0400] [Job 18] [9] = Get-Jobs
D [01/May/2017:10:36:53 -0400] [Job 18] [10] = Get-Printer-Attributes
D [01/May/2017:10:36:53 -0400] [Job 18] update_reasons(attr=1(none), s="(null)")
D [01/May/2017:10:36:53 -0400] [Job 18] STATE: -none
D [01/May/2017:10:36:53 -0400] [Job 18] ATTR: marker-colors='"none"','"#000000"'
D [01/May/2017:10:36:53 -0400] cupsdMarkDirty(P----)
D [01/May/2017:10:36:53 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:53 -0400] [Job 18] ATTR: marker-high-levels=100,100
D [01/May/2017:10:36:53 -0400] cupsdMarkDirty(P----)
D [01/May/2017:10:36:53 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:53 -0400] [Job 18] ATTR: marker-levels=74,25
D [01/May/2017:10:36:53 -0400] cupsdMarkDirty(P----)
D [01/May/2017:10:36:53 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:53 -0400] [Job 18] ATTR: marker-low-levels=2,8
D [01/May/2017:10:36:53 -0400] cupsdMarkDirty(P----)
D [01/May/2017:10:36:53 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:53 -0400] [Job 18] ATTR: marker-message='"none"'
D [01/May/2017:10:36:53 -0400] cupsdMarkDirty(P----)
D [01/May/2017:10:36:53 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:53 -0400] [Job 18] ATTR: marker-names='"Maintenance Kit"','"Black Cartridge"'
D [01/May/2017:10:36:53 -0400] cupsdMarkDirty(P----)
D [01/May/2017:10:36:53 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:53 -0400] [Job 18] ATTR: marker-types='"maintenanceKit"','"tonerCartridge"'
D [01/May/2017:10:36:53 -0400] cupsdMarkDirty(P----)
D [01/May/2017:10:36:53 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:53 -0400] [Job 18] final_content_type="application/pdf", document_format="application/pdf"
D [01/May/2017:10:36:53 -0400] [Job 18] Validate-Job IPP/2.0
D [01/May/2017:10:36:53 -0400] [Job 18] printer-uri="ipp://1.2.3.4:631/"
D [01/May/2017:10:36:53 -0400] [Job 18] requesting-user-name="root"
D [01/May/2017:10:36:53 -0400] [Job 18] job-name="flyer.pdf"
D [01/May/2017:10:36:53 -0400] [Job 18] document-format="application/pdf"
D [01/May/2017:10:36:53 -0400] Discarding unused printer-state-changed event...
D [01/May/2017:10:36:53 -0400] [Job 18] Validate-Job: client-error-bad-request (client-error-bad-request)
D [01/May/2017:10:36:53 -0400] [Job 18] Create-Job IPP/2.0
D [01/May/2017:10:36:53 -0400] [Job 18] printer-uri="ipp://1.2.3.4:631/"
D [01/May/2017:10:36:53 -0400] [Job 18] requesting-user-name="root"
D [01/May/2017:10:36:53 -0400] [Job 18] job-name="flyer.pdf"
D [01/May/2017:10:36:53 -0400] [Job 18] update_reasons(attr=1(none), s="(null)")
D [01/May/2017:10:36:53 -0400] [Job 18] Get-Printer-Attributes: successful-ok (successful-ok)
D [01/May/2017:10:36:53 -0400] [Job 18] Create-Job: client-error-bad-request (client-error-bad-request)
E [01/May/2017:10:36:53 -0400] [Job 18] Print file was not accepted.
D [01/May/2017:10:36:53 -0400] cupsdMarkDirty(---J-)
D [01/May/2017:10:36:53 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [01/May/2017:10:36:53 -0400] [Job 18] Set job-printer-state-message to "Print file was not accepted.", current level=ERROR
Eu desativei temporariamente o SELinux sem efeito.
Limpei o cache da impressora cups e enviei um documento TXT simples, com o mesmo erro (além do nome do trabalho que reflete o outro arquivo).
1) Alguma idéia do que poderia estar causando "O arquivo de impressão não foi aceito"?
2) Qualquer forma de aumentar a verbosidade do log de copos para talvez descobrir porque o arquivo não é aceito?
Eu encontrei um arquivo PPD para minha impressora física e configurei uma impressora cups de acordo:
lpadmin -p printer_office_v2 -E -v ipp://1.2.3.4 -P /etc/cups/ppd/laserjet.ppd
Agora sou capaz de imprimir arquivos.