Erlang Mailing Lists

Author Message

<  RabbitMQ mailing list  ~  Issues with rabbitmq and manual configured hostname

Guest
Posted: Thu Oct 08, 2009 12:06 pm Reply with quote
Guest
Hi Rabbits,

I had tried rabbitmq-1.7.0 with the following
config:

[root@lnxv-3339:~]$ cat /etc/rabbitmq/rabbitmq.conf
NODENAME=wico@localhost
RABBITMQ_MNESIA_BASE=/data/netapp/config/tmp/rabbitmq-DB/mnesia

localhost is listed in /etc/hosts

If I start rabbitmq, odd things are happen:

========================= >% ===========================

[root@lnxv-3339:~]$ Erlang has closed
/etc/init.d/rabbitmq-server start
Starting rabbitmq-server: Starting all nodes...
Starting node wico@localhost@lnxv-3339...

+---+ +---+
| | | |
| | | |
| | | |
| +---+ +-------+
| |
| RabbitMQ +---+ |
| | | |
| v1.7.0 +---+ |
| |
+-------------------+
AMQP 8-0
Copyright (C) 2007-2009 LShift Ltd., Cohesive Financial Technologies
LLC., and Rabbit Technologies Ltd.
Licensed under the MPL. See http://www.rabbitmq.com/

node : wico@localhost
app descriptor:
/usr/lib64/rabbitmq/lib/rabbitmq_server-1.7.0/sbin/../ebin/rabbit.app
home dir : /var/lib/rabbitmq
cookie hash : XVo5QytTWAtzrwBowsFu3A==
log : /var/log/rabbitmq/wico@localhost.log
sasl log : /var/log/rabbitmq/wico@localhost-sasl.log
database dir : /data/netapp/config/tmp/rabbitmq-DB/mnesia/wico@localhost

starting database ...done
starting core processes ...done
starting recovery ...done
starting persister ...done
starting guid generator ...done
starting builtin applications ...done
starting TCP listeners ...done
starting SSL listeners ...done

broker running

Error: cannot_get_pid
FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.


========================= >% ===========================

Again: cannot_get_pid, but the queue is running (we can
connect etc.). We need a "positive result" if rabbitmq
is started. For now we get an exit != 0 (cannot_get_pid).

With Version 1.7.0 rabbitmqctl status gives:

========================= >% ===========================

[root@lnxv-3339:~]$ rabbitmqctl -n wico@localhost status
Status of node wico@localhost ...
[{running_applications,[{rabbit,"RabbitMQ","1.7.0"},
{mnesia,"MNESIA CXC 138 12","4.4.7"},
{os_mon,"CPO CXC 138 46","2.1.8"},
{sasl,"SASL CXC 138 11","2.1.5.4"},
{stdlib,"ERTS CXC 138 10","1.15.5"},
{kernel,"ERTS CXC 138 10","2.12.5"}]},
{nodes,[wico@localhost]},
{running_nodes,[wico@localhost]}]
...done.

========================= >% ===========================

This seems to be ok now.

Again - I'm unable to stop rabbitmq correctly:

========================= >% ===========================

[root@lnxv-3339:~]$ /usr/sbin/rabbitmq-multi stop_all
Stopping all nodes...
Error: no_nodes_running

========================= >% ===========================

But there are nodes running as rabbitmqctl shows (and
we can connect to). Wink


Can someone give me a hint?
Sorry for going like a bull at a gate...



Greetings,
Martin


VZnet Netzwerke Ltd. || Saarbr
Guest
Posted: Thu Oct 08, 2009 2:18 pm Reply with quote
Guest
majek04 wrote:
> On Thu, Oct 8, 2009 at 13:06, Martin Wilhelm <mwilhelm@vz.net> wrote:
>> [root@lnxv-3339:~]$ cat /etc/rabbitmq/rabbitmq.conf
>> NODENAME=wico@localhost
>> RABBITMQ_MNESIA_BASE=/data/netapp/config/tmp/rabbitmq-DB/mnesia
>
> First, I think you should use RABBITMQ_NODENAME instead of NODENAME.
> This shouldn't make much difference, but it's preferred.

err, quite the opposite. Settings in rabbitmq.conf should not have the
RABBITMQ_ prefix. That way one can still override the settings from the
command line.

> Second, we set the nodename using erlang "-sname" short name option.
> This mean that you shouldn't use "@" notation. In your case specifying
> "RABBITMQ_NODENAME=wico" might work.

Indeed the scripts assume that the @ suffix is absent.

The reason Martin wants to set the node name to <something>@localhost is
so that it remains the same when failing over to a different machine.

It would be quite easy to change the scripts (well, actually the erlang
code behind them) to accept suffixed node names. I will file a bug for that.


Matthias.

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Thu Oct 08, 2009 3:20 pm Reply with quote
Guest
Matthias Radestock wrote:

> The reason Martin wants to set the node name to <something>@localhost is
> so that it remains the same when failing over to a different machine.
>
> It would be quite easy to change the scripts (well, actually the erlang
> code behind them) to accept suffixed node names. I will file a bug for that.

Yes, this is the point.


Martin
VZnet Netzwerke Ltd. || Saarbr
Guest
Posted: Thu Oct 08, 2009 9:35 pm Reply with quote
Guest
Martin,

Matthias Radestock wrote:
> Indeed the scripts assume that the @ suffix is absent.
>
> The reason Martin wants to set the node name to <something>@localhost is
> so that it remains the same when failing over to a different machine.
>
> It would be quite easy to change the scripts (well, actually the erlang
> code behind them) to accept suffixed node names. I will file a bug for
> that.

The 'bug21771' branch in hg addresses the above. Feel free to give it a
try. The usual disclaimers about using unreleased code apply.


Regards,

Matthias.

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
wuji
Posted: Tue Sep 11, 2012 1:51 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
JCPenney and Chrysler, though, decided not to buy airtime during the episode. episode. designer replica *beep* episode. Wendy's decided not to advertise on "The Ellen Show" at all.A
has changed since the day that show first aired.JCPenney has tapped DeGeneres DeGeneres cheap authentic jordans DeGeneres as its spokeswoman and supported its decision even when One Million
a "pro-family advocacy" group, threatened to boycott the national retail chain for for [h3]cheap Ralph Lauren[/h3] for refusing to fire her.In 1996, a Gallup poll showed that the
approval rating for gay marriage was 27 percent. It is more than than [h4]discount designer *beep*[/h4] than 50 percent today.And there are now 34 shows featuring gay characters
leading and supporting roles -- not including reality TV -- compared to to cheap replica *beep* to only 11 shows in 1997.In the "20/20" interview, DeGeneres said she
willing to risk people knowing."I decided this was not going to be be [h4]cheap Ralph Lauren Polo[/h4] be something that I was going to live the rest of my
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