cstar / modular_muc Goto Github PK
View Code? Open in Web Editor NEWRefactoring of ejabberd's mod_muc, with flexible storage and chatroom handling.
Refactoring of ejabberd's mod_muc, with flexible storage and chatroom handling.
Hi there. I pulled the master branch, built according to instructions and installed it into my instance of ejabberd. I reloaded the modules from the webadmin and got similar results so I restarted ejabberd to make sure. It appears that with mod_muc and mod_muc_log disagree on the communication protocol. I am using ejabberd 2.1.3 on erlang R13b with mod_muc and mod_muc_log configured configured as:
{mod_muc, [ %%{host, "conference.@HOST@"}, {access, muc}, {access_create, muc}, {access_persistent, muc}, {access_admin, muc_admin}, {max_users, 500} ]}, {mod_muc_log,[ {outdir, "/var/log/ejabberd/muclogs"} ]},
The outdir /var/log/ejabberd/muclogs
is chown ejabberd:adm, owner and group writable, and ejabberd runs as the ejabberd user.
When the room is created, there is no problem.
=INFO REPORT==== 2010-09-16 09:37:19 ===
I(<0.418.0>:mod_muc_room:149) : Created MUC room [email protected] by user@localhost/luxuria
Then, when logging is enabled, we see the first error in ejabberd.log:
=ERROR REPORT==== 2010-09-16 09:37:32 === E(<0.403.0>:mod_muc_log:173) : {badarg, [{lists,keysearch, [title,1, {state,"chat","conference.localhost", "localhost", {muc,muc,muc_admin,muc}, muc_storage_default,muc_room_default, {jid,"chat","conference.localhost",[], "chat","conference.localhost",[]}, {config,[],[],true,true,true,true,true, false,200,true,true,true,false,true, false,false,false,[],true,true,[]}, {dict,1,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[], [],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[], [[{"user","localhost","luxuria"}| {user, {jid,"user","localhost", "luxuria","user","localhost", "luxuria"}, "user",moderator, {xmlelement,"presence", [{"xml:lang","en"}, {"to", "[email protected]/user"}], [{xmlelement,"priority",[], [{xmlcdata,<<"5">>}]}, {xmlelement,"c", [{"xmlns", "http://jabber.org/protocol/caps"}, {"node", "http://psi-im.org/caps"}, {"ver","0.13-dev-rev2"}, {"ext","cs ep-notify html"}], []}]}}]], [],[],[]}}}, {dict,0,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[], [],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[],[], [],[],[]}}}, {dict,1,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[], [],[],[]}, {{[[{"user","localhost",[]}|owner]], [],[],[],[],[],[],[],[],[],[],[],[],[], [],[]}}}, {lqueue,{[],[]},0,20}, [],[],false,nil,none, {[],[]}}]}, {mod_muc_log,get_room_info,2}, {mod_muc_log,add_message_to_log,5}, {mod_muc_log,handle_cast,2}, {gen_server,handle_msg,5}, {proc_lib,init_p_do_apply,3}]}
And upon saying something ('test'), we get the following error:
=ERROR REPORT==== 2010-09-16 09:40:24 === E(<0.403.0>:mod_muc_log:173) : {badarg, [{lists,keysearch, [title,1, {state,"chat","conference.localhost", "localhost", {muc,muc,muc_admin,muc}, muc_storage_default,muc_room_default, {jid,"chat","conference.localhost",[], "chat","conference.localhost",[]}, {config,[],[],true,true,true,true,true, false,200,true,true,true,false,true, false,false,false,[],true,true,[]}, {dict,1,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[], [],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[], [[{"user","localhost","luxuria"}| {user, {jid,"user","localhost", "luxuria","user","localhost", "luxuria"}, "user",moderator, {xmlelement,"presence", [{"xml:lang","en"}, {"to", "[email protected]/user"}], [{xmlelement,"priority",[], [{xmlcdata,<<"5">>}]}, {xmlelement,"c", [{"xmlns", "http://jabber.org/protocol/caps"}, {"node", "http://psi-im.org/caps"}, {"ver","0.13-dev-rev2"}, {"ext","cs ep-notify html"}], []}]}}]], [],[],[]}}}, {dict,0,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[], [],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[],[], [],[],[]}}}, {dict,1,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[], [],[],[]}, {{[[{"user","localhost",[]}|owner]], [],[],[],[],[],[],[],[],[],[],[],[],[], [],[]}}}, {lqueue,{[],[]},0,20}, [],[],false,nil,none, {[],[]}}]}, {mod_muc_log,get_room_info,2}, {mod_muc_log,add_message_to_log,5}, {mod_muc_log,handle_cast,2}, {gen_server,handle_msg,5}, {proc_lib,init_p_do_apply,3}]}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.