hp-1020 installed, accepts jobs, but does not actually print
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It has cups 2.2.6 installed with a Brother HL1200 printer connected. Some mechanical issue with the printer made me install a backup HP1020 printer. After unsuccesfully experimenting and encountering the weirdest error messages, I decided to remove cups and hplip, whatever other print related things, and I re-installed cups, cups-filters, foo2zjs (compiled & installed), downloaded the firmware for the HP1020 (and uploaded it to the printer manually, as I could not find anything related in dmesg)...
According to cups, all is well - it accepts jobs, marks them as 'done', etc.
But nothing appears on paper. I checked the following:
# lpstat -a
HP_LaserJet_1020 accepting requests since Wed 20 Dec 2023 08:59:45 PM -03
Code:
[43399.769537] usblp0: removed
[43407.817932] usblp 1-3:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[43490.479166] usblp0: removed
[43498.685250] usblp 1-3:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
[45481.209572] usblp0: removed
This repeats - I think each print command.
The following is the error_log of cups. There are a couple (bolded) things I find suspicious, but I don't see a definite stop...
Code:
D [20/Dec/2023:20:59:53 -0300] [Job 7] PID 9307 (pstops) exited with no errors.
D [20/Dec/2023:20:59:53 -0300] [Job 7] PID 9306 (pdftops) exited with no errors.
D [20/Dec/2023:20:59:53 -0300] [Job 7] Waiting for read thread to exit...
D [20/Dec/2023:20:59:53 -0300] [Job 7] Read thread still active, aborting the pending read...
D [20/Dec/2023:20:59:53 -0300] [Job 7] PID 9300 (/usr/lib64/cups/backend/usb) exited with no errors.
D [20/Dec/2023:20:59:53 -0300] [Job 7] End of messages
D [20/Dec/2023:20:59:53 -0300] [Job 7] printer-state=3(idle)
D [20/Dec/2023:20:59:53 -0300] [Job 7] printer-state-message="Filter failed"
D [20/Dec/2023:20:59:53 -0300] [Job 7] printer-state-reasons=none
E [20/Dec/2023:21:07:22 -0300] [Job 8] Job stopped due to filter errors; please consult the error_log file for details.
D [20/Dec/2023:21:07:22 -0300] [Job 8] The following messages were recorded from 21:07:14 to 21:07:22
D [20/Dec/2023:21:07:22 -0300] [Job 8] Applying default options...
D [20/Dec/2023:21:07:22 -0300] [Job 8] Adding start banner page "none".
D [20/Dec/2023:21:07:22 -0300] [Job 8] Queued on "HP_LaserJet_1020" by "root".
D [20/Dec/2023:21:07:22 -0300] [Job 8] Auto-typing file...
D [20/Dec/2023:21:07:22 -0300] [Job 8] Request file type is text/plain.
D [20/Dec/2023:21:07:22 -0300] [Job 8] File of type text/plain queued by "root".
D [20/Dec/2023:21:07:22 -0300] [Job 8] Adding end banner page "none".
D [20/Dec/2023:21:07:22 -0300] [Job 8] time-at-processing=1703117234
D [20/Dec/2023:21:07:22 -0300] [Job 8] 3 filters for job:
D [20/Dec/2023:21:07:22 -0300] [Job 8] texttopdf (text/plain to application/pdf, cost 32)
D [20/Dec/2023:21:07:22 -0300] [Job 8] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [20/Dec/2023:21:07:22 -0300] [Job 8] foomatic-rip (application/vnd.cups-pdf to printer/HP_LaserJet_1020, cost 0)
D [20/Dec/2023:21:07:22 -0300] [Job 8] job-sheets=none,none
D [20/Dec/2023:21:07:22 -0300] [Job 8] argv[0]="HP_LaserJet_1020"
D [20/Dec/2023:21:07:22 -0300] [Job 8] argv[1]="8"
D [20/Dec/2023:21:07:22 -0300] [Job 8] argv[2]="root"
D [20/Dec/2023:21:07:22 -0300] [Job 8] argv[3]="hosts"
D [20/Dec/2023:21:07:22 -0300] [Job 8] argv[4]="1"
D [20/Dec/2023:21:07:22 -0300] [Job 8] argv[5]="finishings=3 number-up=1 job-uuid=urn:uuid:30928143-629c-3bb0-65a6-a2659e00de33 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1703117234 time-at-processing=1703117234 document-name-supplied=hosts"
D [20/Dec/2023:21:07:22 -0300] [Job 8] argv[6]="/var/spool/cups/d00008-001"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[2]="CUPS_DOCROOT=/usr/share/doc/cups"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[5]="CUPS_SERVERBIN=/usr/lib64/cups"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[8]="HOME=/var/spool/cups/tmp"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[9]="PATH=/usr/lib64/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[10]="SERVER_ADMIN=root@sally.sklein.com"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[11]="SOFTWARE=CUPS/2.2.8"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[13]="USER=root"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[14]="CUPS_MAX_MESSAGE=2047"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[17]="IPP_PORT=631"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[18]="CHARSET=utf-8"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[19]="LANG=en_US.UTF-8"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[20]="PPD=/etc/cups/ppd/HP_LaserJet_1020.ppd"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[21]="RIP_MAX_CACHE=128m"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[22]="CONTENT_TYPE=text/plain"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[23]="DEVICE_URI=usb://HP/LaserJet%201020?serial=FZ05MV6"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[24]="PRINTER_INFO=HP LaserJet 1020"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[25]="PRINTER_LOCATION=sally"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[26]="PRINTER=HP_LaserJet_1020"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[27]="PRINTER_STATE_REASONS=none"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[28]="CUPS_FILETYPE=document"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-pdf"
D [20/Dec/2023:21:07:22 -0300] [Job 8] envp[30]="AUTH_I****"
D [20/Dec/2023:21:07:22 -0300] [Job 8] Started filter /usr/lib64/cups/filter/texttopdf (PID 12319)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Started filter /usr/lib64/cups/filter/pdftopdf (PID 12320)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Started filter /usr/lib64/cups/filter/foomatic-rip (PID 12321)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Started backend /usr/lib64/cups/backend/usb (PID 12322)
D [20/Dec/2023:21:07:22 -0300] [Job 8] pdftopdf: Last filter determined by the PPD: foomatic-rip; FINAL_CONTENT_TYPE: application/vnd.cups-pdf => pdftopdf will log pages in page_log.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Page = 595x842; 11,11 to 584,831
D [20/Dec/2023:21:07:22 -0300] [Job 8] Loading USB quirks from \"/usr/share/cups/usb\".
D [20/Dec/2023:21:07:22 -0300] [Job 8] Loaded 162 quirks.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Printing on printer with URI: usb://HP/LaserJet%201020?serial=FZ05MV6
D [20/Dec/2023:21:07:22 -0300] [Job 8] Calling FindDeviceById(cups-HP_LaserJet_1020)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
D [20/Dec/2023:21:07:22 -0300] [Job 8] Failed to get find device cups-HP_LaserJet_1020
D [20/Dec/2023:21:07:22 -0300] [Job 8] \'CM Color Calibration\' Mode in SPOOLER-LESS: Off
D [20/Dec/2023:21:07:22 -0300] [Job 8] Getting input from file
D [20/Dec/2023:21:07:22 -0300] [Job 8] foomatic-rip version 1.21.0 running...
D [20/Dec/2023:21:07:22 -0300] [Job 8] Parsing PPD file ...
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option ColorSpace
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option PageSize
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option Quality
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option Resolution
D [20/Dec/2023:21:07:22 -0300] [Job 8] libusb_get_device_list=10
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option ImageableArea
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option PaperDimension
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option InputSlot
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option MediaType
D [20/Dec/2023:21:07:22 -0300] [Job 8] STATE: +connecting-to-device
D [20/Dec/2023:21:07:22 -0300] [Job 8] STATE: -connecting-to-device
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option Density
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option Copies
D [20/Dec/2023:21:07:22 -0300] [Job 8] PAGE: 1 1
D [20/Dec/2023:21:07:22 -0300] [Job 8] PID 12319 (/usr/lib64/cups/filter/texttopdf) exited with no errors.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Printer found with device ID: MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;DES:HP LaserJet 1020;FWVER:20050309; Device URI: usb://HP/LaserJet%201020?serial=FZ05MV6
D [20/Dec/2023:21:07:22 -0300] [Job 8] Device protocol: 2
D [20/Dec/2023:21:07:22 -0300] [Job 8] Sending data to printer.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option halftone
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option NupOrient
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option NupPages
D [20/Dec/2023:21:07:22 -0300] [Job 8] Added option Font
D [20/Dec/2023:21:07:22 -0300] [Job 8] Parameter Summary
D [20/Dec/2023:21:07:22 -0300] [Job 8] -----------------
D [20/Dec/2023:21:07:22 -0300] [Job 8] Spooler: cups
D [20/Dec/2023:21:07:22 -0300] [Job 8] Printer: HP_LaserJet_1020
D [20/Dec/2023:21:07:22 -0300] [Job 8] Shell: /bin/bash
D [20/Dec/2023:21:07:22 -0300] [Job 8] PPD file: /etc/cups/ppd/HP_LaserJet_1020.ppd
D [20/Dec/2023:21:07:22 -0300] [Job 8] ATTR file:
D [20/Dec/2023:21:07:22 -0300] [Job 8] Printer model: HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommended)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Job title: hosts
D [20/Dec/2023:21:07:22 -0300] [Job 8] File(s) to be printed:
D [20/Dec/2023:21:07:22 -0300] [Job 8] <STDIN>
D [20/Dec/2023:21:07:22 -0300] [Job 8] Ghostscript extra search path (\'GS_LIB\'): /usr/share/cups/fonts
D [20/Dec/2023:21:07:22 -0300] [Job 8] Value \" V�\" for option \"Copies\", parameter \"Copies\" is smaller than the minimum value \"1\"
D [20/Dec/2023:21:07:22 -0300] [Job 8] Printing system options:
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'finishings=3\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option finishings=3.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'number-up=1\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option number-up=1.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'job-uuid=urn:uuid:30928143-629c-3bb0-65a6-a2659e00de33\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option job-uuid=urn:uuid:30928143-629c-3bb0-65a6-a2659e00de33.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'job-originating-host-name=localhost\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option job-originating-host-name=localhost.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'date-time-at-creation=\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option date-time-at-creation=.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'date-time-at-processing=\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option date-time-at-processing=.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'time-at-creation=1703117234\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option time-at-creation=1703117234.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'time-at-processing=1703117234\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option time-at-processing=1703117234.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Pondering option \'document-name-supplied=hosts\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Unknown option document-name-supplied=hosts.
D [20/Dec/2023:21:07:22 -0300] [Job 8] CM Color Calibration Mode in CUPS: Off
D [20/Dec/2023:21:07:22 -0300] [Job 8] Options from the PPD file:
D [20/Dec/2023:21:07:22 -0300] [Job 8] ================================================
D [20/Dec/2023:21:07:22 -0300] [Job 8] File: <STDIN>
D [20/Dec/2023:21:07:22 -0300] [Job 8] ================================================
D [20/Dec/2023:21:07:22 -0300] [Job 8] PID 12320 (/usr/lib64/cups/filter/pdftopdf) exited with no errors.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Filetype: PDF
D [20/Dec/2023:21:07:22 -0300] [Job 8] Neither PDF renderer command line nor Ghostscript-based renderer command line found
D [20/Dec/2023:21:07:22 -0300] [Job 8] Driver does not understand PDF input, converting to PostScript
D [20/Dec/2023:21:07:22 -0300] [Job 8] Storing temporary files in /var/spool/cups/tmp
D [20/Dec/2023:21:07:22 -0300] [Job 8] Starting process \"pdf-to-ps\" (generation 1)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Printer make and model: HP HP LaserJet 1020
D [20/Dec/2023:21:07:22 -0300] [Job 8] Switching to Poppler\'s pdftops instead of Ghostscript for old HP LaserJet (\"LaserJet <number>\", no letters before <number>) printers to work around bugs in the printer\'s PS interpreters
D [20/Dec/2023:21:07:22 -0300] [Job 8] Running command line for pstops: pstops 8 root hosts 1 \' finishings=3 job-uuid=urn:uuid:30928143-629c-3bb0-65a6-a2659e00de33 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1703117234 time-at-processing=1703117234 document-name-supplied=hosts\'
D [20/Dec/2023:21:07:22 -0300] [Job 8] Using image rendering resolution 600 dpi
D [20/Dec/2023:21:07:22 -0300] [Job 8] Running command line for pdftops: pdftops -level2 -origpagesizes -nocenter -r 600 /var/spool/cups/tmp/foomatic-dzPx2o -
D [20/Dec/2023:21:07:22 -0300] [Job 8] Started filter pdftops (PID 12328)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Started filter pstops (PID 12329)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Page = 595x842; 11,11 to 584,831
D [20/Dec/2023:21:07:22 -0300] [Job 8] slow_collate=0, slow_duplex=0, slow_order=0
D [20/Dec/2023:21:07:22 -0300] [Job 8] Before copy_comments - %!PS-Adobe-3.0
D [20/Dec/2023:21:07:22 -0300] [Job 8] %!PS-Adobe-3.0
D [20/Dec/2023:21:07:22 -0300] [Job 8] %Produced by poppler pdftops version: 0.68.0 (http://poppler.freedesktop.org)
D [20/Dec/2023:21:07:22 -0300] [Job 8] %%Creator: texttopdf/1.21.0
D [20/Dec/2023:21:07:22 -0300] [Job 8] %%LanguageLevel: 2
D [20/Dec/2023:21:07:22 -0300] [Job 8] %%DocumentSuppliedResources: (atend)
D [20/Dec/2023:21:07:22 -0300] [Job 8] %%DocumentMedia: A4 595 842 0 () ()
D [20/Dec/2023:21:07:22 -0300] [Job 8] %%BoundingBox: 0 0 595 842
D [20/Dec/2023:21:07:22 -0300] [Job 8] %%Pages: 1
D [20/Dec/2023:21:07:22 -0300] [Job 8] %%EndComments
D [20/Dec/2023:21:07:22 -0300] [Job 8] Before copy_prolog - %%BeginProlog
D [20/Dec/2023:21:07:22 -0300] [Job 8] Filetype: PostScript
D [20/Dec/2023:21:07:22 -0300] [Job 8] Reading PostScript input ...
D [20/Dec/2023:21:07:22 -0300] [Job 8] --> This document is DSC-conforming!
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found %RBINumCopies: 1
D [20/Dec/2023:21:07:22 -0300] [Job 8] -----------
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %%BeginProlog
D [20/Dec/2023:21:07:22 -0300] [Job 8] Inserting option code into \"Prolog\" section.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Before copy_setup - %%BeginSetup
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %%EndProlog
D [20/Dec/2023:21:07:22 -0300] [Job 8] -----------
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %%BeginSetup
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %%BeginFeature: *Quality normal
D [20/Dec/2023:21:07:22 -0300] [Job 8] Option: Quality=normal
D [20/Dec/2023:21:07:22 -0300] [Job 8] Setting option
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %% FoomaticRIPOptionSetting: Quality=normal
D [20/Dec/2023:21:07:22 -0300] [Job 8] Option: Quality=normal
D [20/Dec/2023:21:07:22 -0300] [Job 8] Setting option
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %%BeginFeature: *halftone default
D [20/Dec/2023:21:07:22 -0300] [Job 8] Option: halftone=default
D [20/Dec/2023:21:07:22 -0300] [Job 8] Setting option
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %% FoomaticRIPOptionSetting: halftone=default
D [20/Dec/2023:21:07:22 -0300] [Job 8] Option: halftone=default
D [20/Dec/2023:21:07:22 -0300] [Job 8] Setting option
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %%BeginFeature: *Resolution 1200x600dpi
D [20/Dec/2023:21:07:22 -0300] [Job 8] Option: Resolution=1200x600dpi
D [20/Dec/2023:21:07:22 -0300] [Job 8] Setting option
D [20/Dec/2023:21:07:22 -0300] [Job 8] Found: %% FoomaticRIPOptionSetting: Resolution=1200x600dpi
D [20/Dec/2023:21:07:22 -0300] [Job 8] Option: Resolution=1200x600dpi
D [20/Dec/2023:21:07:22 -0300] [Job 8] double free or corruption (fasttop)
D [20/Dec/2023:21:07:22 -0300] [Job 8] Sent 0 bytes...
D [20/Dec/2023:21:07:22 -0300] [Job 8] PID 12321 (/usr/lib64/cups/filter/foomatic-rip) crashed on signal 6.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Hint: Try setting the LogLevel to "debug" to find out more.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Before page loop - %%Page: 1 1
D [20/Dec/2023:21:07:22 -0300] [Job 8] Copying page 1...
D [20/Dec/2023:21:07:22 -0300] [Job 8] pagew = 572.3, pagel = 819.3
D [20/Dec/2023:21:07:22 -0300] [Job 8] bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842
D [20/Dec/2023:21:07:22 -0300] [Job 8] PageLeft = 11.3, PageRight = 583.7
D [20/Dec/2023:21:07:22 -0300] [Job 8] PageTop = 830.7, PageBottom = 11.3
D [20/Dec/2023:21:07:22 -0300] [Job 8] PageWidth = 595.0, PageLength = 842.0
D [20/Dec/2023:21:07:22 -0300] [Job 8] Wrote 1 pages...
D [20/Dec/2023:21:07:22 -0300] [Job 8] PID 12329 (pstops) exited with no errors.
D [20/Dec/2023:21:07:22 -0300] [Job 8] PID 12328 (pdftops) exited with no errors.
D [20/Dec/2023:21:07:22 -0300] [Job 8] Waiting for read thread to exit...
D [20/Dec/2023:21:07:22 -0300] [Job 8] Read thread still active, aborting the pending read...
D [20/Dec/2023:21:07:22 -0300] [Job 8] PID 12322 (/usr/lib64/cups/backend/usb) exited with no errors.
D [20/Dec/2023:21:07:22 -0300] [Job 8] End of messages
D [20/Dec/2023:21:07:22 -0300] [Job 8] printer-state=3(idle)
D [20/Dec/2023:21:07:22 -0300] [Job 8] printer-state-message="Filter failed"
D [20/Dec/2023:21:07:22 -0300] [Job 8] printer-state-reasons=none
The CUPS page marks the job with 'Filter failed'. Again, after a lot of tests, I could
not pinpoint any problem, except for the bold ones above.
Help!
John
Last edited by Johncc330; 12-20-2023 at 06:55 PM.
Reason: More details
Did you run it again with cups LogLevel set to "debug" as recommended? That should provide more information. Signal 6 (abort) usually indicates a crash due to some internal software problem like a buffer overflow.
Hp-1020? Is that one of the cheapest ones where the cartridge refill costs more than the printer? I had one similar (hp-1102) until I took out the roller as well as the cartridge. When faced with a €130 bill for a €50 printer, I junked it and bought new. I never looked back. The new one has a home IP and even mobiles can print from it.
Did you run it again with cups LogLevel set to "debug" as recommended? That should provide more information. Signal 6 (abort) usually indicates a crash due to some internal software problem like a buffer overflow.
Hello Hazel. My apologies for the delay, and I appreciate your reply!
Yes, I have 'debug' enabled, and have 100k's worth of debug output. It's not easy to work through that, but I'm trying!
Quote:
Originally Posted by Alternatively, you can run foomatic-rip directly from the command line with -v option to get a more verbose output. [url
That's interesting - 99% of the documents printed at my wife's pharmacy are PDF, so direct printing would be a great
solution! I did a quick test and the printer produced a 'PS-Adobe...' text, which isn't much, but way better than what
I got from CUPS!
You can even print directly with pdf files (≅ postscript files) directly from ghostscript. Spend 10 minutes with 'man gs' and just set the switches. The available drivers are listed in 'gs -h' and I never had to load a ppd file. The printer doesn't tear up pages if you get the driver wrong.
That's interesting - 99% of the documents printed at my wife's pharmacy are PDF, so direct printing would be a great
solution! I did a quick test and the printer produced a 'PS-Adobe...' text, which isn't much, but way better than what
I got from CUPS!
I never used foomatic-rip. -sOutputFile=<device> where device was the port like /dev/lp0, or whatever is connected to the device. The last item on the line should be your input file. Don't use -q, as you want feedback, but do use -dSafer to discourage dangerous manoeuvres by the printer.
I presume it's a usb connection, so maybe '-sOutputFile /dev/usbttyS0' ? Anyone??
I dont't see the hp1020 in that list. In one of the sites I visited, I even read explicitly that the HP1020 is _not_ supported (anymore?). This _was_ working in cups a couple of years ago.
I see plenty of pdf options. Why not try some of those?
If I understand correctly, the issue is that those old printers work with a Zenographics protocol (Xenographics?). For which apparently only foo2zjs seems to have the correct driver.
Apparently, foomatic-rip is correctly creating the postscript code, but doesn't know how to deliver it. I'm guessing same is happening with gs now. I gather both foomatic and ghostscript happily receive PDFs, create the postscript, but don't know how to deliver the goods to the printer.
Am I correct here?
PDF -> Postscript -> (zeno protocol) -> /dev/usb/lp0
PDF -> Postscript -> (zeno protocol) -> /dev/usb/lp0
Looks good to me. Does it work? I wrote my idea up as an LFS hint "Printing from Scratch." Somebody (Uli Farenberg or something?) contributed a script, and I implored him to look after the hint. He sanitised it and edited out my irritation of the time. you might find it on linuxfromscratch.org
Cups has improved somewhat in the last 20 years. It does the simple things and I don't attempt difficult ones. But AFAIK it just calls gs or some such utility. Using gs takes effort.
If you remember the dialup days, when internet was via serial port, the only program to dial up was the super-inscrutable pppd. So front ends were written to avoid the pppd info page. Try 'info pppd' and you'll see why!
Last edited by business_kid; 12-24-2023 at 09:42 AM.
As of cups version 1.6.3 or so job files should be PDF if printed from a desktop application. In addition, somewhere around that time cups fully "integrated" USB support so no need for /dev/usb/lp0 and why you probably see the message usblp0: removed. cups has a backend for USB printers and it has been awhile so older printers may still need /dev/usb/lp0 but I don't know about the HP-1020. Do you have a /dev/usblp0 or /dev/usb/lp0 device? That may be interfering with the USB backend. Maybe you did not install the printer plugin correctly or installed the wrong one?
What distribution/version are you running?
Looks like cups version 2.2.8
The distro is a pre-15.0 -current one (mainly because of the need for more modern packages than 14.2). Cups is indeed 2.2.8. It's quite a problem that my wife's pharmacy is only closed 2 days each year. I'm about to upgrade to the current -current.
Strange - yesterday I thought I'd seen the device as /dev/usb/lp0. Today - I have the PC at home to upgrade - I can't find either - /dev/usb/lp0 or /dev/usblp0. It does appear in dmesg. Well, I'll worry about that after the upgrade.
Cheers, Michael. Will report back after the upgrade.
Ok... After upgrading the distro, I now have Cups 2.4.8 installed, with lots of promises that it will support the HP1020. However, after a couple of hours of trying to decode documentation, interrogating lpadmin, testing, and other techniques, I could not find a path to get the HP1020 (+cups) running doing a seemingly simple task such as printing a PDF file.
At about 4AM this morning, and having detected tidbits of info while doing the above, I _did_ find how to do same with a slightly more modern Brother HL1200 printer, and got the wife happy (later though... at 4AM she was fast asleep). Even the web-admin worked, and printing was possible from other programs.
I'm still game for clear documentation. And I'd still like to get the HP 1020 back up and running. That old printer has proven very reliable over the years (as has my HP 1022).
Just as an aside: Foomatic publishes a search path for it's ppd files, but during my adventures, I straced the search, and it seems quite different. If anyone is experimenting, this is the list of places:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.