brlaser icon indicating copy to clipboard operation
brlaser copied to clipboard

HL-1110 "filter failed"

Open hoonkai opened this issue 4 years ago • 8 comments

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 always stopped "Filter failed". Here's the error log:

D [09/Feb/2020:20:35:47 +1000] [Job 88] argv[6]="/var/spool/cups/d00088-001"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[7]="CUPS_STATEDIR=/run/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[8]="HOME=/var/spool/cups/tmp"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[10]="SERVER_ADMIN=root@orangepilite"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[11]="SOFTWARE=CUPS/2.2.7"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[13]="USER=root"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[14]="CUPS_MAX_MESSAGE=2047"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[17]="IPP_PORT=631"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[18]="CHARSET=utf-8"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[19]="LANG=en_US.UTF-8"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[20]="PPD=/etc/cups/ppd/Brother_HL-1110_series.ppd"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[21]="RIP_MAX_CACHE=128m"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[22]="CONTENT_TYPE=application/vnd.cups-raster"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[23]="DEVICE_URI=usb://Brother/HL-1110%20series?serial=H6N434263"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[24]="PRINTER_INFO=Brother HL-1110 series"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[25]="PRINTER_LOCATION="
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[26]="PRINTER=Brother_HL-1110_series"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[27]="PRINTER_STATE_REASONS=none"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[28]="CUPS_FILETYPE=document"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[29]="FINAL_CONTENT_TYPE=printer/Brother_HL-1110_series"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[30]="AUTH_I****"
D [09/Feb/2020:20:35:47 +1000] [Job 88] Started filter /usr/lib/cups/filter/rastertobrlaser (PID 2727)
D [09/Feb/2020:20:35:47 +1000] [Job 88] Started backend /usr/lib/cups/backend/usb (PID 2728)
D [09/Feb/2020:20:35:47 +1000] [Job 88] Loading USB quirks from \"/usr/share/cups/usb\".
D [09/Feb/2020:20:35:47 +1000] [Job 88] brlaser version 6
D [09/Feb/2020:20:35:47 +1000] [Job 88] Set job-printer-state-message to "brlaser version 6", current level=INFO
D [09/Feb/2020:20:35:47 +1000] [Job 88] Loaded 88 quirks.
D [09/Feb/2020:20:35:47 +1000] [Job 88] brlaser: Cannot read raster data. Most likely an earlier filter in the pipeline failed.
D [09/Feb/2020:20:35:47 +1000] [Job 88] Printing on printer with URI: usb://Brother/HL-1110%20series?serial=H6N434263
D [09/Feb/2020:20:35:47 +1000] [Job 88] PID 2727 (/usr/lib/cups/filter/rastertobrlaser) stopped with status 1.
D [09/Feb/2020:20:35:47 +1000] [Job 88] Hint: Try setting the LogLevel to "debug" to find out more.
D [09/Feb/2020:20:35:47 +1000] [Job 88] libusb_get_device_list=6
D [09/Feb/2020:20:35:47 +1000] [Job 88] STATE: +connecting-to-device
D [09/Feb/2020:20:35:47 +1000] [Job 88] STATE: -connecting-to-device
D [09/Feb/2020:20:35:47 +1000] [Job 88] 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=H6N434263
D [09/Feb/2020:20:35:47 +1000] [Job 88] Device protocol: 2
D [09/Feb/2020:20:35:47 +1000] [Job 88] Sending data to printer.
D [09/Feb/2020:20:35:47 +1000] [Job 88] Sent 0 bytes...
D [09/Feb/2020:20:35:47 +1000] [Job 88] Waiting for read thread to exit...
D [09/Feb/2020:20:35:47 +1000] [Job 88] PID 2728 (/usr/lib/cups/backend/usb) exited with no errors.
D [09/Feb/2020:20:35:47 +1000] [Job 88] End of messages
D [09/Feb/2020:20:35:47 +1000] [Job 88] printer-state=3(idle)
D [09/Feb/2020:20:35:47 +1000] [Job 88] printer-state-message="Sending data to printer."
D [09/Feb/2020:20:35:47 +1000] [Job 88] printer-state-reasons=none

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

hoonkai avatar Feb 09 '20 10:02 hoonkai

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.)

pdewacht avatar Feb 11 '20 21:02 pdewacht

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

aussiehash avatar Jun 14 '20 08:06 aussiehash

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

PAKalucki avatar Sep 24 '20 16:09 PAKalucki

Same issue with an HL-L2300D. Printing over SMB works when started via Windows but not with Linux.

stingray-11 avatar Jun 26 '21 12:06 stingray-11

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!

linesquarecube avatar Dec 11 '21 19:12 linesquarecube

[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:

image

tigerinus avatar Jan 07 '22 22:01 tigerinus

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

grafik

linesquarecube avatar Jan 09 '22 11:01 linesquarecube

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!

psipika avatar Nov 11 '22 03:11 psipika