Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module doesn't export mod_opt_type/1 #12

Open
rrigoni opened this issue Sep 6, 2015 · 4 comments
Open

Module doesn't export mod_opt_type/1 #12

rrigoni opened this issue Sep 6, 2015 · 4 comments

Comments

@rrigoni
Copy link

rrigoni commented Sep 6, 2015

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
Copy link

Hi @rrigoni

have you been able to find the fix?

@ghost
Copy link

ghost commented Mar 14, 2016

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
Copy link

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: #5 (comment)

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
Copy link

truyet commented Aug 16, 2016

I compiled complete with ejabber 16.02, we need update

  • xml:get... -> fxml:get....
  • Fixing error src/mod_offline_post.erl: undefined parse transform 'lager_transform' : You need make ejabberd sources and update build.sh:
    erl -pa {ejabber_source_folder}/deps/lager/ebin/ -pz ebin -make
  • In Emakefile, update link to folder include in ejabberd source
  • After all above step is updated, we can receive error about fast_xml . You need copy all file in {ejabber_source_folder}/deps to {ejabber_source_folder}/include

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants