Local server error with MQTT


#1

Starting from a fresh Ubuntu install, I can have the unit test OK,
but when trying to run with docker-compose up (In production mode or not), I have an error.

Is there any package that’s not in the procedure that I must install?

This is the error message:

E, [2019-02-14T13:04:27.533770 #1] ERROR -- #<Bunny::Session:0x55648b753c90 admin@mqtt:5672, vhost=/, addresses=[mqtt:5672]>: Authentication with RabbitMQ failed: 403 ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.

Connecting to broker in 3 seconds.

2019-02-14 13:04:27.534 [error] <0.777.0> Error on AMQP connection <0.777.0> (172.18.0.8:41832 -> 172.18.0.6:5672, state: starting):
PLAIN login refused: rabbit_auth_backend_cache failed authenticating admin: {failed_connect,
                                                         [{to_address,
                                                          {"192.168.1.7",
                                                           3000}},
                                                          {inet,
                                                           [inet],
                                                           {tls_alert,
                                                            "bad record mac"}}]}

I’ve found this in the rabbit documentation:

Entries containing {tls_alert,“bad record mac”}

The server has tried verifying integrity of a piece of data it received and the check failed. This can be due to problematic network equipment, unintentional socket sharing in the client (e.g. due to the use of fork(2)) or a bug in the client implementation of TLS.