LEAP 42.3 HP OfficeJet Pro 6970 HPLIP

Dear Experts,

I have downloaded Hplip, and “setup Device” Looks to be successful…

Messages:
Your printer has been successfully configured on the wireless network. You may now unplug the USB cable. To set up the printer, now run

hp-setup 192.168.1.7

but after that, when I tried to refresh all and detect the printer, it doesn’t appear.

“Refreshing Device List - HP Device Manager is not responding”

Please help.

TIA

Did you open the firewall? Here are the directions:

https://developers.hp.com/hp-linux-imaging-and-printing/howtos/install#howtocheck3

You are trying to set up using a technique different from what I use, and my knowledge is not good enough to help you continue with the approach you have chosen. But if you wish to try a different route to setup your network printer try this method, as documented in my blog: https://forums.opensuse.org/entry.php/107-Connecting-openSUSE-to-an-HP-wireless-printer

I have recently used this method with LEAP-15.0, and also with LEAP-42.3, so it works fine.

Hi

I tried oldcpu’s method, ok…it detected the printer but somehow, still couldn’t fix it? Please see below…thanks again

by79@linux-3ztp:~> hp-setup 192.168.1.7

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

Copyright (c) 2001-15 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.

Searching for device...
Found device: hp:/net/OfficeJet_Pro_6970?ip=192.168.1.7
error:  Printer queue setup failed.   Error : successful-ok-ignored-or-substituted-attributes
lpr: The printer or class does not exist.
error: Print command failed with exit code 256!
error:  Fax queue setup failed.  Error : successful-ok-ignored-or-substituted-attributes

Done.

Assuming you followed the blog guide exactly, and still did not work … I don’t know enough about this to diagnose the precise cause of that error message. I have read that sometimes, dependent on how one installed their GNU/Linux (an update from an old version or a fresh install of a new version) one can have on their PC a bad version of the Common UNIX Printing System (CUPS) (or bad configuration files from an older version of CUPS) and it may (?) yield similar errors. Note this is speculation on my side.

A possible fix (again my speculation) is to re-install CUPS. But I think there also could be other reasons such as an old version of hplip.

You could also run the following diagnostic utility

hp-doctor

*Ignore any warnings such as the following and type ‘y’ when prompted…

error: This distro (i.e unknown  ) is either deprecated or not yet supported.
The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):y

If you want to share the output, upload it to https://paste.opensuse.org/ and post the link to it here.

Hi deano,https://paste.opensuse.org/76761557

is it per dv3null mention, it is the firewall…Sorry dv3null, I am a novice, so i am just tiptoeing…

Well, printer discovery itself may well be prevented by an active firewall. That shouldn’t have prevented configuration with a particular IP address though. Anyway, you can check the status with

systemctl status SuSEfirewall2

and if necessary stop it with

sudo systemctl stop SuSEfirewall2

Then try configuring the printer with ‘hp-setup’ again.

Hi deano,

by79@linux-3ztp:~> systemctl status SuSEfirewall2
● SuSEfirewall2.service - SuSEfirewall2 phase 2
   Loaded: loaded (/usr/lib/systemd/system/SuSEfirewall2.service; enabled; vendor preset: disabled)
   Active: active (exited) since Sun 2018-06-03 14:56:38 +08; 56min ago
  Process: 9689 ExecStop=/usr/sbin/SuSEfirewall2 systemd_stop (code=exited, status=0/SUCCESS)
  Process: 9749 ExecStart=/usr/sbin/SuSEfirewall2 boot_setup (code=exited, status=0/SUCCESS)
 Main PID: 9749 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 512)
   CGroup: /system.slice/SuSEfirewall2.service
by79@linux-3ztp:~> sudo systemctl stop SuSEfirewall2
[sudo] password for root: 
by79@linux-3ztp:~> sudo systemctl stop SuSEfirewall2
by79@linux-3ztp:~> hp-setup 192.168.1.7

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

Copyright (c) 2001-15 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.

Searching for device...
Found device: hp:/net/OfficeJet_Pro_6970?ip=192.168.1.7
error:  Printer queue setup failed.   Error : successful-ok-ignored-or-substituted-attributes

Try this:


hp-makeuri 192.168.1.7

Then go to this link to configure: http://localhost:631/

Hi d3vnull,

by79@linux-3ztp:~> hp-makeuri 192.168.1.7

HP Linux Imaging and Printing System (ver. 3.16.11)
Device URI Creation Utility ver. 5.0

Copyright (c) 2001-15 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.

CUPS URI: hp:/net/OfficeJet_Pro_6970?ip=192.168.1.7
SANE URI: hpaio:/net/OfficeJet_Pro_6970?ip=192.168.1.7
HP Fax URI: hpfax:/net/OfficeJet_Pro_6970?ip=192.168.1.7

Done.
by79@linux-3ztp:~> 

Add Printer Error
Unable to add printer:
Forbidden

Looks like you have to be root according to /etc/cups/cups-files.conf

Try:

http://root@localhost:631/admin

Run ‘hp-setup’ with root privileges…

su - -c hp-setup

Hi d3vnull, tried your suggestion, still “forbidden to add printer”…

Hi deano, please see below, the usb error was resolved after i plug in the usb cable… but in the end, yes. it detected the printer like previously, at the HP setup but in tyhe end, it was also “forbidden to add printer”

Done.
by79@linux-3ztp:~> su - -c hp-setup
Password: 

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

Copyright (c) 2001-15 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.

Searching on USB bus...
error: No devices found on bus: usb
Searching on USB bus...
GET /IoMgmt/Adapters HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0


GET /IoMgmt/Adapters/Wifi0/WifiNetworks HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0


GET /IoMgmt/Adapters/Wifi0/Profiles/Active HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0


GET /IoMgmt/Adapters/Wifi0/Protocols HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0


error: Missing response key: 'io:protocols-io:protocol-io:addresses-io:ipv4addresses-io:ipv4address-dd:ipv4address'
GET /IoMgmt/Adapters/Wifi0/Profiles/Active HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0


GET /IoMgmt/IoConfig.xml HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0
GET /IoMgmt/Adapters/Wifi0/VsaCodes.xml HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0


GET /IoMgmt/Adapters/Wifi0/WifiNetworks/SSID=MyRepublic 0820 HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0


error: Request Failed With Response Code 500
GET /IoMgmt/IoConfig.xml HTTP/1.1
Host: localhost
User-Agent: hplip/3.0
Content-Type: text/xml; charset=utf-8
Content-Length: 0


Why hplip 3.16.11?

On Leap 15:

v  | hplip       | Paket      | 3.17.9-lp150.3.2  | x86_64 | openSUSE-Leap-15.0-Oss

Try these instructions:

https://kernelmastery.com/enable-regular-users-to-add-printers-to-cups/

Edit:
Oops Leap 42.3…

Hi,

On the following line, immediately after the text “Require user @SYSTEMadd the desired user whom you would like to allow to configure CUPS. [See my example below.]

Save and quit, :wq.

Do a sudo killall cupsd to shut down all CUPS services.

In the terminal, I press “INS” to insert…ok…but how do i save and quit? Sorry…

# All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM by79
    Order deny,allow
  </Limit>

Gosh, I must have done something wrong…what can i do to recover the original file? I don;t think I save after editing…



E325: ATTENTION
Found a swap file by the name ".cupsd.conf.swp"
          owned by: root   dated: Mon Jun  4 20:12:48 2018
         file name: /etc/cups/cupsd.conf
          modified: YES
         user name: root   host name: linux-3ztp
        process ID: 24684
While opening file "cupsd.conf"
             dated: Mon Mar  5 19:07:03 2018

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r cupsd.conf"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".cupsd.conf.swp"
    to avoid this message.

Swap file ".cupsd.conf.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

I went to the firewall settings…

mDNS/Bonjour

  1.  Go to the **Yast Control Center**
    

and click on Firewall > 1. Select Custom Rules
on the left pane, select Zone as **External **and then select **Add **at the bottom. A pop up will appear. Provide the values of the parameter as : Source Network 0/0, Protocol UDP, Ports 5353 > 1. Click on **Add **
at the bottom right. > 1. The OpenSuSe firewall utility will display Firewall Configuration Summary.
Click **Finish **to complete the process. >

Source Network:0/0
Protocol:UDP
Destination Port:mdns (5353)
Source Port: blank
Options: blank

When the instruction says “Ports 5353”, is it referring to the destination port or the source port or both?

Thanks in advance