rabbitmq-diagnostics command crashing sometimes

Hi Team,

We have 3 rmq node cluster and other 20+ application running in one VM.

In our startup script we are running “rabbitmq-diagnostics check_running” command for every 20 seconds to make sure rmq is in running state.

Some times the command is getting crashed and we are getting some erlang errors which is not understandable. Due to this issue our service is getting restarted and sometimes it results in to outage. Please help us to understand the issue. 

There is no issue observed on the server logs. Only this command is impacting.  

Below is the error :

    :erlang.open_port({:spawn_executable, ‘/usr/bin/sh’}, [{:args, [‘-ex’, ‘-c’, ‘. “/etc/rabbitmq/rabbitmq-env.conf” && echo “—–BEGIN VARS LIST FOR PID 47800—–” && set’]}, {:env, [{‘SYS_PREFIX’, []}, {‘RABBITMQ_HOME’, ‘/usr/lib/rabbitmq/lib/rabbitmq_server-3.8.8’}, {‘CONFIG_FILE’, ‘/etc/rabbitmq/rabbitmq’}, {‘ADVANCED_CONFIG_FILE’, ‘/etc/rabbitmq/advanced.config’}, {‘MNESIA_BASE’, ‘/var/lib/rabbitmq/mnesia’}, {‘ENABLED_PLUGINS_FILE’, ‘/etc/rabbitmq/enabled_plugins’}, {‘PLUGINS_DIR’, ‘/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.8.8/plugins’}, {‘CONF_ENV_FILE_PHASE’, ‘rabbtimq-prelaunch’}]}, :binary, :use_stdio, :stderr_to_stdout, :exit_status])
    src/rabbit_env.erl:1506: :rabbit_env.do_load_conf_env_file/3
    (stdlib) lists.erl:1263: :lists.foldl/3
    src/rabbit_env.erl:69: :rabbit_env.get_context/0
    (rabbitmqctl) lib/rabbitmq/cli/core/config.ex:90: RabbitMQ.CLI.Core.Config.get_system_option/2
    (rabbitmqctl) lib/rabbitmq/cli/core/config.ex:23: RabbitMQ.CLI.Core.Config.get_option/2
    (rabbitmqctl) lib/rabbitmqctl.ex:246: RabbitMQCtl.merge_defaults_node/1
    (rabbitmqctl) lib/rabbitmqctl.ex:240: RabbitMQCtl.merge_all_defaults/1

Thanks in Advance,

Prasanth.

Read more here: Source link