Skip to content

rabbitmqctl status errors and claims that rabbit_amqp1_0:list_local/0 is an undefined function #13021

Closed Answered by michaelklishin
hzsunzixiang asked this question in Other
Discussion options

You must be logged in to vote

rabbitmq-diagnostics status (exactly the same command as rabbitmqctl status) calls
rabbit:status/0:

  def run([], %{node: node_name, timeout: timeout}) do
    :rabbit_misc.rpc_call(node_name, :rabbit, :status, [], timeout)
  end

rabbit:status/0 is defined in rabbit.erl.

It calls a lot of functions but the most relevant parts is rabbit_networking:local_connections/0
which looks like this:

-spec local_connections() -> [rabbit_types:connection()].
local_connections() ->
    Amqp091Pids = pg_local:get_members(rabbit_connections),
    Amqp10Pids = rabbit_amqp1_0:list_local(),
    Amqp10Pids ++ Amqp091Pids.

and rabbit_amqp1_0:list_loca/0 does exist in v4.0.x, and its exported:

-module(rabbit_am…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by michaelklishin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13021 on January 06, 2025 00:16.