hp-setup doesn't find network printer on Centos 8 or Fedora 32

Bug #1918603 reported by Arieh Maron
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

OS: Centos 8 Fedora 32
Printer: HP Deskjet 2710 Aio
hplip version 3.18.4

[ariemaron@centos8-home sane.d]$ sudo hp-setup

HP Linux Imaging and Printing System (ver. 3.18.4)
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.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
error: No devices found on bus: net
error: 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

Done.

$ ip neigh show
10.100.102.18 dev enp3s0 lladdr 6c:02:e0:19:ae:e8 REACHABLE
10.100.102.1 dev enp3s0 lladdr 20:83:f8:35:2a:58 REACHABLE

10.100.102.18 is the printer

BTW the link in the error message is broken/outdated

Revision history for this message
zdohnal (zdohnal) wrote :

Hi,

I'm Zdenek the RHEL/CentOS/Fedora HPLIP maintainer.

The device discovery in hp-setup depends on SLP by default, so you need to check whether your device supports SLP and if you have it enabled on your printer.

Otherwise you can open 'Advanced Options' when you choose 'Network/Ethernet/Wireless network', where you can change the discovery method to Avahi, mDNS or set the IP by yourself in manual discovery.

Revision history for this message
Arieh Maron (amaron) wrote : Re: [Bug 1918603] Re: hp-setup doesn't find network printer on Centos 8 or Fedora 32

Hi Zdenek,

How Do I enable SLP on the printer or verify that it is enabled?

Thanks,
  Arieh

On Thu, Mar 11, 2021 at 12:11 PM zdohnal <email address hidden> wrote:

> Hi,
>
> I'm Zdenek the RHEL/CentOS/Fedora HPLIP maintainer.
>
> The device discovery in hp-setup depends on SLP by default, so you need
> to check whether your device supports SLP and if you have it enabled on
> your printer.
>
> Otherwise you can open 'Advanced Options' when you choose
> 'Network/Ethernet/Wireless network', where you can change the discovery
> method to Avahi, mDNS or set the IP by yourself in manual discovery.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1918603
>
> Title:
> hp-setup doesn't find network printer on Centos 8 or Fedora 32
>
> Status in HPLIP:
> New
>
> Bug description:
> OS: Centos 8 Fedora 32
> Printer: HP Deskjet 2710 Aio
> hplip version 3.18.4
>
> [ariemaron@centos8-home sane.d]$ sudo hp-setup
>
> HP Linux Imaging and Printing System (ver. 3.18.4)
> 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.
>
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
> '/tmp/runtime-root'
> Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0,
> method=slp)
> error: No devices found on bus: net
> error: 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
>
> Done.
>
>
> $ ip neigh show
> 10.100.102.18 dev enp3s0 lladdr 6c:02:e0:19:ae:e8 REACHABLE
> 10.100.102.1 dev enp3s0 lladdr 20:83:f8:35:2a:58 REACHABLE
>
>
> 10.100.102.18 is the printer
>
> BTW the link in the error message is broken/outdated
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/hplip/+bug/1918603/+subscriptions
>
>

Revision history for this message
zdohnal (zdohnal) wrote :

And the device supports Airprint, so you shouldn't need HPLIP at all for printing.

See https://fedoraproject.org/wiki/How_to_debug_printing_problems#How_to_install_a_permanent_print_queue

Revision history for this message
zdohnal (zdohnal) wrote :
Revision history for this message
zdohnal (zdohnal) wrote :

> How Do I enable SLP on the printer or verify that it is enabled?

Usually via its web ui (at least my HP printer - connected by network has it). But as I wrote before, you probably don't need HPLIP at all.

Revision history for this message
Arieh Maron (amaron) wrote :

Hi Zdenek,

It seems that I need the sane-airscan backend. I found it for Fedora but I
can't seem to find it for Centos.
Would the Fedora rpm work for Centos? If so, which version? the latest
Fedora 33?

Thanks,
  Arieh

On Thu, Mar 11, 2021 at 12:50 PM zdohnal <email address hidden> wrote:

> > How Do I enable SLP on the printer or verify that it is enabled?
>
> Usually via its web ui (at least my HP printer - connected by network
> has it). But as I wrote before, you probably don't need HPLIP at all.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1918603
>
> Title:
> hp-setup doesn't find network printer on Centos 8 or Fedora 32
>
> Status in HPLIP:
> New
>
> Bug description:
> OS: Centos 8 Fedora 32
> Printer: HP Deskjet 2710 Aio
> hplip version 3.18.4
>
> [ariemaron@centos8-home sane.d]$ sudo hp-setup
>
> HP Linux Imaging and Printing System (ver. 3.18.4)
> 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.
>
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
> '/tmp/runtime-root'
> Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0,
> method=slp)
> error: No devices found on bus: net
> error: 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
>
> Done.
>
>
> $ ip neigh show
> 10.100.102.18 dev enp3s0 lladdr 6c:02:e0:19:ae:e8 REACHABLE
> 10.100.102.1 dev enp3s0 lladdr 20:83:f8:35:2a:58 REACHABLE
>
>
> 10.100.102.18 is the printer
>
> BTW the link in the error message is broken/outdated
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/hplip/+bug/1918603/+subscriptions
>
>

Revision history for this message
zdohnal (zdohnal) wrote :

> It seems that I need the sane-airscan backend.

Ok, so you want scanning support too, the original ticket looked like you want to get only printing functionality...

> Would the Fedora rpm work for Centos? If so, which version? the latest
Fedora 33?

That's not that easy... sane-airscan isn't CentOS 8 because it wasn't in Fedora at that time. You can try to install Fedora rpm in CentOS, but it will most likely fail because of different library versions in CentOS and in Fedora.

So I see 3 options:
1) So you can try your luck with hplip regarding scanning - you don't need to install the device, just install plugins by 'hp-plugin -i' and see if it works for you (but I don't see the device in their supported devices list...)
2) compile sane-airscan by yourself by manual here https://github.com/alexpevzner/sane-airscan
3) wait for CentOS Stream 9 and migrate to it - sane-airscan will be there

Revision history for this message
Arieh Maron (amaron) wrote :

I added airscan manually by cloning the github and then make and make-install.

I still couldn't get it to work unti I noticed that the string "HP" was blacklisted in /etc/sane.d/airsan.conf.

After I commented out that blacklist entry everything works.

Why was "HP" blacklisted?

Thanks.

Revision history for this message
zdohnal (zdohnal) wrote :

Looks like Alex wrote those lines as examples, but forgot to comment them out. I sent him a PR fixing that https://github.com/alexpevzner/sane-airscan/pull/127 .

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.