recover queue and messages after (rabbitMQ restart)

1,060 views
Skip to first unread message

Kamran Sohail

unread,
Jan 4, 2016, 12:50:49 AM1/4/16
to rabbitmq-users
Hi,

I am new in RabbitMQ, I am able to install and config RabbitMQ, I also got success for publishing and consuming messages.

I have tried couple of things,

1- I make messages persistent, after that I reboot the SERVER, and check the queue and queue was there.

2 - Then I restart the app by using following commands but all of the queues and messages got lost.

rabbitmqctl stop_app
rabbitmqctl reset
rabbitmqctl start_app

Anyone can guide me that how to recover queues or what are the pre-steps required to recover the queue after rabbitMQ restart.

Looking forward to your help.

Kind Regards,
Kamran



 

Michael Klishin

unread,
Jan 4, 2016, 12:54:14 AM1/4/16
to rabbitm...@googlegroups.com, Kamran Sohail
On 4 January 2016 at 08:50:52, Kamran Sohail (evs.k...@gmail.com) wrote:
> 2 - Then I restart the app by using following commands but all
> of the queues and messages got lost.
>
> rabbitmqctl stop_app
> rabbitmqctl reset

The line above resets the node. This involves DELETING ALL DATA on the node .

> Anyone can guide me that how to recover queues or what are the pre-steps
> required to recover the queue after rabbitMQ restart.

See above. You cannot recover anything after a reset.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Kamran Sohail

unread,
Jan 4, 2016, 1:31:20 AM1/4/16
to rabbitmq-users, evs.k...@gmail.com
Hi Michael,

Thanks for clarification it help me alot.
Reply all
Reply to author
Forward
0 new messages