Federation status command not found via CLI #4064
-
The command I have correctly enable the plug-in, the rabitmq version is 3.8.9 and erlang is 23.1 The alternative web API work correctly but i prefer the command for a script check. What can i do for understand the problem ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
For plugin commands to be discovered, a few things have to hold true:
So my best guess is that either point 1 or 3 are off in your case. It's trivial to see plugins are enabled and inspect the discovered commands using RabbitMQ 3.8.9 is from September 2020 and is close to 20 patch releases behind even 3.8. |
Beta Was this translation helpful? Give feedback.
-
Thanks michaelklishin for arrange for me the discussion, and thanks for help. I try to write a litle bit of information. I use federation for cross comunication between virtual hosts on rabbitmq, so all configuration, upstream, policy ecc, are on the same machine, i haven't a real remote comunication. I run under windows 10, and after installed rabbitmq i have enabled the plugin, then i open the command prompt of rabbitmq using the windows menu, and the console open directly on the correct dir under C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9\sbin then i run "rabbitmq-plugins.bat list" for verify the enabled_plugins file i have run "rabbitmqctl.bat status" (i don't known if this is a correct procedure) but the status show a lot of information including Enabled plugin file: c:/Users/Administrator/AppData/Roaming/RabbitMQ/enabled_plugins
so i have open the c:/Users/Administrator/AppData/Roaming/RabbitMQ/enabled_plugins and inside there is this content: [rabbitmq_federation_management,rabbitmq_management,rabbitmq_shovel_management,rabbitmq_tracing]. but you are right, there is something that i not understand because both command "federation_status" and "shovel_status" return same error, command not found. On the other side if i open the web management console, under admin -> federation status, i can observe that all federation link are running (green state). |
Beta Was this translation helpful? Give feedback.
-
I can reproduce and this is a known behavior: if you don't enable a plugin explicitly, it won't be included in the Enabled Plugins File which CLI tools use to determine what code paths to use to discover commands. Enabling |
Beta Was this translation helpful? Give feedback.
-
Yess, Anyway for all that are in this situation, searching on internet i have found also an alias (i don't know if this is correct) that work also without install plugin explicitly: rabbitmqctl eval "rabbit_federation_status:status()." this work also for shovel. Again thanks michaelklishin. |
Beta Was this translation helpful? Give feedback.
-
We discourage the use of |
Beta Was this translation helpful? Give feedback.
-
I have pushed a couple of updates to our doc guides, such as the CLI guide. They explain that for plugin commands to be discoverable, the plugin must be explicitly enabled. It will take a few minutes for the changes to go live |
Beta Was this translation helpful? Give feedback.
-
The new section is live now |
Beta Was this translation helpful? Give feedback.
I can reproduce and this is a known behavior: if you don't enable a plugin explicitly, it won't be included in the Enabled Plugins File which CLI tools use to determine what code paths to use to discover commands.
Enabling
rabbitmq_federation
explicitly and restarting the node makesfederation_status
discoverable.