[ejabberd] mod_statsdx

Bryan Barnes Bryan.Barnes at verety.com
Fri May 12 21:49:01 MSD 2006


It starts correctly, but this is the error I get after a user logs in:

=INFO REPORT==== 2006-05-12 12:40:09 ===
I(<0.309.0>:ejabberd_c2s:601): ({tlssock,#Port<0.284>,#Port<0.354>})
Accepted authentication for bbarnes

=INFO REPORT==== 2006-05-12 12:40:09 ===
I(<0.309.0>:ejabberd_c2s:696): ({tlssock,#Port<0.284>,#Port<0.354>})
Opened session for bbarnes at testim.verety.com/Gaim

=ERROR REPORT==== 2006-05-12 12:40:09 ===
E(<0.309.0>:ejabberd_hooks:172): {function_clause,
                                     [{xml,get_tag_cdata,[false]},
                                      {mod_statsdx,received_response,3},
                                      {ejabberd_hooks,run1,3},
 
{ejabberd_c2s,session_established,2},
                                      {gen_fsm,handle_msg,7},
                                      {proc_lib,init_p,5}]}
running hook: {user_send_packet,[{jid,"bbarnes",
                                      "testim.verety.com",
                                      "Gaim",
                                      "bbarnes",
                                      "testim.verety.com",
                                      "Gaim"},
                                 {jid,[],
                                      "testim.verety.com",
                                      "mod_statsdx",
                                      [],
                                      "testim.verety.com",
                                      "mod_statsdx"},
                                 {xmlelement,
                                     "iq",
                                     [{"type","result"},
	
{"to","testim.verety.com/mod_statsdx"}],
                                     [{xmlelement,
                                          "query",
 
[{"xmlns","jabber:iq:version"}],
                                          [{xmlelement,
                                               "name",
                                               [],
                                               [{xmlcdata,
 
<<103,97,105,109>>}]},
                                           {xmlelement,
                                               "version",
                                               [],
                                               [{xmlcdata,
 
<<49,46,53,46,48>>}]}]}]}]}



=ERROR REPORT==== 2006-05-12 12:42:34 ===
$dx,'-get_authusers/1-fun-0-',2},{lists,foldl,3},{mnesia,do_foldl,8},{mn
esia,foldl,6},{mnesia_tm,apply_fun,3},{mnesia_tm,execute_transaction,5},
{mod_statsdx, get_authusers,...

If I run the commands in your reply I get the following without a user
logged in:
Erlang (BEAM) emulator version 5.4.13 [source] [hipe] [kernel-poll]

Eshell V5.4.13  (abort with ^G)
(ejabberd at farjabber01)1> mod_statsdx:get(node(), ["totalerlproc"]).
135
(ejabberd at farjabber01)2> mod_statsdx:get(node(), ["authusers"]).
0

If I then log in via Gaim:

(ejabberd at farjabber01)3> mod_statsdx:get(node(), ["totalerlproc"]).
137
(ejabberd at farjabber01)4> mod_statsdx:get(node(), ["authusers"]).
1

I get the same error in the logs however.  I am also running
mod_stats2file, and that is the part that is not working.  Perhaps I
have misidentified the problem, and it is not mod_statsdx that I have
the problem with but mod_stats2file?

Bryan


-----Original Message-----
From: ejabberd-bounces at jabber.ru [mailto:ejabberd-bounces at jabber.ru] On
Behalf Of Badlop
Sent: Friday, May 12, 2006 11:58 AM
To: ejabberd at jabber.ru
Subject: Re: [ejabberd] mod_statsdx

2006/5/12, Bryan Barnes <Bryan.Barnes at verety.com>:
> Does anybody know if mod_statsdx is compatible with ejabberd 1.1.1?
It
> compiles and runs successfully but crashes as soon as a user logs in,
> which his less than useful.

I've tried it right now and seems to work:

(ejabberd2 at atenea)14> mod_statsdx:get(node(), ["totalerlproc"]).
163
(ejabberd2 at atenea)15>
=INFO REPORT==== 12-May-2006::18:53:59 ===
I(<0.233.0>:ejabberd_listener:90): (#Port<0.360>) Accepted connection
{{XXX},55676} -> {{XXX},5222}

=INFO REPORT==== 12-May-2006::18:53:59 ===
I(<0.398.0>:ejabberd_c2s:382): (#Port<0.360>) Accepted legacy
authentication for badlop at atenea/Tka

(ejabberd2 at atenea)15>
(ejabberd2 at atenea)15>
(ejabberd2 at atenea)15> mod_statsdx:get(node(), ["totalerlproc"]).
165
(ejabberd2 at atenea)16> mod_statsdx:get(node(), ["authusers"]).
1
(ejabberd2 at atenea)17>


Does any error appear on your logs?


--
_______________________________________________
ejabberd mailing list
ejabberd at jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd


More information about the ejabberd mailing list