rabbitmq_prometheus CRASH REPORT

123 views
Skip to first unread message

Liangping Ren

unread,
May 19, 2020, 11:43:25 PM5/19/20
to rabbitmq-users

hi

    when i fellow the doc (https://www.rabbitmq.com/prometheus.html) to enable rabbitmq_prometheus, but got a crash report log


Snipaste_2020-05-20_11-41-11.png

    i donot modify any conf file,need some modify?

    thanks!

mor info:

Runtime

OS PID: 20889
OS: Linux
Uptime (seconds): 59127
RabbitMQ version: 3.8.2
Node name: rabbit@kihan_rmq_prod_cloud_4
Erlang configuration: Erlang/OTP 23 [erts-11.0] [source] [64-bit] [smp:24:6] [ds:24:6:10] [async-threads:96] [hipe]
Erlang processes: 603 used, 1048576 limit
Scheduler run queue: 1
Cluster heartbeat timeout (net_ticktime): 60

Plugins

Enabled plugin file: /etc/rabbitmq/enabled_plugins
Enabled plugins:

 * rabbitmq_prometheus
 * prometheus
 * rabbitmq_management
 * rabbitmq_web_dispatch
 * rabbitmq_management_agent
 * amqp_client
 * cowboy
 * cowlib

Liangping Ren

unread,
May 20, 2020, 12:16:59 AM5/20/20
to rabbitmq-users
sorry ,copy the text info.

[root@kihan_rmq_prod_cloud_4 ~]#rabbitmq-plugins enable rabbitmq_prometheus
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
Enabling plugins on node rabbit@kihan_rmq_prod_cloud_4:
rabbitmq_prometheus
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_prometheus
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@kihan_rmq_prod_cloud_4...

Unable to update config for app rabbit from a .conf file:  The app is already running.
The following plugins have been enabled:
  rabbitmq_prometheus

started 1 plugins.
[root@kihan_rmq_prod_cloud_4 ~]#curl -v -H "Accept:text/plain" "http://localhost:15692/metrics"
* About to connect() to localhost port 15692 (#0)
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 15692 (#0)
> GET /metrics HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:15692
> Accept:text/plain
< HTTP/1.1 500 Internal Server Error
< content-length: 0
* Connection #0 to host localhost left intact
[root@kihan_rmq_prod_cloud_4 ~]#cat /var/log/rabbitmq/log/crash.log
2020-05-20 11:34:47 =CRASH REPORT====
  crasher:
    initial call: cowboy_stream_h:request_process/3
    pid: <0.29611.1>
    registered_name: []
    exception error: bad argument
    ancestors: [<0.29610.1>,<0.27980.1>,<0.27979.1>,rabbit_web_dispatch_sup,<0.716.0>]
    message_queue_len: 0
    messages: []
    links: [#Port<0.7967>,<0.29610.1>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 75113
    stack_size: 28
    reductions: 3596312
  neighbours:
2020-05-20 11:34:47 =ERROR REPORT====
Ranch listener rabbit_web_dispatch_sup_15692, connection process <0.29610.1>, stream 1 had its request process <0.29611.1> exit with reason badarg and stacktrace []
[root@kihan_rmq_prod_cloud_4 ~]#rabbitmqctl report
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
Reporting server status of node rabbit@kihan_rmq_prod_cloud_4 ...

Status of node rabbit@kihan_rmq_prod_cloud_4 ...
Runtime

OS PID: 20889
OS: Linux
Uptime (seconds): 59127
RabbitMQ version: 3.8.2
Node name: rabbit@kihan_rmq_prod_cloud_4
Erlang configuration: Erlang/OTP 23 [erts-11.0] [source] [64-bit] [smp:24:6] [ds:24:6:10] [async-threads:96] [hipe]
Erlang processes: 603 used, 1048576 limit
Scheduler run queue: 1
Cluster heartbeat timeout (net_ticktime): 60

Plugins

Enabled plugin file: /etc/rabbitmq/enabled_plugins
Enabled plugins:

 * rabbitmq_prometheus
 * prometheus
 * rabbitmq_management
 * rabbitmq_web_dispatch
 * rabbitmq_management_agent
 * amqp_client
 * cowboy
 * cowlib

Data directory

Node data directory: /var/lib/rabbitmq/mnesia/rabbit@kihan_rmq_prod_cloud_4

Config files

 * /etc/rabbitmq/rabbitmq.conf

Log file(s)

 * /var/log/rabbitmq/rabbitXkihan_rmq_prod_cloud_4.log
 * /var/log/rabbitmq/rabbitXkihan_rmq_prod_cloud_4_upgrade.log

Alarms

(none)

Memory

Calculation strategy: rss
Memory high watermark setting: 0.4 of available memory, computed to: 12.8849 gb
allocated_unused: 0.044 gb (32.38 %)
other_proc: 0.0297 gb (21.87 %)
other_system: 0.0272 gb (20.0 %)
code: 0.0272 gb (19.98 %)
other_ets: 0.0033 gb (2.43 %)
plugins: 0.0016 gb (1.19 %)
atom: 0.0014 gb (1.01 %)
binary: 0.0004 gb (0.3 %)
mgmt_db: 0.0004 gb (0.3 %)
metrics: 0.0002 gb (0.16 %)
connection_other: 0.0002 gb (0.12 %)
mnesia: 0.0001 gb (0.11 %)
msg_index: 0.0001 gb (0.07 %)
connection_readers: 0.0001 gb (0.04 %)
quorum_ets: 0.0 gb (0.03 %)
connection_channels: 0.0 gb (0.01 %)
connection_writers: 0.0 gb (0.0 %)
queue_procs: 0.0 gb (0.0 %)
queue_slave_procs: 0.0 gb (0.0 %)
quorum_queue_procs: 0.0 gb (0.0 %)
reserved_unallocated: 0.0 gb (0.0 %)

File Descriptors

Total: 8, limit: 204703
Sockets: 2, limit: 184230

Free Disk Space

Low free disk space watermark: 0.05 gb
Free disk space: 322.1166 gb

Totals

Connection count: 2
Queue count: 3
Virtual host count: 3

Listeners

Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: [::], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
Interface: [::], port: 15672, protocol: http, purpose: HTTP API
Interface: [::], port: 15692, protocol: http/prometheus, purpose: Prometheus exporter API over HTTP

在 2020年5月20日星期三 UTC+8上午11:43:25,Liangping Ren写道:

Liangping Ren

unread,
May 22, 2020, 2:32:45 AM5/22/20
to rabbitmq-users
i chaned erlang version to 22 and  solved this problem.


在 2020年5月20日星期三 UTC+8上午11:43:25,Liangping Ren写道:

hi

Wesley

unread,
May 22, 2020, 2:48:13 AM5/22/20
to rabbitm...@googlegroups.com
Liangping Ren wrote:
> i chaned erlang version to 22 and  solved this problem.

do you mean change to Erlang/OTP 22?
Thanks.
Reply all
Reply to author
Forward
0 new messages