Sane net autodiscovery not working in 22.04

Bug #1973619 reported by Joao Fraga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sane-backends (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have used every Ubuntu version since 16.10 and on all of them my network scanner EPSON SX525WD could be discovered out of the box.

On 22.04 the output of 'scanimage -L' is:

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).

To double-check if something hadn't changed in my network, I opened a laptop which still has Ubuntu 21.10 installed. I ran 'scanimage -L' and it shows:

device `epson2:net:192.168.8.8' is a Epson PID 085E flatbed scanner
device `airscan:w0:EPSON Epson Stylus SX525WD' is a WSD EPSON Epson Stylus SX525WD ip=192.168.8.8

My current workaround for 22.04 is to append the line:
      net 192.168.8.8
to /etc/sane.d/epson2.conf. The command 'scanimage -L' detects the scanner (albeit no 'airscan' result shows up):

device `epson2:net:192.168.8.8' is a Epson PID 085E flatbed scanner

NOTE: I filled this bug under the 'sane-backends' package because this form gave this error: "sane-utils" does not exist in Ubuntu

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: sane-utils 1.1.1-5
ProcVersionSignature: Ubuntu 5.15.0-30.31-generic 5.15.30
Uname: Linux 5.15.0-30-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Mon May 16 15:53:46 2022
InstallationDate: Installed on 2020-02-02 (833 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: sane-backends
UpgradeStatus: Upgraded to jammy on 2022-05-06 (9 days ago)

Revision history for this message
Joao Fraga (jfraga7) wrote :
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for your report.

Question: Is sane-airscan installed? (It ought to be, since libsane1 recommends it.)

Changed in sane-backends (Ubuntu):
status: New → Incomplete
Revision history for this message
Joao Fraga (jfraga7) wrote :

Yes, it is:

$ dpkg --get-selections *sane*
libsane-common install
libsane-hpaio:amd64 install
libsane1:amd64 install
sane-airscan install
sane-utils install

The exact same set of packages installed in my Ubuntu 21.10.
The only difference are the versions.

Changed in sane-backends (Ubuntu):
status: Incomplete → New
Revision history for this message
Joao Fraga (jfraga7) wrote :

Once I turn the firewall off, the autodiscovery starts working (without any changes to /etc/sane.d/epson2.conf):

# service ufw stop
# scanimage -L
device `epson2:net:192.168.8.8' is a Epson PID 085E flatbed scanner

If I reload the firewall rules, the autodiscovery stops working again.

This is probably the only relevant difference between my Ubuntu 21.10 and my Ubuntu 22.04 installations.

Perhaps the stock firewall rules should be amended to make them autodiscovery-friendly.

Revision history for this message
Joao Fraga (jfraga7) wrote :

For evidence purposes, I'm attaching the output of 'iptables-save' in my Ubuntu 22.04 machine.

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.