Hi,
After enabling mod_roster_odbc module, when I try to restart my server I see the below in my log.
2015-02-26 14:07:03.725 [critical] <0.836.0>@gen_mod:start_module:94 Problem starting the module mod_roster_odbc for host <<"localhost">>
options: []
error: undef
[{mod_roster_odbc,start,[<<"localhost">>,[]],[]},
{gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,83}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},
{ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,69}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,272}]}]
2015-02-26 14:07:03.726 [critical] <0.836.0>@gen_mod:start_module:99 ejabberd initialization was aborted because a module start failed.
The trace is [{mod_roster_odbc,start,[<<"localhost">>,[]],[]},{gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,83}]},{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},{ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,69}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}].
(END)
Then I updated my configuration for both mod_offline and mod_roster as follows
{mod_roster, [{db_type,odbc}]},
{mod_offline, [
{access_max_user_messages, max_user_offline_messages},
{db_type,odbc}
]},
I didnt get any error. Server is running. But my database tables are still blank(except user table). So seems like its not storing the offline data to my external database. How to fix it please help...
Thanks
From your post on the mailing
From your post on the mailing list, it seems you are using ejabberd 1.1.3.
In that version, you do not configure modules with {mod_roster, [{db_type,odbc}]} to use odbc, so that will not work.
Please refer to documentation provided with the version of ejabberd you are using.
Regarding your error, the error undef, means the module is using a function call that does not exist. It looks like you have a problem with your installation. You may have missing modules or may be mixing modules development for different versions of ejabberd.