ejabberd - Comments for "Authentication failing for all users" https://www.ejabberd.im/node/3303 en Yes it's mySQL and Smack client https://www.ejabberd.im/node/3303#comment-53856 <p>Yes we are using mySQL, but setting the odbc_keepalive_interval parameter to 15 minutes didn't help. We have not tried the odbc_start_interval parameter yet.<br /> However we are using Smack client API to connect to ejabberd and we made the following changes marked between the comments in our connection creation:</p> <p>XMPPConnection con = null;<br /> try {<br /> con = new XMPPConnection(SERVER_ADDRESS, SERVER_PORT);<br /> con.login(loginId, loginPwd, session.getId());<br /> } catch (XMPPException xmppe) {<br /> xmppe.printStackTrace();<br /> // added the following fix<br /> if (con != null) {<br /> con.close();<br /> }<br /> // end addition<br /> }</p> <p>We are using a slightly older version of Smack from Jive, which does not have the explicit con.connect() API supported by later versions.<br /> We are assuming Smack creates an unlogged in connection every time "new XMPPConnection()" is called and it needs to be closed if login fails. If there are too many login failures ejabberd might have many unlogged in connections open and that is not allowing any more login connections. We had many login failures at our site and that is why we tried this fix, though we can say whether it would work only after observing for few more days.</p> <p>Any other ideas would be welcome.</p> <p>Thank you very much for your help.</p> Thu, 18 Dec 2008 15:44:11 +0000 subhamoy comment 53856 at https://www.ejabberd.im You didn't mention, but it https://www.ejabberd.im/node/3303#comment-53830 <p>You didn't mention, but it seems you use MySQL for authenticating users, right?</p> <p>Maybe the message means that the connection to the MySQL server was closed. Who and why closed it? It may be ejabberd, or your server, or TCP due to inactivity.</p> <p>You can try different values of options odbc_keepalive_interval and odbc_start_interval, maybe that helps to solve your problem. Check the ejabberd Guide for documentation of those options.</p> Mon, 15 Dec 2008 11:11:31 +0000 mfoss comment 53830 at https://www.ejabberd.im