Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
Sterner #1
Member since Oct 2015 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Random missing connection to server
Hi
We have the problem with connection. Sometimes it is impossible to connect to server, but it works on next tryout.  We are using 1.6 Matrix version, Mono and Unity. Server is ejabberd 14.

Thank you in advance.

Here are logs.

1.Unsuccessful connection

  1. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="na.net" version="1.0" >
  2. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" id="704461232" from="na.net" version="1.0" xml:lang="en" >
  3. <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  4. <stream:features xmlns:stream="http://etherx.jabber.org/streams">  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">    <mechanism>PLAIN</mechanism>    <mechanism>DIGEST-MD5</mechanism>    <mechanism>SCRAM-SHA-1</mechanism>  </mechanisms>  <c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="/yHNf0rDVMfw6Q1DtnNw2GBEQcY=" /></stream:features>

Nothing happens after that.

2. After application restart

Successful connection:

  1. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="na.net" version="1.0" >
  2. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" id="1652868412" from="na.net" version="1.0" xml:lang="en" >
  3. <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  4. <stream:features xmlns:stream="http://etherx.jabber.org/streams">  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">    <mechanism>PLAIN</mechanism>    <mechanism>DIGEST-MD5</mechanism>    <mechanism>SCRAM-SHA-1</mechanism>  </mechanisms>  <c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="/yHNf0rDVMfw6Q1DtnNw2GBEQcY=" /></stream:features>
  5. <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  6. <stream:features xmlns:stream="http://etherx.jabber.org/streams">  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">    <mechanism>PLAIN</mechanism>    <mechanism>DIGEST-MD5</mechanism>    <mechanism>SCRAM-SHA-1</mechanism>  </mechanisms>  <c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="/yHNf0rDVMfw6Q1DtnNw2GBEQcY=" /></stream:features>
  7. <auth mechanism="SCRAM-SHA-1" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">biwsbj1fc2ltb25fMF9qb25zLHI9cm9UR3ROMWxKNFVJdFRiOHBqb1QvK0ZLencrSXkySlI=</auth>
  8. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" id="1114302493" from="na.net" version="1.0" xml:lang="en" >
  9. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="na.net" version="1.0" >
  10. <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cj1yb1RHdE4xbEo0VUl0VGI4cGpvVC8rRkt6dytJeTJKUkRjZlp1N0ZneU1HMmo4WFIzbFd0YlE9PSxzPThnWmRGd0VEUTRPNWp3eDl4b2tJR3c9PSxpPTQwOTY=</challenge>
  11. <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Yz1iaXdzLHI9cm9UR3ROMWxKNFVJdFRiOHBqb1QvK0ZLencrSXkySlJEY2ZadTdGZ3lNRzJqOFhSM2xXdGJRPT0scD1FUWltcHptbVNOQ0Z5NElTeFRqbStTRnlXQmM9</response>
  12. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="na.net" version="1.0" >
  13. <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dj0raDZncW5TRWY4TEpjSTZrMWJIT2t1dlhweGs9</success>
  14. 5184:[2015-Oct-23 15:14:05.101103] CHAT: _simon_0_jons <iq id="MX_1" type="set" xmlns="jabber:client">  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">    <resource>MatriX</resource>  </bind></iq>
  15. <stream:features xmlns:stream="http://etherx.jabber.org/streams">  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />  <sm xmlns="urn:xmpp:sm:2" />  <sm xmlns="urn:xmpp:sm:3" />  <c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="/yHNf0rDVMfw6Q1DtnNw2GBEQcY=" /></stream:features>
  16. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" id="536519158" from="na.net" version="1.0" xml:lang="en" >
  17. <iq id="MX_2" type="set" xmlns="jabber:client">  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" /></iq>
  18. <iq id="MX_1" type="result" xmlns="jabber:client">  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">    <jid>_simon_0_jons@na.net/MatriX</jid>  </bind></iq>
  19. <iq id="MX_3" type="get" xmlns="jabber:client">  <query xmlns="jabber:iq:roster" /></iq>
This post was edited 2 times, last on 2015-10-30, 14:19 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4295 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

your logs are in wrong order. I guess this is related to some wrong logging in your application. There cannot be a StartTls directly after the stream header before receiving the features.
Can you please check your logs and also add Send and Recv?

Have you tried updating to the latest MatriX version 2.X?

Alex
Avatar
Alex #3
Member since Feb 2003 · 4295 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
can you please also log all the Error events from MatriX?
Are you reusing a XmppClient after disconnect, or are you always using a complete new instance?

Alex
Avatar
Sterner #4
Member since Oct 2015 · 6 posts
Group memberships: Members
Show profile · Link to this post
Hi

Yes, there was a mess with logs. It is related to posting of logs into another thread. We fixed the issue with wrong order, if you need logs, then I can provide them.
Yes, we have logic that tries to reconnect few times if nothing happens. It doesn't help,  we have always the same situation. We don't have any error message in that case, this is the main problem. Because when we have error message, then we can find a source of issue. It seems as a freeze in this case.
Full restart of application helps, but sometimes is necessary to restart multiple times.
We are going to renew subscription and to try Matrix 2.0.
Avatar
Alex #5
Member since Feb 2003 · 4295 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you can always get a demo key directly on our website and try the latest builds with it from NuGet if your subscription is expired.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS