ejabberd - Comments for "Bug in mod_logxml re: Offline Message Delivery?" https://www.ejabberd.im/node/2734 en I can't reproduce your problem with ejabberd 1.1.4 https://www.ejabberd.im/node/2734#comment-51572 <div class="quote-msg"> <div class="quote-author"><em>tlaramie</em> wrote:</div> <p>Current setup of eJabberd is :<br /> eJabberd-1.1.4 (source)<br /> erlang-r10 (source)<br /> Host System : Linux - Centos 4.4<br /> Almost all of the modules are from the original tarball except mod_logxml which was downloaded off the site. The timestamp on mod_offline.erl is from May23/2006. </p></div> <p>I now downloaded ejabberd 1.1.4 source package, compiled and installed. Then downloaded mod_logxml from ejabberd-modules SVN, compiled and installed. I use Erlang/OTP R11B-5 package from Debian unstable. Then I created two accounts in the server, added between them as contacts. When one of them sends a message to the other, both events are logged in the XML file, the send and recv.</p> <p>So I cannot reproduce your problem. Note that in the <noindex><a href="/mod_logxml" rel="nofollow" >mod_logxml page</a></noindex>, the date of the comments indicate they used ejabberd 1.1.x too, and that people doesn't complain about your problem. So I think the problem is in your system.</p> <p>More or less the process was:</p> <pre>cd $HOME svn co <noindex><a href="http://svn.process-one.net/ejabberd-modules" title="http://svn.process-one.net/ejabberd-modules" rel="nofollow" >http://svn.process-one.net/ejabberd-modules</a></noindex> cd ejabberd-modules/mod_logxml/trunk ./build.sh cd $HOME wget <noindex><a href="http://www.process-one.net/downloads/ejabberd/1.1.4/ejabberd-1.1.4.tar.gz" title="http://www.process-one.net/downloads/ejabberd/1.1.4/ejabberd-1.1.4.tar.gz" rel="nofollow" >http://www.process-one.net/downloads/ejabberd/1.1.4/ejabberd-1.1.4.tar.gz</a></noindex> tar -xzvf ejabberd-1.1.4.tar.gz cd ejabberd-1.1.4/src ./configure --prefix=/tmp/e114 make make install cd /tmp/e114/var/lib/ejabberd/ebin cp /tmp/e114/etc/ejabberd/ejabberd.cfg . cp /tmp/e114/var/lib/ejabberd/priv/lib/*.so . cp $HOME/ejabberd-modules/mod_logxml/trunk/mod_logxml.beam . EDIT!! ejabberd.cfg erl -s ejabberd</pre><p> and ejabberd.cfg:</p> <pre> {listen, [{5222, ejabberd_c2s, [{access, c2s}]} ]}. {modules, [ {mod_logxml, [ {logdir, "/tmp/oelog"}, {rotate, [{days, 1}, {megs, 100}, {kpackets, 10}]}, {check_rotate_kpackets, 1}, {orientation, [send, recv]}, {stanza, [iq, message, presence, other]}, {direction, [internal, vhosts, external]} ]}, ...</pre> Sun, 06 Jan 2008 20:07:06 +0000 mfoss comment 51572 at https://www.ejabberd.im Re: Two options: debug mod_offline or wait for 2.0.0 https://www.ejabberd.im/node/2734#comment-51567 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>If you say exactly which version of ejabberd, erlang and how did you install it (source package, binary installer, Debian package...) I can try to replicate the problem. The purpose is to confirm that the problem is due to an old ejabberd version. Maybe we find how exactly to improve the old mod_offline.erl to work correctly. </p></div> <p>Woops I apologize in that I should have originally posted more info on the setup rather then just shaking my fist at the sky. Current setup of eJabberd is :<br /> eJabberd-1.1.4 (source)<br /> erlang-r10 (source)<br /> Host System : Linux - Centos 4.4<br /> Almost all of the modules are from the original tarball except mod_logxml which was downloaded off the site. The timestamp on mod_offline.erl is from May23/2006.</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>I guess you use some ejabberd 1.1.x version. The changes since 1.1.x was released are numerous, so it's risky to say whether or not you can simply copy a file from SVN.<br /> Anyway, it is expected 2.0.0 will be released in the following weeks if no critical bugs appear. </p></div> <p>2.0 would need to be heavily evaluated on our end prior to deployment as we use numerous custom applications/scripts that are essential to the service. I'm obviously hoping for the former solution rather then waiting for the 2.0 release.</p> Thu, 03 Jan 2008 12:59:22 +0000 tlaramie comment 51567 at https://www.ejabberd.im Two options: debug mod_offline or wait for 2.0.0 https://www.ejabberd.im/node/2734#comment-51561 <div class="quote-msg"> <div class="quote-author"><em>tlaramie</em> wrote:</div> <p>I've just confirmed that at least on the version that we have installed it's not working properly.</p></div> <p>If you say exactly which version of ejabberd, erlang and how did you install it (source package, binary installer, Debian package...) I can try to replicate the problem. The purpose is to confirm that the problem is due to an old ejabberd version. Maybe we find how exactly to improve the old mod_offline.erl to work correctly.</p> <div class="quote-msg"> <div class="quote-author"><em>tlaramie</em> wrote:</div> <p>Because this is a production service I can't switch over ejabberd to the SVN variant however does anyone know if mod_offline.erl from the dailys would be compatible with the last STABLE release? Based on a quick diff it looks like there's been significant changes to the module which might account for the bug fix.</p></div> <p>I guess you use some ejabberd 1.1.x version. The changes since 1.1.x was released are numerous, so it's risky to say whether or not you can simply copy a file from SVN.</p> <p>Anyway, it is expected 2.0.0 will be released in the following weeks if no critical bugs appear.</p> Wed, 02 Jan 2008 20:59:09 +0000 mfoss comment 51561 at https://www.ejabberd.im Module Compatibility. https://www.ejabberd.im/node/2734#comment-51558 <p>I've just confirmed that at least on the version that we have installed it's not working properly. Because this is a production service I can't switch over ejabberd to the SVN variant however does anyone know if mod_offline.erl from the dailys would be compatible with the last STABLE release? Based on a quick diff it looks like there's been significant changes to the module which might account for the bug fix.</p> Wed, 02 Jan 2008 16:21:14 +0000 tlaramie comment 51558 at https://www.ejabberd.im Works ok for me https://www.ejabberd.im/node/2734#comment-51502 <p>It works for me using ejabberd SVN. I guess it should work in any ejabberd version. I use your same config.</p> <p>My server is 'localhost'. I create two accounts: 'a1' and 'a2'. I add them as contacts. Then a2 sends a message to a1 (yes, I know I should send from a1 to a2, but anyway...).</p> <p>Both the send and the received are logged. I parsed the xml with xmlindent so it looks prettier:</p> <div class="codeblock"><code>&lt;packet or=&quot;send&quot; ljid=&quot;a2@localhost/Tka&quot; ts=&quot;20071223T00:52:41&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;message to=&#039;a1@localhost/Tka&#039; id=&#039;1&#039; type=&#039;chat&#039; xml:lang=&#039;es&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;active xmlns=&#039;http://jabber.org/protocol/chatstates&#039;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;x xmlns=&#039;jabber:x:event&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;offline/&gt;&lt;delivered/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;displayed/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;composing/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/x&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;body&gt;hey, hola&lt;/body&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/message&gt;<br />&lt;/packet&gt;<br />&lt;packet or=&quot;recv&quot; ljid=&quot;a1@localhost/Tka&quot; ts=&quot;20071223T00:52:41&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;message from=&#039;a2@localhost/Tka&#039; to=&#039;a1@localhost/Tka&#039; id=&#039;1&#039; type=&#039;chat&#039; xml:lang=&#039;es&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;active xmlns=&#039;http://jabber.org/protocol/chatstates&#039;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;x xmlns=&#039;jabber:x:event&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;offline/&gt;&lt;delivered/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;displayed/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;composing/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/x&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;body&gt;hey, hola&lt;/body&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/message&gt;<br />&lt;/packet&gt;</code></div> Sat, 22 Dec 2007 23:59:20 +0000 mfoss comment 51502 at https://www.ejabberd.im