[sane-devel] Net Client Not Contacting Server

Ralph Little skelband at gmail.com
Wed Sep 9 17:42:43 BST 2020


Hi,

On Wed, Sep 9, 2020 at 8:39 AM C. Cook <c.a.cook at quantum-sci.com> wrote:

>
> On 2020-09-09 07:31, Ralph Little wrote:
> > Hi,
>


> I did as Olaf suggested and "Name or service not known", which doesn't
> make sense:
>
> # SANE_DEBUG_NET=128 scanimage -L
> [sanei_debug] Setting debug level of net to 128.
> [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.27
> [net] sane_init: Client has little endian byte order
> [net] sane_init: searching for config file
> [net] sane_init: connect timeout set to 30 seconds
> [net] sane_init: trying to add scan-server
> [net] add_device: adding backend scan-server
> [net] add_device: error while getting address of host scan-server: Name
> or service not known
> [net] sane_init: trying to add localhost
> [net] add_device: adding backend localhost
> [net] add_device: backend localhost 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 localhost
> [net] connect_dev: [0] connection succeeded (IPv4)
> [net] connect_dev: sanei_w_init
> [net] connect_dev: net_init (user=carl, 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)
>
>
So it looks from the trace that it is trying to (unsuccessfully) resolve
the scan-server host.
I would simplify this for the moment to just include the IP address of
scan-server in net.conf and try again.

I tried something similar here to see what we would expect:

[09:32:15.216089] [net] sane_init: searching for config file
[09:32:15.216101] [net] sane_init: trying to add scan-server
[09:32:15.216108] [net] add_device: adding backend scan-server
[09:32:15.218803] [net] add_device: error while getting address of host
scan-server: Temporary failure in name resolution
[09:32:15.218827] [net] sane_init: trying to add 10.1.40.6
[09:32:15.218836] [net] add_device: adding backend 10.1.40.6
[09:32:15.219301] [net] add_device: backend 10.1.40.6 added
[09:32:15.219313] [net] sane_init: done reading config

In my net.conf I have:

#
# Comments...
#
scan-server
10.1.40.6

You can see that even though scan-server cannot be found, it still adds the
10.1.40.6 host entry.

Alternatively, you can just specify the IP address in SANE_NET_HOSTS env
variable:

SANE_NET_HOSTS=10.1.60.4 SANE_DEBUG_NET=128 scanimage -L

.. and that IP address will be included in addition to what is in net.conf.

Let us know what output you get. Hopefully that will give us something to
go on.

Cheers,
Ralph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20200909/e304d647/attachment-0001.html>


More information about the sane-devel mailing list