ejabberd - Comments for "Ejabberd 2.0.0-rc1 &amp;amp; mysql" https://www.ejabberd.im/node/2830 en Ejabberd 2.0.1-6+lenny1 (debian) & mysql https://www.ejabberd.im/node/2830#comment-54601 <p>Hi,</p> <p>i know that this thread is sleeping for long but i have the same problem as described by mikasaari.</p> <p>i installed the ejabberd debian package, put the mysql modules in /var/lib/ejabberd/ebin and changed the auth_method and odbc_server lines in my ejabberd.cfg. when i then start the server i get this message:</p> <p>=ERROR REPORT==== 2009-08-30 17:27:27 ===<br /> Error in process &lt;0.258.0&gt; on node 'ejabberd@arwen' with exit value: {{badmatch,&lt;&lt;0 bytes&gt;&gt;},[{mysql_conn,greeting,2},{mysql_conn,mysql_init,5},{mysql_conn,init,7}]}</p> <p>the server seems to be running and listening on ports 5222, 5223, ... but when i try to create an account using ejabberdctl i always get:<br /> User "bla@blubb.org" already registered at node ejabberd@arwen</p> <p>Has anyone else had this problem so far? Any suggestions?</p> <p>Thanks,<br /> Sven.</p> Sun, 30 Aug 2009 15:42:56 +0000 izrail comment 54601 at https://www.ejabberd.im Works correctly, I use Debian unstable https://www.ejabberd.im/node/2830#comment-51790 <p>I tried using ejabberd 2.0.0-rc1 compiled from source package, mysql erlang library compiled from ejabberd-modules SVN, Erlang R11B-5 from Debian unstable, Mysql server 5.0.51 from Debian unstable, and database created as explained in <noindex><a href="http://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+with+MySQL+native+driver" rel="nofollow" >Using ejabberd with MySQL native driver</a></noindex>. </p> <p>All seems to work correctly for me: I can start ejabberd, create an account with a Jabber client, and login to it. No error messages are shown in ejabberd.log or sasl.log, neither at start time or at login time.</p> <p>Now I make mistakes on purpose, and I check what error messages are printed:</p> <ul> <li>If I put the wrong SQL server host:<br /> <pre>{odbc_server, {mysql, "localhostaaaaaaaa", "ejabberd", "ejabberd", "password"}}.</pre><p>Then I see at startup:</p> <pre>=ERROR REPORT==== 12-Feb-2008::13:44:20 === E(&lt;0.267.0&gt;:ejabberd_odbc:312) : MySQL connection failed: connect_failed</pre></li> <li>If I put the wrong database name:<br /> <pre>{odbc_server, {mysql, "localhost", "ejabberdaaaaaaa", "ejabberd", "password"}}.</pre><p>Then I see at startup:</p> <pre>=ERROR REPORT==== 12-Feb-2008::13:46:17 === E(&lt;0.277.0&gt;:ejabberd_odbc:312) : MySQL connection failed: failed_changing_database</pre></li> <li>If I put the wrong database username in database:<br /> <pre>{odbc_server, {mysql, "localhost", "ejabberd", "ejabberdaaaaaa", "password"}}.</pre><p>Then I see at startup:</p> <pre>=ERROR REPORT==== 12-Feb-2008::13:47:12 === E(&lt;0.273.0&gt;:ejabberd_odbc:312) : MySQL connection failed: login_failed</pre></li> </ul> <p>So I don't know how to reproduce your problem.</p> Tue, 12 Feb 2008 12:51:40 +0000 mfoss comment 51790 at https://www.ejabberd.im Same issue https://www.ejabberd.im/node/2830#comment-51750 <p>I'm experiencing the same issue.<br /> I noticed that mysql had "banned" my ejabberd-server account and I needed to mysqladmin flush-hosts on my mysql-server.</p> <p>After that the error which I'm getting on the ejabberd start says:<br /> =ERROR REPORT==== 2008-02-06 16:31:38 ===<br /> Error in process &lt;0.233.0&gt; on node 'ejabberd@localhost' with exit value: {badarg,[{ets,lookup,[crypto_server_table,port]},{crypto,control,2},{mysql_auth,password_new,2},{mysql_auth,do_new_auth,8},{mysql_conn,mysql_init,5},{mysql_conn,init,7}]}</p> <p>Any ideas around?</p> <p>Cheers,<br /> // Marko</p> <p><noindex><a href="http://www.boogiesoftware.com" title="http://www.boogiesoftware.com" rel="nofollow" >http://www.boogiesoftware.com</a></noindex></p> Wed, 06 Feb 2008 14:43:24 +0000 mteppo comment 51750 at https://www.ejabberd.im