[sane-devel] more detailed saned problem

Ka Chun, Cheng kccheng@glink.net.hk
Sun, 28 Oct 2001 22:29:36 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C16000.062E03F0
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

hi there,
  I posted eariler, and now I'm knowing more of my problem...
I'm using redhat 7.1, sane RPMs uninstalled, installed sane 1.0.5 =
backend and frontend from source
I successed once but after reboot it all fail except saned -d from =
prompt.

1:scanimage work
2:saned -d in shell, and then xsane from windows work

so I did

1:give read/write access to /dev/scanner, /dev/sg0, /dev/sga

2:edit services, added the following line
sane          6566/tcp  saned   #SANE network scanner daemon

3:modify xinetd.conf
     service sane
             {
                  socket_type =3D stream
                  server =3D /usr/local/sbin/saned
                  protocol =3D tcp
                  user =3D saned
                  group =3D saned
                  wait =3D no
                  disable =3D no
             }

4:ren \usr\local\sbin\saned to saned.bin

5:made a shell script

#!/bin/sh
SANE_DEBUG_MUSTEK=3D128
export SANE_DEBUG_MUSTEK
cd /tmp
#exec /usr/local/sbin/saned.bin 2>saned.$$.stderror | tee =
saned.$$.stdout
#exec /usr/local/sbin/saned.bin
exec /usr/local/sbin/saned.bin -d

the first exec one give me empty log file(saned.????.stdout),
and windows's scanimage.exe:
      0 [main] scanimage 1868 handle_exceptions: Exception: =
STATUS_ACCESS_VIOLATION
   2934 [main] scanimage 1868 open_stackdumpfile: Dumping stack trace to =
scanimage.exe.stackdump
and /var/log/messages
init:bad status =3D 9 or procnum =3D 0
exiting

the second and the third are the same.  give me no log file,
windows scanimage say scanimage: no SANE devices found
/var/log/messages say
access by kccheng@rex accepted
exiting



tried to change hosts.allow, added the line. no difference.
#
# hosts.allow This file describes the names of the hosts which are
#  allowed to use the local INET services, as decided
#  by the '/usr/sbin/tcpd' server.
#

ALL:192.168.0.250


it looks strange, as /var/log/messages say ACCEPTED!, and it was working =
before I reboot.

please help.

=20



------=_NextPart_000_0013_01C16000.062E03F0
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>hi there,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; I posted eariler, and now I'm =
knowing more=20
of my problem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm using redhat 7.1, sane RPMs =
uninstalled,=20
installed sane 1.0.5 backend and frontend from source</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I successed once but after reboot it =
all fail=20
except saned -d from prompt.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1:scanimage work</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2:saned -d in shell, and then xsane =
from windows=20
work</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>so I did</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1:give read/write access to =
/dev/scanner, /dev/sg0,=20
/dev/sga</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2:edit services, added the following=20
line</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>sane&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
6566/tcp&nbsp;=20
saned&nbsp;&nbsp; #SANE network scanner daemon</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>3:modify xinetd.conf</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp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sp;&nbsp;&=
nbsp;=20
}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>4:ren \usr\local\sbin\saned to=20
saned.bin</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>5:made a shell script</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>#!/bin/sh<BR>SANE_DEBUG_MUSTEK=3D128<BR>export=20
SANE_DEBUG_MUSTEK<BR>cd /tmp<BR>#exec /usr/local/sbin/saned.bin=20
2&gt;saned.$$.stderror | tee saned.$$.stdout<BR>#exec=20
/usr/local/sbin/saned.bin<BR>exec /usr/local/sbin/saned.bin =
-d</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the first exec one give me empty log=20
file(saned.????.stdout),</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>and =
windows's=20
scanimage.exe:</FONT></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 [main] =
scanimage=20
1868 handle_exceptions: Exception: =
STATUS_ACCESS_VIOLATION<BR>&nbsp;&nbsp; 2934=20
[main] scanimage 1868 open_stackdumpfile: Dumping stack trace to=20
scanimage.exe.stackdump</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and /var/log/messages</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>init:bad status =3D 9 or procnum =3D =
0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>exiting</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the second and the third are the =
same.&nbsp; give=20
me no log file,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>windows scanimage say scanimage: no =
SANE devices=20
found</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/var/log/messages say</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>access by <A=20
href=3D"mailto:kccheng@rex">kccheng@rex</A> accepted</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>exiting</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>tried to change hosts.allow, added the =
line. no=20
difference.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># hosts.allow&nbsp;This file =
describes the=20
names of the hosts which are<BR>#&nbsp;&nbsp;allowed to use the local =
INET=20
services, as decided<BR>#&nbsp;&nbsp;by the '/usr/sbin/tcpd'=20
server.<BR>#</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ALL:192.168.0.250</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial=20
size=3D2></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>it looks =
strange, as=20
/var/log/messages say ACCEPTED!, and it was working before I=20
reboot.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>please =
help.</DIV>
<DIV><BR></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_0013_01C16000.062E03F0--