LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 12-20-2023, 06:52 PM   #1
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Rep: Reputation: 19
hp-1020 installed, accepts jobs, but does not actually print


After reading 100's of quite similar threads over a load of forums, I'm about to give up... Here's the situation:

- I have a machine which has been running quite some time (4 or more years) without problems,

Code:
Linux sally.xxx.yyy 4.14.67 #1 SMP Fri Aug 24 16:01:52 CDT 2018 x86_64 AMD A6-9500 RADEON R5, 8 COMPUTE CORES 2C+6G AuthenticAMD GNU/Linux
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
 
Old 12-21-2023, 08:17 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
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.

Alternatively, you can run foomatic-rip directly from the command line with -v option to get a more verbose output. https://man.archlinux.org/man/extra/...matic-rip.1.en.

cups typically marks jobs as done when it has handed them off to a filter.
 
1 members found this post helpful.
Old 12-21-2023, 11:39 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
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.
 
Old 12-23-2023, 07:42 AM   #4
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by hazel View Post
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
https://man.archlinux.org/man/extra/cups-filters/foomatic-rip.1.en[/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!
 
Old 12-23-2023, 09:55 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
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.
 
Old 12-23-2023, 01:28 PM   #6
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by Johncc330 View Post
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!
Well. The command:

Code:
strace foomatic-rip -v --ppd $HOME/.foomatic/direct/HP_LaserJet_1022.ppd /usr/local/temp_a/opf/opf-01706356515763.pdf > log
Produces one page with

Code:
%!PS-Adobe-3.0
              %%Invocation: gs -q -sstdout=? -sDEVICE=ps2write -sOutputFile=?......
and then goes through all remaining stack of sheet (not printing).

Am I completely confused, or is this because the printer uses another protocol? Do I have to pass it through foo2zjs?
 
Old 12-23-2023, 02:41 PM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
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??
 
Old 12-23-2023, 07:53 PM   #8
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by business_kid View Post
The available drivers are listed in 'gs -h' and I never had to load a ppd file.

Code:
gs -h
GPL Ghostscript 9.56.1 (2022-04-04)
Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: x11alpha
Available devices:
   alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 ap3250 appledmp
   appleraster atx23 atx24 atx38 bbox bit bitcmyk bitrgb bitrgbtags bj10e
   bj10v bj10vh bj200 bjc600 bjc800 bjc880j bjccmyk bjccolor bjcgray bjcmono
   bmp16 bmp16m bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 ccr cdeskjet
   cdj1600 cdj500 cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdjcolor cdjmono
   cdnj500 cfax chp2200 cif cljet5 cljet5c cljet5pr coslw2p coslwxl cups
   declj250 deskjet devicen dfaxhigh dfaxlow display dj505j djet500 djet500c
   dl2100 dnj650c docxwrite epl2050 epl2050p epl2120 epl2500 epl2750 epl5800
   epl5900 epl6100 epl6200 eplcolor eplmono eps2write eps9high eps9mid epson
   epsonc escp escpage faxg3 faxg32d faxg4 fmlbp fmpr fpng fs600 gdi hl1240
   hl1250 hl7x0 hocr hpdj1120c hpdj310 hpdj320 hpdj340 hpdj400 hpdj500
   hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c
   hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdjplus
   hpdjportable ibmpro ijs imagen inferno ink_cov inkcov itk24i itk38 iwhi
   iwlo iwlq jetp3852 jj100 jpeg jpegcmyk jpeggray la50 la70 la75 la75plus
   laserjet lbp310 lbp320 lbp8 lex2050 lex3200 lex5700 lex7000 lips2p lips3
   lips4 lips4v lj250 lj3100sw lj4dith lj4dithp lj5gray lj5mono ljet2p ljet3
   ljet3d ljet4 ljet4d ljet4pjl ljetplus ln03 lp1800 lp1900 lp2000 lp2200
   lp2400 lp2500 lp2563 lp3000c lp7500 lp7700 lp7900 lp8000 lp8000c lp8100
   lp8200c lp8300c lp8300f lp8400f lp8500c lp8600 lp8600f lp8700 lp8800c
   lp8900 lp9000b lp9000c lp9100 lp9200b lp9200c lp9300 lp9400 lp9500c
   lp9600 lp9600s lp9800c lps4500 lps6500 lq850 lxm3200 lxm5700m m8510
   md1xMono md2k md50Eco md50Mono md5k mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8
   mgrmono miff24 mj500c mj6000c mj700v2c mj8000c ml600 necp6 npdl nullpage
   oce9050 ocr oki182 oki4w okiibm oprp opvp paintjet pam pamcmyk32 pamcmyk4
   pbm pbmraw pcl3 pclm pclm8 pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono
   pdfimage24 pdfimage32 pdfimage8 pdfocr24 pdfocr32 pdfocr8 pdfwrite
   pdfwrite pdfwrite pgm pgmraw pgnm pgnmraw photoex picty180 pj pjetxl pjxl
   pjxl300 pkm pkmraw pksm pksmraw plan plan9bm planc plang plank planm plib
   plibc plibg plibk plibm png16 png16m png256 png48 pngalpha pnggray
   pngmono pngmonod pnm pnmraw ppm ppmraw pr1000 pr1000_4 pr150 pr201
   ps2write psdcmyk psdcmyk16 psdcmykog psdcmyktags psdcmyktags16 psdrgb
   psdrgb16 pwgraster pxlcolor pxlmono r4081 rinkj rpdl samsunggdi sj48
   spotcmyk st800 stcolor t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc
   tiff32nc tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray
   tifflzw tiffpack tiffscaled tiffscaled24 tiffscaled32 tiffscaled4
   tiffscaled8 tiffsep tiffsep1 txtwrite uniprint urf x11 x11alpha x11cmyk
   x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 x11gray4 x11mono xcf xes xpswrite
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.
 
Old 12-24-2023, 04:16 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
I see plenty of pdf options. Why not try some of those?
 
Old 12-24-2023, 08:38 AM   #10
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by business_kid View Post
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
 
Old 12-24-2023, 09:37 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
Quote:
Originally Posted by Johncc330
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.
 
Old 12-24-2023, 10:27 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
The basic flow is:

Quote:
job files -> filter -> PPD filter -> Port Monitor -> Backend <-> Printer
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
 
Old 12-25-2023, 11:03 AM   #13
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Original Poster
Rep: Reputation: 19
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.

John
 
Old 12-26-2023, 12:09 PM   #14
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Original Poster
Rep: Reputation: 19
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).

Thanks for the suggestions!
 
Old 12-26-2023, 07:54 PM   #15
Johncc330
Member
 
Registered: Mar 2007
Posts: 101

Original Poster
Rep: Reputation: 19
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:

Code:
HP_LaserJet_1022.ppd", R_OK)    = -1
HP_LaserJet_1022.ppd.ppd", R_OK) = -1
/root/.foomatic//HP_LaserJet_1022.ppd.ppd", R_OK) = -1
/etc/foomatic/direct/HP_LaserJet_1022.ppd.ppd", R_OK) = -1
/etc/foomatic/HP_LaserJet_1022.ppd.ppd", R_OK) = -1
/etc/cups/ppd/HP_LaserJet_1022.ppd.ppd", R_OK) = -1
/usr/local/etc/cups/ppd/HP_LaserJet_1022.ppd.ppd", R_OK) = -1
 
  


Reply

Tags
cups-filters, hp1020, linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Brother MFC-J4510DW does not print although print jobs complete successfully willi53 Linux Deepin 3 01-15-2018 02:04 PM
CUPS - Print jobs shows completed, but page doesn't print hikerguy Linux - Software 10 05-12-2017 12:17 PM
CUPS print jobs print 1st page OK, but all others are overwritten staus Slackware 25 07-04-2011 09:59 AM
Print Manager indicates successful print job, but nothing actually prints sdgalbo Linux - Hardware 2 04-02-2006 11:40 PM
print jobs not actually printing....? rose_bud4201 Linux - Software 0 01-23-2003 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration