[rabbitmq-discuss] unable to connect to node

John Cartwright - NOAA Federal john.c.cartwright at noaa.gov
Thu Nov 29 04:21:31 GMT 2012


Thanks again Tim, I appreciate your interest.

the /var/run/rabbitmq problem is easy to reproduce:

1) mkdir /var/run/rabbitmq
2) start the server
3) stop the server
4) directory is gone

As for the plugins file, I'll go through and double-check my
installation steps.  I'd misunderstood from
http://www.rabbitmq.com/install-generic-unix.html that I was supposed
to use SYS_PREFIX to modify data directories.

--john


On Wed, Nov 28, 2012 at 3:35 PM, Tim Watson <tim at rabbitmq.com> wrote:
> Hi John,
>
> On 28 Nov 2012, at 18:42, John Cartwright - NOAA Federal wrote:
>
>> Thanks Tim.  There seem to be a couple of problems re: the RPM
>> install, but the "unable to connect to node" appears to be related to
>> relocating the SYS_PREFIX outside the install directory.  In other
>> words:
>>
>> 1) I stopped the server started by the init.d script and killed the
>> epmd process manually to get a clean start
>> 2) install the rabbitmq-server-generic-unix-3.0.0.tar.gz, modifying
>> rabbitmq-defaults to set SYS_PREFIX to a directory other than the
>> install directory.
>> 3) started the server
>> 4) same problem with the status reporting "unable to connect to node".
>> Also found that I was unable to install a plugin getting the error:
>>           Error: {cannot_read_enabled_plugins_file,
>>           "/data/rabbitmq/etc/rabbitmq/enabled_plugins",eisdir}
>>
>
> Well that's very odd. This posix error seems to indicate that the location that RABBITMQ_ENABLED_PLUGINS_FILE is pointing to is in fact a directory. Does that mean anything to you?
>
>> 5) stopped the server with "rabbitmqctl stop"
>> 6) unset the custom SYS_PREFIX in rabbitmq-defaults and restarted the server
>> 7) started the server and not status reports normally
>>
>> The init.d script packaged in the RPM is removing the
>> /var/run/rabbitmq directory on stopping and not re-creating it on
>> startup, but that's a different issue...
>>
>
> Hmn, that doesn't sound right. We'll take a look at that. Can you explain how you came across this behaviour, i.e., how it became apparent so that we can try to reproduce it?
>
>> So, do you know of any reason why relocating the data (log, mnesia,
>> enabled_plugins) should be any different that simply changing the
>> SYS_PREFIX in rabbitmq-defaults?
>>
>
> You should 'relocate' things by following the instructions in http://www.rabbitmq.com/relocate.html rather than by changing SYS_PREFIX, which is an undocumented variable and therefore subject to change and could lead to undefined behaviour if altered. Although I'm not looking at the startup script right this second, iirc this variable is just used as a base so it *seems* like changing it should 'just work' (tm) but as it's not documented I'd recommend not doing that. You can set RABBITMQ_BASE instead, though the effect this will have depends on how you're installing. Again please see http://www.rabbitmq.com/relocate.html for all the gory details.
>
> Cheers,
> Tim
>
>> --john
>>
>> On Wed, Nov 28, 2012 at 11:21 AM, Tim Watson <tim at rabbitmq.com> wrote:
>>> I seem to remember having problems when using the init.d script directly rather than `/sbin/service rabbitmq-server start` although that may have been to do with the account from which I ran it the first time. Anyway, are you sure that the rabbitmq-server process is running? You should see an instance of 'beam.smp' when running `ps` if it is, or alternatively you can run `epmd -names` as any user to see which erlang nodes are up and running.
>>>
>>> Cheers,
>>> Tim
>>>
>>> On 28 Nov 2012, at 16:55, John Cartwright - NOAA Federal wrote:
>>>
>>>> Hello All,
>>>>
>>>> I've installed the RPM ( from
>>>> http://www.rabbitmq.com/install-rpm.html) on a RHEL6 server and used
>>>> the init.d script "rabbitmq-server" to start the server.  However,
>>>> when I  run "rabbitmqctl status", I get the following suggesting
>>>> there's a problem:
>>>>
>>>> [rabbitmq at squall rabbitmq]$ ./bin/rabbitmqctl status
>>>> Status of node rabbit at squall ...
>>>> Error: unable to connect to node rabbit at squall: nodedown
>>>>
>>>> DIAGNOSTICS
>>>> ===========
>>>>
>>>> nodes in question: [rabbit at squall]
>>>>
>>>> hosts, their running nodes and ports:
>>>> - squall: [{rabbitmqctl23373,52427}]
>>>>
>>>> current node details:
>>>> - node name: rabbitmqctl23373 at squall
>>>> - home dir: /home/rabbitmq
>>>> - cookie hash: 0W8f6ODD6SgYDvLAojR/Zw==
>>>>
>>>>
>>>> I've confirmed there's a .erlang.cookie in the home directory of the
>>>> process owner.  Can someone please help me understand what the problem
>>>> might be?
>>>>
>>>> Thanks!
>>>>
>>>> --john
>>>> _______________________________________________
>>>> rabbitmq-discuss mailing list
>>>> rabbitmq-discuss at lists.rabbitmq.com
>>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>
>>> _______________________________________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.rabbitmq.com
>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
> _______________________________________________
> 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