Open hoonkai opened 4 years ago
Well, the brlaser error message is:
brlaser: Cannot read raster data. Most likely an earlier filter in the pipeline failed.
brlaser expects to receive input in "CUPS raster" format. But in your case, it either didn't receive any input, or it received input in some other format. (The CUPS API doesn't distinguish those two situations.)
There might be a hint earlier in the log, you only copied the tail end. (Check the time stamps to see where the log messages related to your print job start.)
As mentioned in issue 29, I can successfully print on my HL-1110 with a Raspberry Pi4 using the DCP-7065DN driver https://github.com/pdewacht/brlaser/issues/29
I'm having similiar problem. HL-1110e connected to rasberrpi with brlaser v6. Printing via network works when started from Android and Windows, does not work when started from Linux.
E [24/Sep/2020:18:11:48 +0200] [Job 11] Job stopped due to filter errors; please consult the /var/log/cups/error_log file for details.
D [24/Sep/2020:18:11:48 +0200] [Job 11] The following messages were recorded from 06:11:48 PM to 06:11:48 PM
D [24/Sep/2020:18:11:48 +0200] [Job 11] Applying default options...
D [24/Sep/2020:18:11:48 +0200] [Job 11] Adding start banner page "none".
D [24/Sep/2020:18:11:48 +0200] [Job 11] Queued on "Brother_HL-1110_series" by "prka".
D [24/Sep/2020:18:11:48 +0200] [Job 11] File of type application/vnd.cups-raster queued by "prka".
D [24/Sep/2020:18:11:48 +0200] [Job 11] Adding end banner page "none".
D [24/Sep/2020:18:11:48 +0200] [Job 11] time-at-processing=1600963908
D [24/Sep/2020:18:11:48 +0200] [Job 11] 1 filters for job:
D [24/Sep/2020:18:11:48 +0200] [Job 11] rastertobrlaser (application/vnd.cups-raster to printer/Brother_HL-1110_series, cost 33)
D [24/Sep/2020:18:11:48 +0200] [Job 11] job-sheets=none,none
D [24/Sep/2020:18:11:48 +0200] [Job 11] argv[0]="Brother_HL-1110_series"
D [24/Sep/2020:18:11:48 +0200] [Job 11] argv[1]="11"
D [24/Sep/2020:18:11:48 +0200] [Job 11] argv[2]="prka"
D [24/Sep/2020:18:11:48 +0200] [Job 11] argv[3]="PPK - Deklaracja odstÑpienia.pdf"
D [24/Sep/2020:18:11:48 +0200] [Job 11] argv[4]="1"
D [24/Sep/2020:18:11:48 +0200] [Job 11] argv[5]="job-uuid=urn:uuid:f7c43bec-2066-3b54-6dc7-8c83cd00ff5a job-originating-host-name=[v1.fd5f:e0df:527f:0:6d9:f5ff:fef6:8c24] date-time-at-creation= date-time-at-proc
essing= time-at-creation=1600963908 time-at-processing=1600963908"
D [24/Sep/2020:18:11:48 +0200] [Job 11] argv[6]="/var/spool/cups/d00011-001"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[7]="CUPS_STATEDIR=/run/cups"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[8]="HOME=/var/spool/cups/tmp"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[10]="SERVER_ADMIN=root@raspberrypi"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[11]="SOFTWARE=CUPS/2.2.10"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[13]="USER=root"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[14]="CUPS_MAX_MESSAGE=2047"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[17]="IPP_PORT=631"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[18]="CHARSET=utf-8"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[19]="LANG=en_US.UTF-8"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[20]="PPD=/etc/cups/ppd/Brother_HL-1110_series.ppd"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[21]="RIP_MAX_CACHE=128m"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[22]="CONTENT_TYPE=application/vnd.cups-raster"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[23]="DEVICE_URI=usb://Brother/HL-1110%20series?serial=M9N513288"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[24]="PRINTER_INFO=Brother HL-1110 series"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[25]="PRINTER_LOCATION=raspberrypi"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[26]="PRINTER=Brother_HL-1110_series"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[27]="PRINTER_STATE_REASONS=none"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[28]="CUPS_FILETYPE=document"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[29]="FINAL_CONTENT_TYPE=printer/Brother_HL-1110_series"
D [24/Sep/2020:18:11:48 +0200] [Job 11] envp[30]="AUTH_I****"
D [24/Sep/2020:18:11:48 +0200] [Job 11] Started filter /usr/lib/cups/filter/rastertobrlaser (PID 2625)
D [24/Sep/2020:18:11:48 +0200] [Job 11] Started backend /usr/lib/cups/backend/usb (PID 2626)
D [24/Sep/2020:18:11:48 +0200] [Job 11] Loading USB quirks from \"/usr/share/cups/usb\".
D [24/Sep/2020:18:11:48 +0200] [Job 11] brlaser version 6
D [24/Sep/2020:18:11:48 +0200] [Job 11] Set job-printer-state-message to "brlaser version 6", current level=INFO
D [24/Sep/2020:18:11:48 +0200] [Job 11] PID 2625 (/usr/lib/cups/filter/rastertobrlaser) stopped with status 1.
D [24/Sep/2020:18:11:48 +0200] [Job 11] Hint: Try setting the LogLevel to "debug" to find out more.
D [24/Sep/2020:18:11:48 +0200] [Job 11] brlaser: Cannot read raster data. Most likely an earlier filter in the pipeline failed.
D [24/Sep/2020:18:11:48 +0200] [Job 11] Loaded 172 quirks.
D [24/Sep/2020:18:11:48 +0200] [Job 11] Printing on printer with URI: usb://Brother/HL-1110%20series?serial=M9N513288
D [24/Sep/2020:18:11:48 +0200] [Job 11] libusb_get_device_list=5
D [24/Sep/2020:18:11:48 +0200] [Job 11] STATE: +connecting-to-device
D [24/Sep/2020:18:11:48 +0200] [Job 11] STATE: -connecting-to-device
D [24/Sep/2020:18:11:48 +0200] [Job 11] Printer found with device ID: MFG:Brother;CMD:PJL,HBP;MDL:HL-1110 series;CLS:PRINTER;CID:Brother Laser Type3; Device URI: usb://Brother/HL-1110%20series?serial=M9N513288
D [24/Sep/2020:18:11:48 +0200] [Job 11] Device protocol: 2
D [24/Sep/2020:18:11:48 +0200] [Job 11] Sending data to printer.
D [24/Sep/2020:18:11:48 +0200] [Job 11] Sent 0 bytes...
D [24/Sep/2020:18:11:48 +0200] [Job 11] Waiting for read thread to exit...
D [24/Sep/2020:18:11:48 +0200] [Job 11] PID 2626 (/usr/lib/cups/backend/usb) exited with no errors.
D [24/Sep/2020:18:11:48 +0200] [Job 11] End of messages
D [24/Sep/2020:18:11:48 +0200] [Job 11] printer-state=3(idle)
D [24/Sep/2020:18:11:48 +0200] [Job 11] printer-state-message="Sending data to printer."
D [24/Sep/2020:18:11:48 +0200] [Job 11] printer-state-reasons=none
Same issue with an HL-L2300D. Printing over SMB works when started via Windows but not with Linux.
Hi, sadly I have the same problem :(
My MFC-7440N is connected to a Raspberry Pi and works fine with the brlaser driver for MFC-7360N when I print directly on the Raspberry Pi or via Android CUPS Print. When I try to print from my Debian machine, I also get the filter failed error in the webinterface as well as the following error brlaser: Cannot read raster data. Most likely an earlier filter in the pipeline failed.
in /var/log/cups/error_log
.
Did anyone of you already found a solution? :)
Thanks for the reply!
[SOLVED]
Got the same error message brlaser: Cannot read raster data. Most likely an earlier filter in the pipeline failed.
with DCP-7040 connected to Rapsberry Pi and setup as a network printer via CUPS on an X64_86 machine.
It turns out that when setting up on the X64_86 machine, I chose the driver to be
Brother DCP-7040, using brlaser v6 (en)
Instead, it all works fine if I choose the driver to be
DCP-7040, using brlaser v6 - IPP Everywhere
Here is the UI for choosing driver:
What worked for me was to not use the CUPS webinterface to add the printer connected to the Pi to my computer/laptop. Instead I used the printer configuration available in Gnome on Debian. In this configuration tool, the printer is detected automatically and printing is possible without any problems.
If I open the CUPS webinterface after adding the printer, it is shown as Local Raw Printer
This comment from @tigerinus was what fixed it for me. I logged into the local CUPS instance on localhost:631
and updated the driver to use the IPP Everywhere version. Note, that the printer is NOT directly connected to localhost
, but to a remote host, in my case 192.168.0.181:631
.
Massive thanks!
Hi
I'm trying to print on a HL-1110 connected to a raspberry pi. The
lpr
command works fine, but it always fails via CUPS. The state in each job is alwaysstopped "Filter failed"
. Here's the error log:The only filter I can see running from the log is the
/usr/lib/cups/filter/rastertobrlaser
(line:Started filter /usr/lib/cups/filter/rastertobrlaser (PID 2727)
), but it's not clear how/why it failed. Anyone know how to fix this?Thanks