[rabbitmq-discuss] Changing hostname under rabbitmq-server

Robert Raschke rtrlists at googlemail.com
Fri Feb 12 15:51:34 GMT 2010

On Fri, Feb 12, 2010 at 3:13 PM, Peter Fitzgibbons <
peter.fitzgibbons at gmail.com> wrote:

> HI Folks,
> My newbie status is visible in this problem.
> I'm wanting to use Alice/Wonderland to monitor my RabbitMQ instance.
> Unfortunately, my hostname at the time if RabbitMQ install was
> 'vm-peter-u804B'  -- no domain
> So, I changed the system hostname to 'vm-peter-u804B.peter' (/etc/hosts and
> /etc/hostname).  hostname and hostname -s show 'vm-peter-u804B.peter' and
> 'vm-peter-u804B'
> I have rebooted several times.
> Now rabbit fails to start with /var/log/rabbitmq/startup_log :
> node          : rabbit at vm-peter-u804B
> app descriptor:
> /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.1/sbin/../ebin/rabbit.app
> home dir      : /var/lib/rabbitmq
> cookie hash   : x3xctmeBS7wtsHr18+Og1w==
> log           : /var/log/rabbitmq/rabbit.log
> sasl log      : /var/log/rabbitmq/rabbit-sasl.log
> database dir  : /var/lib/rabbitmq/mnesia/rabbit
> starting database             ...timeout
> {"init terminating in
> do_boot",{{nocatch,{error,{cannot_start_application,rabbit,{{timeout_waiting_for_tables,[rabbit_user,rabbit_user_permission,rabbit_vhost,rabbit_config,rabbit_durable_route,rabbit_durable_exchange,rabbit_durable_queue]},{rabbit,start,[normal,[]]}}}}},[{init,start_it,1},{init,start_em,1}]}}
> Could anyone shed light on how to make Rabbit/Mnesia happy again?
The Erlang Mnesia database is host specific (because it is a distributed
DB). The simplest way to get you fixed is to clear out the database dir.
That's assuming that you can stand losing any persisted exchanges etc. The
persisted messages are also stored in that folder, but not in Mnesia.

If you need to keep any persisted exchanges, queues, message etc. then that
is a bit harder.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100212/28c1d02c/attachment.htm 

More information about the rabbitmq-discuss mailing list