Can not print from Ubuntu 18.04 to HP Color LaserJet CP1215

Bug #1797859 reported by Kourosh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

The printer worked fine with Ubuntu 16.04, but cant print a test page (or anythiing else ) with 18.04.
The printer is plugged via USB as ever.
Tried all the suggestions I could scour across the net (eg reinstall, purge & reinstall, etc etc etc)
Especially: https://developers.hp.com/hp-linux-imaging-and-printing/install all that boring things with HPLIB/cups,... :(

HP device manager sees the printer (even tells me how much toner is left) but it does not print, neither a test page...
The only thing which is working after the upgrade to 18.04 is scanning with an another printer (Epson BX630FW) here printing not possible as well.

As suggested in the similar "resolved" Bug-674931 (how could that work? I've tried all steps that are mentioned there...) the result of
hp-check -t

----------------------
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `epson2:net:192.168.178.27' is a Epson PID 0890 flatbed scanner

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  ----------------------------------------------- -----------------------------------------------
  hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN HP Color LaserJet CP1215

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_Color_LaserJet_CP1215
------------------------
Type: Printer
Device URI: hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN
PPD: /etc/cups/ppd/HP_Color_LaserJet_CP1215.ppd

====== BREAK BY ME: BUT why this warning?
warning: Failed to read /etc/cups/ppd/HP_Color_LaserJet
====== even though ppd file exists:
====== ls -la /etc/cups/ppd
======
====== drwxr-xr-x 2 root lp 4096 Okt 15 09:51 .
====== drwxr-xr-x 5 root lp 4096 Okt 15 10:51 ..
====== -rw-r----- 1 root lp 6251 Okt 15 09:51 Epson_Stylus_Office_BX630FW.ppd
====== -rw-r----- 1 root lp 6251 Okt 15 09:51 Epson_Stylus_Office_BX630FW.ppd.O
====== -rw-r----- 1 root lp 43355 Okt 14 15:50 HP_Color_LaserJet_CP1215.ppd
====== -rw-r----- 1 root lp 16090 Okt 14 15:34 HP_Color_LaserJet_CP1215.ppd.O
====== END OF BREAK

PPD Description:
Printer status: Drucker HP_Color_LaserJet_CP1215 druckt jetzt HP_Color_LaserJet_CP1215-2035. Aktiviert seit Mo 15 Okt 2018 09:51:43 CEST
Required plug-in status: Installed
Communication status: Good

--------------
| PERMISSION |
--------------

USB HP_Color_LaserJet_CP1215 Required - - OK Node:'/dev/bus/usb/001/006' Perm:' root lp rw- rw- rw- rw- r--'
No errors or warnings.

Done.

----------------------

The result of sudo hp-logcapture is enclosed in attach.

Revision history for this message
Kourosh (af-ko) wrote :
Revision history for this message
brian_p (claremont102) wrote :

Your error_log doesn't show any job arriving at the CUPS server. You also say you cannot print to a Epson BX630FW. At first sight, this looks like a CUPS problem, not an HPLIP problem. Try this:

The URI for the connection is:

 hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN

(Check this with 'lpinfo -v').

Now do

 lpinfo -m | grep "cp1215.ppd"

to get the PPD (drv:///hpcups.....).

Then:

 lpadmin -p test -v <URI> -E -m <PPD>

Print with

 lp -d test /etc/nsswitch.conf

--
Brian.

Revision history for this message
Kourosh (af-ko) wrote :

> Hey Brian

The URI for the connection is:

hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN

(Check this with 'lpinfo -v').

> reaction:

lpinfo -v

network beh

file cups-brf:/

network socket

network http

network ipps

network lpd

network https

direct usb://HP/Color%20LaserJet%20CP1215?serial=LJ20TGN

direct hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN

network ipp

direct hpfax

network dnssd://Epson%20Stylus%20Office%20BX630FW._pdl-datastream._tcp.local/

network lpd://192.168.178.27:515/PASSTHRU

network ipp://EPSON620832.local:631/Epson_IPP_Printer

Now do

lpinfo -m | grep "cp1215.ppd"
> reaction:

lpinfo -m | grep "cp1215.ppd"

drv:///hpcups.drv/hp-color_laserjet_cp1215.ppd HP Color LaserJet cp1215, hpcups 3.17.10, requires proprietary plugin

drv:///hp/hpcups.drv/hp-color_laserjet_cp1215.ppd HP Color LaserJet cp1215, hpcups 3.18.9, requires proprietary plugin

lsb/usr/HP/hp-color_laserjet_cp1215.ppd.gz HP Color LaserJet cp1215, hpcups 3.18.9, requires proprietary plugin

to get the PPD (drv:///hpcups.....).

Then:

lpadmin -p test -v <URI> -E -m <PPD>

> reaction:

lpadmin -p test -v hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN -m -E drv:///hpcups.drv/hp-color_laserjet_cp1215.ppd

lpadmin: unbekanntes Argument "drv:///hpcups.drv/hp-color_laserjet_cp1215.ppd". (i.e. unknown argument ...)

> How do you want me to continue?

> BR - Kourosh

Revision history for this message
Kourosh (af-ko) wrote :

additional hint:
Scanning with "Epson BX630FW" works without any issues

Revision history for this message
brian_p (claremont102) wrote :

You have

 -m -E drv:///hpcups.drv/hp-color_laserjet_cp1215.ppd

It should be

 -E -m drv:///hpcups.drv/hp-color_laserjet_cp1215.ppd

Please put scanning out of your mind. It is a different process from printing and there is no connection between them.

--
Brian.

Revision history for this message
Kourosh (af-ko) wrote :

ok, have tried:

lpadmin -p test -v hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN -E -m drv:///hpcups.drv/hp-color_laserjet_cp1215.ppd

echo $?
0

lp -d test /etc/nsswitch.conf
Anfrage-ID ist test-2045 (1 Datei(en))

ohn the head status line
!HPLIP Device status test started a print job nsss...
competed...

nothing was printed, no reaction on printer

??

Revision history for this message
brian_p (claremont102) wrote :

This sounds more and more like a CUPS problem.

Do 'lpstat -t'. Is there anything there about test-2045?

--
Brian.

Revision history for this message
Kourosh (af-ko) wrote :

lpstat -t
Zeitplandienst läuft
systemvoreingestelltes Ziel: test
Gerät für Epson_Stylus_Office_BX630FW: ipp://EPSON620832.local:631/Epson_IPP_Printer
Gerät für HP_Color_LaserJet_CP1215: hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN
Gerät für test: hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ20TGN
Epson_Stylus_Office_BX630FW akzeptiert anfragen seit Mo 15 Okt 2018 13:51:38 CEST
HP_Color_LaserJet_CP1215 akzeptiert anfragen seit Mo 15 Okt 2018 17:04:25 CEST
test akzeptiert anfragen seit Mo 15 Okt 2018 17:11:48 CEST
Drucker Epson_Stylus_Office_BX630FW ist im Leerlauf. Aktiviert seit Mo 15 Okt 2018 13:51:38 CEST
Drucker HP_Color_LaserJet_CP1215 ist im Leerlauf. Aktiviert seit Mo 15 Okt 2018 17:04:25 CEST
Drucker test ist im Leerlauf. Aktiviert seit Mo 15 Okt 2018 17:11:48 CEST
 Filter failed
test-2047 kourosh 19456 Mo 15 Okt 2018 17:06:24 CEST
test-2048 kourosh 1024 Mo 15 Okt 2018 17:09:02 CEST
test-2049 kourosh 1024 Mo 15 Okt 2018 17:10:15 CEST
test-2050 kourosh 1024 Mo 15 Okt 2018 17:11:13 CEST
test-2051 kourosh 1024 Mo 15 Okt 2018 17:11:48 CEST

---
Kourosh

Revision history for this message
brian_p (claremont102) wrote :

A filter has failed and the last 5 jobs have been held in a queue. An error_log will tell you which filter failed or you could do (as root)

cupsfilter -p <PPD_file_for_test_in_/etc/cups/ppd/> -m printer/foo -e /etc/nsswitch.conf > outfile 2>log

and look at log

--
Brian.

Revision history for this message
srinivas (srinivas5) wrote :

Hi,

Please try installing HPLIP 3.18.6 driver from the below link.
https://sourceforge.net/projects/hplip/files/hplip/
Let me know the behaviour.

Regards,
Srinivas Teja.

Changed in hplip:
status: New → In Progress
Revision history for this message
Kourosh (af-ko) wrote :

Hi,
I had installed HPLIP-3.18.9.
I'm processing its uninstall during the installation of your suggested version 18.6.

We'll see...

Revision history for this message
Kourosh (af-ko) wrote :

unfortunately without any changes :( s. attach

Revision history for this message
Kourosh (af-ko) wrote :
Revision history for this message
brian_p (claremont102) wrote :

I am ceasing to support searching for a solution to this probem.

Good luck.

Revision history for this message
Kourosh (af-ko) wrote :

many thx Brian
as Srinivas have changed the status of the defect to "In Progress" I guess he is going to follow up.
Have never had such strange issues for a simple matter with Linux/Ubuntu... sad :(

Revision history for this message
Kourosh (af-ko) wrote :
Revision history for this message
Kourosh (af-ko) wrote :

any idea to get it fixed?
I'm afraid I'm not the only one user with this BS issues after the upgrade...

Revision history for this message
JoergLandsiedel (joerg-landsiedel) wrote :

Soved! :

I have the same issue after upgrading to 18.04 (Kubuntu).
It seems to be no HPLIP issue.

I fount the solution on
https://askubuntu.com/questions/1080720/printer-filter-failed

The cause of the problem seems to be an issue with ghostscript.

I did the following:

sudo rmdir /usr/share/ghostscript/9.25/iccprofiles
sudo apt-get install --reinstall libgs9-common

(see details in link above)

regards,
Joerg

A first test with my hplip (3.18.6) using
HP_LaserJet_Professional_M1132_MFP
started a print immediately without errors.

The printer works again!!!

Next step will be to upgrade to current hplip 3.18.9.

Revision history for this message
Kourosh (af-ko) wrote :

Unbelievable Jörg :))
I think it has helped really.
The printer has printed again after a break of ca. 3days!!!
I thank you so much!
Going to wait for the upgrade to current 18.9 - for now never change a running system LOL
Have a nice evening from Germany!

Revision history for this message
JoergLandsiedel (joerg-landsiedel) wrote :

Fine!

But as you can see in the link I provided I did not solve it.
I just found the solution on askubuntu.com.

But it is really good to hear that we have a solution now as it works for you too.
I was looking for a solution for a couple of days.

Have also a nice evening - from Germany, too ;-)

Revision history for this message
brian_p (claremont102) wrote :

> Unbelievable Jörg :))

You were asked to give the output of a cupsfilter command. For whatever reason you did not think it necessary. This makes it rather hard to triage bug reports. It would have revealed ghostscript to have been the problem.

> The printer has printed again after a break of ca. 3days!!!

Could have been reduced to 2 days with a bit of co-operation. :)

--
Brian.

Revision history for this message
JoergLandsiedel (joerg-landsiedel) wrote :

Hi Brian,

there seems to be a misunderstanding.

I was not asked to do anything ...

I just "popped in" this evening, read the tread and found later the answer on askubuntu.com .
Then I returned to provide here what I found to (hopefully) help other users.

Regards,
Jorg

Revision history for this message
brian_p (claremont102) wrote :

Apologies. I was a little grumpy. And you did indeed help.

--
Brian.

Revision history for this message
Kourosh (af-ko) wrote :

Hi Brain and Jörg
from my perspective all of activities are valuable for the community many thanks again to you Brian as my first guide ;)
Apart from that it could be helpful to include a shortened final solution in the knowledge base and probably link the current defect to the topic. It could avoid redundant defects and could help other users with similar issues.

Many thanks and have a nice day.
Kourosh

@Srinivas: As you have changed the status of the ticket it'd be very nice, if you would close the ticket and set up the following steps (regarding to knowledge base, release management,...) - many thx

Revision history for this message
Kourosh (af-ko) wrote :

@Brian
after your #15-comment I thought you're done with this defect as you wrote:

"I am ceasing to support searching for a solution to this probem.
Good luck."

..as Srinivas changed the status to "in Progress". There was no reason for me to provide some cups filter logs...

Wanted just to mention that, your support was valuable all time, but was finished from my point of view with your #15-comment.
many thx again and have a nice day!

Revision history for this message
brian_p (claremont102) wrote :

@Kourosh
Again, I apologise for my grumpiness and add that you, of course, were entitled to take the view you did. My view would be that the log might have helped Srinivas even if I had dropped out of the conversation.

I am glad you solved your problem and compliment you on giving a detailed solution:

> sudo rmdir /usr/share/ghostscript/9.25/iccprofiles
> sudo apt-get install --reinstall libgs9-common

Many thanks for straightening me out.

--
Brian.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.