title: Celery-Beat: ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN
body: <p>I'm getting an error on the celery-beat container.</p>
  
  <p><strong>Celery-Beat Error Logs:</strong></p>
  
  <pre><code>[2018-11-27 12:40:21,139: WARNING/MainProcess] (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
  [2018-11-27 12:40:21,241: WARNING/MainProcess] Sentry is attempting to send 1 pending error messages
  [2018-11-27 12:40:21,241: WARNING/MainProcess] Waiting up to 10 seconds
  [2018-11-27 12:40:21,241: WARNING/MainProcess] Press Ctrl-C to quit
  celery beat v4.0.2 (latentcall) is starting.
  __    -    ... __   -        _
  LocalTime -&gt; 2018-11-27 12:40:19
  Configuration -&gt;
      . broker -&gt; amqp://RabbitUser:**@rabbit:5672//
      . loader -&gt; celery.loaders.app.AppLoader
      . scheduler -&gt; celery.beat.PersistentScheduler
      . db -&gt; celerybeat-schedule
      . logfile -&gt; [stderr]@%INFO
      . maxinterval -&gt; 5.00 minutes (300s)
  </code></pre>
  
  <p><strong>RabbitMq Logs:</strong></p>
  
  <pre><code>=INFO REPORT==== 27-Nov-2018::12:40:19 ===
  closing AMQP connection &lt;0.308.0&gt; (192.168.48.3:36552 -&gt; 192.168.48.4:5672)
  
  =INFO REPORT==== 27-Nov-2018::12:40:24 ===
  accepting AMQP connection &lt;0.313.0&gt; (192.168.48.2:56664 -&gt; 192.168.48.4:5672)
  
  =ERROR REPORT==== 27-Nov-2018::12:40:24 ===
  Error on AMQP connection &lt;0.313.0&gt; (192.168.48.2:56664 -&gt; 192.168.48.4:5672, state: starting):
  AMQPLAIN login refused: user 'RabbitUser' - invalid credentials
  
  =INFO REPORT==== 27-Nov-2018::12:40:24 ===
  closing AMQP connection &lt;0.313.0&gt; (192.168.48.2:56664 -&gt; 192.168.48.4:5672)
  </code></pre>
  
  <p><strong>According to the log, Is it an authentication error?</strong></p>
  
  <p>When I try to curl It connecting to the rabbit successfully:</p>
  
  <pre><code>-&gt;curl -i -u RabbitUser:guest http://localhost:5672/api/whoami
    AMQP
  </code></pre>
  
  <p><strong>How can I solve this one?</strong></p>