adamvduke / mod_interact

A module to forward certain ejabberd notifications to an arbitrary url
89 stars 30 forks source link

Module doesn't export mod_opt_type/1 #12

Open rrigoni opened 8 years ago

rrigoni commented 8 years ago

I compiled the module from ejabberd source 15.07 and everything is ok. But, the ejabberd fails to start and I get this log:

ejabberd_1 | 02:47:11.988 [warning] module 'mod_offline_post' doesn't export mod_opt_type/1 ejabberd_1 | 02:47:11.988 [warning] module 'mod_offline_post' doesn't export mod_opt_type/1 ejabberd_1 | 02:47:11.988 [info] Starting mod_offline_post ejabberd_1 | 02:47:11.988 [warning] module 'mod_available_post' doesn't export mod_opt_type/1 ejabberd_1 | 02:47:11.994 [warning] module 'mod_available_post' doesn't export mod_opt_type/1 ejabberd_1 | 02:47:11.995 [info] Starting mod_available_post ejabberd_1 | 02:47:12.001 [warning] module 'mod_unavailable_post' doesn't export mod_opt_type/1 ejabberd_1 | 02:47:12.009 [warning] module 'mod_unavailable_post' doesn't export mod_opt_type/1 ejabberd_1 | 02:47:12.015 [critical] Problem starting the module mod_unavailable_post for host <<"tribbeapp.com">> ejabberd_1 | options: [{auth_token,<<"unavailable_post_auth_token">>}, ejabberd_1 | {post_url,<<"http://localhost:4567/unavailable_post">>}] ejabberd_1 | error: undef ejabberd_1 | [{mod_unavailable_post,start, ejabberd_1 | [<<"tribbeapp.com">>, ejabberd_1 | [{auth_token,<<"unavailable_post_auth_token">>}, ejabberd_1 | {post_url,<<"http://localhost:4567/unavailable_post">>}]], ejabberd_1 | []}, ejabberd_1 | {gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,99}]}, ejabberd_1 | {lists,foreach,2,[{file,"lists.erl"},{line,1336}]}, ejabberd_1 | {ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,72}]}, ejabberd_1 | {application_master,start_it_old,4, ejabberd_1 | [{file,"application_master.erl"},{line,272}]}] ejabberd_1 | 02:47:12.015 [critical] ejabberd initialization was aborted because a module start failed. ejabberd_1 | ejabberd_1 | Crash dump was written to: //var/log/ejabberd/erl_crash_20150906-024705.dump ejabberd_1 | Problem starting the module mod_unavailable_post for host <<"tribbeapp.com">> ejabberd_1 | options: [{auth_token,<<"unavailable_post_auth_token">>}, ejabberd_1 | {post_url,<<"http://localhost:4567/unavailable_pos

Any suggestion of how I can get it fixed? Kind regards.

conditions-and-circles commented 8 years ago

Hi @rrigoni

have you been able to find the fix?

ghost commented 8 years ago

Hi @xdnny , I wrote my own module based on the module_interact containing presence and push notifications.
I'll publish it and I'll post here its repo`s url.

conditions-and-circles commented 8 years ago

Hi @ronaldo-getreveel

thanks for the reply, looking forward to check it out.

Just for the record, I was able to make it work by looking into issue #5 - it seems that it is the same problem and it's fixed with following action: https://github.com/adamvduke/mod_interact/issues/5#issuecomment-68739759

It applies to ejabberd 14.05 and it also fixes ejabberd 16.02 (wich is current as of now) if someone is experiencing:

src/mod_offline_post.erl: undefined parse transform 'lager_transform'

truyet commented 8 years ago

I compiled complete with ejabber 16.02, we need update