saned not find scanner that scanimage -L finds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sane-backends (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
When running scanimage -L on a remote system no scanner is found.
when running scanimage -L on local system (where saned is run) finds the scanners.
when running scaned in debug mode I can see the remote system request a list of scanner but no list is returned to scanimge -L. This tell me the network setups are working and access control is also working. It just does not find the scanner under saned but finds it under scanimage -L
I have remove saned stuff from systemd so I can run saned by hand
output from scanimage on local system (where saned is run)
root@cups:~# scanimage -L
device `hpaio:
device `hpaio:
device `hpaio:
root@cups:~#
output from saned with debug turned on:
root@cups:~# saned -d128
[saned] main: starting debug mode (level 128)
[saned] read_config: searching for config file
[saned] read_config: data port range: 10000 - 10100
[saned] read_config: done reading config
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.25git starting up
[saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo)
[saned] do_bindings: [1] socket () using IPv6
[saned] do_bindings: [1] setsockopt ()
[saned] do_bindings: [1] bind () to port 6566
[saned] do_bindings: [1] listen ()
[saned] do_bindings: [0] socket () using IPv4
[saned] do_bindings: [0] setsockopt ()
[saned] do_bindings: [0] bind () to port 6566
[saned] do_bindings: [0] bind failed: Address already in use
[saned] run_standalone: spawning Avahi process
[saned] run_standalone: waiting for control connection
[saned] saned_avahi_
[saned] saned_create_
[saned] saned_avahi_
[saned] handle_connection: processing client connection
[saned] check_host: detected an IPv4-mapped address
[saned] check_host: access by remote host: ::ffff:
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: cups
[saned] check_host: local hostname(s) (from DNS): cups.mlb.org
[saned] check_host: local hostname(s) (from DNS): (null)
[saned] check_host: local hostname(s) (from DNS): (null)
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: can't open config file: /etc/hosts.equiv (No such file or directory)
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `# saned.conf'
[saned] check_host: config file line: `# Configuration for the saned daemon'
[saned] check_host: config file line: `'
[saned] check_host: config file line: `## Daemon options'
[saned] check_host: config file line: `# Port range for the data connection. Choose a range inside [1024 - 65535].'
[saned] check_host: config file line: `# Avoid specifying too large a range, for performance reasons.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# ONLY use this if your saned server is sitting behind a firewall. If your'
[saned] check_host: config file line: `# firewall is a Linux machine, we strongly recommend using the'
[saned] check_host: config file line: `# Netfilter nf_conntrack_sane connection tracking module instead.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `data_portrange = 10000 - 10100'
[saned] check_host: config file line: `'
[saned] check_host: config file line: `'
[saned] check_host: config file line: `## Access list'
[saned] check_host: config file line: `# A list of host names, IP addresses or IP subnets (CIDR notation) that'
[saned] check_host: config file line: `# are permitted to use local SANE devices. IPv6 addresses must be enclosed'
[saned] check_host: config file line: `# in brackets, and should always be specified in their compressed form.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# The hostname matching is not case-sensitive.'
[saned] check_host: config file line: `192.168.1.0/24'
[saned] check_host: subnet with base IP = 192.168.1.0, CIDR netmask = 24
[saned] check_host: access granted from IP address 192.168.1.141 (in subnet 192.168.1.0/24)
[saned] init: access granted
[saned] init: access granted to batch@:
[saned] process_request: waiting for request
[saned] process_request: got request 1
[saned] process_request: waiting for request
[saned] process_request: got request 10
[saned] bailing out, waiting for children...
[saned] bail_out: all children exited
root@cups:~#
output from remote system access scaned
batch@ltcd-root:~$ 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).
batch@ltcd-root:~$
WORKAROUND: Patch saned.c via:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: sane-utils 1.0.25+
ProcVersionSign
Uname: Linux 4.4.0-38-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Mon Oct 10 22:56:40 2016
ProcEnviron:
TERM=xterm-
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
XDG_RUNTIME_
SourcePackage: sane-backends
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
mtime.conffile.
description: | updated |
description: | updated |
description: | updated |
Changed in sane-backends (Ubuntu): | |
status: | Expired → New |
description: | updated |
mike Bernson, thank you for reporting this and helping make Ubuntu better.
To advise, the saned documentation has been rewritten. Hence, could you please advise if it helps following https:/ /help.ubuntu. com/community/ SaneDaemonTutor ial ?