We are integrating RabbitMQ into our software and expose a simple API to start/stop RabbitMQ.
When someone starts RabbitMQ I reset the node, start it, add a user and delete the guest user. When I delete the guest user (rabbitmqctl delete_user guest) I always get this error. Not sure what it means. Read Simon's answer to a similar sounding question in which he said it's related to the resetting of the node.
Deleting user "guest" ...
Thanks Simon. That is consistent with what I observed as well. If I stepped through my program in a debugger it would work fine, indicating that it was a race condition. I put in a bunch of Sleep statements to make it work, but I'll use wait as you suggest for a cleaner solution.