Erlang Mailing Lists

Author Message

<  RabbitMQ mailing list  ~  mochiweb plugin

Guest
Posted: Mon Oct 19, 2009 1:04 am Reply with quote
Guest
Hi,

I'm trying to use the rabbitmq-mochiweb plugin as explained in http://www.rabbitmq.com/plugin-development.html#getting-started
I have several issues with it.

rabbitmq_mochiweb.app is missing rabbit_mochiweb_registry in the list of modules

When activating the rabbitmq-mochiweb plugin, mochiweb is not included in the erlang path.
I needed to add the mochiweb folder to the rabbitmq-server/plugins directory in addition to rabbitmq-mochiweb.
Isn't the plugin suppose to take care of that?

When trying to activate the rabbitmq-jsonrpc I'm getting:
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbit_jsonrpc,{bad_return,{{rabbit_jsonrpc,start,[normal,[]]},{'EXIT',{noproc,{gen_server,call,[rabbit_mochiweb_registry,{add,#Fun<rabbit_mochiweb.0.118905840>,#Fun<rabbit_jsonrpc.0.21203153>}]}}}}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,rabbit_jsonrpc,{bad_return,{{rabbit_jsonrpc,start,[normal,[]]},{'EXIT',{noproc,{gen_server,call,[rabbit_mochiweb_registry,{
make: *** [run] Error 1

The README of the rabbitmq-mochiweb is outdated.

Thanks



Post received from mailinglist
Guest
Posted: Mon Oct 19, 2009 7:53 am Reply with quote
Guest
Hi Ben,

We'll have a look at these issues and get them corrected as quickly as possible.

As for installing mochiweb, the mochiweb.ez file does need to be installed into your plugin directory - the rabbitmq-mochiweb is mainly focussed on providing a support layer around it.

Can you explain more about the process that you're following to get the error you report? The plugin activation process itself shouldn't cause applications to be started - I'm assuming you're seeing this error when booting rabbit after installing the plugins?

Paul.

On Mon, Oct 19, 2009 at 2:03 AM, Ben Browitt <ben.browitt@gmail.com (ben.browitt@gmail.com)> wrote:
Quote:
Hi,

I'm trying to use the rabbitmq-mochiweb plugin as explained in http://www.rabbitmq.com/plugin-development.html#getting-started
I have several issues with it.

rabbitmq_mochiweb.app is missing rabbit_mochiweb_registry in the list of modules

When activating the rabbitmq-mochiweb plugin, mochiweb is not included in the erlang path.
I needed to add the mochiweb folder to the rabbitmq-server/plugins directory in addition to rabbitmq-mochiweb.
Isn't the plugin suppose to take care of that?

When trying to activate the rabbitmq-jsonrpc I'm getting:
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbit_jsonrpc,{bad_return,{{rabbit_jsonrpc,start,[normal,[]]},{'EXIT',{noproc,{gen_server,call,[rabbit_mochiweb_registry,{add,#Fun<rabbit_mochiweb.0.118905840>,#Fun<rabbit_jsonrpc.0.21203153>}]}}}}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,rabbit_jsonrpc,{bad_return,{{rabbit_jsonrpc,start,[normal,[]]},{'EXIT',{noproc,{gen_server,call,[rabbit_mochiweb_registry,{
make: *** [run] Error 1

The README of the rabbitmq-mochiweb is outdated.

Thanks



_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com (rabbitmq-discuss@lists.rabbitmq.com)
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss




Post received from mailinglist
Guest
Posted: Mon Oct 19, 2009 8:08 am Reply with quote
Guest
On Mon, Oct 19, 2009 at 9:52 AM, Paul Jones <pauljones23@gmail.com (pauljones23@gmail.com)> wrote:
Quote:
Hi Ben,

We'll have a look at these issues and get them corrected as quickly as possible.

As for installing mochiweb, the mochiweb.ez file does need to be installed into your plugin directory - the rabbitmq-mochiweb is mainly focussed on providing a support layer around it.

If mochiweb.ez should be installed in the plugin directory it will help if you can document it or even better create two plugins, rabbitmq-mochiweb for the wrapper and mochiweb for mochiweb itself.
Guest
Posted: Mon Oct 19, 2009 8:25 am Reply with quote
Guest
Ben,

On Mon, Oct 19, 2009 at 9:08 AM, Ben Browitt <ben.browitt@gmail.com (ben.browitt@gmail.com)> wrote:
Quote:
If mochiweb.ez should be installed in the plugin directory it will help if you can document it or even better create two plugins, rabbitmq-mochiweb for the wrapper and mochiweb for mochiweb itself.
Guest
Posted: Mon Oct 19, 2009 8:33 am Reply with quote
Guest
On Mon, Oct 19, 2009 at 10:24 AM, Paul Jones <pauljones23@gmail.com (pauljones23@gmail.com)> wrote:
Quote:
Ben,

On Mon, Oct 19, 2009 at 9:08 AM, Ben Browitt <ben.browitt@gmail.com (ben.browitt@gmail.com)> wrote:
Quote:
If mochiweb.ez should be installed in the plugin directory it will help if you can document it or even better create two plugins, rabbitmq-mochiweb for the wrapper and mochiweb for mochiweb itself.
Guest
Posted: Mon Oct 19, 2009 9:04 am Reply with quote
Guest
Ben,

On Mon, Oct 19, 2009 at 9:32 AM, Ben Browitt <ben.browitt@gmail.com (ben.browitt@gmail.com)> wrote:
Quote:

I've repeated all the steps and still getting the error.
It happens when jsonrpc tries to use rabbit_mochiweb_registry. Erlang complains that the proc is not registered.

Quote:

As an aside, if you're wanting the functionality previously provided by rabbitmq-http2, then you'll also want to link in the rabbitmq-jsonrpc-channel plugin - this plugin provides the actual support for making JSON-RPC calls against the rabbit channel objects.




I know. I'm trying to create a plugin that uses the mochiweb plugin but got errors so I've tried using the jsonrpc
plugin as a reference but got the same errors.





I take it that when you remove the jsonrpc plugin, the broker starts up ok? If it does, can you bring up the Erlang toolbar (toolbar:start()), open the application monitor, and let me know what processes are running under the rabbit_mochiweb application? I'd be interested to know if the registry is perhaps crashing out.

If you just try to register a static docroot from an Erlang terminal in this state (Rabbit running, but with no plugins other than mochiweb/rabbit_mochiweb), does it work?

Another option when developing plugins is to do a "make run" from the plugin directory. As long as you've declared the dependencies in the Makefile (and are using our standard include.mk), then you should find that it will auto-wire the dependencies automatically, and prevent you needing to do symlinks.

Paul.




Post received from mailinglist
Guest
Posted: Mon Oct 19, 2009 9:22 am Reply with quote
Guest
On Mon, Oct 19, 2009 at 10:11 AM, Ben Browitt <ben.browitt@gmail.com (ben.browitt@gmail.com)> wrote:
Quote:

I've removed the umbrella folder and repeated all the steps. The jsonrpc plugin is running now so I don't know
what happened before. If it'll crash again I'll use the toolbar and report my findings as you explained above.





I'm glad to hear it went away. As you say though - if it does happen again, the findings would be very interesting.
wuji
Posted: Wed Sep 19, 2012 2:45 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
take effect for years, this method would not disable the the cheap replica *beep* the law quickly enough to appease the GOP and meet
Day One timeframe.Second, he could instruct his administration not to to [h1]cheap polo shirts[/h1] to enforce the law. This tactic is similar to Obama's
that his administration would no longer deport undocumented immigrants, "but "but cheap replica *beep* "but on steroids," Dorf said."It's not that he would be
one part of the act above another, he would be be authentic jordans be saying he wouldn't do any of it," Dorf said.Obama's
decision "was at the edge of what a president can can knockoff designer *beep* can do," he added. "What Romney would be proposing to
would go way beyond that."Romney's third and most "radical" option, option, real jordans option, Dorf said, would be to assert an independent duty
president to act on his own interpretation of the Constitution, Constitution, [h3]cheap replica *beep*[/h3] Constitution, despite the Supreme Court's ruling. Thomas Jefferson was the
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum