ejabberd - Comments for "ejabberd 17.11 issue with mod_muc" https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc en Thanks badlop for your https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67745 <p>Thanks badlop for your update. Will try 17.12</p> Wed, 03 Jan 2018 01:53:59 +0000 Anand XMPP comment 67745 at https://www.ejabberd.im I confirm in older releases https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67744 <p>I confirm in older releases it was like {subject,&lt;&lt;&gt;&gt;}, and in 17.12 it's {subject,[{text,&lt;&lt;&gt;&gt;,&lt;&lt;"group chat"&gt;&gt;}]},</p> <p>I have tested with 17.12, and a room with subject is recreated correctly after server start. So it seems a bug in 17.11, probably fixed with <noindex><a href="https://github.com/processone/ejabberd/commit/a57c694f218294812f9c228f4713d66c777c1e00" title="https://github.com/processone/ejabberd/commit/a57c694f218294812f9c228f4713d66c777c1e00" rel="nofollow" >https://github.com/processone/ejabberd/commit/a57c694f218294812f9c228f47...</a></noindex></p> Tue, 02 Jan 2018 22:05:44 +0000 badlop comment 67744 at https://www.ejabberd.im Thanks Badlop for your https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67741 <p>Thanks Badlop for your response.</p> <p>We are using android client APIs to write to server. </p> <p>More update on the issue:<br /> ----------------------------------------<br /> If we manually overwrite the mysql database with empty table contents for "subject &amp; subject_author", then ejabberd starts without any issue.<br /> Sample Below:<br /> {subject,[]},<br /> {subject_author,&lt;&lt;&gt;&gt;}]</p> <p>Notworking with the below contents:<br /> {subject,[{text,&lt;&lt;&gt;&gt;,&lt;&lt;"group chat"&gt;&gt;}]},<br /> {subject_author,&lt;&lt;"+911234567890"&gt;&gt;}]</p> <p>Is this a ejabberd-17.11 bug ?</p> <p>Thanks<br /> Anand</p> Fri, 29 Dec 2017 13:16:56 +0000 Anand XMPP comment 67741 at https://www.ejabberd.im The error text says the crash https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67740 <p>The error text says the crash occurs when reading the muc_room database table, and converting the room options to erlag format, and mentions a text friday. </p> <p>I asked you how do you create and configure the rooms, and you didn't reply.</p> <p>It would also help to know: get from your SQL database the item that makes ejabberd crash. Maybe it has some subject set, or some title or description?</p> Thu, 28 Dec 2017 09:50:18 +0000 badlop comment 67740 at https://www.ejabberd.im Thanks for your reply...I am https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67738 <p>Thanks for your reply...I am modifying (toggling) only this parameters for muc configuration. </p> <p> {allow_private_messages,true},<br /> {allow_private_messages_from_visitors,anyone},<br /> {allow_visitor_status,true},<br /> {allow_visitor_nickchange,true},<br /> {public,false},<br /> {anonymous,false},</p> <p>This problem is not seen with mnesia database. Only when we have sql databases (postgres ) &amp; while restarting we get this issue. Without restart, it continues to work. To recover from this issue, deleting the tables on the database , then restart ejabberdctl works.</p> <p>Thanks<br /> Anand</p> <p>Full schema table below:<br /> -------------------------------------<br /> [{title,&lt;&lt;&gt;&gt;},<br /> {description,&lt;&lt;&gt;&gt;},<br /> {allow_change_subj,true},<br /> {allow_query_users,true},<br /> {allow_private_messages,true},<br /> {allow_private_messages_from_visitors,anyone},<br /> {allow_visitor_status,true},<br /> {allow_visitor_nickchange,true},<br /> {public,false},<br /> {public_list,true},<br /> {persistent,true},<br /> {moderated,true},<br /> {members_by_default,true},<br /> {members_only,true},<br /> {allow_user_invites,false},<br /> {password_protected,false},<br /> {captcha_protected,false},<br /> {password,&lt;&lt;&gt;&gt;},<br /> {anonymous,false},<br /> {logging,false},<br /> {max_users,200},<br /> {allow_voice_requests,true},<br /> {allow_subscription,false},<br /> {mam,true},<br /> {presence_broadcast,[moderator,participant,visitor]},<br /> {voice_request_min_interval,1800},<br /> {vcard,&lt;&lt;&gt;&gt;},<br /> {captcha_whitelist,[]},<br /> {affiliations,[{{&lt;&lt;"+91123456789"&gt;&gt;,&lt;&lt;"mycompany.com"&gt;&gt;,&lt;&lt;&gt;&gt;},{owner,&lt;&lt;&gt;&gt;}}]},<br /> {subject,[]},<br /> {subject_author,&lt;&lt;&gt;&gt;}]</p> Thu, 28 Dec 2017 06:05:51 +0000 Anand XMPP comment 67738 at https://www.ejabberd.im Looking at the error text, it https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67736 <p>Looking at the error text, it seems that a room has some option with an unexpected type of value. How do you create and configure the rooms: using a Jabber/XMPP client, or using ejabberdctl commands, or modifying the database directly?</p> Tue, 26 Dec 2017 16:35:06 +0000 badlop comment 67736 at https://www.ejabberd.im More Info: I also observe https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67727 <p>More Info:<br /> I also observe that the destroyed rooms are copied into DB again.</p> Fri, 22 Dec 2017 08:08:46 +0000 Anand XMPP comment 67727 at https://www.ejabberd.im Thanks Badlop for getting https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67726 <p>Thanks Badlop for getting back on my query. When we are doing change in the configuration for multiuser chat, then this problem occurs. To recover, we have to delete the multiuser tables &amp; then Ejabberd starts. </p> <p>Below are the Error Logs:<br /> ---------------------------------------</p> <p>2017-12-22 07:32:47.738 [debug] &lt;0.311.0&gt;@ejabberd_sql:sql_query_internal:586 SQL: "select name, opts from muc_room where host='conference.mycompany.com'"<br /> 2017-12-22 07:32:47.739 [debug] &lt;0.312.0&gt;@ejabberd_sql:sql_query_internal:586 SQL: "select room, jid, nick, nodes from muc_room_subscribers where host='conference.mycompany.com'"<br /> 2017-12-22 07:32:47.740 [error] &lt;0.390.0&gt;@mod_muc:-opts_to_binary/1-fun-2-:826 CRASH REPORT Process &lt;0.390.0&gt; with 0 neighbours exited with reason: bad argument in call to erlang:iolist_to_binary([{text,&lt;&lt;&gt;&gt;,&lt;&lt;"Friday"&gt;&gt;}]) in mod_muc:'-opts_to_binary/1-fun-2-'/1 line 826<br /> 2017-12-22 07:32:47.741 [critical] &lt;0.239.0&gt;@gen_mod:start_module:212 Problem starting the module mod_muc for host mycompany.com<br /> options: [{db_type,sql},<br /> {access,[{allow,[all]}]},<br /> {access_admin,[{allow,[{acl,admin}]}]},<br /> {access_create,muc_create},<br /> {access_persistent,muc_create},<br /> {max_user_conferences,100}]<br /> error: {error,{{badarg,[{erlang,iolist_to_binary,<br /> [[{text,&lt;&lt;&gt;&gt;,&lt;&lt;"Friday"&gt;&gt;}]],<br /> []},<br /> {mod_muc,'-opts_to_binary/1-fun-2-',1,<br /> [{file,"src/mod_muc.erl"},{line,826}]},<br /> {lists,map,2,[{file,"lists.erl"},{line,1239}]},<br /> {lists,map,2,[{file,"lists.erl"},{line,1239}]},<br /> {mod_muc_sql,'-get_rooms/2-fun-7-',4,<br /> [{file,"src/mod_muc_sql.erl"},<br /> {line,188}]},<br /> {lists,map,2,[{file,"lists.erl"},{line,1239}]},<br /> {lists,map,2,[{file,"lists.erl"},{line,1239}]},<br /> {mod_muc,load_permanent_rooms,6,<br /> [{file,"src/mod_muc.erl"},{line,633}]}]},<br /> {child,undefined,'mod_muc_mycompany.com',<br /> {gen_server,start_link,<br /> [{local,'mod_muc_mycompany.com'},<br /> mod_muc,<br /> [&lt;&lt;"mycompany.com"&gt;&gt;,<br /> [{db_type,sql},<br /> {access,[{allow,[all]}]},<br /> {access_admin,[{allow,[{acl,admin}]}]},<br /> {access_create,muc_create},<br /> {access_persistent,muc_create},<br /> {max_user_conferences,100}]],<br /> []]},<br /> transient,60000,worker,<br /> [mod_muc]}}}<br /> [{gen_mod,start_module,4,[{file,"src/gen_mod.erl"},{line,203}]},<br /> {lists,foreach,2,[{file,"lists.erl"},{line,1338}]},<br /> {gen_mod,start_link,0,[{file,"src/gen_mod.erl"},{line,79}]},<br /> {supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,365}]},<br /> {supervisor,start_children,3,[{file,"supervisor.erl"},{line,348}]},<br /> {supervisor,init_children,2,[{file,"supervisor.erl"},{line,314}]},<br /> {gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},<br /> {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]<br /> 2017-12-22 07:32:47.741 [critical] &lt;0.239.0&gt;@gen_mod:maybe_halt_ejabberd:294 ejabberd initialization was aborted because a module start failed.</p> Fri, 22 Dec 2017 07:38:24 +0000 Anand XMPP comment 67726 at https://www.ejabberd.im Anand XMPP wrote: While https://www.ejabberd.im/forum/29740/ejabberd-1711-issue-modmuc#comment-67725 <div class="quote-msg"> <div class="quote-author"><em>Anand XMPP</em> wrote:</div> <p>While starting i get an error starting mod_muc.</p></div> <p>Can you show the error that you get?</p> Thu, 21 Dec 2017 16:04:45 +0000 badlop comment 67725 at https://www.ejabberd.im