-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't connect to rabbit node? #20
Comments
change ./start.sh : -name alice -> -sname alice@h8 and well be the same cookie Erlang |
@dieu that doesn't help either:
|
I'm seeing the same thing. I'm on OS X. My buddy, who is using Ubuntu has the same problem. I've yet to see Alice working properly. I'm surprised I don't see more complaints. =ERROR REPORT==== 16-Dec-2009::13:20:16 === I have mabel pointed to 127.0.0.1 in my hosts file, and I have been trying various sname suggestions I've seen in the Git issues. Help. |
@ask and what is your OS? I helped to Debian, only I set a cookie through a file ~ /. erlang.cookie |
@dieu: Debian Lenny, RabbitMQ 1.7.0 |
I configure which host should alice use and got next =ERROR REPORT==== 17-Dec-2009::20:20:10 === |
@amishyn please
But in general need to change the host name, it certainly not used validated characters. |
try to link the two erlang node in the cluster, through net_adm:ping(), what a net_adm:names() shows a remote node, nothing says they can still not contacted for some other errors. |
I've been having this problem on a RedHat box, and I just got it solved. This was probably due to my overwhelming ignorance of Erlang than anything else, but here is what I did.
This worked for me. |
Running on Snow Leopard...had to change rabbitmq-server to use -name instead of -sname and then make sure to use ./startup.sh -setcookie to the same cookie as rabbitmq. |
I've now been trying for about a week to get this to work =(. Regarding my current problem: If I just use: I get a bunch of loading info which ends in: I'm guessing the issue is the cookie, but that is the one in my "~/.erlang.cookie" which is marked as touched today, I've looked in the "/var/lib/rabbitmq/.erlang.cookie" and that file is stale. Regardless of what I do I just can't seem to make it connect? I've well and truly had several good cracks at this and am not getting anywhere; any help anyone? A full dump is pasted below:
|
It is also worth noting I'm not a Linux or Erlang expert, so my problem is probably quite a simple/stupid one. Is there anyway to figure out what the cookie is for the running rabbitmq server (other than the file) or a better way to set it? |
I have the exact same problem, and log output as whbath. I have been working on this for a few days and haven't managed to get anywhere either. Is there anyone out there who has had any success with this? Talking to quite a few folks on IRC, I have yet to meet one that has successfully got this thing to start. Anyone have any school to lend? Thanks, |
I did make it start at some point, but that was before, with other erlang/rabbitmq versions, so I guess it's some issue introduced with the new versions. |
on centos, with rabbitmq 1.7.0 installed from rpm, I got it working by changing start.sh basically "-name" to "-sname" and it worked for me. |
Interesting, I am also on CentOS running RabbitMQ 1.7.0 installed from RPM. I tried changing -name to -sname as you suggest, but my error remains the same. stack trace: jjackson@sfqload01 /data/distributed_email/alice make[1]: Entering directory =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =INFO REPORT==== 10-Feb-2010::19:01:31 === =INFO REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === rabbit node : rabbit@sfqload01 Make sure your rabbitmq server's .erlang.cookie file matchesStarting mochiweb_http with 9999 =INFO REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === =PROGRESS REPORT==== 10-Feb-2010::19:01:31 === BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded I have tried variations of sname and name, verified that the erlang cookie in my home matches the erlang cooking in /var/lib/rabbitmq. Tried pulling those options out of the start script and passing them in on the cli, but nothing seems to work. Thoughts anyone? |
Just a thought, but do any permissions / users / etc.. need to be set up in rabbit for this to work? Does there need to be a user "alice" or anything of the like? Trying to understand why it just loses the connection to rabbit.. |
Ad the user rabbitmq, in the home dir /var/lib/rabbitmq, I ran this: /start.sh -alice rabbithost "rabbit@rust" -setcookie where 'rust' is my short hostname. |
bcotton: what does you start.sh script look like? Do you have -sname or -name specified? I am still getting the same error. My start.sh: I moved the doc root for alice to /var/lib/rabbitmq/alice to mirror what you have above. I verified that the .erlang.cookie file in /var/lib/rabbitmq and in the home directory of the user are the same. I have tried running the start script as root and as a user. I included the output as a pastie to keep our dialog shorter :-) Thanks for the help, I am sure I'm missing some mundane detail.. As always.. |
This issue hasn't been updated since February, it means everyone got their problem solved? ;) More seriously though, I'd appreciate it if anyone can share their updates. So far I'm stuck at this: rabbitmq complains when I force it to use a FQDN (using RABBITMQ_NODENAME), and Alice complains when I use a non FQDN. What am I missing?
P.S. Using Ubuntu 9.10, RabbitMQ 1.7.2 (their .deb package), today's HEAD of Alice |
I got it working after checking the erl(1) man page, which said this about
and about
So it was pretty clear to me I needed I believe the author already mentioned the above somewhere, though I couldn't get it right the first time, perhaps as I was trying different things at the same time. Cheers, |
for anyone else who is having trouble with this: my cookie was in /var/lib/rabbitmq/.erlang.cookie |
All, I had this issue for a long time as well, and the suggestion to just use -sname instead of -name is not enough for everyone. I solved it by noting that my rabbitmq was running as:
whereas alice was trying to connect to:
Although I didn't think it would make a difference (on Windows here for testing), it certainly does. Overriding alice by using (at the end of the start command):
Or by modifying RabbitMQ to use the default lowercase hostname that is preferred when no host is provided. Hope this helps. |
Running ./start.sh I get the following:
Any idea what this could be? rabbit@h8 is definitely running, alive and well.
Using RabbitMQ 1.7.0
The text was updated successfully, but these errors were encountered: