xmpp - ejabberd server mod_archive module -


i trying set message archiving ejabberd server. tried add new module mod_archive following link http://lboynton.com/2009/11/25/ejabberd-mod_archive-with-mysql-on-ubuntu/. after not able restart ejabberd server , gives me following error in ejabberd.log

=error report==== 2010-11-16 12:44:41 === e(<0.38.0>:ejabberd_rdbms:67) : start of supervisor ejabberd_odbc_sup_localhost failed: {error,{shutdown,{child,undefined,ejabberd_odbc_sup_localhost, {ejabberd_odbc_sup,start_link,["localhost"]}, transient,infinity,supervisor, [ejabberd_odbc_sup]}}}

thanks,

sathi.

all internet tutorials mod_archive in ejabberd incomplete or caotics. or maybe old. problem using ubuntu 12.04 server lts mysql. , did things explained in blogs.

so install mod_archive need this:

the typical:

svn co https://svn.process-one.net/ejabberd-modules cd ejabberd-modules/mod_archive/trunk ./build.sh cp ebin/*modules in ejabberd 

and configure /etc/ejabberd.cfg

but methods ejabberd not work.

so discover need compile other module not explained in site. module called conn_mysql

and can in same ejabber-modules dowloaded. in svn (https://svn.process-one.net/ejabberd-modules) there are

cd ejabberd-modules/mysql/trunk ./build.sh cp ebin/*modules in ejabberd 

and work.....

i need lot of hours discover this.

i can not use line configuration in ejabberd.cfg: {odbc_server, "dsn=ejabberd;uid=ejabberd;pwd=ejabberd"} because aplication crashes , says this:

=error report==== 2012-11-28 18:01:08 === e(<0.437.0>:mod_archive_odbc:867) : should_store_jid failed: {xmlelement,                                                               "error",                                                               [{"code","500"},                                                                {"type",                                                                 "wait"}],                                                               [{xmlelement,                                                                 "internal-server-error",                                                                 [{"xmlns",                                                                   "urn:ietf:params:xml:ns:xmpp-stanzas"}],                                                                 []}]} 

so use line in ejabberd.cfg: {odbc_server, {mysql, "server", "database", "username", "password"}}.

and line modules configuration:

  {mod_archive_odbc, [{database_type, "mysql"}, {default_auto_save, true}, {enforce_default_auto_save, true}]}, 

so works!

i don't remmember if use

trunk or branches/ejabberd-2.0.x in emakefile . try 1 , if not works try other.

ah! , remmember compile

./configure --enable-odbc ejabberd source code.  

you can in

wget http://www.process-one.net/en/ejabberd/ejabberd/2.1.11/ejabberd-2.1.11.tgz 

maybe necessary packages:

apt-get install iodbc libmyodbc 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -