Re: Problems to start trophie -d

Hans-Juergen Schwarz <[email protected]> Tue, 14 Jun 2005 14:02:10 +0200
Newsgroups gmane.comp.security.virus.vtools
Message-ID <[email protected]>
On Sun, Jun 12, 2005 at 11:07:55AM -0000, [email protected] wrote:

 >> Hello List,
 >> Im having problems to start trophie. When I do trophie -d the following
 >> shows up:
 >>
 >> Initializing    : VSAPI version 7.510-1002
 >> Initializing    : Pattern version 677 (pattern number 103020)
 >> Socket path     : /var/run/trophie
 >> Timeout         : 300 seconds
 >> Running as user : root
 >> Socket group    : root
 >> Max processes   : 20
 >> PID file        : /var/run/trophie.pid
 >> Trophie version : 1.12
 >> [    debug    ] : server.sun_path has a name: [/var/run/trophie]
 >> ERROR: bind() failed in main()
 >>
 >> it seems to me trophie is not able to create the socket. The permissions
 >> an all directories, the libsav and the patterns are root:root. scanning
 >> with trophie -f works well. Does anybody know about this error and 
how to
 >> fix it?
 >
 >
 > Are you running on Linux? If yes, strace is your friend to know what's
 > going on exactly.
 >
 > Post the last 200 lines or so of:
 >
 > # strace -s128 -f trophie -d
 >
 > Oh... just to rule out the obvious: are you sure you don't have a
 > trophie running already?

this problem was a bit strange for me. I did the strace and it was 
telling me that the "File" trophie seems to be existing, but it was only 
the directory. No process was running and the sock File was certainly 
not there. I compiled trophie with  --with-socketfile=/var/run and it 
worked all right.

Thank you very much for help

Hans-Juergen