On Sat, 12 Dec 1998 23:42:41 -0500,
Shahzad Sarwar <shahzad@dc.jones.com> said:
Shahzad> It seem that when there are to many traps coming in,
Shahzad> scotty has a hard time binding to the trap socket. It
Shahzad> keeps giving the following message:
Shahzad> can not connect straps socket: no such file or directory
hmm, maybe you can clarify this a little bit: the ENOENT return code
indicates that scotty cannot `connect' to the straps daemon; IMHO this
indices that the socket-pseudo file is missing or it is stale and does
not belong to a running straps daemon.
is there a /tmp/.straps-162 directory entry present ? eg like:
% ls -l /tmp/.straps-162
p--------- 1 root users 0 Dec 13 18:50 /tmp/.straps-162
has the /tmp directory the sticky bit set (default for solaris) ? eg
% ls -dl /tmp
drwxrwxrwt 3 sys sys 2024 Dec 13 19:26 /tmp
this can cause permission problems, because only the owner can remove
a file and the /tmp/.straps-162 file could be stale until removed and
recreated.
just to be sure: is there a staps daemon already running ? eg like:
% /bin/ps -ef | grep stra
root 10014 9998 0 19:21:22 pts/5 0:00 /usr/local/bin/straps
is it running as root (suid root permissions correctly set and obeyed) ?
because of port 162 binding, the straps daemon would not start if not,
but just to be sure.
Shahzad> So, I have wraped the trapd code it a while loop that
Shahzad> keeps going untill it binds.
another hmm: scotty tries itself 5 times (with a pause of one second)
to connect to the straps daemon via the /tmp/.straps-162 socket.
so what `trapd' code is wrapped by yourself ?
if trying again (or longer) solves the problem in your code, this may
give a hint how to solve this in scotty code.
if you wre able to include this harder trying into scotty code, please
sent us diff to see, how it works.
i hope this helps to solve the problem,
Erik
-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.