[sane-devel] [saned] do_bindings: [0] bind failed: Address already in use
m. allan noah
kitno455 at gmail.com
Tue Oct 21 19:35:01 UTC 2014
if you have configured inetd to listen on the sane port, you cannot then
also start saned in debug mode, where it also tries to listen on that port.
Either stop inetd during your testing, or don't start saned directly (inetd
will do it for you)
allan
On Tue, Oct 21, 2014 at 3:21 PM, Andy Ody <andy.ody at gmail.com> wrote:
> Hi ALL,
>
> Apologies for being a noob, but sort of struggling now.
>
> I'm trying to setup an old BT Homehub 2 router as a scanner server, and
> have ref lashed it with OpenWRT.
>
> I've installed Sane frontends and backends, and libs.
>
> From the command line, the scanner shows up (an HP5590), and I can scan
> image -L. I can even create a scan file from the command line, so guessing
> the driver and everything is ok.
>
> I've gotten xinetd installed and running (I think)
>
> I'm trying to get saned up and running with
>
> root at OpenWrt:/etc# saned -d128
>
>
> but I get this
>
>
> [saned] main: starting debug mode (level 128)
>
> [saned] read_config: searching for config file
>
> [saned] read_config: done reading config
>
> [saned] saned (AF-indep+IPv6) from sane-backends 1.0.24 starting up
>
> [saned] do_bindings: trying to get port for service "sane-port"
> (getaddrinfo)
>
> [saned] do_bindings: [0] socket () using IPv6
>
> [saned] do_bindings: [0] setsockopt ()
>
> [saned] do_bindings: [0] bind () to port 6566
>
> [saned] do_bindings: [0] bind failed: Address already in use
>
> [saned] do_bindings: [1] socket () using IPv4
>
> [saned] do_bindings: [1] setsockopt ()
>
> [saned] do_bindings: [1] bind () to port 6566
>
> [saned] do_bindings: [1] bind failed: Address already in use
>
> [saned] do_bindings: couldn't bind an address. Exiting.
>
> [saned] FATAL ERROR; bailing out, waiting for children...
>
> [saned] bail_out: all children exited
>
>
> I did a netstat to see, and
>
>
> root at OpenWrt:/etc# netstat -an
>
> Active Internet connections (servers and established)
>
> Proto Recv-Q Send-Q Local Address Foreign Address State
>
>
> tcp 0 0 0.0.0.0:6566 0.0.0.0:*
> LISTEN
>
> tcp 0 0 0.0.0.0:80 <http://0.0.0.0/> 0.0.0.0:*
> LISTEN
>
> tcp 0 0 0.0.0.0:53 0.0.0.0:*
> LISTEN
>
> tcp 0 0 0.0.0.0:22 0.0.0.0:*
> LISTEN
>
> tcp 0 0 0.0.0.0:631 0.0.0.0:*
> LISTEN
>
> tcp 0 0 172.16.1.35:80 <http://172.16.1.35/>
> 172.16.1.23:49894 TIME_WAIT
>
> tcp 0 0 172.16.1.35:22 172.16.1.23:49370
> ESTABLISHED
>
> tcp 0 0 172.16.1.35:80 <http://172.16.1.35/>
> 172.16.1.23:49895 TIME_WAIT
>
> tcp 0 0 172.16.1.35:80 <http://172.16.1.35/>
> 172.16.1.23:49896 TIME_WAIT
>
> tcp 0 0 :::80 :::* LISTEN
>
>
> tcp 0 0 :::53 :::* LISTEN
>
>
> tcp 0 0 :::22 :::* LISTEN
>
>
> tcp 0 0 :::631 :::* LISTEN
>
>
> udp 0 0 0.0.0.0:53 0.0.0.0:*
>
>
> udp 0 0 0.0.0.0:631 0.0.0.0:*
>
>
> udp 0 0 :::547 :::*
>
>
> udp 0 0 :::53 :::*
>
>
> raw 0 0 :::58 ::%4434572:* 58
>
>
> raw 0 0 :::58 ::%4434572:* 58
>
>
> Active UNIX domain sockets (servers and established)
>
> Proto RefCnt Flags Type State I-Node Path
>
> unix 2 [ ACC ] STREAM LISTENING 307 /var/run/ubus.sock
>
> unix 2 [ ] DGRAM 1877
> /var/run/hostapd/wlan0
>
> unix 11 [ ] DGRAM 1228 /dev/log
>
> unix 2 [ ] DGRAM 1519
>
> unix 3 [ ] STREAM CONNECTED 574
>
> unix 2 [ ] DGRAM 1814
>
> unix 2 [ ] DGRAM 1491
>
> unix 2 [ ] DGRAM 2171
>
> unix 2 [ ] DGRAM 1310
>
> unix 3 [ ] STREAM CONNECTED 575 /var/run/ubus.sock
>
> unix 3 [ ] STREAM CONNECTED 1343
>
> unix 3 [ ] STREAM CONNECTED 2080 /var/run/ubus.sock
>
> unix 3 [ ] STREAM CONNECTED 2079
>
> unix 3 [ ] STREAM CONNECTED 1933
>
> unix 3 [ ] STREAM CONNECTED 1231 /var/run/ubus.sock
>
> unix 3 [ ] STREAM CONNECTED 1344 /var/run/ubus.sock
>
> unix 2 [ ] DGRAM 1826
>
> unix 3 [ ] STREAM CONNECTED 1934 /var/run/ubus.sock
>
> unix 3 [ ] STREAM CONNECTED 1290
>
> unix 3 [ ] STREAM CONNECTED 1230
>
> unix 3 [ ] STREAM CONNECTED 1291 /var/run/ubus.sock
>
> unix 2 [ ] DGRAM 1483
>
> unix 2 [ ] DGRAM 1648
>
> unix 2 [ ] DGRAM 2195
>
> unix 2 [ ] DGRAM 1939
>
>
> Now, not a lot of this means anything to me, and if anyone can point me in
> the direction of what to do, greatly appreciated.
>
>
> TIA
>
>
> Andy
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org
>
--
"well, I stand up next to a mountain- and I chop it down with the edge of
my hand"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20141021/de042167/attachment.html>
More information about the sane-devel
mailing list