title: Allowing RabbitMQ-Server Connections
body: <p>I'm trying to get a Django Celery worker to connect to a RabbitMQ server, all running on the same host.</p>
  
  <p>However, when I run <code>manage.py celery worker</code> all I get is:</p>
  
  <pre><code>[2013-06-11 17:33:41,185: WARNING/MainProcess] celery@localhost has started.
  [2013-06-11 17:33:44,192: ERROR/MainProcess] Consumer: Connection Error: Socket closed. Trying again in 2 seconds...
  [2013-06-11 17:33:50,203: ERROR/MainProcess] Consumer: Connection Error: Socket closed. Trying again in 4 seconds...
  [2013-06-11 17:34:03,214: ERROR/MainProcess] Consumer: Connection Error: Socket closed. Trying again in 6 seconds...
  [2013-06-11 17:34:27,232: ERROR/MainProcess] Consumer: Connection Error: Socket closed. Trying again in 8 seconds...
  </code></pre>
  
  <p>When I inspect my <code>/var/log/rabbitmq/rabbit@localhost.log</code> I see several messages like:</p>
  
  <pre><code>=ERROR REPORT==== 11-Jun-2013::17:33:44 ===
  exception on TCP connection &lt;0.201.0&gt; from 127.0.0.1:43461
  {channel0_error,opening,
                  {amqp_error,access_refused,
                              "access to vhost 'myapp' refused for user 'guest'",
                              'connection.open'}}
  </code></pre>
  
  <p>I'm using the standard package out of Ubuntu 12.04's repo, with the default settings and my django-celery settings look like:</p>
  
  <pre><code>BROKER_HOST = "localhost"
  BROKER_PORT = 5672
  BROKER_USER = "guest"
  BROKER_PASSWORD = "guest"
  BROKER_VHOST = "myapp"
  </code></pre>
  
  <p>Why is RabbitMQ refusing connections?</p>