kongo2002 / ejabberd-mod-mam

Message Archive Management (XEP-0313) for ejabberd using a MongoDB backend
23 stars 10 forks source link

ejabberd server not getting started #4

Open norules4kiran opened 10 years ago

norules4kiran commented 10 years ago

Getting following Error

Problem starting the module mod_mam for host "localhost" 
 options: [{mongo,{localhost,27017}},
           {mongo_database,test},
           {mongo_collection,ejabberd_mam}]
 error: undef

Can you please help me out to fix this..

hgsongra commented 9 years ago

Hi,

I am also following this repo for ejabberd message archiving. and i follow the listed steps and i also face the same above issue.

My system configuration as below

ubuntu 14.04 LTS, 64-bit Erlang R16B03 ejabberd 14.12 MongoDB 2.6.7

https://github.com/HiteshSongra/ejabberd14.12 here is the my ejabberd config files

My Log error history.

15:01:13.961 [critical] Problem starting the module mod_mam for host <<"localhost">> options: [{mongo,[{localhost,27017}]}, {mongo_database,test}, {mongo_collection,message}] error: undef [{mod_mam,start, [<<"localhost">>, [{mongo,[{localhost,27017}]}, {mongo_database,test}, {mongo_collection,message}]], []}, {gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,70}]}, {lists,foreach,2,[{file,"lists.erl"},{line,1323}]}, {ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,67}]}, {application_master,start_it_old,4, [{file,"application_master.erl"},{line,269}]}] 15:01:13.961 [critical] ejabberd initialization was aborted because a module start failed.

Crash dump was written to: //var/log/ejabberd/erl_crash_20150121-150110.dump Problem starting the module mod_mam for host <<"localhost">> options: [{mongo,[{localhost,27017}]}, {mongo_database,test}, {mongo_collection,message}] error: undef [{mod_mam,

Please help to resolve this issue.

Thanks.

kongo2002 commented 9 years ago

Hi,

it's difficult the say what wrong based on these information. Is the mod_mam.beam located in your ejabberd libs directory (usually /lib/ejabberd/ebin/) ?

Cheers, Gregor

hgsongra commented 9 years ago

Hi,

Thanks for reply.

Yes, the modmam.beam file is there in /lib/ejabberd/ebin_ directory. Here is the attached screenshot for that.

mod_mam 2

On Sat, Jan 24, 2015 at 3:09 PM, Gregor Uhlenheuer <notifications@github.com

wrote:

Hi,

it's difficult the say what wrong based on these information. Is the mod_mam.beam located in your ejabberd libs directory (usually /lib/ejabberd/ebin/) ?

Cheers, Gregor

— Reply to this email directly or view it on GitHub https://github.com/kongo2002/ejabberd-mod-mam/issues/4#issuecomment-71307599 .

Thanks, Hitesh Songra