xarg / rabbitmq-statefulset

An example of RabbitMQ Kubernetes using StatefulSet
14 stars 16 forks source link

MQTT login failed for "username" auth_failure: Refused #1

Closed dimthe closed 6 years ago

dimthe commented 6 years ago

hello

can you give some insight as to why i get these errors ?

kubectl logs rabbitmq-0

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

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
Starting RabbitMQ 3.6.14 on Erlang 19.2.1
Copyright (C) 2007-2017 Pivotal Software, Inc.
Licensed under the MPL.  See http://www.rabbitmq.com/

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
node           : rabbit@rabbitmq-0
home dir       : /var/lib/rabbitmq
config file(s) : /etc/rabbitmq/rabbitmq.config
cookie hash    : O7rCJeUuDjZW050KDHGMJw==
log            : tty
sasl log       : tty
database dir   : /var/lib/rabbitmq/mnesia/rabbit@rabbitmq-0

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
Memory high watermark set to 25624 MiB (26869143961 bytes) of 64061 MiB (67172859904 bytes) total

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
Enabling free disk space monitoring

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
Disk free limit set to 50MB

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
Limiting to approx 1048476 file handles (943626 sockets)

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
FHC read buffering:  OFF
FHC write buffering: ON

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
Database directory at /var/lib/rabbitmq/mnesia/rabbit@rabbitmq-0 is empty. Initialising from scratch...

=INFO REPORT==== 27-Nov-2017::14:47:56 ===
    application: mnesia
    exited: stopped
    type: temporary

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Waiting for Mnesia tables for 30000 ms, 9 retries left

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Waiting for Mnesia tables for 30000 ms, 9 retries left

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Waiting for Mnesia tables for 30000 ms, 9 retries left

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Priority queues enabled, real BQ is rabbit_variable_queue

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Starting rabbit_node_monitor

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Management plugin: using rates mode 'basic'

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
msg_store_transient: using rabbit_msg_store_ets_index to provide index

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
msg_store_persistent: using rabbit_msg_store_ets_index to provide index

=WARNING REPORT==== 27-Nov-2017::14:47:58 ===
msg_store_persistent: rebuilding indices from scratch

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Adding vhost '/'

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Creating user 'guest'

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Setting user tags for user 'guest' to [administrator]

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Setting permissions for 'guest' in '/' to '.*', '.*', '.*'

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
started TCP Listener on [::]:5672

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
MQTT retained message store: rabbit_mqtt_retained_msg_store_dets

=WARNING REPORT==== 27-Nov-2017::14:47:58 ===
Transport option binary unknown or invalid.

=WARNING REPORT==== 27-Nov-2017::14:47:58 ===
Transport option {packet,raw} unknown or invalid.

=WARNING REPORT==== 27-Nov-2017::14:47:58 ===
Transport option {reuseaddr,true} unknown or invalid.

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
started MQTT TCP Listener on [::]:1883

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
rabbit_web_mqtt: listening for HTTP connections on 0.0.0.0:15675

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Management plugin started. Port: 15672

=INFO REPORT==== 27-Nov-2017::14:47:58 ===
Statistics database started.
 completed with 8 plugins.

=INFO REPORT==== 27-Nov-2017::14:47:59 ===
Server startup complete; 8 plugins started.
 * rabbitmq_management
 * rabbitmq_web_mqtt
 * rabbitmq_mqtt
 * rabbitmq_management_agent
 * rabbitmq_web_dispatch
 * cowboy
 * cowlib
 * amqp_client

=INFO REPORT==== 27-Nov-2017::14:48:59 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:48:59 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused

=INFO REPORT==== 27-Nov-2017::14:49:00 ===
MQTT vhost picked using plugin configuration or default

=ERROR REPORT==== 27-Nov-2017::14:49:00 ===
MQTT login failed for "username" auth_failure: Refused
xarg commented 6 years ago

I'm not really familiar with the MQTT plugin, but from the logs it looks like an auth failure.

dimthe commented 6 years ago

i know , do i need to make up my own username and password in the config ? by default it is looking for some username therefore this error

xarg commented 6 years ago

If MQTT uses the same users as RMQ then you can create one by setting them using env vars: https://github.com/xarg/rabbitmq-statefulset#config

xarg commented 6 years ago

Also unrelated, but at work we're using the official image now, the alpine base image in this repo turned out to be unstable for us.

xarg commented 6 years ago

I can share our helm chart if you like.

dimthe commented 6 years ago

please share

xarg commented 6 years ago

Well, if you ask so nicely.

xarg commented 6 years ago

I just pushed the chart on master