processone / ejabberd-contrib

Growing and curated ejabberd contributions repository - PR or ask to join !
http://ejabberd.im
250 stars 140 forks source link

Ejabberd 17.04 starting issue with mod_cron #214

Closed sujankumar4593 closed 7 years ago

sujankumar4593 commented 7 years ago

I try to install ejabberd 17.04 with my local machine when I start the ejabberd I got this error

2017-05-31 23:45:01.496 [info] <0.31.0> Application public_key started on node ejabberd@localhost 2017-05-31 23:45:01.521 [info] <0.31.0> Application ssl started on node ejabberd@localhost 2017-05-31 23:45:01.541 [info] <0.31.0> Application fast_yaml started on node ejabberd@localhost 2017-05-31 23:45:01.568 [info] <0.31.0> Application fast_tls started on node ejabberd@localhost 2017-05-31 23:45:01.598 [info] <0.31.0> Application fast_xml started on node ejabberd@localhost 2017-05-31 23:45:01.606 [info] <0.31.0> Application p1_utils started on node ejabberd@localhost 2017-05-31 23:45:01.619 [info] <0.31.0> Application stringprep started on node ejabberd@localhost 2017-05-31 23:45:01.622 [info] <0.31.0> Application xmpp started on node ejabberd@localhost 2017-05-31 23:45:01.636 [info] <0.31.0> Application cache_tab started on node ejabberd@localhost 2017-05-31 23:45:02.102 [info] <0.31.0> Application mnesia started on node ejabberd@localhost 2017-05-31 23:45:03.574 [info] <0.250.0>@cyrsasl_digest:start:62 FQDN used to check DIGEST-MD5 SASL authentication: sujan-Inspiron-3537 2017-05-31 23:45:05.983 [info] <0.31.0> Application inets started on node ejabberd@localhost 2017-05-31 23:45:05.992 [warning] <0.248.0>@gen_mod:sort_modules:150 module 'mod_mam' is recommended for module 'mod_muc' but is not found in the config 2017-05-31 23:45:06.022 [critical] <0.248.0>@gen_mod:start_module:207 Problem starting the module mod_cron for host localhost options: [] exit: {aborted, {bad_type, {ejabberd_commands,cron_list, [cron], "List tasks scheduled in a host",[],0,mod_cron,cron_list, [{host,binary}], restricted,[], {tasks,{list,{task,{tuple,[{id,integer},{task,string}]}}}}, none,none,none,none}}} [{mnesia,abort,1,[{file,"mnesia.erl"},{line,318}]}, {mnesia,do_dirty_write,3,[{file,"mnesia.erl"},{line,1550}]}, {lists,foreach,2,[{file,"lists.erl"},{line,1338}]}, {ejabberd_commands,register_commands,1, [{file,"src/ejabberd_commands.erl"},{line,329}]}, {mod_cron,start,2,[{file,"src/mod_cron.erl"},{line,37}]}, {gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,195}]}, {lists,foreach,2,[{file,"lists.erl"},{line,1338}]}, {gen_mod,start_link,0,[{file,"src/gen_mod.erl"},{line,76}]}] 2017-05-31 23:45:06.022 [critical] <0.248.0>@gen_mod:maybe_halt_ejabberd:286 ejabberd initialization was aborted because a module start failed.

badlop commented 7 years ago

I can reproduce the problem with recent ejabberd git, which also requires another change in the call to function get_mod:get_opt.

Try the updated module from git.

sujankumar4593 commented 7 years ago

Hi badlop this issue still there I have checked with the recent ejabberd master source code.can you tell me why mod_cron has starting problem, which is not there in src dir note: I am not using any contribute modules

badlop commented 7 years ago

I've modified mod_cron.erl, so that's the file you need to update, compile and install, not ejabberd.

sujankumar4593 commented 7 years ago

Thanks badlop.