mod_muc_log error in ejabberd 15.11

HI.
mod_muc_log of ejabberd 15.11 returns this error. how to fix it?

2016-02-18 09:02:00.982 [error] <0.1746.0>@mod_muc_log:handle_cast:180 {{case_clause,{error,eacces}},[{mod_muc_log,add_message_to_log,5,[{file,"src/mod_muc_log.erl"},{line,360}]},{mod_muc_log,handle_cast,2,[{file,"src/mod_muc_log.erl"},{line,179}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,593}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,659}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}
2016-02-18 09:02:01.007 [error] <0.1746.0>@mod_muc_log:handle_cast:180 {{case_clause,{error,eacces}},[{mod_muc_log,add_message_to_log,5,[{file,"src/mod_muc_log.erl"},{line,360}]},{mod_muc_log,handle_cast,2,[{file,"src/mod_muc_log.erl"},{line,179}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,593}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,659}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}

after install ejabberd 15.11, I do:

mkdir -p /var/www/muclogs
chown -R ejabberd:ejabberd /var/www/muclogs
chmod -R 775 /var/www/muclogs

my config is :

mod_muc_log:
    access_log: muc
    cssfile: "http://example.com/my.css"
    dirtype: plain
    dirname: room_jid
    outdir: "/var/www/muclogs"
    timezone: universal
    spam_prevention: true
    top_link:
      "http://www.jabber.ru/": "Jabber.ru"

eaccess when

eaccess when add_message_to_log, indicates there was a problem accessing the file when trying to log a room message. Looking at your config and permissions, it should work, but it doesnto, so...

1. Is your option 'outdir' taken into account by ejabberd? Try setting /tmp/ and see if it logs files there
2. Then, check what username are the dirs and files created: is it 'ejabberd'?
3. Then, create /tmp/muclogs, and configure outdir to /tmp/muclogs, and see what happens
4. Once it works in /tmp/, simply repeat with /var/www as you wanted

Syndicate content