ejabberd - Comments for "mod_log_chat ubuntu 16.04.1 LTS open log file Cannot write into file" https://www.ejabberd.im/forum/28641/modlogchat-ubuntu-16041-lts-open-log-file-cannot-write-file en It depends on whether you are https://www.ejabberd.im/forum/28641/modlogchat-ubuntu-16041-lts-open-log-file-cannot-write-file#comment-67376 <p>It depends on whether you are using <code>ejabberd</code> from the version offered in the repositories or not.</p> <p>If you are, it is installed in <code>/var/lib/ejabberd</code>. The default configuration for <code>mod_log_chat</code>, if it comes from the <code>ejabberd-mod-log-chat</code> package, should be copied from <code>/usr/share/doc/ejabberd-mod-log-chat/conf/mod_log_chat.yml</code> to <code>/etc/ejabberd/modules.d</code>.</p> <p>After a bit of experimenting, I found out that <code>/var/lib/ejabberd</code>, the default path if no one is set in the module configuration file, works very well with no errors. Other paths fail, even if the owner of the folder and its group are both changed to <code>ejabberd</code>, or the permissions are set accordingly.</p> <p>Fortunately, any subfolder inside <code>/var/lib/ejabberd</code> will work as well. It's just a matter of editing the config file so that <code>path</code> is set to a subfolder of <code>/var/lib/ejabberd</code>, and that such subfolder exists and is owned by the user <code>ejabberd</code> and the group of the same name.</p> <p>I hope this works for you as much as it did for me.<br /> Regards! :D</p> Thu, 16 Mar 2017 06:57:36 +0000 sm-programmer comment 67376 at https://www.ejabberd.im