qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Godfrey <rob.j.godf...@gmail.com>
Subject Re: [Router][Java Broker] connect failed between Router & Java Broker
Date Thu, 10 Dec 2015 09:55:31 GMT
Hi Olivier,

On 9 December 2015 at 10:06, Robbie Gemmell <robbie.gemmell@gmail.com>
wrote:

> On 8 December 2015 at 21:21, Olivier Mallassi
> <olivier.mallassi@gmail.com> wrote:
>

[.. snip ..]


> > ------------------------------------------------------------------------
> > @Keith and regarding the connection between the router and the Java
> broker, I
> > quickly tested the same config on version 6.0.0 w/o success.
> >
> > *on broker side*
> > 2015-12-08 09:59:55,586 DEBUG [IO-/192.168.56.103:52422] (FRM) -
> > SEND[/192.168.56.103:52422|0] : SaslOutcome{code=ok}
> > 2015-12-08 09:59:57,589 INFO  [IO-/192.168.56.103:52422]
> *(q.m.c.idle_close)
> > - [con:34(/192.168.56.103:52422 <http://192.168.56.103:52422>)]
> CON-1003 :
> > Closed due to inactivity*
> > *2015-12-08 09:59:57,590 DEBUG [IO-/192.168.56.103:52422
> > <http://192.168.56.103:52422>] (FRM) - RECV[/192.168.56.103:52422|-1] :
> > Underlying connection closed*
> > 2015-12-08 10:00:02,598 DEBUG [IO-/192.168.56.103:52423] (FRM) -
> > SEND[/192.168.56.103:52423|0] :
> > SaslMechanisms{saslServerMechanisms=[ANONYMOUS]}
> > 2015-12-08 10:00:02,599 DEBUG [IO-/192.168.56.103:52423] (FRM) -
> > RECV[/192.168.56.103:52423|0] :
> > SaslInit{mechanism=ANONYMOUS,initialResponse=anonymous}
> >
> > *on router side *
> >
> > Connected to 192.168.56.103:10002
> > [0x7ff65400a530]:  -> SASL
> > [0x7ff65400a530]:0 -> @sasl-init(65) [mechanism=:ANONYMOUS,
> > initial-response=b"anonymous"]
> > [0x7ff65400a530]:  -> AMQP
> > [0x7ff65400a530]:0 -> @open(16) [container-id="qpid.dispatch.router.A",
> > max-frame-size=65536, channel-max=32767,
> > offered-capabilities=:"ANONYMOUS-RELAY",
> > properties={:product="qpid-dispatch-router", :version="0.5"}]
> > [0x7ff65400a530]:  <- SASL
> > [0x7ff65400a530]:0 <- @sasl-mechanisms(64)
> > [sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS]]
> > [0x7ff65400a530]:0 <- @sasl-outcome(68) [code=0]
> > [0x7ff65400a530]:  <- AMQP
> > [0x7ff65400a530]:0 -> @close(24) [error=@error(29)
> > *[condition=:"amqp:connection:framing-error",
> > description="connection aborted"]]*
> > [0x7ff65400a530]:  <- EOS
> > [0x7ff65400a530]:  -> EOS
> >
> >
> >
> > *and then on the router log *
> >
> > Tue Dec  8 10:00:02 2015 SERVER (trace) Connecting to
> 192.168.56.103:10002
> > (/home/omallassi/qpid-dispatch-0.5/src/server.c:816)
> > Tue Dec  8 10:00:04 2015 SERVER (trace) Connection to
> 192.168.56.103:10002
> > failed (/home/omallassi/qpid-dispatch-0.5/src/server.c:438)
> >
> > I should have mis-configured something.
> > I did not investigate more than that (I need to focus on the dispatch /
> > broker integration) but let me know if you want me to try some tests
> >
>
> The above is presumably why the router couldnt do anything with the
> message sent by the client. It seems to indicate that the connection
> never fully opened and then aborted. You can see the SASL steps
> complete successfully on the broker (outcome code of 0), but the
> broker does not then send an Open frame after its AMQP header.
>
> It seems from the other logging that there are 2 seconds across the
> connection attempt and failure. I believe the Java broker has a
> timeout after which it will kill connections that initiate but dont
> complete negotation, so perhaps that might be in play. The router
> appears to be pipelining its SASL and AMQP Open frames before the
> broker sends anything, so one possibility might be that the broker
> doesnt like that, another could be that there is something awry with
> the Open frame but nothing jumps out at me from the logging.
>
>
I've just made a small change[1] to the Java Broker trunk code which I hope
may fix the issue.  If you are able to build from trunk and test with your
configuration, let me know if it solves this issue for you.


Cheers,
Rob

[1] https://issues.apache.org/jira/browse/QPID-6939

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message