Your message dated Sun, 18 Jun 2006 19:27:36 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#374269: libsane: net backend does not work with xinetd
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libsane
Version: 1.0.17-3
Severity: normal

I use xsane to access an agfa snapscan scsi scanner installed on one 
host from
another host using net.conf
Both hosts run debian unstable.
It has been working very well until now.
I cannot use xinetd on the the server host anymore.
The net backend will only work if I run saned directly.

Here is the output if I try to run saned via xinetd :
On the client, I run :

SANE_DEBUG_NET=255 scanimage -L

[sanei_debug] Setting debug level of net to 255.
[net] sane_init: authorize = 0x8049230, version_code = 0xaf8bb998
[net] sane_init: SANE net backend version 1.0.13 (AF-indep+IPv6) from 
sane-backends 1.0.17
[net] sane_init: Client has little endian byte order
[net] sane_init: searching for config file
[net] sane_init: trying to add 192.168.1.50
[net] add_device: adding backend 192.168.1.50
[net] add_device: backend 192.168.1.50 added
[net] sane_init: done reading config
[net] sane_init: evaluating environment variable SANE_NET_HOSTS
[net] sane_init: done
[net] sane_get_devices: local_only = 0
[net] connect_dev: trying to connect to 192.168.1.50
[net] connect_dev: [0] connection succeeded (IPv4)
[net] connect_dev: sanei_w_init
[net] connect_dev: net_init (user=enrico, local version=1.0.3)
[net] connect_dev: argument marshalling error (Connection reset by peer)
[net] connect_dev: closing connection to 192.168.1.50
[net] sane_get_devices: ignoring failure to connect to 192.168.1.50
[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] sane_exit: closing dev 0x807ed38, ctl=-1
[net] sane_exit: finished.

On the other hand, if I run saned directly on the server host, 
there is the output :

[sanei_debug] Setting debug level of net to 255.
[net] sane_init: authorize = 0x8049230, version_code = 0xafb92f98
[net] sane_init: SANE net backend version 1.0.13 (AF-indep+IPv6) from 
sane-backends 1.0.17
[net] sane_init: Client has little endian byte order
[net] sane_init: searching for config file
[net] sane_init: trying to add 192.168.1.50
[net] add_device: adding backend 192.168.1.50
[net] add_device: backend 192.168.1.50 added
[net] sane_init: done reading config
[net] sane_init: evaluating environment variable SANE_NET_HOSTS
[net] sane_init: done
[net] sane_get_devices: local_only = 0
[net] connect_dev: trying to connect to 192.168.1.50
[net] connect_dev: [0] connection succeeded (IPv4)
[net] connect_dev: sanei_w_init
[net] connect_dev: net_init (user=enrico, 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: got 192.168.1.50:snapscan:/dev/sg0
[net] sane_get_devices: finished (1 devices)
device `net:192.168.1.50:snapscan:/dev/sg0' is a AGFA SNAPSCAN 310 
flatbed scanner
[net] sane_exit: exiting
[net] sane_exit: closing dev 0x807ed38, ctl=3
[net] sane_exit: finished.

Here is the file /etc/saned.d/net.conf on the client :
# This is the net config file.  Each line names a host to attach to.
# If you list "localhost" then your backends can be accessed either
# directly or through the net backend.  Going through the net backend
# may be necessary to access devices that need special privileges.
# localhost
192.168.1.50

Thanks for your help
Enrico


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libsane depends on:
ii  adduser                       3.87       Add and remove users and groups
ii  libc6                         2.3.6-13   GNU C Library: Shared libraries
ii  libgphoto2-2                  2.1.6-13   gphoto2 digital camera library
ii  libgphoto2-port0              2.1.6-13   gphoto2 digital camera port librar
ii  libieee1284-3                 0.2.10-1   cross-platform library for paralle
ii  libjpeg62                     6b-13      The Independent JPEG Group's JPEG 
ii  libusb-0.1-4                  2:0.1.12-2 userspace USB programming library
ii  makedev                       2.3.1-81   creates device files in /dev

Versions of packages libsane recommends:
ii  module-init-tools             3.2.2-3    tools for managing Linux kernel mo
ii  sane-utils                    1.0.17-3   API library for scanners -- utilit
ii  udev [hotplug]                0.093-1    /dev/ and hotplug management daemo

-- no debconf information


--- End Message ---
--- Begin Message ---
enrico <[EMAIL PROTECTED]> wrote:

Hi,

> It was a permission problem on device /dev/sg0
> Fixed it as mentioned on the penguin-breeder page.
> Now it works

Good to hear :)

> Sorry for the trouble

No problem, happy scanning :)

JB.

-- 
 Julien BLACHE <[EMAIL PROTECTED]>  |  Debian, because code matters more 
 Debian & GNU/Linux Developer        |       <http://www.debian.org>
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 

--- End Message ---

Reply via email to