Unfortunately, I am just now seeing this --
Issues with hostname

RabbitMQ names the database directory using the current hostname of
the system. If the hostname changes, a new empty database is created.
To avoid data loss it's crucial to set up a fixed and resolvable
hostname. For example:

sudo -s # become root
echo "rabbit"> /etc/hostname
echo "127.0.0.1 rabbit">> /etc/hosts
hostname -F /etc/hostname
Whenever the hostname changes you should restart RabbitMQ:
$ /etc/init.d/rabbitmq-server restart
An EC2 server running RabbitMQ (2.2.0) was rebooted and received a new
hostname, and the new database is empty.

I have succeeded in getting access to the database by setting the
RABBITMQ_NODENAME var to the old hostname.

Is there some way of renaming it though, so I can retain the old
database and its configuration, while still implementing the hosts
changes described above?
I tried renaming the directories, but that didn't work.

Or, perhaps, copy it to the new more persistent hostname? I'd rather
not have to go through the setup again.

Thanks in advance,
Liam

--
Liam Kirsher
PGP: http://liam.numenet.com/pgp/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120613/6ed71df6/attachment.htm>

Search Discussions

  • Matthew Sackman at Jun 14, 2012 at 10:10 am
    Hi Liam,
    On Wed, Jun 13, 2012 at 05:45:07PM -0700, Liam Kirsher wrote:
    Is there some way of renaming it though, so I can retain the old
    database and its configuration, while still implementing the hosts
    changes described above?
    I tried renaming the directories, but that didn't work.

    Or, perhaps, copy it to the new more persistent hostname? I'd
    rather not have to go through the setup again.
    Sorry, you can't rename the data on disk - it's an Erlang issue rather
    than a RabbitMQ issue and there's no work around, sorry.

    Also, 2.2.0 is at least one year old and possibly more like two. You
    really should upgrade if you can - not that it would solve this issue
    mind you.

    Matthew

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedJun 14, '12 at 12:45a
activeJun 14, '12 at 10:10a
posts2
users2
websiterabbitmq.com
irc#rabbitmq

2 users in discussion

Liam Kirsher: 1 post Matthew Sackman: 1 post

People

Translate

site design / logo © 2017 Grokbase