[rabbitmq-discuss] Missing dependency in management plugin/mochiweb

Matthias Radestock matthias at rabbitmq.com
Wed Apr 25 13:22:59 BST 2012


Alvaro,

On 25/04/12 12:52, Alvaro Videla wrote:
> I tried to reproduce the problem. Actually *rabbitmq-server* needs to
>  declare *inets* in its app dependencies.

The server itself does not depend on inets, so that would be wrong.

> This is the error you get:
>
> Activating RabbitMQ plugins ... {"init terminating in
> do_boot",{{badmatch,{error,{edge,{bad_vertex,inets},mochiweb,inets}}},[{rabbit_plugins,calculate_dependencies,3},{rabbit_prelaunch,prepare_plugins,3},{rabbit_prelaunch,start,0},{init,start_it,1},{init,start_em,1}]}}
>
>  For a enabled_plugins file with this content: [].
> This happens when you generate a release for RabbitMQ only.

Right. The plug-in dependency calculations filters out all app 
dependencies which can be loaded. More generally, the code in 
rabbit_plugins assumes that it executes on the user's rabbit runtime. 
Hence inets, kernel, stdlib, etc never feature in the dependency 
calculation in normal use.

It is not immediately clear what needs to change to make that code work 
in a different context, i.e. a release build. Over to you :)


Regards,

Matthias.


More information about the rabbitmq-discuss mailing list