[ejabberd] mod_statsdx

Badlop badlop at gmail.com
Sat May 13 01:07:30 MSD 2006


2006/5/12, Bryan Barnes <Bryan.Barnes at verety.com>:
> When the file attempts to write I get this error:
>
> =ERROR REPORT==== 2006-05-12 15:02:31 ===
> Error in process <0.305.0> on node 'ejabberd at farjabber01' with exit
> value:
> {{badmatch,{aborted,{{badmatch,{{1147,463884,356558},<0.309.0>}},[{mod_s
> tatsdx,'-get_authusers/1-fun-0-',2},{lists,foldl,3},{mnesia,do_foldl,8},
> {mnesia,foldl,6},{mnesia_tm,apply_fun,3},{mnesia_tm,execute_transaction,
> 5},{mod_statsdx,get_authusers,...

Ah, the structure of 'sessions' table changed slightly on ejabberd
1.1.x. It's simple to fix, just edit mod_statsdx.erl and replace the
only occurrence of:
  -record(session, {usr, us, pid}).
with:
  -record(session, {sid, usr, us, priority}).

--


More information about the ejabberd mailing list