Search code examples
rabbitmqrabbitmq-shovel

RABBITMQ - Applying Plugin Failed


EDIT: After setting the rabbitmq variables up in System Environment Variables and trying another un/reinstall the issue is resolved.

The following plugins have been enabled: rabbitmq_shovel

Applying plugin configuration to rabbit@MSGTEST01... started 1 plugin.

END EDIT

c:\RabbitMQ\rabbitmq_server-3.6.12\sbin>rabbitmq-plugins enable rabbitmq_shovel rabbitmq_shovel_management Plugin configuration unchanged.

Applying plugin configuration to rabbit@M... failed. Error: {enabled_plugins_mismatch,"c:\Users\\AppData\Roaming\RabbitMQ \ENABLE~1", "c:\RabbitMQ\ENABLE~1"}

I set the following then reinstalled the service:

set RABBITMQ_BASE=c:\RabbitMQ
set RABBITMQ_CONFIG_FILE=c:\RabbitMQ\rabbitmq
set RABBITMQ_LOG_BASE=c:\RabbitMQ\logs
set RABBITMQ_MNESIA_BASE=c:\RabbitMQ\db
set RABBITMQ_ENABLED_PLUGINS_FILE=c:\RabbitMQ\enabled_plugins

Why is it still looking in my roaming profile for anything? Moreover, ENABLE~1 doesn't look like a valid filename.

  • I've tried blowing away my roaming profile data, RabbitMQ recreates the files.
  • I've tried copying my C:\RabbitMQ\enables_plugins to roaming, same thing.
  • Tried the reverse, same thing.
  • I've tried uninstalling and resintalling the service, same thing.

I'm able to enable the management ui after install, but not rabbitmq_shovel and cannot figure out what the issue is.

Again, this works after install:

rabbitmq-plugins enable rabbitmq_management

This fails with the error above:

rabbitmq-plugins enable rabbitmq_shovel

I'm running these commands as Admin in CMD.


Solution

  • Set up the variables in System Environment Variables and perform the following in CMD as Admin:

    • rabbitmqctl shutdown
    • rabbitmqctl stop
    • rabbitmq-service.bat remove
    • rabbitmq-service.bat install
    • rabbitmq-service.bat start
    • rabbitmq-plugins enable rabbitmq_management
    • rabbitmq-plugins enable rabbitmq_shovel

    That worked for me.