Binary plug-in is installed successfully, but not progress possible

Asked by Harald Harders

Hi all,

I have a brandnew OpenSUSE Leap 15.2 installation and want to connect my HP MFP277dw which is connected via LAN. After starting hp-setup and entering the IP address, the printer is recognized correctly. It is mentioned that a binary plug-in is required which then is successfully downloaded (at least the message after accepting the license and entering the root password says so).
When pressing the "Next" button, hp-setup again complains that a binary plug-in was required.
I'm ending up in a loop.

I can provide the output of hp-check if needed.

For information: In OpenSUSE Leap 15.1, hp-setup used to work for both the printer and the scanner.

What shall I do?

Best regards
Harald

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Harald Harders
Solved:
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

> What shall I do?

Are you absolutely dead set on setting up printing and scanning
with HPLIP? If so, I'll go away and not give you an alternative.

Revision history for this message
Harald Harders (haraldharders) said :
#2

Hi Brian,

I'm not sure whether I get the point in your e-mail. I've opened the
issue with the web interface which did not allow attachments. I did not
want to paste the hp-check output. Please find attached the output of
"hp-check" (hp-check.log).

Which additional information do you need?

Best regards
Harald

Am 21.01.21 um 20:45 schrieb brian_p:
> Your question #695132 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/695132
>
> Status: Open => Needs information
>
> brian_p requested more information:
>> What shall I do?
> Are you absolutely dead set on setting up printing and scanning
> with HPLIP? If so, I'll go away and not give you an alternative.
>

Revision history for this message
Harald Harders (haraldharders) said :
#3

Apparently, attachments are also not possible via the mail interface. Please find the output of "hp-check" here: http://www.harald-harders.de/hp-check.txt.
Installed hplip version is hplip-3.19.12-lp152.1.1.x86_64 (openSUSE rpm version).

Revision history for this message
brian_p (claremont102) said :
#4

Give what you get for

  avahi-browse _ipp._tcp

and

  avahi-browse _uscan._tcp

Revision history for this message
Harald Harders (haraldharders) said :
#5

I've tried both commands (as user and as root) but get no result back. Apparently, both end in a loop waiting for something which does not happen. I've quit after roughly ten minutes.

Revision history for this message
Harald Harders (haraldharders) said :
#6

Apparently, the printer is found in the first place because it is identified correctly.
Do you have any additional idea which I could try out?

Revision history for this message
brian_p (claremont102) said :
#7

Typos!

  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp

Revision history for this message
Harald Harders (haraldharders) said :
#8

Both don't return any text but end immediately:

harders@lose:~> avahi-browse -rt _ipp._tcp
harders@lose:~> avahi-browse -rt _uscan._tcp
harders@lose:~>

Am 22.01.21 um 01:41 schrieb brian_p:
> Your question #695132 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/695132
>
> Status: Open => Needs information
>
> brian_p requested more information:
> Typos!
>
> avahi-browse -rt _ipp._tcp
> avahi-browse -rt _uscan._tcp
>

Revision history for this message
Harald Harders (haraldharders) said :
#9

What should be the output of these two command lines?

Revision history for this message
Harald Harders (haraldharders) said :
#10

harders@lose:~> avahi-browse -vrt _ipp._tcp
Server-Version: avahi 0.7; Rechnername: lose.local
E Ifce Prot Name Typ -Domain
: Datencache erschöpft
: Alle Einträge bisher
harders@lose:~> avahi-browse -vrt _uscan._tcp
Server-Version: avahi 0.7; Rechnername: lose.local
E Ifce Prot Name Typ -Domain
: Datencache erschöpft
: Alle Einträge bisher
harders@lose:~>

Sorry for the German output.

Revision history for this message
Harald Harders (haraldharders) said :
#11

I've tried a manual download of version 3.19.12 (which was the one hp-setup demanded) from https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/ with subsequent use of hp-setup (on local file) as well. Same effect where should the plugin be installed in the directory structure?

I've searched on my harddisk and only found the two downloaded versions in my home directory. No sign that it has been installed anywhere.
lose:~ # find / -name "hp*run*"
/home/harders/Downloads/hplip-3.19.12-plugin.run.asc
/home/harders/Downloads/hplip-3.20.11-plugin.run
/home/harders/Downloads/hplip-3.19.12-plugin.run
lose:~ #

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

It should be possible to manually in0tasll the plugin by executing

sh hplip-3.19.12-plugin.run

You should select the plugin installer with the same version number as the HPLIP version that you already have installed.

Revision history for this message
brian_p (claremont102) said :
#13

> What should be the output of these two command lines?

The printer is queried over the LAN and should return a list of
its capabilities, The Color LaserJet Pro MFP M277dw is an AirPrint
device; not getting an output is concerning.

Revision history for this message
Harald Harders (haraldharders) said :
#14

@Manfred:
Direct launch of the plugin file does not work (neither as user nor as root):

harders@lose:~/Downloads> sh ./hplip-3.19.12-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.12 Plugin Self Extracting Archive..............................................................
Error importing HPLIP modules. Is HPLIP installed?
harders@lose:~/Downloads>

That's strange. On the one hand side, hp-setup and hp-plugin know which HPLIP version is installed and which plugin version they expect. On the other hand, the plugin itself does not recognize HPLIP.
And it's also strange that hp-setup states that the plugin was installed successfully when installing via hp-setup.

@brian:
Is it possible to specify a specific IP address for avahi-browse? Couldn't find any in the man page.
The reason I am asking is that hp-setup does not find the printer either unless I explicitly specify the IP address. If I specify the IP address it recognizes the printer name correctly.

Revision history for this message
brian_p (claremont102) said :
#15

> Is it possible to specify a specific IP address for avahi-browse? Couldn't
> find any in the man page.

No, and it shouldn't be needed because avahi-daemon should take care of
things. I am unfamiliar with OpenSUSE but, just maybe, you have a network
issue. Also, bear in mind that Manfred and I are coming at this problem from
different directions.

Ok, you have the IP address of the printer, so it has a URI of

  ipp://IP_ADDRESS/ipp/print

Substitute this in

  lpadmin -p 277dw -v "URI" -E -m everywhere

and try printing with

  lp -d 277dw /etc/nsswitch

Revision history for this message
Harald Harders (haraldharders) said :
#16

Hi Brian,

Please excuse if I wasn't precise enough in my problem description. I need HPLIP for using the scanner of my HP printer (and if using HPLIP for scanning, I would use it for printing as well). Printing has already worked previously using CUPS.
As far as I know there's no way around HPLIP for using the scanner, right?

I'm not aware of any network issues. Everything else works (access to NFS server, media server, printing via CUPS, browing, etc.). Also with the previous OpenSUSE version (Leap 15.1), hp-setup did not find the printer without specifying the IP address. But then it worked.

Would there be any chance to fix something by configuring the avahi daemon?

My /etc/avahi/avahi-daemon.conf (apparently, OpenSUSE installs this file at a non-standard location) looks as follows (only relevant rows):
[server]
use-ipv4=yes
use-ipv6=yes
ratelimit-interval-usec=1000000
ratelimit-burst=1000
[wide-area]
enable-wide-area=yes
[publish]
publish-hinfo=no
publish-workstation=no
[reflector]
[rlimits]

/etc/avahi/hosts is existing but empty.

Do you have any idea what could be changed in these files?

Revision history for this message
brian_p (claremont102) said :
#17

I gave

  lp -d 277dw /etc/nsswitch

There a typo here. Use

  lp -d 277dw /etc/nsswitch.conf

> Please excuse if I wasn't precise enough in my problem description. I need
> HPLIP for using the scanner of my HP printer...

You probably don't need HPLIP for scanning. Not having avahi browse outputs
makes it diffucult to be certain. Please try printing as indicated. Success or not
might indicate a way forward for scanning.

> Would there be any chance to fix something by configuring the avahi
> daemon?

My experience is that the default configuration is sufficient.

Revision history for this message
Harald Harders (haraldharders) said :
#18

Okay.

Following result:
lose:~ # lpadmin -p 277dw -v "ipp://192.168.1.6/ipp/print" -E -m everywhere

lp -d 277dw /etc/nsswitch.conf
Anfrage-ID ist 277dw-2 (1 Datei(en))

Printing out this file works fine. Now I have two completely different entries in /etc/cups/printers.conf for the same printer which both work fine (one produced by Yast2, one by lpadmin.

BTW, I have tested to scan when the printer is connected by USB using sane. Installed by Yast2, I don't know which mechanism is used by this GUI. Scanning via USB works fine, but USB is no option for me. I don't know how to re-connect to network connection.

Do you have any idea how scanning via network can be enabled based on that?

Revision history for this message
brian_p (claremont102) said :
#19

> Printing out this file works fine.

Driver printing works. HPLIP is not needed, but you may, if you wish,
delete that queue with

  lpadmin -x 277dw

> Do you have any idea how scanning via network can be enabled...

Download sane-airscan from

  https://github.com/alexpevzner/sane-airscan (Project page)
  https://download.opensuse.org/repositories/home:/pzz/openSUSE_Leap_15.2/x86_64/ (Leap 15.2 package)

Please give what you get for

  scanimage -L

and

  airscan-discover

Revision history for this message
Harald Harders (haraldharders) said :
#20

Installing sane-airscan worked fine.

The outputs of the two commands are:

lose:~ # scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
lose:~ # airscan-discover
[devices]
lose:~ #

Thus the scanner is not found automatically. I'm not surprised because also hp-setup needed the IP address explicitly to find the MFP.

Based on that I had the idea to add the scanner to /etc/sane.d/airscan.conf:
...
[devices]
"HP MFP M277dw Scanner" = http://192.168.1.6:9095/eSCL
...

I just didn't know whether port, path and protocol are right.
This results in

lose:~ # scanimage -L
device `airscan:e0:HP MFP M277dw Scanner' is a eSCL HP MFP M277dw Scanner ip=192.168.1.6
lose:~ # airscan-discover
[devices]
lose:~ #

Apparently, scanimage -L only copies the content from the config so that either path, port, or protocol are incorrect.

lose:~ # scanimage > test.pnm
Output format is not set, using pnm as a default.
scanimage: open of device airscan:e0:HP MFP M277dw Scanner failed: Error during device I/O
lose:~ #

Might this depend on an incorrect port? Or is it another issue?
Unfortunately, the printer does not provide this information using its http interface (http://192.168.1.6/info_config_network.html?tab=Networking&menu=NetConfig).

I just found something else by accident:

lose:~ # scanimage -d hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.6 > asdf.pnm

or

harders@lose:~> export SANE_DEFAULT_DEVICE=hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.6
harders@lose:~> scanimage > asdf.pnm

do work. I guess this did not depend on sane-airscan. Right?
Thus, the scanner does actually work if accessed explicitly. I don't understand why still tools like xsane or skanlite do not work even if SANE_DEFAULT_DEVICE is set.
That's now my next task to explore...

I guess this slowly gets off topic here. Please let me know whether I should mark this thread as "Problem Solved" now or whether you have additional ideas for me.

Revision history for this message
brian_p (claremont102) said :
#21

Based on that I had the idea to add the scanner to /etc/sane.d/airscan.conf:
...
[devices]
"HP MFP M277dw Scanner" = http://192.168.1.6:9095/eSCL

Change the port to 8080 and try again.

Revision history for this message
Harald Harders (haraldharders) said :
#22

That's it! Thank you.

Let me write a short conclusion for other users which might have the same issue (looking at scan function only). Same order should be tried.

Approach 1:
- Run hp-setup. If this fails:

Approach 2:
- Install sane-airscan
- Add scanner to /etc/sane.d/airscan.conf
      [devices]
      "HP MFP M277dw Scanner" = http://192.168.1.6:8080/eSCL
  Port 8080 and protocol eSCL have to be guessed...
- Test with "scanimage > test.pnm" (scanimage -L is pointless because it just copies the configuration).

Approach 3:
- Run scanimage without any configuration:
      scanimage -d hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.6 > test.pnm
  Alternatively, SANE_DEFAULT_DEVICE can be set accordingly.
- I could not find a solution to make xsane and simple-scan work that way.

Approach 4:
- Connect scanner with USB port.

Revision history for this message
brian_p (claremont102) said :
#23

> That's it! Thank you.

Glad to have helped, Harald. Your work and information shows that
the printing and scanning systems are really not an issue. However. I
still think in terms of a network issue, particularly as avahi-browse
does not work. Looking at the firewall setup could be productive.