[SOLVED] Cannot print on HP LJ 1020 after latest hplip upgrade
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
FWIW, some users have found that the foo2zjs driver is a better option for supporting this printer model. You can search these forums for threads on this topic.
Hpijs has failed for me for a while. If that's what you're using and hpcups is available as a driver, try that. I believe the Hpijs driver was failing in a Perl script somewhere.
Thanks everyone. The pointers you gave me are worth pursuing. However, it's Saturday and the office where I have my printer is closed, so I cannot yet do any of your suggestions yet until Monday comes.
However, I discovered that cups has an error log in /var/log/cups. So I checked it and this is a typical log for a failed print job.
I don't understand most of it but this line caught my attention:
Code:
D [03/Aug/2018:13:04:23 -0400] [Job 354] HP_LaserJet_1020: error while loading shared libraries: libImageProcessor.so: cannot open shared object file: No such file or directory
Does anyone has an idea of which package supplies that library?
Here is the log for a failed print job:
Code:
E [03/Aug/2018:13:04:23 -0400] [Job 354] Unable to open raster stream - : Broken pipe
E [03/Aug/2018:13:04:23 -0400] [Job 354] Job stopped due to filter errors; please consult the error_log file for details.
D [03/Aug/2018:13:04:23 -0400] [Job 354] The following messages were recorded from 13:04:23 to 13:04:23
D [03/Aug/2018:13:04:23 -0400] [Job 354] Applying default options...
D [03/Aug/2018:13:04:23 -0400] [Job 354] Adding start banner page "none".
D [03/Aug/2018:13:04:23 -0400] [Job 354] Queued on "HP_LaserJet_1020" by "eduardo".
D [03/Aug/2018:13:04:23 -0400] [Job 354] Auto-typing file...
D [03/Aug/2018:13:04:23 -0400] [Job 354] Request file type is application/pdf.
D [03/Aug/2018:13:04:23 -0400] [Job 354] File of type application/pdf queued by "eduardo".
D [03/Aug/2018:13:04:23 -0400] [Job 354] Adding end banner page "none".
D [03/Aug/2018:13:04:23 -0400] [Job 354] time-at-processing=1533315863
D [03/Aug/2018:13:04:23 -0400] [Job 354] 3 filters for job:
D [03/Aug/2018:13:04:23 -0400] [Job 354] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [03/Aug/2018:13:04:23 -0400] [Job 354] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [03/Aug/2018:13:04:23 -0400] [Job 354] hpcups (application/vnd.cups-raster to printer/HP_LaserJet_1020, cost 0)
D [03/Aug/2018:13:04:23 -0400] [Job 354] job-sheets=none,none
D [03/Aug/2018:13:04:23 -0400] [Job 354] argv[0]="HP_LaserJet_1020"
D [03/Aug/2018:13:04:23 -0400] [Job 354] argv[1]="354"
D [03/Aug/2018:13:04:23 -0400] [Job 354] argv[2]="eduardo"
D [03/Aug/2018:13:04:23 -0400] [Job 354] argv[3]="20180803_certif_matrimonio_jeremy_rabin.odt"
D [03/Aug/2018:13:04:23 -0400] [Job 354] argv[4]="1"
D [03/Aug/2018:13:04:23 -0400] [Job 354] argv[5]="Duplex=None InputSlot=Auto PageSize=A4 job-uuid=urn:uuid:69129db9-afe1-3812-4627-8786b693b505 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1533315863 time-at-processing=1533315863 document-name-supplied=f0HC44"
D [03/Aug/2018:13:04:23 -0400] [Job 354] argv[6]="/var/spool/cups/d00354-001"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[2]="CUPS_DOCROOT=/usr/share/doc/cups"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[5]="CUPS_SERVERBIN=/usr/lib64/cups"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[8]="HOME=/var/spool/cups/tmp"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[9]="PATH=/usr/lib64/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[10]="SERVER_ADMIN=root@loli.sombragris.org"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[11]="SOFTWARE=CUPS/2.2.8"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[13]="USER=root"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[14]="CUPS_MAX_MESSAGE=2047"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[17]="IPP_PORT=631"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[18]="CHARSET=utf-8"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[19]="LANG=es_PY.UTF-8"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[20]="PPD=/etc/cups/ppd/HP_LaserJet_1020.ppd"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[21]="RIP_MAX_CACHE=128m"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[22]="CONTENT_TYPE=application/pdf"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[23]="DEVICE_URI=hp:/usb/HP_LaserJet_1020?serial=JL2MEX5"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[24]="PRINTER_INFO=HP LaserJet 1020"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[25]="PRINTER_LOCATION=Oficina"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[26]="PRINTER=HP_LaserJet_1020"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[27]="PRINTER_STATE_REASONS=none"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[28]="CUPS_FILETYPE=document"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[30]="AUTH_I****"
D [03/Aug/2018:13:04:23 -0400] [Job 354] Started filter /usr/lib64/cups/filter/pdftopdf (PID 2534)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Started filter /usr/lib64/cups/filter/gstoraster (PID 2535)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Started filter /usr/lib64/cups/filter/hpcups (PID 2536)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Started backend /usr/lib64/cups/backend/hp (PID 2537)
D [03/Aug/2018:13:04:23 -0400] [Job 354] PID 2536 (/usr/lib64/cups/filter/hpcups) stopped with status 127 (File too large)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Hint: Try setting the LogLevel to "debug" to find out more.
D [03/Aug/2018:13:04:23 -0400] [Job 354] OUTFORMAT=\"(null)\", so output format will be CUPS/PWG Raster
D [03/Aug/2018:13:04:23 -0400] [Job 354] HP_LaserJet_1020: error while loading shared libraries: libImageProcessor.so: cannot open shared object file: No such file or directory
D [03/Aug/2018:13:04:23 -0400] [Job 354] pdftopdf: Last filter determined by the PPD: hpcups; FINAL_CONTENT_TYPE: application/vnd.cups-raster => pdftopdf will not log pages in page_log.
D [03/Aug/2018:13:04:23 -0400] [Job 354] prnt/backend/hp.c 919: ERROR: null print job total=0
D [03/Aug/2018:13:04:23 -0400] [Job 354] PID 2537 (/usr/lib64/cups/backend/hp) exited with no errors.
D [03/Aug/2018:13:04:23 -0400] [Job 354] Color Manager: Calibration Mode/Off
D [03/Aug/2018:13:04:23 -0400] [Job 354] PID 2534 (/usr/lib64/cups/filter/pdftopdf) exited with no errors.
D [03/Aug/2018:13:04:23 -0400] [Job 354] Calling FindDeviceById(cups-HP_LaserJet_1020)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Found device /org/freedesktop/ColorManager/devices/cups_HP_LaserJet_1020
D [03/Aug/2018:13:04:23 -0400] [Job 354] Calling org.freedesktop.ColorManager.Device.Get(ProfilingInhibitors)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Calling FindDeviceById(cups-HP_LaserJet_1020)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Found device /org/freedesktop/ColorManager/devices/cups_HP_LaserJet_1020
D [03/Aug/2018:13:04:23 -0400] [Job 354] Calling GetProfileForQualifiers(Gray.Plain....)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Found profile /org/freedesktop/ColorManager/profiles/HP_LaserJet_1020_Gray__
D [03/Aug/2018:13:04:23 -0400] [Job 354] Calling org.freedesktop.ColorManager.Profile.Get(Filename)
D [03/Aug/2018:13:04:23 -0400] [Job 354] Use profile filename: \'\'
D [03/Aug/2018:13:04:23 -0400] [Job 354] Color Manager: ICC Profile:
D [03/Aug/2018:13:04:23 -0400] [Job 354] Ghostscript using Any-Part-of-Pixel method to fill paths.
D [03/Aug/2018:13:04:23 -0400] [Job 354] Ghostscript command line: gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Plain -sOutputType=-1 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2 -dcupsInteger0=9 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c \'<</.HWMargins[18.000000 15.500000 18.000000 15.500000] /Margins[0 0]>>setpagedevice\' -f -_
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[0]=\"CUPS_CACHEDIR=/var/cache/cups\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[1]=\"CUPS_DATADIR=/usr/share/cups\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[2]=\"CUPS_DOCROOT=/usr/share/doc/cups\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[3]=\"CUPS_FONTPATH=/usr/share/cups/fonts\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[4]=\"CUPS_REQUESTROOT=/var/spool/cups\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[5]=\"CUPS_SERVERBIN=/usr/lib64/cups\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[6]=\"CUPS_SERVERROOT=/etc/cups\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[7]=\"CUPS_STATEDIR=/var/run/cups\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[8]=\"HOME=/var/spool/cups/tmp\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[9]=\"PATH=/usr/lib64/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[10]=\"SERVER_ADMIN=root@loli.sombragris.org\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[11]=\"SOFTWARE=CUPS/2.2.8\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[12]=\"TMPDIR=/var/spool/cups/tmp\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[13]=\"USER=root\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[14]=\"CUPS_MAX_MESSAGE=2047\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[15]=\"CUPS_SERVER=/var/run/cups/cups.sock\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[16]=\"CUPS_ENCRYPTION=IfRequested\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[17]=\"IPP_PORT=631\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[18]=\"CHARSET=utf-8\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[19]=\"LANG=es_PY.UTF-8\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[20]=\"PPD=/etc/cups/ppd/HP_LaserJet_1020.ppd\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[21]=\"RIP_MAX_CACHE=128m\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[22]=\"CONTENT_TYPE=application/pdf\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[23]=\"DEVICE_URI=hp:/usb/HP_LaserJet_1020?serial=JL2MEX5\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[24]=\"PRINTER_INFO=HP LaserJet 1020\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[25]=\"PRINTER_LOCATION=Oficina\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[26]=\"PRINTER=HP_LaserJet_1020\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[27]=\"PRINTER_STATE_REASONS=none\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[28]=\"CUPS_FILETYPE=document\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[29]=\"FINAL_CONTENT_TYPE=application/vnd.cups-raster\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] envp[30]=\"AUTH_INFO_REQUIRED=none\"
D [03/Aug/2018:13:04:23 -0400] [Job 354] Start rendering...
D [03/Aug/2018:13:04:23 -0400] [Job 354] Processing page 1...
D [03/Aug/2018:13:04:23 -0400] [Job 354] Error: /ioerror in --showpage--
D [03/Aug/2018:13:04:23 -0400] [Job 354] Operand stack:
D [03/Aug/2018:13:04:23 -0400] [Job 354] true (/var/spool/cups/tmp/gs_xoDi7n) --nostringval-- 1 true
D [03/Aug/2018:13:04:23 -0400] [Job 354] Execution stack:
D [03/Aug/2018:13:04:23 -0400] [Job 354] %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2015 2 3 %oparray_pop 2014 2 3 %oparray_pop 1998 2 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1890 3 9 %oparray_pop --nostringval-- --nostringval--
D [03/Aug/2018:13:04:23 -0400] [Job 354] Dictionary stack:
D [03/Aug/2018:13:04:23 -0400] [Job 354] --dict:1000/1684(ro)(G)-- --dict:1/20(G)-- --dict:83/200(L)-- --dict:83/200(L)-- --dict:133/256(ro)(G)-- --dict:305/450(ro)(G)-- --dict:33/64(L)-- --dict:6/9(L)-- --dict:6/20(L)--
D [03/Aug/2018:13:04:23 -0400] [Job 354] Current allocation mode is local
D [03/Aug/2018:13:04:23 -0400] [Job 354] Last OS error: Broken pipe
D [03/Aug/2018:13:04:23 -0400] [Job 354] GPL Ghostscript 9.23: Unrecoverable error, exit code 1
D [03/Aug/2018:13:04:23 -0400] [Job 354] Rendering completed
D [03/Aug/2018:13:04:23 -0400] [Job 354] PID 2535 (/usr/lib64/cups/filter/gstoraster) stopped with status 1.
D [03/Aug/2018:13:04:23 -0400] [Job 354] Hint: Try setting the LogLevel to "debug" to find out more.
D [03/Aug/2018:13:04:23 -0400] [Job 354] End of messages
D [03/Aug/2018:13:04:23 -0400] [Job 354] printer-state=3(idle)
D [03/Aug/2018:13:04:23 -0400] [Job 354] printer-state-message="Rendering completed"
D [03/Aug/2018:13:04:23 -0400] [Job 354] printer-state-reasons=none
Last edited by sombragris; 08-04-2018 at 02:39 PM.
That library is supplied by the hplip package. According to post #1810 in the "Requests for -current" thread, Ivandi posted that the hplip package in current is broken. Here is the link to that post: https://www.linuxquestions.org/quest...ml#post5887706
Also read ponce's response to Ivandi's post, as he found an issue with the make script for hplip not respecting the DESTDIR variable.
I had a similar problem with a recent update with 14.2.
After the update, I couldn’t detect my network printer but I was able to connect to it by changing the driver. Now all is well.
Printer:
HP Officejet 4630 series
new driver
HP Officejet 4630 Series, hpcups 3.16.5
There's additional log entries indicating other problems beyond the one that you singled out, and the log snippet your shared is not complete for that job anyway. I recommend that you share it via https://pastebin.com/ and post the link that it provides here so that others can review further.
For HPLIP dependency issues, ‘hp-check’ can be used to get a comprehensive report about missing or incompatible supporting libraries...
Code:
hp-check -t
Back at the office here. Thanks for all the pointers. I have a hplip 3.18.6 ready in case none of this works.
Now, I don't know why should I search for this, since I was able to print without issues with hplip 3.18.6. The upgrade to 3.18.7 was the event who rendered my system unable to print.
BTW, I think this tool does not work properly. I left it and it stays there for a long time without any output. Running with the -g flag enabled tells me that it stalls here:
Code:
hp-check[8699]: debug: Searching for file 'cups.h' in '/usr/include'...
(cups.h is actually at /usr/include/cups/cups.h)
Last edited by sombragris; 08-06-2018 at 10:06 AM.
Just to note that, after producing that log wth cups in debug mode, I have reverted to hplip-3.18.6 and I am able to print again. I await whatever hint which may help me in print under the updated hplip.
Ponce's patch worked for me, but the forum software replaced tabs with spaces, so sadly you can't just copy and paste it. I'm attaching the diff I used to rebuild hplip 3.18.7. YMMV. Thanks for the pointer @JohnB316 !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.