[sane-devel] scanner is no longer recognized over network

2010-07-28 Thread Seb
On Wed, 28 Jul 2010 14:02:10 +0200,
Nicolas Martin nicolas0martin at gmail.com wrote:

 [net] sane_open: net_open [net] sane_open: remote open failed
 scanimage: open of device net:192.168.0.102:pixma:04A91709 failed:
 Access to resource has been denied [net] sane_exit: exiting

 What about the xinet (or inet ?) configuration you are using on the
 server: is?the user/group used for saned allowed to use the scanner on
 usb??

How can I check that?  Other than the /etc/inetd.conf line I showed, I
have included the saned user in the scanner group (Debian creates a
saned user and group).  I also included my users in the scanner
group, so I don't know where the permissions problem is.  Thanks.


-- 
Seb




[sane-devel] scanner is no longer recognized over network

2010-07-27 Thread Seb
Hi,

My partner is about to strangle me because she can no longer scan on our
Canon Pixma MP150.  Following updates to Debian sid SANE packages
several weeks ago, this scanner is only seen on the machine with the
server.  We have 3 computers in a home network (on a router):

192.168.0.100
192.168.0.101
192.168.0.102


The SANE server (saned) is on the last one, and in that computer I have
/etc/sane.d/net.conf:

[::1]
localhost


/etc/sane.d/saned.conf:

192.168.0.100/24
[::1]
localhost


/etc/services does include the line:

sane-port   6566/tcpsane saned  # SANE network scanner daemon


/etc/inetd.conf also has the line:

sane-port   stream  tcp nowait  saned:saned /usr/sbin/saned saned


In this computer I get:

---cut here---start--
$ SANE_DEBUG_NET=255 scanimage -L
[sanei_debug] Setting debug level of net to 255.
[net] sane_init: authorize = 0x405920, version_code = 0x7fff7ff4261c
[net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from 
sane-backends 1.0.21
[net] sane_init: Client has little endian byte order
[net] sane_init: searching for config file
[net] sane_init: trying to add [::1]
[net] add_device: adding backend [::1]
[net] add_device: error while getting address of host [::1]: 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 (IPv6)
[net] connect_dev: sanei_w_init
[net] connect_dev: net_init (user=(null), 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 localhost:pixma:04A91709
[net] sane_get_devices: finished (1 devices)
device `pixma:04A91709_F00102' is a CANON Canon PIXMA MP150 multi-function 
peripheral
device `net:localhost:pixma:04A91709' is a CANON Canon PIXMA MP150 
multi-function peripheral
[net] sane_exit: exiting
[net] net_avahi_cleanup: stopping thread
[net] net_avahi_cleanup: done
[net] sane_exit: closing dev 0x25b5250, ctl=6
[net] sane_exit: finished.
---cut here---end


However, on the other computers with the clients I get:

---cut here---start--
$ SANE_DEBUG_NET=255 scanimage -L
[sanei_debug] Setting debug level of net to 255.
[net] sane_init: authorize = 0x405920, version_code = 0x7fffb3d35b7c
[net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from 
sane-backends 1.0.21
[net] sane_init: Client has little endian byte order
[net] sane_init: searching for config file
[net] sane_init: trying to add 192.168.0.102/24
[net] add_device: adding backend 192.168.0.102/24
[net] add_device: error while getting address of host 192.168.0.102/24: Name or 
service not known
[net] sane_init: trying to add [::1]
[net] add_device: adding backend [::1]
[net] add_device: error while getting address of host [::1]: 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] failed to connect (Connection refused)
[net] connect_dev: [1] failed to connect (Connection refused)
[net] connect_dev: couldn't connect to host (see messages above)
[net] sane_get_devices: ignoring failure to connect to localhost
[net] sane_get_devices: finished (0 devices)
device `v4l:/dev/video0' is a Noname Chicony USB 2.0 Camera virtual device
[net] sane_exit: exiting
[net] net_avahi_cleanup: stopping thread
[net] net_avahi_cleanup: done
[net] sane_exit: closing dev 0x961e90, ctl=-1
[net] sane_exit: finished.
---cut here---end


I'd really appreciate any pointers.

-- 
Seb




[sane-devel] scanner is no longer recognized over network

2010-07-27 Thread Seb
[update]

I changed the clients' /etc/sane.d/net.conf to point exclusively to the
IP address of the SANE server:

192.168.0.102

and now the clients detect the scanner, but cannot use it:

---cut here---start--
$ scanimage -L
device `net:192.168.0.102:pixma:04A91709' is a CANON Canon PIXMA MP150 
multi-function peripheral

$ SANE_DEBUG_NET=255 scanimage -d 'net:192.168.0.102:pixma:04A91709'  
/tmp/test.pnm
[sanei_debug] Setting debug level of net to 255.
[net] sane_init: authorize = 0x405920, version_code = 0x7fffdb391efc
[net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from 
sane-backends 1.0.21
[net] sane_init: Client has little endian byte order
[net] sane_init: searching for config file
[net] sane_init: trying to add 192.168.0.102
[net] add_device: adding backend 192.168.0.102
[net] add_device: backend 192.168.0.102 added
[net] sane_init: trying to add [::1]
[net] add_device: adding backend [::1]
[net] add_device: error while getting address of host [::1]: 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_open(192.168.0.102:pixma:04A91709)
[net] sane_open: host = 192.168.0.102, device = pixma:04A91709
[net] sane_open: device found in list
[net] sane_open: device not connected yet...
[net] connect_dev: trying to connect to 192.168.0.102
[net] connect_dev: [0] connection succeeded (IPv4)
[net] connect_dev: sanei_w_init
[net] connect_dev: net_init (user=sluque, local version=1.0.3)
[net] connect_dev: freeing init reply (status=Success, remote version=1.0.3)
[net] connect_dev: done
[net] sane_open: net_open
[net] sane_open: remote open failed
scanimage: open of device net:192.168.0.102:pixma:04A91709 failed: Access to 
resource has been denied
[net] sane_exit: exiting
[net] net_avahi_cleanup: stopping thread
[net] net_avahi_cleanup: done
[net] sane_exit: closing dev 0x2361170, ctl=-1
[net] sane_exit: closing dev 0x235ec50, ctl=6
[net] sane_exit: finished.
---cut here---end

Seb



On Tue, 27 Jul 2010 21:24:35 -0500,
Seb spluque at gmail.com wrote:

 Hi, My partner is about to strangle me because she can no longer scan
 on our Canon Pixma MP150.  Following updates to Debian sid SANE
 packages several weeks ago, this scanner is only seen on the machine
 with the server.  We have 3 computers in a home network (on a router):

 192.168.0.100 192.168.0.101 192.168.0.102


 The SANE server (saned) is on the last one, and in that computer I
 have /etc/sane.d/net.conf:

 [::1] localhost


 /etc/sane.d/saned.conf:

 192.168.0.100/24 [::1] localhost


 /etc/services does include the line:

 sane-port 6566/tcp sane saned # SANE network scanner daemon


 /etc/inetd.conf also has the line:

 sane-port stream tcp nowait saned:saned /usr/sbin/saned saned


 In this computer I get:

 $ SANE_DEBUG_NET=255 scanimage -L [sanei_debug] Setting debug level of
 net to 255.  [net] sane_init: authorize = 0x405920, version_code =
 0x7fff7ff4261c [net] sane_init: SANE net backend version 1.0.14
 (AF-indep+IPv6) from sane-backends 1.0.21 [net] sane_init: Client has
 little endian byte order [net] sane_init: searching for config file
 [net] sane_init: trying to add [::1] [net] add_device: adding backend
 [::1] [net] add_device: error while getting address of host [::1]:
 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
 (IPv6) [net] connect_dev: sanei_w_init [net] connect_dev: net_init
 (user=(null), 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 localhost:pixma:04A91709 [net]
 sane_get_devices: finished (1 devices) device `pixma:04A91709_F00102'
 is a CANON Canon PIXMA MP150 multi-function peripheral device
 `net:localhost:pixma:04A91709' is a CANON Canon PIXMA MP150
 multi-function peripheral [net] sane_exit: exiting [net]
 net_avahi_cleanup: stopping thread [net] net_avahi_cleanup: done [net]
 sane_exit: closing dev 0x25b5250, ctl=6 [net] sane_exit: finished.


 However, on the other computers with the clients I get:

 $ SANE_DEBUG_NET=255 scanimage -L [sanei_debug] Setting debug level of
 net to 255.  [net] sane_init: authorize = 0x405920, version_code =
 0x7fffb3d35b7c [net] sane_init: