deadtrickster / prometheus_rabbitmq_exporter

Prometheus.io exporter as a RabbitMQ Managment Plugin plugin
MIT License
291 stars 72 forks source link

Permission denied for /etc/rabbitmq/rabbitmq.config #21

Closed consult-kk closed 7 years ago

consult-kk commented 7 years ago

Hi, When I use this Dockerfile, I get an error message saying "Permisson denied: /etc/rabbitmq/rabbitmq.config"

any help is greatly appreciated

deadtrickster commented 7 years ago

Hi,

this is my log

21:19 $ docker run --rm -ti -p 15672:15672 deadtrickster/rabbitmq_prometheus:latest

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Starting RabbitMQ 3.6.9 on Erlang 19.3
Copyright (C) 2007-2016 Pivotal Software, Inc.
Licensed under the MPL.  See http://www.rabbitmq.com/

              RabbitMQ 3.6.9. Copyright (C) 2007-2016 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: tty
  ######  ##        tty
  ##########
              Starting broker...

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
node           : rabbit@1e27de92fd11
home dir       : /var/lib/rabbitmq
config file(s) : /etc/rabbitmq/rabbitmq.config
cookie hash    : 2SKy9lVA57PPRonjvyPKUQ==
log            : tty
sasl log       : tty
database dir   : /var/lib/rabbitmq/mnesia/rabbit@1e27de92fd11

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Memory limit set to 6412MB of 16030MB total.

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Disk free limit set to 50MB

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Limiting to approx 1048476 file handles (943626 sockets)

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
FHC read buffering:  OFF
FHC write buffering: ON

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Database directory at /var/lib/rabbitmq/mnesia/rabbit@1e27de92fd11 is empty. Initialising from scratch...

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
    application: mnesia
    exited: stopped
    type: temporary

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Waiting for Mnesia tables for 30000 ms, 9 retries left

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Waiting for Mnesia tables for 30000 ms, 9 retries left

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Waiting for Mnesia tables for 30000 ms, 9 retries left

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Priority queues enabled, real BQ is rabbit_variable_queue

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Starting rabbit_node_monitor

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Management plugin: using rates mode 'basic'

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
msg_store_transient: using rabbit_msg_store_ets_index to provide index

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
msg_store_persistent: using rabbit_msg_store_ets_index to provide index

=WARNING REPORT==== 12-Apr-2017::18:20:41 ===
msg_store_persistent: rebuilding indices from scratch

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Adding vhost '/'

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Creating user 'guest'

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Setting user tags for user 'guest' to [administrator]

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Setting permissions for 'guest' in '/' to '.*', '.*', '.*'

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
started TCP Listener on [::]:5672

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Management plugin started. Port: 15672

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Statistics database started.
 completed with 10 plugins.

=INFO REPORT==== 12-Apr-2017::18:20:41 ===
Server startup complete; 10 plugins started.
 * prometheus_httpd
 * prometheus_rabbitmq_exporter
 * rabbitmq_management
 * rabbitmq_management_agent
 * rabbitmq_web_dispatch
 * amqp_client
 * cowboy
 * cowlib
 * prometheus
 * prometheus_process_collector

but I have rabbtimq.config on the host:

cat /etc/rabbitmq/rabbitmq.config 
[
].
deadtrickster commented 7 years ago

Closing this, feel free to reopen/comment.