Upgrading from RabbitMQ 1.8 to 2.1

RabbitMQ 2.1 has a new disk based persistor which solves the major problem I and some others had with 1.8 where too many messages kill a rabbit instance if the server didn’t have enough RAM to¬†accommodate. I have a quick script that creates my user and permissions which I’ve used before when upgrading or setting up new servers. However my user was refused access to his queues even though the same set_permissions command worked fine on 1.8
One caveat when upgrading to 2.1 is that the set_permissions call sets scope to “client” by default which caused all my requests to be refused. All it took was adding “-s all”. So, future Googlers, the set_permissions command is:

rabbitmqctl set_permissions -p myvhost -s all myuser “.*” “.*” “.*”

One Response to “Upgrading from RabbitMQ 1.8 to 2.1”

Leave a Reply