HPLIP cannot detect printers in your network

Bug #1697958 reported by Nick B.
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned
hplip (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On a fresh install of Kubuntu 17.04 I cannot add a network printer though the HPLIP Toolbox. I get an error message that says "HPLIP cannot detect printers in your network.
This may be due to existing firewall settings blocking the required ports. When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link. http://hplipopensource.com/node/374"

However snmpwalk finds the printer perfectly fine
$ snmpwalk -Os -c public -v 1 192.168.1.21 1.3.6.1.4.1.11.2.3.9.1.1.7.0
iso.3.6.1.4.1.11.2.3.9.1.1.7.0 = STRING: "MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,URP,PCL,PDF,POSTSCRIPT;MDL:HP LaserJet 200 colorMFP M276nw;CLS:PRINTER;DES:Hewlett-Packard LaserJet 200 colorMFP M276nw;MEM:MEM=230MB;COMMENT:RES=600x8;LEDMDIS:USB#ff#04#01;CID:HPLJPDLV1;"

Other systems that were upgraded to 17.04 can still access and detect the printer.

What I expect to happen:
1. Open HPLIP Toolbox
2. Add a network printer
3. Printer is detected

What happened instead
1. Open HPLIP Toolbox
2. Add a network printer
3. No printers found

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: hplip-gui 3.16.11+repack0-2
ProcVersionSignature: Ubuntu 4.10.0-22.24-generic 4.10.15
Uname: Linux 4.10.0-22-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Jun 14 11:23:50 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2017-06-09 (4 days ago)
InstallationMedia: Kubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
Lpstat:
 device for Hewlett-Packard-HP-LaserJet-P1505: implicitclass:Hewlett-Packard-HP-LaserJet-P1505
 device for HP-LaserJet-200-colorMFP-M276nw: ipp://NPI62B4B3.local:631/ipp/print
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 8087:0aa7 Intel Corp.
 Bus 001 Device 002: ID 1bcf:2c87 Sunplus Innovation Technology Inc.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: HP HP Pavilion Notebook
PackageArchitecture: all
Papersize: letter
PpdFiles:
 Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/HP-LaserJet-200-colorMFP-M276nw.ppd', '/etc/cups/ppd/Hewlett-Packard-HP-LaserJet-P1505.ppd'] failed with exit code 2: grep: /etc/cups/ppd/HP-LaserJet-200-colorMFP-M276nw.ppd: Permission denied
 grep: /etc/cups/ppd/Hewlett-Packard-HP-LaserJet-P1505.ppd: Permission denied
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.10.0-22-generic.efi.signed root=UUID=e56bcb4e-c73e-4581-9f09-4ef3fe063e74 ro quiet splash vt.handoff=7
SourcePackage: hplip
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/07/2017
dmi.bios.vendor: Insyde
dmi.bios.version: F.36
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 8215
dmi.board.vendor: HP
dmi.board.version: 83.15
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.36:bd04/07/2017:svnHP:pnHPPavilionNotebook:pvrType1ProductConfigId:rvnHP:rn8215:rvr83.15:cvnHP:ct10:cvrChassisVersion:
dmi.product.name: HP Pavilion Notebook
dmi.product.version: Type1ProductConfigId
dmi.sys.vendor: HP

Revision history for this message
Nick B. (futurepilot) wrote :
Revision history for this message
Nick B. (futurepilot) wrote :

A workaround seems to be to click the "Show Advanced Options" button in the Device Discovery window and change the Network Discovery Method to mDNS/Bonjour. It will successfully detect the printer with that method.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

It seems that mDNS/Bonjour (aka DNS-SD) is more reliable than the method which HPLIP uses by default (SNMP? HP guys, am I correct?). DNS-SD is the more modern way to discover devices in the network and got standard for many device types, especially also printing. We have standardized driverless network printing concepts now (used by smartphones but currently also by desktops, including Ubuntu from 17.04 on) and they all use DNS-SD for printer discovery in networks. Also CUPS broadcasts shared printers via DNS-SD so that remote clients find them.

So I want to ask the HPLIP developers at HP to use DNS-SD by default to find HP network printers or better, both DNS-SD and SNMP in parallel. Can you do that in the next HPLIP release? Thanks in advance.

Revision history for this message
Nick B. (futurepilot) wrote : Re: [Bug 1697958] Re: HPLIP cannot detect printers in your network

The current default discovery method is SLP.

On Friday, June 16, 2017 4:27:01 PM EDT Till Kamppeter wrote:
> It seems that mDNS/Bonjour (aka DNS-SD) is more reliable than the method
> which HPLIP uses by default (SNMP? HP guys, am I correct?). DNS-SD is
> the more modern way to discover devices in the network and got standard
> for many device types, especially also printing. We have standardized
> driverless network printing concepts now (used by smartphones but
> currently also by desktops, including Ubuntu from 17.04 on) and they all
> use DNS-SD for printer discovery in networks. Also CUPS broadcasts
> shared printers via DNS-SD so that remote clients find them.
>
> So I want to ask the HPLIP developers at HP to use DNS-SD by default to
> find HP network printers or better, both DNS-SD and SNMP in parallel.
> Can you do that in the next HPLIP release? Thanks in advance.

Revision history for this message
Shivani Mandora (shivani1709) wrote :

Hi Nick,
     Ubuntu 17.04 support is added in HPLIP 3.17.6. The packages which you are using 3.16.11 which doesn't support ubuntu 17.04. Kindly install HPLIP 3.17.6 or the latest version and try.

Thanks,
Shivani

Revision history for this message
Dror Cohen (drorcohen) wrote :

I've experienced this on Ubuntu 16.04.3 LTS and hplip 3.17.10. I tried the advanced and put in the printer's IP without success. localhost:631 does recognize the printer.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
Revision history for this message
Dror Cohen (drorcohen) wrote :

running hp-setup -g for debug mode shows the printer is recognized over the network but because its not found in the models.dat file the error showed is "cant find printers on the network"

Revision history for this message
Rady (peter-morawetz) wrote :

I can confirm the behaviour as described by Dror Cohen - this is my result when adding a printer (the ENVY Photo 7100 series in that case) entering the IP address manuallly:

hp-setup[5842]: debug: Cache miss: envy_photo_7100_series
hp-setup[5842]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[5842]: debug: Searching for section [envy_photo_7100_series] in file /usr/share/hplip/data/models/models.dat
error: No devices found on bus: net

When using "auto detect" mode, I get this result (so the printer seems to be not recognised at all:

hp-setup[5842]: debug: Cache miss: envy_photo_7100_series
hp-setup[5842]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[5842]: debug: Searching for section [envy_photo_7100_series] in file /usr/share/hplip/data/models/models.dat
error: No devices found on bus: net

At the time of trying this, the printer has already been set up (and is working properly) using the "normal" CUPS interface.

So actually I can print, but cannot use the scanner.

Revision history for this message
Guillermo Molleda (gmolleda) wrote :

Mi uzas la presilon kutime per USB, sed hodiaŭ post presita horo antaŭe, ĝi subite ne presas ĉar ĝi diras min, ke ĝi haltis.
Se mi uzas hp-setup, la eraro aperas: error: No devices found on bus: usb
Sed lsusb diras: Bus 002 Device 009: ID 03f0:112a Hewlett-Packard

Se mi kuras hp-setup -g, ĝi diras:
Searching... (bus=usb, search=(None), desc=0)
hp-setup[4812]: debug: Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 002: ID 04f2:b483 Chicony Electronics Co., Ltd
Bus 002 Device 010: ID 03f0:112a Hewlett-Packard
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

error: No devices found on bus: usb

Uso la impresora normalmente bien por USB, pero hoy tras haber imprimido una hora antes, de pronto no imprime dando como razón que está en pausa.
Al ejecutar hp-setup sale el error: error: No devices found on bus: usb
Pero en lsusb sale: Bus 002 Device 009: ID 03f0:112a Hewlett-Packard

Si ejecuto hp-setup -g sale:
Searching... (bus=usb, search=(None), desc=0)
hp-setup[4812]: debug: Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 002: ID 04f2:b483 Chicony Electronics Co., Ltd
Bus 002 Device 010: ID 03f0:112a Hewlett-Packard
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

error: No devices found on bus: usb

Revision history for this message
Guillermo Molleda (gmolleda) wrote :

Riparita per unplugging ĝin de la muro dum 10 sekundoj kaj konektante ĝin reen kaj ŝalti ĝin denove.

Se arregló desenchufándola de la pared 10 segundos y volviendo a enchufarla y conectarla.

Revision history for this message
Donald T Campbell (coasting) wrote :

For the first time in about 10 or 12 versions of Fedora, I cannot simply install my HP p1102w Laserjet Pro printer using HPLIP.

For the first several hours I kept getting:

 "HPLIP cannot detect printers in your network. This may be due to existing firewall settings blocking the required ports. When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link.
                 http://hplipopensource.com/node/375 "

Nope. Turning off firewall didn't help. Ping showed printer ip alive. Windows on a dual boot laptop worked immediately with the printer in the same network. Windows in a VirtualBox VM running under Linux worked immediately. Multiple machinations failed and eventually the network failed entirely on the printer and I did a full reset. Reset turned networking back on, DHCP from the router gave the printer the fixed IP and Windows could again print to the printer.

Trying earlier versions of HPLIP (since earlier versions worked fine on all 4 Fedora machines we have in the house) failed due to dependency issues. Went back to HPLIP installed from repo. Failed. Found advice to get HPLIP-3.19.6.run and use it to manually make the HPLIP files. Did that.

That got me to the place where it stated that I needed a plugin and could install it from HP via the network. I agreed. Plugin installed successfully. So, that means the printer was found? but then when it said I could install the printer from there--I got the ""HPLIP cannot detect printers in your network." Switched to mDNS. No joy.

Revision history for this message
Donald T Campbell (coasting) wrote :

Oh, and what exactly is a "systemtray?" All of a sudden, for the past year or so, the HP p1102w Pro has been eliciting an HPLIP error message saying that there is no "systemtray" and so it was stopping. I have no idea what a systemtray is. I obviously didn't lose a systemtray that was once there--all is like new in my old printer. Windows' driver makes no complaint about a systemtray but HPLIP in Linux is obsessed by it and the danger caused by it being missing. I don't want to be forced to go into Windows in order to print something. I have used Linux since 1997 and I don't want to have Linux suddenly fail to support my perfectly fine older HP printer that has been working fine under Linux for years.

Because I'm annoyed at how much effort I've put into making this perfectly fine printer work with the latest versions of Linux and HPLIP I've considered buying another inexpensive printer but I'm not sure how well that will work out in Linux.

Revision history for this message
Maxim Egorushkin (max0x7ba) wrote :

Had the same issue on Ubuntu 18.04.5 LTS with hplip coming from Ubuntu repos.

Solved by installing hplip-3.21.2 from HP website.

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

Other bug subscribers

Related questions

Remote bug watches

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