[Xorp-users] failed to re-start xorpsh

Ram ramkumar.ch03 at gmail.com
Fri Mar 26 10:41:55 PDT 2010


Hi Ben,

 I can connect to local host  through telnet at 19999 ( the output  is
exactly as yours).

 There is no log related to xorp in /var/log/ folder, even nothing in
message file (please let me know you think some where else).

Strace on rtrmgr (strace -o str1.txt ./xorp_rtrmgr) while trying to run
xorpsh in another window. I got the following error.

getsockname(4, {sa_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
bind(4, {sa_family=AF_INET, sin_port=htons(19999),
sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRINUSE (Address already in
use)

In this way you  asked me to  check strace on rtrmgr, if  i am wrong let me
know.

 Thanks,
 --Ram

On Fri, Mar 26, 2010 at 11:23 AM, Ben Greear <greearb at candelatech.com>wrote:

> On 03/26/2010 08:24 AM, Ram wrote:
>
>> Thank you Ben.
>>
>> May be you are correct about " ./xorpsh -v", in my system xorpsh  failed
>> to start.
>>
>>  I already straced ./xorpsh, and sent to the xorp mailing list. But my
>> mail is not posted to mailing list ( due to big size waiting for admin
>> approval).
>>
>> First, i did not set any port while installation.
>>
>>  In trace, i checked with Port number as you mentioned. Xorpsh is
>> trying to bind to same port which finder is listening.
>>
>> -bash-3.2# netstat -n -l -p -t -u
>> Active Internet connections (only servers)
>> Proto Recv-Q Send-Q Local Address               Foreign Address
>>     State       PID/Program name
>> tcp        0      0 127.0.0.1:19999 <http://127.0.0.1:19999>
>>
>> 0.0.0.0:*                   LISTEN      12118/xorp_fea
>>
>>
>> getsockname(24, {sa_family=AF_INET, sin_port=htons(0),
>> sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
>> connect(24, {sa_family=AF_INET, *sin_port=htons(19999)*,
>> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in
>> progress)
>> After some time it (xorpsh) is terminating.
>>
>
> That's good information.  Either xorpsh isn't handling delayed
> accept (ie, EINPROGRESS) or maybe the rtrmgr isn't accepting new
> connections properly.
>
> Can you telnet to that port to see of rtrmgr properly allows
> connection?:
>
> telnet localhost 19999
>
> Maybe also strace on rtrmgr while you are attempting xorpsh connect to
> see if it ever sees the connection and accepts it?
>
> Here's what I get (I'm running rtrmgr on port 4501 in this case):
>
> [root at ct503-10G-09 lanforge]# telnet localhost 4501
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> hello
> Connection closed by foreign host.
>
> Here is what I see in the logs:
> [ 2010/03/26 09:21:47.581267  ERROR xorp_rtrmgr:18204 FINDER
> libxipc/finder_tcp.cc:170 read_callback ] Bad input buffer size (1751477356
> bytes) from wire, dropping connection
>
>
> Please check to see if you get similar results.
>
>
>
>  In strace output i found many "no such file or directory" errors. For
>> sample, few lines are below ( if you need any thing let me know).
>>
>
> Those are probably not the problem.
>
>
> Thanks,
> Ben
>
> --
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20100326/7f4f0177/attachment.html 


More information about the Xorp-users mailing list