[rabbitmq-discuss] Error when accessing management plugin

Martin Dimitrov mrtndimitrov at gmail.com
Fri Jul 5 21:08:51 BST 2013


Hi, I ran code:is_loaded(mochiweb_util). and it returns false. How can I
connect to the RabbitMQ node?

Thanks very much for your help.

Martin


On 7/5/2013 7:34 PM, Simon MacMullen wrote:
> That is definitely very odd.
> 
> The only explanation I can think of is that there is somehow another
> copy of Mochiweb (of a different version) in your Erlang code path. We
> have sometimes seen this happen when using buggy RPM or deb packages for
> Erlang programs which are not RabbitMQ; sometimes these packages make
> the mistake of installing into the Erlang OTP directory and thus being
> forcibly visible to every running Erlang application.
> 
> Does that sound like something that could be happening?
> 
> Cheers, Simon
> 
> On 05/07/2013 9:00AM, Martin Dimitrov wrote:
>> Hello,
>>
>> I get strange error when trying to access the management plugin HTTP
>> endpoint. The error is:
>>
>> Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection
>> without sending any data.
>>
>> In the logs I see:
>>
>> =CRASH REPORT==== 12-Apr-2013::04:44:54 ===
>>    crasher:
>>      initial call: mochiweb_acceptor:init/3
>>      pid: <0.274.0>
>>      registered_name: []
>>      exception error: undefined function
>> mochiweb_util:safe_relative_path/1
>>        in function  mochiweb_request:serve_file/4
>>        in call from mochiweb_http:headers/5
>>      ancestors: [rabbit_mochiweb_sup_15672,rabbit_mochiweb_sup,<0.238.0>]
>>      messages: []
>>      links: [<0.261.0>,#Port<0.15975>]
>>      dictionary: []
>>      trap_exit: false
>>      status: running
>>      heap_size: 4185
>>      stack_size: 27
>>      reductions: 1628
>>    neighbours:
>>
>> The version of RabbitMQ is 3.1.3 and here is a list of the enabled
>> plugins:
>>
>> [e] amqp_client               3.1.3
>> [e] mochiweb                  2.3.1-rmq3.1.3-gitd541e9a
>> [E] rabbitmq_management       3.1.3
>> [e] rabbitmq_management_agent 3.1.3
>> [e] rabbitmq_web_dispatch     3.1.3
>> [e] webmachine                1.9.1-rmq3.1.3-git52e62bc
>>
>> Very strange because mochiweb_util:safe_relative_path/1 is present in
>> mochiweb_util module and the beam is inside the mochiweb package.
>>
>> Thank you very much for your time.
>>
>> Martin
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>



More information about the rabbitmq-discuss mailing list