Bug 1750904 - cups is unable to add ppd with custom/Custom option
Summary: cups is unable to add ppd with custom/Custom option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 30
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1749104 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-10 17:27 UTC by lurxen
Modified: 2020-02-17 12:27 UTC (History)
4 users (show)

Fixed In Version: cups-2.2.12-3.fc30
Clone Of:
Environment:
Last Closed: 2019-11-02 01:12:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
cups whole log (4.28 MB, text/plain)
2019-09-10 17:27 UTC, lurxen
no flags Details

Description lurxen 2019-09-10 17:27:50 UTC
Created attachment 1613675 [details]
cups whole log

Description of problem:
Adding the printer via printer-gui (in settings) added an entry in the menu, but no printing options or details within it. Neither printing (test page) nor scanning was possible. I used HP Device Manager (HPLIP) instead. The 'setup' process correctly detects the device (and even the fax). 'Add printer' results in an error message: 

Printer queue setup failed. 
Error : successful-ok-ignored-or-substituted-attributes

However, the fax is added. Find the full log attached.

The printer works properly on another laptop of mine. Same setup (Fedora 30, Gnome), same versions of related components (as far as I know).
I tried copying the PDD file from the laptop with the working setup following [this](https://forum.manjaro.org/t/printing-not-working-and-cant-install-new-printer-either-after-yesterdays-update/101721/18) answer, but no success.
It may be worth mentioning that
sudo systemctl stop org.cups.cupsd.service
was denied with the hint that the service wasn't running and 
sudo systemctl start org.cups.cupsd.service
was denied, too:
Failed to start org.cups.cupsd.service: Unit org.cups.cupsd.service not found.


Version-Release number of selected component (if applicable):
HPLIP-3.19.6
Fedora 30
printer: HP Officejet Pro 7740
laptop with bug: Dell Latitude 7490
laptop with working setup: HP ZBook 15 G5

Comment 1 Zdenek Dohnal 2019-09-11 08:42:21 UTC
Hi,

thank you for reporting the issue!

First, it seems you broke your cups daemon with your manual change from link you shared, deducting this from log entry:

"Sep 10 19:26:05 ruediger cupsd[28448]: Unable to finalize "/etc/cups/printers.conf": Permission denied"

1) Please stop cups daemon (it is called just "cups.service" in Fedora, that answers why you found out org.cups... does not work)

$ sudo systemctl stop cups

2) remove any /etc/cups/printers.conf* - this will remove all your installed print queues

3) start cups again

$ sudo systemctl start cups

I have several questions, please look into them further down:

(In reply to lurxen from comment #0)
> Created attachment 1613675 [details]
> cups whole log
> 
> Description of problem:
> Adding the printer via printer-gui (in settings)

Would you mind telling me what do you mean by this? Do you mean through GNOME control center?

> added an entry in the menu,
> but no printing options or details within it. Neither printing (test page)
> nor scanning was possible.

Do you mean print queue was created, but printing did not work? Can you try to catch logs for GNOME created queue when you try to print? The manual how to catch logs for the job is here https://fedoraproject.org/wiki/How_to_debug_printing_problems

> I used HP Device Manager (HPLIP) instead. The
> 'setup' process correctly detects the device (and even the fax). 'Add
> printer' results in an error message: 
> 
> Printer queue setup failed. 
> Error : successful-ok-ignored-or-substituted-attributes

Would you mind trying to run 'hp-setup -g' from the terminal and try to install printer?

There will be debug logs in the terminal, please collect them, put into a file and attach the file to bugzilla.

> 
> However, the fax is added. Find the full log attached.
> 
> The printer works properly on another laptop of mine. Same setup (Fedora 30,
> Gnome), same versions of related components (as far as I know).
> I tried copying the PDD file from the laptop with the working setup
> following
> [this](https://forum.manjaro.org/t/printing-not-working-and-cant-install-new-
> printer-either-after-yesterdays-update/101721/18) answer, but no success.
> It may be worth mentioning that
> sudo systemctl stop org.cups.cupsd.service
> was denied with the hint that the service wasn't running and 
> sudo systemctl start org.cups.cupsd.service
> was denied, too:
> Failed to start org.cups.cupsd.service: Unit org.cups.cupsd.service not
> found.

Answered above.

> 
> 
> Version-Release number of selected component (if applicable):
> HPLIP-3.19.6
> Fedora 30
> printer: HP Officejet Pro 7740
> laptop with bug: Dell Latitude 7490
> laptop with working setup: HP ZBook 15 G5

Comment 2 Howard Holm 2019-09-14 20:31:28 UTC
I have essentially the same issue.  Except, everything was working on Fedora 30.  A recent package upgrade that included the following (not NOT hplip):
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  wavpack               x86_64       5.1.0-16.fc30           updates       180 k
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  libevent              x86_64       2.1.8-7.fc30            updates       231 k
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  kmod-libs             x86_64       26-3.fc30               updates        58 k
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  kmod                  x86_64       26-3.fc30               updates       115 k
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  cups-libs             x86_64       1:2.2.12-1.fc30         updates       252 k
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  cups-ipptool          x86_64       1:2.2.12-1.fc30         updates       5.7 M
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  cups-filesystem       noarch       1:2.2.12-1.fc30         updates        12 k
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  cups-client           x86_64       1:2.2.12-1.fc30         updates        64 k
Sep 03 23:30:05 pyewachet.ga.holmgrown.com dnf-automatic[18533]:  cups                  x86_64       1:2.2.12-1.fc30         updates       1.4 M


After that, printing a PDF to the printer resulted in RAW PDF, not formatted pages being printed.  In an attempt to fix, I deleted the 7740 queue and re-added it.  Re-adding failed as above. journalctl -u cups -r shows:

Sep 12 16:07:46 pyewachet.ga.holmgrown.com cupsd[8395]: REQUEST localhost - howard "POST /admin HTTP/1.1" 200 3686 - -
Sep 12 16:07:46 pyewachet.ga.holmgrown.com cupsd[8395]: REQUEST localhost - howard "POST /admin/ HTTP/1.1" 200 416 CUPS-Add-Modify-Printer server-error-internal-error
Sep 12 16:07:46 pyewachet.ga.holmgrown.com cupsd[8395]: [Client 47] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/HP_OfficeJet_Pro_7740_series) from localhost.
Sep 12 16:07:46 pyewachet.ga.holmgrown.com cupsd[8395]: copy_model: empty PPD file
Sep 12 16:07:46 pyewachet.ga.holmgrown.com cupsd[8395]: [CGI] Cannot connect to remote printer ipp://HP1860246805E0-3.local:631/ipp/print (HP1860246805E0-3.local:631)
Sep 12 16:07:45 pyewachet.ga.holmgrown.com cupsd[8395]: REQUEST localhost - - "POST /admin/ HTTP/1.1" 401 416 CUPS-Add-Modify-Printer successful-ok
Sep 12 16:07:45 pyewachet.ga.holmgrown.com cupsd[8395]: REQUEST localhost - howard "POST /admin HTTP/1.1" 200 1809 - -

Downgrading:
  Running scriptlet: cups-libs-1:2.2.11-1.fc30.x86_64
  Downgrading      : cups-libs-1:2.2.11-1.fc30.x86_64
  Downgrading      : cups-client-1:2.2.11-1.fc30.x86_64
  Running scriptlet: cups-client-1:2.2.11-1.fc30.x86_64
  Downgrading      : cups-ipptool-1:2.2.11-1.fc30.x86_64
  Downgrading      : cups-filesystem-1:2.2.11-1.fc30.noarch 
  Downgrading      : cups-1:2.2.11-1.fc30.x86_64
  Running scriptlet: cups-1:2.2.11-1.fc30.x86_64
  Running scriptlet: cups-1:2.2.12-1.fc30.x86_64
  Cleanup          : cups-1:2.2.12-1.fc30.x86_64
  Running scriptlet: cups-1:2.2.12-1.fc30.x86_64 
  Running scriptlet: cups-client-1:2.2.12-1.fc30.x86_64 
  Cleanup          : cups-client-1:2.2.12-1.fc30.x86_64 
  Cleanup          : cups-ipptool-1:2.2.12-1.fc30.x86_64
  Cleanup          : cups-filesystem-1:2.2.12-1.fc30.noarch 
  Cleanup          : cups-libs-1:2.2.12-1.fc30.x86_64 
  Running scriptlet: cups-libs-1:2.2.12-1.fc30.x86_64
  Verifying        : cups-1:2.2.11-1.fc30.x86_64 
  Verifying        : cups-1:2.2.12-1.fc30.x86_64 
  Verifying        : cups-client-1:2.2.11-1.fc30.x86_64
  Verifying        : cups-client-1:2.2.12-1.fc30.x86_64 
  Verifying        : cups-filesystem-1:2.2.11-1.fc30.noarch 
  Verifying        : cups-filesystem-1:2.2.12-1.fc30.noarch 
  Verifying        : cups-ipptool-1:2.2.11-1.fc30.x86_64 
  Verifying        : cups-ipptool-1:2.2.12-1.fc30.x86_64
  Verifying        : cups-libs-1:2.2.11-1.fc30.x86_64 
  Verifying        : cups-libs-1:2.2.12-1.fc30.x86_64

Fixed the problem.  So the issue seems to be one of those packages.

Comment 3 Zdenek Dohnal 2019-09-16 08:09:55 UTC
Hi Howard,

thank you for letting me know! 

It is helpful, but I still need to locate the issue more precisely.

Would you mind installing the print queue under cups-2.2.11, then upgrade cups, enable its debug logging, try to print and attach the debug log for the job (described at https://fedoraproject.org/wiki/How_to_debug_printing_problems).

Plus please attach the ppd for the queue, if it exists.

Comment 4 lurxen 2019-09-16 14:58:19 UTC
Hi Zdened!
Thanks for the super fast, friendly and competent reply – and sorry for my delay answering it. We are working on the infrastructure for open source hardware and there's quite a lot going on lately. I just executed your suggested commands. See my answers below ↓


(In reply to Zdenek Dohnal from comment #1)
> Hi,
> 
> thank you for reporting the issue!

again: thank you for your efforts here :)

> 
> First, it seems you broke your cups daemon with your manual change from link
> you shared, deducting this from log entry:
> 
> "Sep 10 19:26:05 ruediger cupsd[28448]: Unable to finalize
> "/etc/cups/printers.conf": Permission denied"
> 
> 1) Please stop cups daemon (it is called just "cups.service" in Fedora, that
> answers why you found out org.cups... does not work)
> 
> $ sudo systemctl stop cups
> 
> 2) remove any /etc/cups/printers.conf* - this will remove all your installed
> print queues
> 
> 3) start cups again
> 
> $ sudo systemctl start cups

Done. No errors occured.

> 
> I have several questions, please look into them further down:
> 
> (In reply to lurxen from comment #0)
> > Created attachment 1613675 [details]
> > cups whole log
> > 
> > Description of problem:
> > Adding the printer via printer-gui (in settings)
> 
> Would you mind telling me what do you mean by this? Do you mean through
> GNOME control center?

Sorry, yes, I meant the GNOME control center. I also tried hp-setup-gui and hp-setup via terminal to install the printer.

> 
> > added an entry in the menu,
> > but no printing options or details within it. Neither printing (test page)
> > nor scanning was possible.
> 
> Do you mean print queue was created, but printing did not work? Can you try
> to catch logs for GNOME created queue when you try to print? The manual how
> to catch logs for the job is here
> https://fedoraproject.org/wiki/How_to_debug_printing_problems

I couldn't see any queue being created. When I click on 'details' or 'printing options' in GNOME Control Center, I won't see any details or printing options. Printing queue is always empty, too.

> 
> > I used HP Device Manager (HPLIP) instead. The
> > 'setup' process correctly detects the device (and even the fax). 'Add
> > printer' results in an error message: 
> > 
> > Printer queue setup failed. 
> > Error : successful-ok-ignored-or-substituted-attributes
> 
> Would you mind trying to run 'hp-setup -g' from the terminal and try to
> install printer?

Did it. During the setup (as a network printer) I unchecked the box for setting up the integrated fax and marked the checkbox for printing a test page after the setup. By the way, setting up the fax always works.
See the debug log below:

[ruediger@linux ~]$ hp-setup -g

HP Linux Imaging and Printing System (ver. 3.19.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-setup[6722]: debug: param=
hp-setup[6722]: debug: selected_device_name=None
hp-setup[6722]: debug: Using PyQt5
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
hp-setup[6722]: debug: Sys.argv=['/usr/bin/hp-setup', '-g'] printer_name=None param= jd_port=1 device_uri=None remove=False
hp-setup[6722]: debug: Starting GUI Event Loop...
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
hp-setup[6722]: debug: 0000:  01 07 01 f9 00 00 65 6e 00 03 00 00 00 00 01 e9 28 78 2d 68 70 2d 76 65 72 3d 30 31 29 28 78 2d  ......en........(x-hp-ver=01)(x-
hp-setup[6722]: debug: 0020:  68 70 2d 6d 61 63 3d 39 38 65 37 66 34 62 31 65 37 34 31 29 28 78 2d 68 70 2d 6e 75 6d 5f 70 6f  hp-mac=98e7f4b1e741)(x-hp-num_po
hp-setup[6722]: debug: 0040:  72 74 3d 30 31 29 28 78 2d 68 70 2d 69 70 3d 31 39 32 2e 31 36 38 2e 31 37 38 2e 30 35 30 29 28  rt=01)(x-hp-ip=192.168.178.050)(
hp-setup[6722]: debug: 0060:  78 2d 68 70 2d 68 6e 3d 48 50 42 31 45 37 34 30 29 28 78 2d 68 70 2d 70 31 3d 4d 46 47 3a 48 50  x-hp-hn=HPB1E740)(x-hp-p1=MFG:HP
hp-setup[6722]: debug: 0080:  3b 4d 44 4c 3a 4f 66 66 69 63 65 4a 65 74 20 50 72 6f 20 37 37 34 30 20 73 65 72 69 65 73 3b 43  ;MDL:OfficeJet Pro 7740 series;C
hp-setup[6722]: debug: 00a0:  4d 44 3a 50 43 4c 33 47 55 49 2c 50 43 4c 33 2c 50 4a 4c 2c 41 75 74 6f 6d 61 74 69 63 2c 4a 50  MD:PCL3GUI,PCL3,PJL,Automatic,JP
hp-setup[6722]: debug: 00c0:  45 47 2c 50 43 4c 4d 2c 41 70 70 6c 65 52 61 73 74 65 72 2c 50 57 47 52 61 73 74 65 72 2c 44 57  EG,PCLM,AppleRaster,PWGRaster,DW
hp-setup[6722]: debug: 00e0:  2d 50 43 4c 2c 38 30 32 2e 31 31 2c 38 30 32 2e 33 2c 44 45 53 4b 4a 45 54 2c 44 59 4e 3b 43 4c  -PCL,802.11,802.3,DESKJET,DYN;CL
hp-setup[6722]: debug: 0100:  53 3a 50 52 49 4e 54 45 52 3b 44 45 53 3a 47 35 4a 33 38 41 3b 43 49 44 3a 48 50 49 4a 56 49 50  S:PRINTER;DES:G5J38A;CID:HPIJVIP
hp-setup[6722]: debug: 0120:  42 56 39 3b 4c 45 44 4d 44 49 53 3a 55 53 42 23 46 46 23 43 43 23 30 30 2c 55 53 42 23 46 46 23  BV9;LEDMDIS:USB#FF#CC#00,USB#FF#
hp-setup[6722]: debug: 0140:  30 34 23 30 31 3b 53 4e 3a 43 4e 37 31 48 34 35 30 35 44 3b 53 3a 30 33 38 30 38 30 43 34 38 34  04#01;SN:CN71H4505D;S:038080C484
hp-setup[6722]: debug: 0160:  35 30 30 30 30 31 30 30 35 38 30 30 38 30 30 30 30 34 34 31 38 30 30 33 32 34 35 31 38 30 30 34  50000100580080000441800324518004
hp-setup[6722]: debug: 0180:  36 34 36 31 64 30 30 31 34 34 31 31 64 30 30 31 34 3b 5a 3a 30 35 30 30 30 30 30 39 30 30 30 30  6461d0014411d0014;Z:050000090000
hp-setup[6722]: debug: 01a0:  30 39 30 30 30 30 30 39 30 30 30 30 30 31 30 30 30 30 30 31 2c 31 32 30 30 30 2c 31 37 30 30 30  09000009000001000001,12000,17000
hp-setup[6722]: debug: 01c0:  30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 35 35 30 30 30 30 35 35 2c 31 38 31 3b  000000000000000000055000055,181;
hp-setup[6722]: debug: 01e0:  29 28 78 2d 68 70 2d 67 75 69 64 3d 39 38 65 37 66 34 62 31 65 37 34 30 29                       )(x-hp-guid=98e7f4b1e740)
hp-setup[6722]: debug: Found device: {'num_devices': 1, 'num_ports': 1, 'product_id': '', 'status_code': 0, 'device2': '0', 'device3': '0', 'note': '', 'device1': 'MFG:HP;MDL:OfficeJet Pro 7740 series;CMD:PCL3GUI,PCL3,PJL,Automatic,JPEG,PCLM,AppleRaster,PWGRaster,DW-PCL,802.11,802.3,DESKJET,DYN;CLS:PRINTER;DES:G5J38A;CID:HPIJVIPBV9;LEDMDIS:USB#FF#CC#00,USB#FF#04#01;SN:CN71H4505D;S:038080C484500001005800800004418003245180046461d0014411d0014;Z:05000009000009000009000001000001,12000,17000000000000000000000055000055,181;', 'mac': '98e7f4b1e741', 'ip': '192.168.178.050', 'hn': 'HPB1E740'}
hp-setup[6722]: debug: Cache miss: officejet_pro_7740_series
hp-setup[6722]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[6722]: debug: Searching for section [officejet_pro_7740_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[6722]: debug: Found section [officejet_pro_7740_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[6722]: debug: Unable to open file /var/lib/hp/hplip.state for reading.
hp-setup[6722]: debug: {}
hp-setup[6722]: debug: OfficeJet_Pro_7740
hp-setup[6722]: debug: (CUPS 1.2.x) Getting list of PPDs using CUPS_GET_PPDS...
hp-setup[6722]: debug: CUPS PPD base path = /usr/share/cups/model
hp-setup[6722]: debug: Foomatic PPD base path = /usr/share/ppd
hp-setup[6722]: debug: Matching PPD list to model  officejet_pro_7740_series...
hp-setup[6722]: debug: Found match: drv:///hp/hpcups.drv/hp-officejet_pro_7740_series.ppd
hp-setup[6722]: debug: Found match: lsb/usr/HP/hp-officejet_pro_7740_series.ppd.gz
hp-setup[6722]: debug: [('drv:///hp/hpcups.drv/hp-officejet_pro_7740_series.ppd', []), ('lsb/usr/HP/hp-officejet_pro_7740_series.ppd.gz', [])]
hp-setup[6722]: debug: 2 matches found. Searching based on PDL: Host > PS,PDF > PCL/Other
hp-setup[6722]: debug: 2 matches found. Searching based on Filters: HPCUPS > HPIJS
hp-setup[6722]: debug: Selecting PPD: drv:///hp/hpcups.drv/hp-officejet_pro_7740_series.ppd
hp-setup[6722]: debug: {}
hp-setup[6722]: debug: Searching for fax PPD for model officejet_pro_7740_series  hpcups_build =1
hp-setup[6722]: debug: ppds=['/usr/share/ppd/HP/HP-Fax4-hpijs.ppd.gz', '/usr/share/ppd/HP/HP-Fax3-hpijs.ppd.gz', '/usr/share/ppd/HP/HP-Fax2-hpcups.ppd.gz', '/usr/share/ppd/HP/HP-Fax-hpijs.ppd.gz', '/usr/share/ppd/HP/HP-Fax-hpcups.ppd.gz', '/usr/share/ppd/HP/HP-Fax4-hpcups.ppd.gz', '/usr/share/ppd/HP/HP-Fax3-hpcups.ppd.gz', '/usr/share/ppd/HP/HP-Fax2-hpijs.ppd.gz']
hp-setup[6722]: debug: Found fax PPD: /usr/share/ppd/HP/HP-Fax4-hpcups.ppd.gz
hp-setup[6722]: debug: fax-type=6
hp-setup[6722]: debug: addPrinter('OfficeJet_Pro_7740', 'hp:/net/OfficeJet_Pro_7740_series?ip=192.168.178.50', '', '', 'drv:///hp/hpcups.drv/hp-officejet_pro_7740_series.ppd', '')
hp-setup[6722]: debug: {}
error:  Printer queue setup failed.   Error : successful-ok-ignored-or-substituted-attributes

HP Linux Imaging and Printing System (ver. 3.19.6)
System Tray Status Service ver. 2.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
hp-setup[6722]: debug: no value found for attribute
hp-setup[6722]: debug: type 'ink' state 'newGenuineHP' ink_type 'C' ink_level 50 agent_sku = F6U16A
hp-setup[6722]: debug: {'kind': 2, 'type': 4, 'health': 0, 'level': 50, 'level-trigger': 0, 'agent-sku': 'F6U16A'}
hp-setup[6722]: debug: type 'ink' state 'newGenuineHP' ink_type 'M' ink_level 70 agent_sku = F6U17A
hp-setup[6722]: debug: {'kind': 2, 'type': 5, 'health': 0, 'level': 70, 'level-trigger': 0, 'agent-sku': 'F6U17A'}
hp-setup[6722]: debug: type 'ink' state 'newGenuineHP' ink_type 'Y' ink_level 20 agent_sku = F6U18A
hp-setup[6722]: debug: {'kind': 2, 'type': 6, 'health': 0, 'level': 20, 'level-trigger': 0, 'agent-sku': 'F6U18A'}
hp-setup[6722]: debug: type 'ink' state 'newGenuineHP' ink_type 'K' ink_level 20 agent_sku = L0S70A
hp-setup[6722]: debug: {'kind': 2, 'type': 1, 'health': 0, 'level': 20, 'level-trigger': 0, 'agent-sku': 'L0S70A'}
lpr: No such file or directory
error: Print command failed with exit code 256!



> 
> There will be debug logs in the terminal, please collect them, put into a
> file and attach the file to bugzilla.
> 
> > 
> > However, the fax is added. Find the full log attached.
> > 
> > The printer works properly on another laptop of mine. Same setup (Fedora 30,
> > Gnome), same versions of related components (as far as I know).
> > I tried copying the PDD file from the laptop with the working setup
> > following
> > [this](https://forum.manjaro.org/t/printing-not-working-and-cant-install-new-
> > printer-either-after-yesterdays-update/101721/18) answer, but no success.
> > It may be worth mentioning that
> > sudo systemctl stop org.cups.cupsd.service
> > was denied with the hint that the service wasn't running and 
> > sudo systemctl start org.cups.cupsd.service
> > was denied, too:
> > Failed to start org.cups.cupsd.service: Unit org.cups.cupsd.service not
> > found.
> 
> Answered above.
> 
> > 
> > 
> > Version-Release number of selected component (if applicable):
> > HPLIP-3.19.6
> > Fedora 30
> > printer: HP Officejet Pro 7740
> > laptop with bug: Dell Latitude 7490
> > laptop with working setup: HP ZBook 15 G5

all the best
-Martin

Comment 5 Zdenek Dohnal 2019-09-17 09:56:30 UTC
Hi,

it is actually upstream issue https://github.com/apple/cups/issues/5639 . The setting PPD fails because ppd contains 'Custom' option, which is now denied.

I can reproduce it by 'lpadmin' command:

lpadmin -p test -v socket://IP:9100 -m drv:///hp/hpcups.drv/hp-officejet_pro_7740_series.ppd -E
lpadmin: Unable to open PPD "/tmp/046c85d818b45": Illegal option keyword string on line 303.

Comment 6 lurxen 2019-09-17 13:57:22 UTC
Cool, thanks for checking this out!
Do you know of any workaround, how I can do the printer setup with the 'regular' option in order to avoid this issue?

Comment 7 Zdenek Dohnal 2019-09-17 14:17:07 UTC
If you have some old ppd for 7740 left in /etc/cups/ppd, you can substitute all 'custom' for 'customsize' and all 'Custom' for 'Custom Size' and reinstall your print queue by lpadmin like:

$ sudo lpadmin -p <your_print_queue_name> -v hp:/net/OfficeJet_Pro_7740_series?ip=192.168.178.50 -P /etc/cups/ppd/<name_of_your_edited_ppd>.ppd -E

If there is no ppd in /etc/cups/ppd, you can go for /usr/share/ppd/HP/hp-officejet_pro_7740_series.ppd.gz, decompress it, make changes and try to install print queue again - after this it should work even from hp-setup or gnome control center. (similar lpadmin command would work too, but gnome and hp-setup are user friendly...)

Comment 8 Howard Holm 2019-09-17 14:28:14 UTC
Thanks much.  Updating the PPD as described fixed my problem and I was able to successfully use cups-2.2.12.

Comment 9 lurxen 2019-09-25 10:47:04 UTC
Thousand thanks @Zdenek! I copied the corresponding PDD from the old laptop, did the changes (only Custom → Custom Size), reinstalled the print queue as described and I got full control about the office printer again! Same cups version as Howard by the way.

Thanks again & have great day!

Comment 10 Fedora Update System 2019-10-16 14:42:53 UTC
FEDORA-2019-ae9aa274f2 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-ae9aa274f2

Comment 11 Fedora Update System 2019-10-16 16:05:26 UTC
cups-2.2.12-3.fc30 has been pushed to the Fedora 30 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-ae9aa274f2

Comment 12 Fedora Update System 2019-11-02 01:12:31 UTC
cups-2.2.12-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2019-11-03 00:11:08 UTC
cups-2.2.12-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Zdenek Dohnal 2020-02-17 12:27:26 UTC
*** Bug 1749104 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.