ejabberd - Comments for "Problems with mod_roster_odbc" https://www.ejabberd.im/node/3847 en Hi, I am also facing the https://www.ejabberd.im/node/3847#comment-59232 <p>Hi,</p> <p>I am also facing the issue related to mod_roster_odbc.</p> <p>I sucessfully configured the odbc but the roster does not appear in the rosterusers table.<br /> If i add roster from web admin than also it does not insert in the rosterusers table. I tried various settings but stuck here.</p> <p>Please help.</p> <p>Regards,<br /> Rohit</p> Tue, 30 Oct 2012 11:59:22 +0000 Rohit comment 59232 at https://www.ejabberd.im I am also getting an https://www.ejabberd.im/node/3847#comment-59088 <p>I am also getting an 'econnrefused' error. Please, can you post how did you solve it?</p> Thu, 20 Sep 2012 10:52:05 +0000 cloudos comment 59088 at https://www.ejabberd.im Yes. But I don't know what https://www.ejabberd.im/node/3847#comment-55212 <p>Yes. But I don't know what this mean</p> <div class="codeblock"><code>=ERROR REPORT==== 2010-01-27 15:31:18 ===<br />E(&lt;0.297.0&gt;:ejabberd_odbc:491) : mysql_conn: Received unknown signal, exiting : {mysql_recv,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;0.298.0&gt;,<br />&n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:489) : Closing connection #Port&lt;0.2711&gt;: ok</p> <p>=ERROR REPORT==== 2010-01-27 15:31:18 ===<br />** Generic server &lt;0.296.0&gt; terminating<br />** Last message in was {&#039;DOWN&#039;,#Ref&lt;0.0.0.9423&gt;,process,&lt;0.297.0&gt;,normal}<br />** When Server state == {state,&lt;0.297.0&gt;,mysql}<br />** Reason for termination ==<br />** connection_dropped</p> <p>=ERROR REPORT==== 2010-01-27 15:31:18 ===<br />E(&lt;0.274.0&gt;:ejabberd_odbc:491) : mysql_conn: Received unknown signal, exiting : {mysql_recv,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;0.275.0&gt;,</p></code></div> <div class="codeblock"><code>=ERROR REPORT==== 2010-01-27 15:31:18 ===<br />E(&lt;0.680.0&gt;:ejabberd_odbc:491) : mysql_conn: Failed connecting to &quot;mysql.host.com&quot;:3306 : {error,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;connect failed : {error,econnrefused}&quot;}</code></div> <p>but with mysql-client i can connect to mysql.host.com easily with login and password provided in ejabberd.cfg. I do this from the host where ejabberd installed.</p> Mon, 01 Feb 2010 10:59:06 +0000 jamaicada comment 55212 at https://www.ejabberd.im Re: Problems with mod_roster_odbc https://www.ejabberd.im/node/3847#comment-55208 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>Also, it appers in roster (in database), but problem with subscribing each other.</p></div> <p>Take a look at logs. Are there any errors?</p> Mon, 01 Feb 2010 02:55:33 +0000 zinid comment 55208 at https://www.ejabberd.im Thank you for your answer but https://www.ejabberd.im/node/3847#comment-55207 <p>Thank you for your answer but I double checked if mod_roster turn on. </p> <div class="codeblock"><code>cat /etc/ejabberd/ejabberd.cfg | grep mod_roster<br />&nbsp; {mod_roster_odbc,&nbsp;&nbsp; []},</code></div> <p>Only I see that mod_roster_odbc is on - in ejabberd.cfg and in web-admin. No mod_roster...<br /> Also, it appers in roster (in database), but problem with subscribing each other.</p> Sun, 31 Jan 2010 22:13:13 +0000 jamaicada comment 55207 at https://www.ejabberd.im Quote: When I turn off https://www.ejabberd.im/node/3847#comment-55202 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>When I turn off mod_roster_odbc - all works fine with mod_roster.</p></div> <p>Make sure you only enable one module.<br /> Good:</p> <pre> {modules, [ ... {mod_roster, []}, %%{mod_roster_odbc, []}, ... ]}. </pre><p>Good:</p> <pre> {modules, [ ... %%{mod_roster, []}, {mod_roster_odbc, []}, ... ]}. </pre><p>Bad!!:</p> <pre> {modules, [ ... {mod_roster, []}, {mod_roster_odbc, []}, ... ]}. </pre><div class="quote-msg"> <div class="quote-author">Quote:</div> <p>I have a problem with mod_roster_odbc. Users can't send each other subscriptions.<br /> There are no messages in client about subscriptions. </p></div> <p>Go to the ejabberd WebAdmin, an URL like<br /> <noindex><a href="http://localhost:5280/admin/server/example.org/node/ejabberd@localhost/modules/" title="http://localhost:5280/admin/server/example.org/node/ejabberd@localhost/modules/" rel="nofollow" >http://localhost:5280/admin/server/example.org/node/ejabberd@localhost/m...</a></noindex><br /> Check mod_roster_odbc is enabled, and mod_roster isn't enabled.</p> <p>When a user adds a contact, check in WebAdmin if the roster item appears:<br /> <noindex><a href="http://localhost:5280/admin/server/example.org/user/badlop/roster/" title="http://localhost:5280/admin/server/example.org/user/badlop/roster/" rel="nofollow" >http://localhost:5280/admin/server/example.org/user/badlop/roster/</a></noindex><br /> Also see in your MySQL database if it appears in the table "rosteritem".</p> Thu, 28 Jan 2010 15:56:49 +0000 mfoss comment 55202 at https://www.ejabberd.im