WebFaction
Community site: login faq
0
1

Hi.

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

-Will

asked 26 Feb '11, 15:47

uglycitrus
3112
accept rate: 0%


Yes, you can run Rabbit MQ on our servers.

permanent link

answered 26 Feb '11, 15:53

aaronh ♦♦
1.3k3
accept rate: 34%

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.

(26 Feb '11, 23:30) uglycitrus

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 then make && make install.

(26 Feb '11, 23:34) klynton

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.

permanent link

answered 27 Feb '11, 16:42

uglycitrus
3112
accept rate: 0%

edited 27 Feb '11, 17:00

seanf
12.2k31836

Thanks for cleaning that up Sean.

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

Thanks, Will

(27 Feb '11, 17:11) uglycitrus

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.

(27 Feb '11, 17:15) seanf

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?

(27 Feb '11, 18:17) uglycitrus

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

(27 Feb '11, 19:35) neeravk

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:
permanent link

answered 01 Mar '11, 20:24

uglycitrus
3112
accept rate: 0%

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!

(01 Mar '11, 21:27) neeravk

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.

(02 Mar '11, 08:41) uglycitrus

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.

(02 Mar '11, 09:18) tie

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?

(19 Apr '11, 12:25) hjkl

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...

permanent link

answered 15 Mar '11, 23:13

dlamotte
11
accept rate: 0%

edited 15 Mar '11, 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?

(07 Apr '11, 07:19) uglycitrus

That worked perfectly, thanks a lot!

(25 Feb '12, 19:03) vasek1

Thank you very much! Worked perfectly as well!

(29 May '13, 01:24) vcatalano

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

permanent link

answered 05 Apr '11, 15:25

milandobrota
1
accept rate: 0%

Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×12

question asked: 26 Feb '11, 15:47

question was seen: 15,021 times

last updated: 29 May '13, 12:29

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM