ejabberd - Comments for "mod_statsdx error in logs from update_counter" https://www.ejabberd.im/node/3492 en Re: Do you have mod_muc disabled? https://www.ejabberd.im/node/3492#comment-54272 <p>Ah, I still have mod_muc enabled on only 1 or the 2 nodes (the 1.1.4 way). I see now that the errors only show up on the node that doesn't have mod_muc enabled.</p> <p>Now that ejabberd 2.x supports mod_muc clustering, I will figure out how to configure it on both nodes.</p> <p>Thanks again for your help and your patience, badlop.</p> Fri, 22 May 2009 14:01:29 +0000 zjt comment 54272 at https://www.ejabberd.im Do you have mod_muc disabled? https://www.ejabberd.im/node/3492#comment-54268 <p>I get that error message if I delete a Mnesia table. In your case, maybe you have mod_muc disabled in ejabberd.cfg?<br /> If that's your case, you have three solutions:</p> <ul> <li>Enable mod_muc </li><li>Don't care about such error messages </li><li>Edit mod_stats2file source code to not request statistics about mod_muc </li></ul> <p>My test:</p> <pre> $ sudo ejabberdctl live ... (ejabberd@localhost)1&gt; mod_statsdx:get_statistic(node(), ["totalmucrooms","localhost"]). 0 (ejabberd@localhost)2&gt; mnesia:delete_table(muc_online_room). {atomic,ok} (ejabberd@localhost)3&gt; mod_statsdx:get_statistic(node(), ["totalmucrooms","localhost"]). =ERROR REPORT==== 22-May-2009::11:55:25 === E(&lt;0.42.0&gt;:mod_statsdx:248) : get_statistic error for N: ejabberd@localhost, A: ["totalmucrooms", "localhost"] {badarg,[{ets,safe_fixtable,[muc_online_room,true]}, {ets,foldl,3}, {mod_statsdx,get_totalmucrooms,1}, {mod_statsdx,get_statistic,2}, {erl_eval,do_apply,5}, {shell,exprs,6}, {shell,eval_exprs,6}, {shell,eval_loop,3}]} unknown </pre> Fri, 22 May 2009 10:03:13 +0000 mfoss comment 54268 at https://www.ejabberd.im Mostly fixed https://www.ejabberd.im/node/3492#comment-54247 <p>Great! Updating to r962 mostly fixed it.</p> <p>Still seeing the error for 'totalmucrooms'.</p> <pre> =ERROR REPORT==== 2009-05-15 16:31:47 === E(&lt;0.18875.1&gt;:mod_statsdx:248) : get_statistic error for N: 'ejabberd@xxx', A: ["totalmucrooms", "xxx"] {badarg,[{ets,safe_fixtable,[muc_online_room,true]}, {ets,foldl,3}, {mod_statsdx,get_totalmucrooms,1}, {mod_statsdx,get_statistic,2}, {mod_stats2file,fwttl,4}, {mod_stats2file,write_stats,5}, {lists,foreach,2}, {mod_stats2file,write_statsfiles,5}]} </pre> Fri, 15 May 2009 21:36:34 +0000 zjt comment 54247 at https://www.ejabberd.im Fixed in SVN. Update and try. https://www.ejabberd.im/node/3492#comment-54246 <div class="quote-msg"> <div class="quote-author"><em>zjt</em> wrote:</div> <p>Not sure if this is related, but these errors show up when I compile mod_statsdx</p> <pre> Recompile: ../../../ejabberd-dev/branches/ejabberd-2.0.x/src/gen_mod Recompile: src/mod_statsdx src/mod_statsdx.erl:12: Warning: behaviour gen_mod undefined Recompile: src/mod_stats2file src/mod_stats2file.erl:12: Warning: behaviour gen_mod undefined </pre></div> <p>Not related. I also see them; don't worry about them at all. And those are warning messages, not error messages.</p> <div class="quote-msg"> <div class="quote-author"><em>zjt</em> wrote:</div> <p>I wasn't using mod_stasdx/branches/ejabberd-2.0.x. I recompiled from that directory. Same errors show up in the logs. </p></div> <p>I tried with your configuration, and I found the problem in the code. Update mod_statsdx from svn, and now it should work.</p> Fri, 15 May 2009 09:43:18 +0000 mfoss comment 54246 at https://www.ejabberd.im Same error with mod_stasdx/branches/ejabberd-2.0.x https://www.ejabberd.im/node/3492#comment-54243 <p>Thanks badlop. I wasn't using mod_stasdx/branches/ejabberd-2.0.x. I recompiled from that directory. Same errors show up in the logs.</p> <p>First error:</p> <pre> =ERROR REPORT==== 2009-05-13 15:38:51 === E(&lt;0.227.0&gt;:mod_statsdx:248) : get_statistic error for N: 'ejabberd@xxx', A: [{"user_login", 60000}, server] {badarg,[{ets,update_counter, [mod_statsdx_server,{user_login,server},{2,1,0,0}]}, {mod_statsdx,get_stat,2}, {mod_statsdx,get_statistic,2}, {mod_stats2file,fwttl,4}, {mod_stats2file,write_stats,5}, {mod_stats2file,write_statsfiles,5}, {mod_stats2file,loop,5}]} </pre><p> Not sure if this is related, but these errors show up when I compile mod_statsdx</p> <pre> Recompile: ../../../ejabberd-dev/branches/ejabberd-2.0.x/src/gen_mod Recompile: src/mod_statsdx src/mod_statsdx.erl:12: Warning: behaviour gen_mod undefined Recompile: src/mod_stats2file src/mod_stats2file.erl:12: Warning: behaviour gen_mod undefined </pre><p> From ejabberd.cfg:</p> <pre> {mod_stats, []}, {mod_statsdx, []}, {mod_stats2file, [ {interval, 1}, {type, txt}, {basefilename, "/opt/ejabberd/var/stats/ejabberd_stats"} ]}, </pre> Thu, 14 May 2009 13:13:44 +0000 zjt comment 54243 at https://www.ejabberd.im Try mod_stasdx/branches/ejabberd-2.0.x https://www.ejabberd.im/node/3492#comment-54228 <div class="quote-msg"> <div class="quote-author"><em>zjt</em> wrote:</div> <p>I upgraded ejabberd from 1.1.4 to 2.0.4. I have installed mod_statsdx from svn-872.<br /> Now, this error shows up in the ejabberd log. </p></div> <p>You have ejabberd 2.0.4. You didn't specify, but it seems you are using mod_statsdx from mod_statsdx/trunk. </p> <p>Can you try using instead from mod_stasdx/branches/ejabberd-2.0.x ? Check ejabberd.log and sasl.log when you start the server and when a client connects.</p> <p>If that doesn't help, please comment here exactly what options did you add to ejabberd.cfg, and what are the first error messages that you see in ejabberd.log or sasl.log</p> Sat, 09 May 2009 10:30:07 +0000 mfoss comment 54228 at https://www.ejabberd.im