Changing RABBITMQ_BASE Directory for Windows Installation

Recent versions of Perceptive Content require a user to utilize the RabbitMQ messaging service. By default, RABBITMQ_BASE (data and log) folder is set to %APPDATA%RabbitMQ. This location is tied to the user who performed the install, making it inconvenient for anyone else when trying to troubleshoot the RabbitMQ installation. You may also run into permissions issues where the Local Service account is not able to access user’s AppData folder, in which case the service will crash without generating any errors.

Here is a straightforward way to place data into a folder that is easily accessible.

1

After install is complete – Open Elevated (Run as Administrator) Command prompt, navigate to the sbin directory.

2

During install uncheck the RabbitMQ service.

3

Run: set RABBITMQ_BASE=C:Program FilesRabbitMQ Serverdata. This sets variable that is used by the installer, that otherwise defaults to %APPDATA%RabbitMQ

4

Run: rabbitmq-service install

5

Start the RabbitMQ service.

6

Run: rabbitmqctl status to check status.

7

Add the user and set permissions:

  • rabbitmqctl add_user USERNAME PASSWORD
  • rabbitmqctl set_permissions -p / USERNAME “.*” “.*” “.*”

Optional: Run rabbitmqctl report > report.txt to output a report of the current state to file.

And that is all! Hopefully by following the simple steps above you are able to correctly and efficiently install RabbitMQ into a folder that does not cause future permissions issues, problems with troubleshooting, or (seemingly but not) random crashes that can be frustrating.