OpenPrinting / cups-filters

filters, backends, driverless utility, ... - Everything which CUPS 2.x needs to be used on non-Mac systems
Apache License 2.0
157 stars 126 forks source link

CUPS w/ Samsung ML printer "filter failed" / "Broken pipe" error #341

Open jyscao opened 3 years ago

jyscao commented 3 years ago

I installed CUPS on my x86 router box, which runs IPFire, and connected my old Samsung ML-2510 printer to it by USB. However after successfully setting it up by following the IPFire CUPS guide, I'm unable to even get the test page to print.

I had made this post asking for help at the IPFire community forum, but this appears to be out of their realm of expertise.

So far, I have tried using both the v1.9 PPD along with its bundled rastertospl filter from HP, and the v2.0.0 PPD and its bundled rastertoqpdl filter from OpenPrinting, both without success. Additionally, I'd also tried various generic drivers (IPP Everywhere Printer, PCL Laser Printer and PDF Printer) that came along with CUPS itself, and even though when using these latter generic drivers will show the jobs as "completed at DATETIME" in the CUPS web UI job queue, and no errors are logged to /var/log/cups/error_log, they in fact still don't print the test page requested.

Here are some info from lpstat:

[root@ipfire ~]# lpstat -t
scheduler is running
no system default destination
device for Samsung_Printer: usb://Samsung/ML-2510%20Series?serial=3V61BKCQA03376Y.
Samsung_Printer accepting requests since Sat 30 Jan 2021 06:31:36 PM EST
printer Samsung_Printer is idle.  enabled since Sat 30 Jan 2021 06:31:36 PM EST
    Rendering completed
Samsung_Printer-15      root              1024   Sat 30 Jan 2021 06:31:28 PM EST

And:

[root@ipfire ~]# lpstat -l
Samsung_Printer-15      root              1024   Sat 30 Jan 2021 06:31:28 PM EST
    Status: Filter failed
    Alerts: job-completed-with-errors
    queued for Samsung_Printer

I've enabled --debug-logging as suggested in error_log, and extracted out the relevant log lines for one cycle of failed printing, which I've attached here: cups_job10_error_log.txt. I'm hoping you guys would be able to help me out here.

surajkulriya commented 3 years ago

hello @jyscao can you please provide us the ppd file you are using. It must be your /var/ipfire/cups/ppd/Samsung_Printer file. Thanks :-)

jyscao commented 3 years ago

@surajkulriya thanks for following up.

Here are the 2 Samsung specific PPDs I'd tried:

And here's one generic PPD I tried.