The openbeeportalRabbitMQ service does not start

Symptoms

In a Windows environment, the following “openbeeportalRabbitMQ” service is in error or starts and then stops

Versions impactéesset_permissions

Open Bee™ Portal version 6.x. randomly on certain installations

Resolution

Recommendation

The first intention as a solution is to restart the openbeeportalRabbitMQ service and then the “openbeeportal AMQP High Priority Queue” and “openbeeportal AMQP Low Priority Queue” services.
Always launch commands for this item:
– In a console as an admin
– From the C:Program Files (x86)OpenBeeOpenBeePortal5Utilityrabbitmqrabbitmq_server-3.5.3sbin folder (to be adapted according to the installation path) for windows

Step 1:

  • Check if the environment variable “path” contains the paths of the Windows commands To replace “%SystemRoot%system32; %SystemRoot%; %SystemRoot%System32Wbem; %SYSTEMROOT%System32WindowsPowerShellv1.0;” BY C:Windowssystem32; C:Windows; C:WindowsSystem32Wbem; C:WindowsSystem32WindowsPowerShellv1.0;

Step 2:

  • Check if the user “openbee” exists with the command “rabbitmqctl list_users”:

rabbitmqctl list_users

If it does not exist, create it by manually running the following commands:

rabbitmqctl.bat add_user openbee Openbee74

rabbitmqctl.bat set_permissions -p / openbee “.*” “.*” “.*”

rabbitmqctl.bat” delete_user guest

  • Restart the openbeeportalRabbitMQ service and then the “openbeeportal AMQP High Priority Queue” and “openbeeportal AMQP Low Priority Queue” services.

Step 3:

  • Run rabbitmq-server.bat and see if the service stays started and the problem no longer arises, if it is the case you have to stop the execution of rabbitmq-server.bat then run the following command:

SC delete openbeeportalRabbitMQ

  • Restart the console in administrator mode and then run the following command:

SC create openbeeportalRabbitMQ binpath=””C:Program Files (x86)erl6.4erts-6.4binerlsrv.exe””

  • Restart the openbeeportalRabbitMQ service and then the “openbeeportal AMQP High Priority Queue” and “openbeeportal AMQP Low Priority Queue” services.

Step 4:

  • From the admin panel, uninstall “ErLang OPT” if it is installed.
  • Restart the machine
  • From a console launched as an administrator, the Open Bee™ Portal installation folder, run:
    • “Utilityrabbitmqotp_win32_17.5.exe” (for versions <=6.11.3)
    • “Utilityrabbitmqotp_win64_17.5.exe” (for versions >=6.11.4)
    • “Utilityrabbitmqinstall-service.bat”

Step 5:

See the logs under C:ProgramDataRabbitMQlog for more details on the issue

Step 6:

Rename the ‘db’ folder to ‘db-0’ under C:ProgramDataRabbitMQ and then restart the service