Package: sane-utils
Version: 1.0.25+git20150927-1
Severity: important

Since I upgraded our "scan server" to jessie (sane-utils 1.0.22.7-4
to 1.0.24-8), clients cannot use it via the network anymore. Suffice
it to say that scanimage -L locally still works, but that's
accessing the device directly and not going via saned.

When a client makes a request (scanimage -L), they are told that no
scanners were identified, but this happens after a successful
conversation with the server:

  % SANE_DEBUG_NET=255 scanimage -L
  [sanei_debug] Setting debug level of net to 255.
  [net] sane_init: authorize != null, version_code != null
  [net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from 
sane-backends 1.0.25git
  [net] sane_init: Client has little endian byte order
  [net] sane_init: searching for config file
  [net] sane_init: trying to add scanner
  [net] add_device: adding backend scanner
  [net] add_device: backend scanner added
  [net] sane_init: done reading config
  [net] sane_init: evaluating environment variable SANE_NET_HOSTS
  [net] sane_init: evaluating environment variable SANE_NET_TIMEOUT
  [net] sane_init: done
  [net] sane_get_devices: local_only = 0
  [net] connect_dev: trying to connect to scanner
  [net] connect_dev: [0] connection succeeded (IPv6)
  [net] connect_dev: sanei_w_init
  [net] connect_dev: net_init (user=madduck, local version=1.0.3)
  [net] connect_dev: freeing init reply (status=Success, remote version=1.0.3)
  [net] connect_dev: done
  [net] sane_get_devices: finished (0 devices)

  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).
  [net] sane_exit: exiting
  [net] net_avahi_cleanup: stopping thread
  [net] net_avahi_cleanup: done
  [net] sane_exit: closing dev 0x562a410df020, ctl=126
  [net] sane_exit: finished.

The server sees the request and authorizes it based on the subnet:

  # saned -d
  [saned] main: starting debug mode (level 2)
  [saned] saned (AF-indep+IPv6) from sane-backends 1.0.24 starting up
  [saned] check_host: access by remote host: 2001:a60:f0fb:0:2ad2:44ff:fe8c:5bd
  [saned] init: access granted to madduck@2001:a60:f0fb:0:2ad2:44ff:fe8c:5bd
  [saned] bailing out, waiting for children...
  [saned] bail_out: all children exited

Even if I crank up debug level on the server to 255 (-d255), I don't
get any additional information, other than the following four lines
before it says "bailing out":

  [saned] process_request: waiting for request
  [saned] process_request: got request 1
  [saned] process_request: waiting for request
  [saned] process_request: got request 10

I cannot access the scanner via the net backened from localhost
either, so firewalling is also not in the way. Apart, I've verified
that the daemon listens on the right sockets, and the port is open
all the way between clients and process.

To me, it looks like saned is either not seeing any scanners, or not
passing them on. However, the saned user can access the device just
fine (su -c 'scanimage -L' saned) and running saned as root also
doesn't improve things.

In short, either something drastically changed without
a corresponding NEWS.Debian entry, or something broke.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sane-utils depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.58
ii  init-system-helpers    1.29
ii  libavahi-client3       0.6.32~rc+dfsg-1
ii  libavahi-common3       0.6.32~rc+dfsg-1
ii  libc6                  2.21-9
ii  libieee1284-3          0.2.11-12
ii  libjpeg62-turbo        1:1.4.2-2
ii  libsane                1.0.25+git20150927-1
ii  libsystemd0            229-2
ii  libusb-1.0-0           2:1.0.20-1
ii  update-inetd           4.43

sane-utils recommends no packages.

Versions of packages sane-utils suggests:
pn  avahi-daemon  <none>
ii  unpaper       6.1-1

-- no debconf information


-- 
 .''`.   martin f. krafft <madduck@d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to