Bug 1694797

Summary: Unable to print test page for HP M281fdw with GNOME Printer settings
Product: [Fedora] Fedora Reporter: Jan Vlug <jan.public>
Component: cups-filtersAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: jpopelka, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cups-filters-1.22.5-1.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-16 04:03:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
lpstat
none
lpinfo -l -v
none
HP-ColorLaserJet-MFP-M278-M281.ppd
none
HP-ColorLaserJet-MFP-M278-M281.ppd.O
none
Log messages during starting GNOME Settings and attempt to print test page
none
cups input file d00451-001
none
cups output file of test-printer none

Description Jan Vlug 2019-04-01 17:19:36 UTC
Description of problem:
I cannot print a test page to the HP ColorLaserJet M281mpf with the GNOME Printer settings

Version-Release number of selected component (if applicable):
cups.x86_64                                        1:2.2.8-10.fc29

How reproducible:
always

Steps to Reproduce:
1. Open GNOME Settings
2. click Printers in the left Devices tree
3. Click the gear icon of the HP-ColorLaserJet-MFP-M278-M281 printer
4. Click Printing Options
5. Click the Test Page button

Actual results:
A test page printed by the printer

Expected results:
LCD screen of printer shows: Unable to print file. File is corrupt.

Additional info:
From journal, when trying to print the test page:
apr 01 19:16:12 nyx cupsd[1723]: REQUEST localhost - - "POST /printers/HP-ColorLaserJet-MFP-M278-M281 HTTP/1.1" 200 430 Print-Job successful-ok
apr 01 19:16:12 nyx cupsd[1723]: HP-ColorLaserJet-MFP-M278-M281 jan 336 [01/Apr/2019:19:16:12 +0200] 1 1 - localhost Test Page - -
apr 01 19:16:13 nyx cupsd[1723]: HP-ColorLaserJet-MFP-M278-M281 jan 336 [01/Apr/2019:19:16:13 +0200] total 0 - localhost Test Page - -

Comment 1 Jan Vlug 2019-04-01 21:17:28 UTC
I now think that this is a cups issue, because printing a test page via the web interface at: http://localhost:631/printers/HP-ColorLaserJet-MFP-M278-M281 results in the same error message on the printer display.

Comment 2 Zdenek Dohnal 2019-04-02 06:23:24 UTC
I do not understand why assignee was not moved...

Comment 3 Zdenek Dohnal 2019-04-02 06:44:59 UTC
Hi Jan!

thank you for reporting the issue! Would you mind providing files with outputs of:

1) $ lpstat -t
2) $ sudo lpinfo -l -v
3) $ cat /etc/cups/ppd/<your_print_queue_name>.ppd
4) turn on debug2 log level in cupsd, restart CUPS, try to print a test page and attach journal logs for the job or time frame when you issued a job.

Generally, the things which are described in https://fedoraproject.org/wiki/How_to_debug_printing_problems .

Comment 4 Jan Vlug 2019-04-02 09:15:24 UTC
Hi Zdenek,

After installing the plugin by running
hp-plugin -i
as suggested in bug 1694663, I can print the test page.

Are you still interested in the requested information?

Would it somehow be possible to indicate that the plugin is missing in the GUI? I did not think of this possibility, because I specifically selected this printer because I thought that it did not require a proprietary plugin, as indicated on https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index.

Comment 5 Zdenek Dohnal 2019-04-02 11:27:13 UTC
(In reply to Jan Vlug from comment #4)
> Hi Zdenek,
> 
> After installing the plugin by running
> hp-plugin -i
> as suggested in bug 1694663, I can print the test page.
> 
> Are you still interested in the requested information?

Yes, it should print test page at least ;) - IMO plugin is needed only for scanning (until we will prove different thing :) ), printing should work, especially as it seems it is IPP everywhere enabled printer - but there could be an error in IPP server in printer, so that's problem sometimes. And can you create a print queue in gnome-control-center when you issue an IP address? Then g-c-c should find your printer too.

Ad investigating the issue:
You can check files which does to CUPS and out:
1) to CUPS:
- in /var/spool/cups should be a file starting by letter 'd' - it is file from app (g-c-c) to CUPS - please check if it is test file and attach it too
2) out of CUPS:
- it is already filtered job - you can get it by creating new filedevice printer (set FileDevice to Yes in /etc/cups/cups-files.conf and restart cups) with lpadmin, but with ppd of your printer:

$ sudo lpadmin -p test-printer -v file:/tmp/ps -P /etc/cups/ppd/<ppd_file_of_affected_printer>.ppd -E

- then try to print test page to it - there will be 'ps' file in /tmp dir after 'printing' is finished - please attach it too.


> 
> Would it somehow be possible to indicate that the plugin is missing in the
> GUI? I did not think of this possibility, because I specifically selected

Do you mean in gnome-control-center? Unfortunately, I do not think so - it would need to depend on a database, but as you can see, there is no reliable one...

> this printer because I thought that it did not require a proprietary plugin,
> as indicated on
> https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/
> index.

Comment 6 Jan Vlug 2019-04-03 14:01:33 UTC
(In reply to Zdenek Dohnal from comment #3)
> Hi Jan!
> 
> thank you for reporting the issue! Would you mind providing files with
> outputs of:
> 
> 1) $ lpstat -t
> 2) $ sudo lpinfo -l -v
> 3) $ cat /etc/cups/ppd/<your_print_queue_name>.ppd
> 4) turn on debug2 log level in cupsd, restart CUPS, try to print a test page
> and attach journal logs for the job or time frame when you issued a job.
> 
> Generally, the things which are described in
> https://fedoraproject.org/wiki/How_to_debug_printing_problems .

Start:
All via g-c-c:
1. Remove all printers
2. Wait until printer appears again via DNS-SD
3. Add... printer
	Add...
	Select discovered printer
	Add
4. Wait until the added printer appears in the Printers pane.
5. For the added printer, go to Printing Options, click the Test Page button.
   This happens
	* On the LCD display of the printer the following appears: "Unable to print file. File is corrupt."
	* The ink levels of the printer appear for the printer in the Printers pane.
6. Note: once this ink level has been established, it stays visible, even after closing and starting g-c-c.

Removed all files in /var/spool/cups
   (files starting with c, d, and a tmp directory)


made lpstat.txt
made lpinfo.txt

made *.ppd files strange enough there are two of them.
[jan@nyx ppd]$ ls -sla /etc/cups/ppd/
total 32
 4 drwxr-xr-x. 2 root lp  4096  3 apr 11:41 .
 4 drwxr-xr-x. 4 root lp  4096  3 apr 14:47 ..
12 -rw-r-----. 1 root lp 11571  3 apr 11:41 HP-ColorLaserJet-MFP-M278-M281.ppd
12 -rw-r-----. 1 root lp 11587  3 apr 11:41 HP-ColorLaserJet-MFP-M278-M281.ppd.O
The only difference is the paper size, I cannot remember that I changed this manually. I am using A4 paper.

Enabled cups debug level 2
Tried to print a test page. See cups_journal.txt for the log messages

Comment 7 Jan Vlug 2019-04-03 14:02:16 UTC
Created attachment 1551397 [details]
lpstat

Comment 8 Jan Vlug 2019-04-03 14:03:03 UTC
Created attachment 1551398 [details]
lpinfo -l -v

Comment 9 Jan Vlug 2019-04-03 14:04:01 UTC
Created attachment 1551399 [details]
HP-ColorLaserJet-MFP-M278-M281.ppd

Comment 10 Jan Vlug 2019-04-03 14:04:30 UTC
Created attachment 1551400 [details]
HP-ColorLaserJet-MFP-M278-M281.ppd.O

Comment 11 Jan Vlug 2019-04-03 14:05:41 UTC
Created attachment 1551401 [details]
Log messages during starting GNOME Settings and attempt to print test page

Comment 12 Jan Vlug 2019-04-03 14:10:48 UTC
Created attachment 1551403 [details]
cups input file d00451-001

Comment 13 Jan Vlug 2019-04-03 14:16:21 UTC
Created attachment 1551404 [details]
cups output file of test-printer

Comment 14 Jan Vlug 2019-04-03 14:21:41 UTC
(In reply to Zdenek Dohnal from comment #5)
> (In reply to Jan Vlug from comment #4)
> > Hi Zdenek,
> > 
> > After installing the plugin by running
> > hp-plugin -i
> > as suggested in bug 1694663, I can print the test page.
> > 
> > Are you still interested in the requested information?
> 
> Yes, it should print test page at least ;) - IMO plugin is needed only for
> scanning (until we will prove different thing :) ), printing should work,
> especially as it seems it is IPP everywhere enabled printer - but there
> could be an error in IPP server in printer, so that's problem sometimes. And
> can you create a print queue in gnome-control-center when you issue an IP
> address? Then g-c-c should find your printer too.

Interestingly printing to the printer works, except for the test page from g-c-c.

> 
> Ad investigating the issue:
> You can check files which does to CUPS and out:
> 1) to CUPS:
> - in /var/spool/cups should be a file starting by letter 'd' - it is file

Attached.

> from app (g-c-c) to CUPS - please check if it is test file and attach it too
> 2) out of CUPS:
> - it is already filtered job - you can get it by creating new filedevice
> printer (set FileDevice to Yes in /etc/cups/cups-files.conf and restart
> cups) with lpadmin, but with ppd of your printer:
> 
> $ sudo lpadmin -p test-printer -v file:/tmp/ps -P
> /etc/cups/ppd/<ppd_file_of_affected_printer>.ppd -E
> 
> - then try to print test page to it - there will be 'ps' file in /tmp dir
> after 'printing' is finished - please attach it too.
> 
> 

Attached.

> > 
> > Would it somehow be possible to indicate that the plugin is missing in the
> > GUI? I did not think of this possibility, because I specifically selected
> 
> Do you mean in gnome-control-center? Unfortunately, I do not think so - it
> would need to depend on a database, but as you can see, there is no reliable
> one...

Yes, that is what I meant.


Separate remark:
Note that messages about a wrong paper size go to the LCD screen on the printer. I can accept there to continue with the loaded format. I do not get this feedback on my Fedora system.

Comment 15 Zdenek Dohnal 2019-04-03 16:14:46 UTC
Hmm... output of filters is corrupted - these filters are part of cups-filters, reassigning component.

Comment 16 Zdenek Dohnal 2019-04-03 16:29:13 UTC
Reported upstream https://github.com/OpenPrinting/cups-filters/issues/104 .

Comment 17 Zdenek Dohnal 2019-04-08 09:49:33 UTC
Jan, I found out the crash is fixed in newer cups-filters (printing does not crash, but one line is cropped - I do not find it critical though), would you mind testing https://koji.fedoraproject.org/koji/taskinfo?taskID=34046177 if it works for you too?

Comment 18 Jan Vlug 2019-04-08 13:59:09 UTC
Zdenek, I confirm that I can print a test page with the new build. Thanks for your great work!

Comment 19 Fedora Update System 2019-04-08 14:40:36 UTC
cups-filters-1.22.5-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-63d18edc23

Comment 20 Fedora Update System 2019-04-09 03:13:54 UTC
cups-filters-1.22.5-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-63d18edc23

Comment 21 Fedora Update System 2019-04-16 04:03:56 UTC
cups-filters-1.22.5-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.