tbuen / print-ut

Simple Printer App for Ubuntu Touch
GNU General Public License v3.0
0 stars 1 forks source link

Got http code 404 printing error #2

Open MK1973 opened 2 years ago

MK1973 commented 2 years ago

Device: Volla phone, LG Nexus 5 with OTA 21 Printer: Brother DCP-1610W I can see my printer, i can choose file, but cannot print, it appeares error http code 404

Logfile:

library "libpq_cust.so" not found

2022/01/25 23:47:06 .:0: Creating a QMirClientScreen now

2022/01/25 23:47:09 .:0: Last frame took 40 ms to render.

Instance: Brother\ DCP-1610W\ series

Service: _ipp._tcp

Domain: local.

HostName: BRN7429AF645C0E.local.

Port: 631

Text: [txtvers=1 qtotal=1 pdl= rp=ipp/print note= ty=Brother DCP-1610W series product=(Brother DCP-1610W series) adminurl=http://BRN7429AF645C0E.local./ priority=50 usb_MFG=Brother usb_MDL=DCP-1610W series usb_CMD=PJL,HBP Color=F Copies=T Duplex=F Fax=F Scan=T PaperCustom=T Binary=T Transparent=T TBCP=F UUID=e3248000-80ce-11db-8000-7429af645c0e]

TTL: 240

AddrIPv4: [10.0.1.27]

AddrIPv6: []

Found printer: &{1 Brother DCP-1610W series 10.0.1.27 631 ipp/print false}

2022/01/25 23:47:11 .:0: Last frame took 44 ms to render.

2022/01/25 23:47:11 .:0: error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.220\" (uid=32011 pid=18052 comm=\"print-ut \") interface=\"com.canonical.libertine.Service.Operations\" member=\"list\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=4652 comm=\"/usr/bin/python3 /usr/bin/libertined \")"

2022/01/25 23:47:11 .:0: error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.220\" (uid=32011 pid=18052 comm=\"print-ut \") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"running\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=4652 comm=\"/usr/bin/python3 /usr/bin/libertined \")"

2022/01/25 23:47:11 .:0: lastError - no arguments?

2022/01/25 23:47:11 .:0: error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.220\" (uid=32011 pid=18052 comm=\"print-ut \") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"last_error\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=4652 comm=\"/usr/bin/python3 /usr/bin/libertined \")"

2022/01/25 23:47:11 .:0: lastError - no arguments?

2022/01/25 23:47:11 .:0: error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.220\" (uid=32011 pid=18052 comm=\"print-ut \") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"result\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=4652 comm=\"/usr/bin/python3 /usr/bin/libertined \")"

2022/01/25 23:47:11 .:0: lastError - no arguments?

2022/01/25 23:47:12 .:0: Last frame took 82 ms to render.

2022/01/25 23:47:12 .:0: Last frame took 66 ms to render.

2022/01/25 23:47:17 .:0: QObject::startTimer: Timers cannot be started from another thread

2022/01/25 23:47:33 .:0: Last frame took 47 ms to render.

2022/01/25 23:47:42 .:0: Last frame took 1597 ms to render.

2022/01/25 23:47:42 .:0: QObject::killTimer: Timers cannot be stopped from another thread

2022/01/25 23:47:42 .:0: QObject::startTimer: Timers cannot be started from another thread

MK1973 commented 2 years ago

I have asked about the AppArmor policy shown in the logfile, please see attached screenshot. There is also a comment why was not the printing probably succesfull. screenshot20220126_002159960

tbuen commented 2 years ago

Yes, I think the AppArmor thing is unrelated. Your printer has an empty pdl key, this is a list of supported MIME media types. With our office printer (Canon MF520 series) I get the following pdl key and can successfully print PDF files, so I assume your printer is not able to handle the document you sent. pdl=application/octet-stream,image/urf,image/pwg-raster,image/jpeg,application/pdf