mod_http_offline not working

Hi,

I have done with mod_http_offline module but its not running properly. I will showing below error in error log

c(<0.37.0>:gen_mod:75) : Problem starting the module mod_http_offline for host "localhost"
options: [{access_max_user_messages,max_user_offline_messages}]
error: function_clause

PLease help me out....

Have that error solved, i

Have that error solved, i have got the same error, kindly suggest.

any news here?

any news here?

Which version of this module

Which version of this module are you using ? Where does it come from ? And which version of ejabberd are you using ?

If this is this one: https://github.com/raelmax/mod_http_offline it says it is for ejabberd 14.12.

i am using ejabbred 15.07 and

i am using ejabbred 15.07 and to send push i am trying to use your mod_http_offline module . which i have compiled successfully , but module is failed to start. this is the error log which i am getting :

<0.38.0>@gen_mod:start_module:107 Problem starting the module mod_http_offline for host <<"52.27.78.125">>
options: []
error: undef
[{p1_logger,info_msg,[mod_http_offline,14,"mod_http_offline loading",[]],[]},
{mod_http_offline,start,2,[{file,"mod_http_offline.erl"},{line,14}]},
{gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,99}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},
{ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,72}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,272}]}]
2015-09-03 16:13:39.761 [critical] <0.38.0>@gen_mod:start_module:112 ejabberd initialization was aborted because a module start failed.

Your module need to be

Your module need to be compiled from ejabberd src directory with ejabberd build chain to be able to have the proper define for logging.

Facing same issue please give

Facing same issue please give us some more details we really stuck here ...

i am working on offline notification. i have tried this code http://jasonrowe.com/2011/12/30/ejabberd-offline-messages/

i am using mod_http_offline module. when user send offline message i got below error in ejabberd 15.11

running hook: {offline_message_hook,[{jid,<<"1112121212">>,
<<"xyz.com.com">>,<<"26112267011450933160669531">>,
<<"11121212">>,<<"xyz.com">>,
<<"26112267011450933160669531">>},{jid,<<"12121212">>,
<<"xyz.com">>,<<"10640377501450932768366216">>,
<<"918787878787">>,<<"xyz.com">>,
<<"10640377501450932768366216">>},{xmlel,<<"message">>,[{<<"from">>,<<"121212121@xyz.com">>},{<<"to">>,<<"11111111@xyz.com/10640377501450932768366216">>},
{<<"id">>,<<"AqLgKTeu">>}],[{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:event">>}],[{xmlel,<<"delivevered">>,[],[]},{xmlel,<<"id">>,[],[{xmlcdata,<<"EYx1Bhh0">>}]}]}]}]}

[error] <0.3631.0>@ejabberd_hooks:run1:332 {function_clause,[{lists,thing_to_list,[<<>>],[{file,"lists.erl"},{line,601}]}
{lists,flatmap,2,[{file,"lists.erl"},{line,1248}]},{lists,flatmap,2,[{file,"lists.erl"},{line,1248}]},{mod_http_offline,post_offline_message,3,[{file,"mod_http_offline.erl"},
{line,38}]},{ejabberd_hooks,safe_apply,3,[{file,"src/ejabberd_hooks.erl"},{line,382}]},
{ejabberd_hooks,run1,3,[{file,"src/ejabberd_hooks.erl"},{line,329}]},
{ejabberd_sm,route,3,[{file,"src/ejabberd_sm.erl"},{line,111}]},
{ejabberd_local,route,3,[{file,"src/ejabberd_local.erl"},{line,112}]}]}

[error] <0.3703.0>@ejabberd_config:validate_opts:794 unknown option 'loopback' will be likely ignored
[error] <0.3703.0>@ejabberd_config:validate_opts:794 unknown option 'local' will be likely ignored

Try mod_post_log just need

Try mod_post_log just need to modify a bit and it also post messages , you just need to change the user_send hook to offline_message hook.

@Nikhil can you please give

@Nikhil can you please give some more detail as i am stuck with same bit

I use ejabberd 17, and

I use ejabberd 17, and installed the module with
./ejabberdctl module_install mod_http_offline

When I add module to the yml file " mod_http_offline: {} "
I get the same error

Problem starting the mofule mod_http_offline for host <<....etc >>

Do I still need to compile this module somehow in order to get it to work?

I hope anyone can help me ..

> ./ejabberdctl

> ./ejabberdctl module_install mod_http_offline

It seems that downloads the module, but does not compile it, it probably is a bug in ejabberd.

Solution: you can compile the module following the manual method described in that module README, then copy the resulting beam file with your other ejabberd beam files, enable the module in the configuration, and finally restart ejabberd.

Syndicate content