ejabberd - Comments for "Message Archiving " https://www.ejabberd.im/node/24854 en jianghuan wrote: no message https://www.ejabberd.im/node/24854#comment-65497 <div class="quote-msg"> <div class="quote-author"><em>jianghuan</em> wrote:</div> <p>no message go to my db.</p></div> <p>As Mickaƫl said above, the mod_mam version that's in the ejabberd-contrib repository doesn't support SQL storage yet. This feature is on the TODO list, though.</p> <div class="quote-msg"> <div class="quote-author"><em>jianghuan</em> wrote:</div> <p>and i'm not able to register user.</p></div> <p>Do you get an error message?</p> Sat, 25 Apr 2015 18:14:58 +0000 holger comment 65497 at https://www.ejabberd.im i'm trying to setup ejabberd https://www.ejabberd.im/node/24854#comment-65495 <p>i'm trying to setup ejabberd with postgresql on top of centos .<br /> i used latest ejabberd code from git. </p> <p>there is no problem to run ejabberd load all mod, but no message go to my db. and i'm not able to register user. it is still possible to setup ejabberd 15 with postgresql? or i should try mysql?</p> Sat, 25 Apr 2015 06:52:53 +0000 jianghuan comment 65495 at https://www.ejabberd.im I have been told that you https://www.ejabberd.im/node/24854#comment-65470 <p>I have been told that you solve your issue by moving the archive beam file in the ejabberd ebin directory.</p> <p>Other option will be to test with version 15.04 as some path issues have been solved in that upcoming version.</p> Wed, 15 Apr 2015 10:18:09 +0000 mremond comment 65470 at https://www.ejabberd.im Thanks for you answer, https://www.ejabberd.im/node/24854#comment-65467 <p>Thanks for you answer, mremond. I try to check your idea:</p> <p>[root@TEST-chat bin]# ls /root/.ejabberd-modules/<br /> mod_cron sources<br /> [root@TEST-chat bin]# ./ejabberdctl module_install mod_mam<br /> ok<br /> [root@TEST-chat bin]# ls /root/.ejabberd-modules/<br /> mod_cron mod_mam sources<br /> [root@TEST-chat bin]# vim ../conf/ejabberd.yml ##### &lt;- adding line mod_mam:{}<br /> [root@TEST-chat bin]# ./ejabberdctl stop<br /> [root@TEST-chat bin]# ./ejabberdctl start</p> <p>And again I see same errors in log file.</p> <p>On this host I work under root only, I see what ejabberd works with correct module direcotry.<br /> -----<br /> I was try other way:<br /> [root@TEST-chat bin]# cp /root/.ejabberd-modules/mod_mam/ebin/mod_mam.beam /opt/ejabberd-15.03/lib/ejabberd-15.03/ebin/<br /> [root@TEST-chat bin]# ./ejabberdctl module_uninstall mod_mam<br /> [root@TEST-chat bin]# ./ejabberdctl start</p> <p>------ error log ----<br /> 2015-04-14 18:05:47.769 [error] &lt;0.422.0&gt;@gen_mod:stop_module_keep_config:126 {{badmatch,{error,not_found}},[{mod_mam,stop,1,[{file,"src/mod_mam.erl"},{line,171}]},{gen_mod,stop_module_keep_config,2,[{file,"src/gen_mod.erl"},{line,125}]},{gen_mod,stop_module,2,[{file,"src/gen_mod.erl"},{line,112}]},{ext_mod,'-uninstall/1-lc$^0/1-0-',2,[{file,"src/ext_mod.erl"},{line,179}]},{ext_mod,uninstall,1,[{file,"src/ext_mod.erl"},{line,179}]},{ejabberd_ctl,call_command,3,[{file,"src/ejabberd_ctl.erl"},{line,293}]},{ejabberd_ctl,try_call_command,3,[{file,"src/ejabberd_ctl.erl"},{line,269}]},{ejabberd_ctl,process2,3,[{file,"src/ejabberd_ctl.erl"},{line,218}]}]}<br /> -----------------------<br /> [root@TEST-chat bin]# ./ejabberdctl stop<br /> [root@TEST-chat bin]# ./ejabberdctl start</p> <p>And no errors in log file. I think module loaded and worked... But can test with client only tomorrow.<br /> Is this correct? Unfortunately I still can't understand erlang logs :(</p> Tue, 14 Apr 2015 15:32:11 +0000 snaka comment 65467 at https://www.ejabberd.im Error says the compiled https://www.ejabberd.im/node/24854#comment-65466 <p>Error says the compiled module is not there. </p> <p>It is likely that you have an issue with the install right on your system.</p> <p>You should check if mod_mam.beam is in ~ejabberd/.ejabberd-modules (assuming "ejabberd" is the correct user name).</p> Tue, 14 Apr 2015 12:33:52 +0000 mremond comment 65466 at https://www.ejabberd.im System Arch LInux x64. Using https://www.ejabberd.im/node/24854#comment-65463 <p>System Arch LInux x64. Using x64 binary package from <noindex><a href="https://www.process-one.net/ejabberd/downloads" title="https://www.process-one.net/ejabberd/downloads" rel="nofollow" >https://www.process-one.net/ejabberd/downloads</a></noindex>.</p> <p># ejabberdctl modules_update_specs<br /> # ejabberdctl module_install mod_mam<br /> ok<br /> # ./ejabberdctl modules_installed<br /> mod_mam Message Archive Management (XEP-0313)</p> <p>After this I add to /opt/ejabberd-15.03/conf/ejabberd.yml single line in a modules block:<br /> mod_mam: {}</p> <p>After restart ejabberd I get the error message in ejabberd.log.</p> Tue, 14 Apr 2015 11:27:31 +0000 snaka comment 65463 at https://www.ejabberd.im How did you install it ? https://www.ejabberd.im/node/24854#comment-65462 <p>How did you install it ?</p> Tue, 14 Apr 2015 10:59:40 +0000 mremond comment 65462 at https://www.ejabberd.im Hi all. I'm too try to https://www.ejabberd.im/node/24854#comment-65460 <p>Hi all.</p> <p>I'm too try to install mod_mam. Still unsuccesfully.<br /> After installing ejabberd-15.03 from binary package I run it with my old config - all works fine. Then installed without errors module mod_mam by this document <a href="https://blog.process-one.net/easy-installer-and-structure-for-ejabberd-contributed-modules/" title="https://blog.process-one.net/easy-installer-and-structure-for-ejabberd-contributed-modules/">https://blog.process-one.net/easy-installer-and-structure-for-ejabberd-c...</a>.<br /> And added a single line in config in modules section:<br /> mod_mam: {}</p> <p>But after restart ejabberd gave errors in log:<br /> ----------------------<br /> 2015-04-09 18:18:39.241 [critical] &lt;0.38.0&gt;@gen_mod:start_module:90 Problem starting the module mod_mam for host &lt;&lt;"myhost.ru"&gt;&gt;<br /> options: []<br /> error: undef<br /> [{mod_mam,start,[&lt;&lt;"myhost.ru"&gt;&gt;,[]],[]},<br /> {gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,82}]},<br /> {lists,foreach,2,[{file,"lists.erl"},{line,1323}]},<br /> {ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,68}]},<br /> {application_master,start_it_old,4,<br /> [{file,"application_master.erl"},{line,269}]}]<br /> 2015-04-09 18:18:39.241 [critical] &lt;0.38.0&gt;@gen_mod:start_module:95 ejabberd initialization was aborted because a module start failed.<br /> ---------------------------</p> <p>What I doing wrong and how to start working mod_mam?</p> Tue, 14 Apr 2015 10:34:04 +0000 snaka comment 65460 at https://www.ejabberd.im We are currently working on https://www.ejabberd.im/node/24854#comment-65453 <p>We are currently working on releasing our mod_mam version. It will not go into ejabberd 15.04, but it is likely to be ready for the next version.<br /> In the meantime, you can use mod_mam and store your messages in Mnesia database.</p> Mon, 13 Apr 2015 07:51:52 +0000 mremond comment 65453 at https://www.ejabberd.im