I configured everything according to the . I installed mod_muc_log_http and enabled mod_muc_log. Messages are logged but when i try to view `server:5280/pub/muclogs` page, i see the error "connection broken". Crash log:
crasher:
initial call: ejabberd_http:init/2
pid: <0.1952.0>
registered_name: []
exception error: bad argument: [{mod_muc_log_http,serve,2,[{file,"src/mod_muc_log_http.erl"},{line,46}]},{ejabberd_http,process,5,[{file,"src/ejabberd_http.erl"},{line,363}]},{ejabberd_http,process_request,1,[{file,"src/ejabberd_http.erl"},{line,451}]},{ejabberd_http,process_header,2,[{file,"src/ejabberd_http.erl"},{line,291}]},{ejabberd_http,parse_headers,1,[{file,"src/ejabberd_http.erl"},{line,211}]},{ejabberd_http,init,2,[{file,"src/ejabberd_http.erl"},{line,164}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]
ancestors: [<0.1904.0>,ejabberd_listeners,ejabberd_sup,<0.1499.0>]
messages: []
links: [#Port<0.65078>]
dictionary: []
trap_exit: false
status: running
heap_size: 1598
stack_size: 27
reductions: 1095
neighbours:
The error may be what?
I suspect you defined a vhost
I suspect you defined a vhost in ejabberd config, but send HTTP requests to another host, or the module isn't properly enabled. Notice that if you installed the module using ejabberdctl, it has a small configuration file in $HOME.