ejabberd - Comments for "module mod_muc_odbc for Mysql. Need your help." https://www.ejabberd.im/node/7456 en Note the above post is https://www.ejabberd.im/node/7456#comment-60297 <p>Note the above post is happening when I have manually set up an entry in the muc_rooms tabele.<br /> It dissappears when I delete this entry.</p> <p>However I cannot open a muc_odbc conference.</p> <p>My Config is (as of ejabberdctl dump file)<br /> {mod_muc_odbc,<br /> [{host,"conference.@HOST@"},<br /> {access,muc},<br /> {access_create,muc_create},<br /> {access_persistent,muc_create},<br /> {access_admin,muc_admin}]},</p> <p>There are no errors in the log file.</p> <p>If I change mod_muc_odbc to mod_muc it works.</p> <p>Ngrepping the traffic I can see that odbc is working<br /> Login user:</p> <div class="codeblock"><code>T 127.0.0.1:39266 -&gt; 127.0.0.1:3306 [AP]<br />3....select password from users where username=&#039;admin&#039;;<br />#<br />T 127.0.0.1:3306 -&gt; 127.0.0.1:39266 [AP]<br />.....8....def.ejabberd.users.users.password.password.!.........................password.........</code></div> <p>Open a MUC</p> <div class="codeblock"><code>T 127.0.0.1:55881 -&gt; 127.0.0.1:3306 [AP]<br />&nbsp; Y....select opts from muc_room where name=&#039;main2&#039; and host=&#039;conference.my_jabber.de&#039;;<br />#<br />T 127.0.0.1:3306 -&gt; 127.0.0.1:55881 [AP]<br />&nbsp; .....6....def.ejabberd.muc_room.muc_room.opts.opts.!..................................</code></div> <p>So database connection is there.<br /> I also manually entered an entry into the 'rooms' database table (with empty opts field), but no change. </p> <p>Grepping on port 5222 I can see:</p> <div class="codeblock"><code>T 192.168.178.126:39428 -&gt; 192.168.178.171:5222 [AP]<br />&lt;message to=&#039;main2@conference.my_jabber.de&#039; id=&#039;6&#039; type=&#039;groupchat&#039; xml:lang=&#039;de-DE&#039;&gt;&lt;body&gt;test&lt;/body&gt;&lt;/message&gt;<br />#<br />T 192.168.178.171:5222 -&gt; 192.168.178.126:39428 [AP]<br />&lt;message from=&#039;main2@conference.my_jabber.de&#039; to=&#039;admin@my_jabber.de/tkabber&#039; type=&#039;error&#039; id=&#039;6&#039; xml:lang=&#039;de-DE&#039;&gt;&lt;body&gt;test&lt;/body&gt;&lt;error code=&#039;503&#039; type=&#039;cancel&#039;&gt;&lt;service-unavailable xmlns=&#039;urn:ietf:params:xml:ns:xmpp-stanzas&#039;/&gt;&lt;/error&gt;&lt;/message&gt;</code></div> <p>Any help is appreciated.</p> Tue, 21 May 2013 15:03:40 +0000 stony999 comment 60297 at https://www.ejabberd.im I just received a crash https://www.ejabberd.im/node/7456#comment-60291 <p>I just received a crash report:</p> <div class="codeblock"><code>=PROGRESS REPORT==== 21-May-2013::14:25:01 ===<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supervisor: {local,ejabberd_sup}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; started: [{pid,&lt;0.325.0&gt;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {name,&#039;ejabberd_mod_muc_sup_my_domain.de&#039;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {mfargs,<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; {ejabberd_tmp_sup,start_link,<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; [&#039;ejabberd_mod_muc_sup_my_domain.de&#039;,<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; mod_muc_room]}},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {restart_type,permanent},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {shutdown,infinity},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {child_type,supervisor}] <p>=CRASH REPORT==== 21-May-2013::14:25:01 ===<br />&nbsp; crasher:<br />&nbsp;&nbsp;&nbsp; initial call: mod_muc_odbc:init/1<br />&nbsp;&nbsp;&nbsp; pid: &lt;0.326.0&gt;<br />&nbsp;&nbsp;&nbsp; registered_name: []<br />&nbsp;&nbsp;&nbsp; exception exit: {undef,[{ejabberd_odbc,decode_term,[[]]},<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; {mod_muc_odbc,&#039;-load_permanent_rooms/5-fun-0-&#039;,6},<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; {lists,foreach,2},<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; {mod_muc_odbc,init,1},<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; {gen_server,init_it,6},<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; {proc_lib,init_p_do_apply,3}]}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in function&nbsp; gen_server:init_it/6<br />&nbsp;&nbsp;&nbsp; ancestors: [ejabberd_sup,&lt;0.37.0&gt;]<br />&nbsp;&nbsp;&nbsp; messages: []<br />&nbsp;&nbsp;&nbsp; links: [&lt;0.62.0&gt;,&lt;0.226.0&gt;]<br />&nbsp;&nbsp;&nbsp; dictionary: []</p></code></div> Tue, 21 May 2013 10:44:46 +0000 stony999 comment 60291 at https://www.ejabberd.im I cannot open a muc_odbc https://www.ejabberd.im/node/7456#comment-60289 <p>I cannot open a muc_odbc conference.</p> <p>My Config is (as of ejabberdctl dump file)<br /> {mod_muc_odbc,<br /> [{host,"conference.@HOST@"},<br /> {access,muc},<br /> {access_create,muc_create},<br /> {access_persistent,muc_create},<br /> {access_admin,muc_admin}]},</p> <p>There are no errors in the log file.</p> <p>If I change mod_muc_odbc to mod_muc it works.</p> <p>Ngrepping the traffic I can see that odbc is working<br /> Login user:</p> <div class="codeblock"><code>T 127.0.0.1:39266 -&gt; 127.0.0.1:3306 [AP]<br />3....select password from users where username=&#039;admin&#039;;<br />#<br />T 127.0.0.1:3306 -&gt; 127.0.0.1:39266 [AP]<br />.....8....def.ejabberd.users.users.password.password.!.........................password.........</code></div> <p>Open a MUC</p> <div class="codeblock"><code>T 127.0.0.1:55881 -&gt; 127.0.0.1:3306 [AP]<br />&nbsp; Y....select opts from muc_room where name=&#039;main2&#039; and host=&#039;conference.my_jabber.de&#039;;<br />#<br />T 127.0.0.1:3306 -&gt; 127.0.0.1:55881 [AP]<br />&nbsp; .....6....def.ejabberd.muc_room.muc_room.opts.opts.!..................................</code></div> <p>So database connection is there.<br /> I also manually entered an entry into the 'rooms' database table (with empty opts field), but no change. </p> <p>Grepping on port 5222 I can see:</p> <div class="codeblock"><code>T 192.168.178.126:39428 -&gt; 192.168.178.171:5222 [AP]<br />&lt;message to=&#039;main2@conference.my_jabber.de&#039; id=&#039;6&#039; type=&#039;groupchat&#039; xml:lang=&#039;de-DE&#039;&gt;&lt;body&gt;test&lt;/body&gt;&lt;/message&gt;<br />#<br />T 192.168.178.171:5222 -&gt; 192.168.178.126:39428 [AP]<br />&lt;message from=&#039;main2@conference.my_jabber.de&#039; to=&#039;admin@my_jabber.de/tkabber&#039; type=&#039;error&#039; id=&#039;6&#039; xml:lang=&#039;de-DE&#039;&gt;&lt;body&gt;test&lt;/body&gt;&lt;error code=&#039;503&#039; type=&#039;cancel&#039;&gt;&lt;service-unavailable xmlns=&#039;urn:ietf:params:xml:ns:xmpp-stanzas&#039;/&gt;&lt;/error&gt;&lt;/message&gt;</code></div> <p>Any help is appreciated.</p> Tue, 21 May 2013 10:37:11 +0000 stony999 comment 60289 at https://www.ejabberd.im I cannot open a muc_odbc https://www.ejabberd.im/node/7456#comment-60288 <p>I cannot open a muc_odbc conference.</p> <p>My Config is (as of ejabberdctl dump file)<br /> {mod_muc_odbc,<br /> [{host,"conference.@HOST@"},<br /> {access,muc},<br /> {access_create,muc_create},<br /> {access_persistent,muc_create},<br /> {access_admin,muc_admin}]},</p> <p>There are no errors in the log file.</p> <p>If I change mod_muc_odbc to mod_muc it works.</p> <p>Ngrepping the traffic I can see that odbc is working<br /> Login user:</p> <div class="codeblock"><code>T 127.0.0.1:39266 -&gt; 127.0.0.1:3306 [AP]<br />3....select password from users where username=&#039;admin&#039;;<br />#<br />T 127.0.0.1:3306 -&gt; 127.0.0.1:39266 [AP]<br />.....8....def.ejabberd.users.users.password.password.!.........................password.........</code></div> <p>Open a MUC</p> <div class="codeblock"><code>T 127.0.0.1:55881 -&gt; 127.0.0.1:3306 [AP]<br />&nbsp; Y....select opts from muc_room where name=&#039;main2&#039; and host=&#039;conference.my_jabber.de&#039;;<br />#<br />T 127.0.0.1:3306 -&gt; 127.0.0.1:55881 [AP]<br />&nbsp; .....6....def.ejabberd.muc_room.muc_room.opts.opts.!..................................</code></div> <p>So database connection is there.<br /> I also manually entered an entry into the 'rooms' database table (with empty opts field), but no change. </p> <p>Grepping on port 5222 I can see:</p> <div class="codeblock"><code>T 192.168.178.126:39428 -&gt; 192.168.178.171:5222 [AP]<br />&lt;message to=&#039;main2@conference.my_jabber.de&#039; id=&#039;6&#039; type=&#039;groupchat&#039; xml:lang=&#039;de-DE&#039;&gt;&lt;body&gt;test&lt;/body&gt;&lt;/message&gt;<br />#<br />T 192.168.178.171:5222 -&gt; 192.168.178.126:39428 [AP]<br />&lt;message from=&#039;main2@conference.my_jabber.de&#039; to=&#039;admin@my_jabber.de/tkabber&#039; type=&#039;error&#039; id=&#039;6&#039; xml:lang=&#039;de-DE&#039;&gt;&lt;body&gt;test&lt;/body&gt;&lt;error code=&#039;503&#039; type=&#039;cancel&#039;&gt;&lt;service-unavailable xmlns=&#039;urn:ietf:params:xml:ns:xmpp-stanzas&#039;/&gt;&lt;/error&gt;&lt;/message&gt;</code></div> <p>Any help is appreciated.</p> Tue, 21 May 2013 10:32:00 +0000 stony999 comment 60288 at https://www.ejabberd.im can you save the data to https://www.ejabberd.im/node/7456#comment-59496 <p>can you save the data to mysql when you use the latest mysql schema???<br /> i met the same problem,even i used the latest mysql schema,there is no data in mysql.how can you did it</p> Thu, 21 Mar 2013 16:54:43 +0000 MKC comment 59496 at https://www.ejabberd.im Thank you very much - I'll https://www.ejabberd.im/node/7456#comment-59130 <p>Thank you very much - I'll try that! ;)</p> Sat, 13 Oct 2012 06:32:05 +0000 DeMiRioN comment 59130 at https://www.ejabberd.im The latest mysql schema is https://www.ejabberd.im/node/7456#comment-59126 <p>The latest mysql schema is here: <noindex><a href="https://github.com/processone/ejabberd/blob/2.1.x/src/odbc/mysql.sql" title="https://github.com/processone/ejabberd/blob/2.1.x/src/odbc/mysql.sql" rel="nofollow" >https://github.com/processone/ejabberd/blob/2.1.x/src/odbc/mysql.sql</a></noindex></p> Fri, 12 Oct 2012 07:55:45 +0000 cybpsy comment 59126 at https://www.ejabberd.im