login community faq
0
1

Hi.

I would like to experiment with Rabbit MQ. Can I do this on a shared server?

-Will

asked Feb 26 '11 at 15:47

uglycitrus's gravatar image

uglycitrus
32


Yes, you can run Rabbit MQ on our servers.

answered Feb 26 '11 at 15:53

aaronh's gravatar image

aaronh ♦♦
12593

Awesome - thanks - i've got rabbit mq downloaded and I think I'm ready to go...

Ok - I'm a bit of a newb here. I think I'm going to have to sudo here, and I understand that webfaction has strict guidelines that strongly suggest all users (especially including newbs) not get drunk on power with sudo privileges. I have the .rpm file in my ~/lib directory. Is it cool to cd into there and run:

sudo rpm -ivh rabbitmq-server-2.3.1-1.noarch.rpm

do I have that line right? will this install it?

Thanks Again.

(Feb 26 '11 at 23:30) uglycitrus uglycitrus's gravatar image

Hi,

You don't have access to sudo at all, so you won't be able to use the RPM package. You can install it from source by running ./configure --prefix=$HOME the make && make install.

(Feb 26 '11 at 23:34) klynton ♦♦ klynton's gravatar image

I'm back to put up an almost complete answer to my question. This is how to (almost) install Rabbit MQ:

  1. download the tar.gz file here: http://www.rabbitmq.com/server.html
  2. follow instructions for installing under "Generic Unix or Linux (BSD, Mac OS X)" here: http://www.rabbitmq.com/install.html#generic-unix. My rabbitmq-server script ended up looking like:
    CONFIG_FILE=~/lib/rabbitmq_stuff
    LOG_BASE=~/logs/user/rabbitmq
    MNESIA_BASE=~/lib/rabbitmq_stuff
    If you do not have erlang installed, you will need to keep reading
  3. download erlang from: http://www.erlang.org/download.html
  4. untar it
  5. configure it. DON'T JUST ./configure SET A BASE DIRECTORY YOU KNOW YOU HAVE ACCESS TO W/ ./configure --prefix=<BaseDir>
  6. make it
  7. make install it
  8. add erl to your $PATH

Now the only trouble I have is figuring out this error:

[uglycitrus@web122 sbin]$ sh rabbitmq-server 
Activating RabbitMQ plugins ...
0 plugins activated:

ERROR: unexpected epmd error: address

If you have any ideas, let me know.

answered Feb 27 '11 at 16:42

uglycitrus's gravatar image

uglycitrus
32

edited Feb 27 '11 at 17:00

seanf's gravatar image

seanf ♦♦
38951217

Thanks for cleaning that up Sean.

You have any ideas on how to debug this "unexpected epmd error"?

Thanks, Will

(Feb 27 '11 at 17:11) uglycitrus uglycitrus's gravatar image

I don't know anything about RabbitMQ specifically, but I'll take a guess and say that you're trying to run RabbitMQ listening on a port that is already in use. Try creating a 'custom app listening on port' application in our control panel to get a random port assigned to you, then configure your app to listen on that port.

(Feb 27 '11 at 17:15) seanf ♦♦ seanf's gravatar image

Tried that, but it didn't work.

Then tried assigning it to some other ports that my apps are using - didn't work.

Then ran "netstat --tcp --udp --listening --program" and tried a few random ports - also didn't work

none of these even changed the error :(

Anything else you can suggest?

(Feb 27 '11 at 18:17) uglycitrus uglycitrus's gravatar image

Hi,

It seems you maybe using a bad address for your RabbitMQ install.

Can you tell us the output of?

<path-where-epmd is-installed="">/epmd -names
(Feb 27 '11 at 19:35) neeravk ♦♦ neeravk's gravatar image

I've got my listening port on 13375. I don't know why epmd is always running on 4369. I have problems regardless of whether or not epmd is running on 13375. Here's what I got when trying to get rabbitmq working:

    [uglycitrus@web122 ~]$ ~/lib/otp_src_R14B01/bin/i686-pc-linux-gnu/epmd -names
epmd: Cannot connect to local epmd
[uglycitrus@web122 ~]$ ~/lib/otp_src_R14B01/bin/i686-pc-linux-gnu/epmd -port 13375 -names
epmd: up and running on port 13375 with data:
[uglycitrus@web122 ~]$ ~/lib/rabbitmq_server-2.3.1/sbin/rabbitmq-server 
Activating RabbitMQ plugins ...
0 plugins activated:

ERROR: unexpected epmd error: address

[uglycitrus@web122 ~]$ 
[uglycitrus@web122 ~]$ 
[uglycitrus@web122 ~]$ 
[uglycitrus@web122 ~]$ 
[uglycitrus@web122 ~]$ 
[uglycitrus@web122 ~]$ 
[uglycitrus@web122 ~]$ 
[uglycitrus@web122 ~]$ ~/lib/otp_src_R14B01/bin/i686-pc-linux-gnu/epmd -names
epmd: up and running on port 4369 with data:
[uglycitrus@web122 ~]$ ~/lib/otp_src_R14B01/bin/i686-pc-linux-gnu/epmd -port 13375 -names
epmd: up and running on port 13375 with data:

answered Mar 01 '11 at 20:24

uglycitrus's gravatar image

uglycitrus
32

Hi,

What exactly is the problem when you run it on the correct port?

If you need more help, you can always file a ticket with us at https://help.webfaction.com

Hope that helps!

(Mar 01 '11 at 21:27) neeravk ♦♦ neeravk's gravatar image

I'm not quite sure which "it" you're talking about.

The problem is that every time I run rabbitmq, it will not start, and it gives me a a cryptic error related to erlang's epmd function.

epmd seems to be running on the correct port (13375) with rabbitmq, but rabbitmq still won't run. Also of concern is that epmd keeps running on port 4369, and I cannot figure out why.

(Mar 02 '11 at 08:41) uglycitrus uglycitrus's gravatar image

Which port is epmd running on? 13375 or 4369? Which is the port number assigned to your Custom App Listening On Port application that you created through the online Control Panel?

Note that you should not be running anything on port numbers different than the ones assigned to your apps in the Control Panel.

(Mar 02 '11 at 09:18) tie tie's gravatar image

Perhaps this has all been figured out by everyone, but here is what I did to get RabbitMQ and epmd running on a specified port:

  1. Created two custom apps in the WebFaction panel so I could reserve my port (for epmd and rabbitmq).

  2. In sbin/rabbitmq-env, I added these lines add the top:

export ERL_EPMD_PORT=*custom epmd port number*
export RABBITMQ_NODE_PORT=*custom rabbitmq port number*
  1. Followed dlamotte's instructions (below) regarding a custom hosts file. (Thank you dlamotte!)

  2. Ran sbin/rabbitmq-server.

Right now, RabbitMQ seems to work correctly. Has anyone else solved the problem this way? Perhaps this isn't the right way to do it?

(Apr 19 '11 at 12:25) hjkl hjkl's gravatar image

I literally just burned 2+ hours on this. Not sure if it's documented anywhere, but this url helped me resolve this exact issue:

http://www.somic.org/2009/02/19/on-rabbitmqctl-and-badrpcnodedown/

You NEED to tell erlang to ignore the local /etc/hosts file/native system call method of looking up the host. Webfaction sets it up so that there is a firewall if the host attempts to connect to the public? IP. Here's what you need to do:

In rabbitmq-env somewhere:

export ERL_INETRC=$HOME/.erl_inetrc

% cat $HOME/.erl_inetrc
{hosts_file, "/home/<your_user_name>/hosts"}.
{lookup, [file,native]}.

% cat $HOME/hosts
127.0.0.1 localhost.localdomain localhost
::1      localhost6.localdomain6 localhost6
127.0.0.1 web159 web159.webfaction.com

Where web159 is what comes from running:

% hostname
web159.webfaction.com

Hope that helps...

answered Mar 15 '11 at 23:13

dlamotte's gravatar image

dlamotte
11

edited Mar 15 '11 at 23:14

dlamotte,

i can't quite follow what you did there.

are you talking about adding this to the rabbitmq-env shell script in the sbin directory? what is .erl_inetrc? could this be the same as "lib/erl_interface"? what's up with the mix of shell script and erlang? how does the erlang get executed?

(Apr 07 '11 at 07:19) uglycitrus uglycitrus's gravatar image

That worked perfectly, thanks a lot!

(Feb 25 at 19:03) vasek1 vasek1's gravatar image

HOSTNAME=localhost /usr/local/sbin/rabbitmq-server

answered Apr 05 '11 at 15:25

milandobrota's gravatar image

milandobrota
1

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×3

Asked: Feb 26 '11 at 15:47

Seen: 2,498 times

Last updated: Feb 25 at 19:03

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited