Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Problem starting the module mod_gcm for host localhost #16

Open
P-r-a-d-e-e-P opened this issue Nov 30, 2017 · 3 comments
Open

Problem starting the module mod_gcm for host localhost #16

P-r-a-d-e-e-P opened this issue Nov 30, 2017 · 3 comments

Comments

@P-r-a-d-e-e-P
Copy link

P-r-a-d-e-e-P commented Nov 30, 2017

Hi Doctor,
I've setup ejabberd in Elixir/Phoenix application. Mix.exs has {:ejabberd, "~> 17.9"}. I've also copied mod_gcm.erl in src folder and put the following entry in ejabberd.yml.

mod_gcm:
gcm_api_key: "key"
While starting the phoenix app application stops with following error:

[warn] module 'mod_gcm' doesn't export mod_opt_type/1
[error] Problem starting the module mod_gcm for host localhost
options: [{gcm_api_key,<<"key">>}]
error: undef
[{mod_gcm,start,
[<<"localhost">>,
[{gcm_api_key,<<"key">>}]],
[]},
{gen_mod,start_module,4,[{file,"src/gen_mod.erl"},{line,200}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},
{gen_mod,start_link,0,[{file,"src/gen_mod.erl"},{line,79}]},
{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,365}]},
{supervisor,start_children,3,[{file,"supervisor.erl"},{line,348}]},
{supervisor,init_children,2,[{file,"supervisor.erl"},{line,314}]},
{gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]
[error] ejabberd initialization was aborted because a module start failed.

@mrDoctorWho
Copy link
Owner

Hi, @P-r-a-d-e-e-P

I'm sorry, but it seems the notification about this issue somehow got lost in my mail.

You're running an unsupported version of ejabberd. So, I'm afraid, you're not getting this module to work.

@karunreddy30
Copy link

Any particular code that needs to be changed in order to make this work for later versions? I'll try fixing it if I can.

@mrDoctorWho
Copy link
Owner

@karunreddy30 sorry for the long silence.

You can start from looking at this commit mrDoctorWho/ejabberd_mod_apns@82baa09

I'm sorry, but I don't currently have time to maintain my projects.

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

No branches or pull requests

3 participants