Rabbitmq shovel – sync/move queue message

  • Export the queue definition and Import into destination rabbitmq
  • Enable Shovel plugin by running these command inside container
rabbitmq-plugins enable rabbitmq_shovel
rabbitmq-plugins enable rabbitmq_shovel_management
  • Admin > Shovel Management

Note: Source should not include / at the end.

  • Destination: amqp://
  • queue: k1

Error:

2023-11-09 15:24:08.911950+00:00 [error] <0.7052.0>                {child_type,worker}]
2023-11-09 15:24:08.928523+00:00 [error] <0.7502.0> Shovel 's2' failed to connect (URI: amqp://rabbitmqcluster-prod.test/): access to target virtual host was refused
2023-11-09 15:24:08.928734+00:00 [error] <0.7502.0> Shovel 's2' has no more URIs to try for connection
2023-11-09 15:24:08.929101+00:00 [error] <0.7502.0> Shovel 's2' could not connect to source

References: