Problem installing mod_muc_admin

Ejabberd 2.1.11 is running nicely, thank you very much for all the work put into this project.

However, I need some more control over MUC's.
When I install mod_muc_admin, I get the following error:

The node ejabberd@server is starting with status: started
ejabberd is not running in that node

And in ejabberd.log

=ERROR REPORT==== 2013-04-04 12:11:03 ===
C(<0.1110.0>:gen_mod:75) : Problem starting the module mod_muc_admin for host "aviezri.org"
options: []
error: undef

=ERROR REPORT==== 2013-04-04 12:11:03 ===
C(<0.1110.0>:gen_mod:80) : ejabberd initialization was aborted because a module start failed.

To install muc_mod_admin, I did as follows:

  1. Checkout SVN (http://svn.process-one.net/ejabberd-modules)
  2. Shut down Ejabberd process.
  3. Added the following to the modules list in ejabberd.cfg: {mod_muc_admin, []},
  4. In mod_muc_admin/trunk, ran ./build.sh
    No errors were thrown during the build, but Ejabberd will not start.
  5. When that didn't work, tried moving to mod_muc_admin/branches/ejabberd-2.0.x/ and running ./build.sh
    Again, no errors were thrown on build, but Ejabberd will not start.

Pretty please, help.
I don't mind trying Ejabberd 3 if that is better.

Thank you.

It seems others may be having

It seems others may be having the same issue.
https://www.process-one.net/en/forum/viewthread/733/

I am not certain that their err is the same, but if so, at least it means that I am not alone. :/

Any solutions would be appreciated.

4+. Copy the compiled

4+. Copy the compiled mod_muc_admin.beam to the system path where you have all the other ejabberd *.beam files.

Thank you, that worked, and

Thank you, that worked, and was obvious in retrospect.

However, while Ejabberd now compiles and runs, I cannot figure out how to correctly use the module.

When I do ./ejabberdctl muc_online_rooms global

I get the following err:

Problem 'error badarg' occurred executing the command.

Stacktrace: [{erlang,'++',[<<"shulamis">>,[64|<<"conference.aviezri.org">>]],[]},
             {mod_muc_admin,'-muc_online_rooms/1-fun-0-',3,[{file,"src/mod_muc_admin.erl"},{line,174}]},
             {lists,foldl,3,[{file,"lists.erl"},{line,1248}]},
             {ejabberd_ctl,call_command,3,[{file,"ejabberd_ctl.erl"},{line,293}]},
             {ejabberd_ctl,try_call_command,3,[{file,"ejabberd_ctl.erl"},{line,269}]},
             {ejabberd_ctl,process2,3,[{file,"ejabberd_ctl.erl"},{line,218}]},
             {ejabberd_ctl,process,1,[{file,"ejabberd_ctl.erl"},{line,203}]},
             {rpc,'-handle_call_call/6-fun-0-',5,[{file,"rpc.erl"},{line,205}]}]

Please help.

It was a bug in the code.

It was a bug in the code. Fixed in git.

Syndicate content