How to restore the messages after upgrade the Rabbitmq 3.6.10 to 3.7.12

928 views
Skip to first unread message

badrira...@gmail.com

unread,
Mar 25, 2019, 3:46:36 AM3/25/19
to rabbitmq-users
Hi Team,

    Currently I am using RabbitMQ 3.6.10 and  Erlang 19.3.6.4 and I need to upgrade the RabbitMq Version 3.7.12 and Erlang 21.3.
Before going to upgrade i need to take the Definitions and Messages are backup and once upgrade is successfully i need to restore. 

I did restore the Messages after upgradation is successfull but Messages were not restored. I have performed the following steps for backup and restore the both Definitions and Messages in Windows Machine.

Steps :
    
       1. Took Definitions backup through definitions pane on the RMQ Mgmt UI Overview page using export Definition option
       2. Stopped the Rabbitmq Server
       3. Copied the directories (queues, msg_store_persistent, msg_store_transient and recover-dets) manually from the node data directory (AppData\Roaming\RabbitMQ\db\rabbit@INBLR14035WCPR-mnesia).
       4. Performed upgrade process, after upgrade is success with Rabbitmq version 3.7.12 then Server started up automatically.
       5. Imported the Definitons through definitions pane on the RMQ Mgmt UI Overview page (All Definitions are restored successfully)
       6. Messages directories are copied back to msg_stores/vhosts directory  and restarted the Server  (Messages are not restored )



Request you to please help me with this ?


Thanks & Regards,
Badri Ramesh.

Michael Klishin

unread,
Mar 29, 2019, 2:23:59 PM3/29/19
to rabbitmq-users
The only scenario where messages are not moved during upgrade that we are aware of is priority queues. Use the Blue/Green upgrade strategy if you use them [1].
This is something that we plan to address in a patch release.


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
MK

Staff Software Engineer, Pivotal/RabbitMQ

badrira...@gmail.com

unread,
May 3, 2019, 7:36:06 AM5/3/19
to rabbitmq-users
Hi Michael,

  We use Durable queues and I have followed above mentioned steps to restore the messages when upgrade is done from RMQ v3.6.10 to RMQ v3.7.12, but messages do not restore
Can I know the  manual backup and restore procedure in RabbitMQ 3.7.12 on Erlang 21.3 on windows machine ?

Thanks,
Badri.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
May 5, 2019, 4:14:09 PM5/5/19
to rabbitmq-users
There are two three doc guides that cover upgrades: [1][2][3]. The only in place upgrade scenario where queues are not migrated
is priority queues. Those have to be migrated using [3] or a Shovel.

All upgrade steps are logged. Debug logs can reveal even more information. When in doubt don't guess, collect data instead.


To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

badrira...@gmail.com

unread,
May 6, 2019, 8:42:38 AM5/6/19
to rabbitmq-users
Hi  Michael,

   Thanks for the update,

I have followed the below steps as written in the doc: https://www.rabbitmq.com/backup.html, Definitions are restored but Messages/Data are not restored.

  1. Exported the Definitions.
  2. Stopped the Server.
  3. Copied the folders (msg_store_persistent, msg_store_transient, queues, recovery.dets) from the dir : AppData\Roaming\RabbitMQ\db\rabbit@HostName-mnesia  to local folder.
  4. Deleted the RabbitMQ (v3.6.10) Server and newly installed with RabbitMQ (v3.7.12) and enabled the plugins and restarted the server.
  5. Imported the Definitions (all Definitions are restored properly).
  6. Again stopped the server.
  7. Copied the backed up folders (msg_store_persistentmsg_store_transientqueuesrecovery.dets)  to  AppData\Roaming\RabbitMQ\db\rabbit@HostName-mnesia \msg_stores\vhosts\628WB73IFDYLJI6DKMI09L folder.
  8. Restarted the Server (Messages / Data are not restored).

Can you please help me why Messages are not restoring and Do I miss any step ?

Thanks 
  Badri.

Michael Klishin

unread,
May 13, 2019, 11:13:22 AM5/13/19
to rabbitmq-users
3.6 to 3.7 will perform a data directory layout migration on first boot. So any message store files
must be in place on first node start. A 3.7 node won't look for message store segment files and indices in the same places
compared to 3.6.

You can always stand up a new cluster and use Shovel to move messages to the new one.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages