title: Connection problems - Celery/Django
body: <p>long night... can't get my second Celery/RabbitMQ setup run to work.</p>
  
  <h3>step 1</h3>
  
  <pre><code>sudo rabbitmq-server
  </code></pre>
  
  <p>runs: <strong>ok!</strong></p>
  
  <h3>step 2</h3>
  
  <pre><code>python manage.py celeryd -l info
  </code></pre>
  
  <p>error: <code>[2010-12-28 03:38:24,690: ERROR/MainProcess] CarrotListener: Connection Error: Socket closed. Trying again in 28 seconds...</code></p>
  
  <hr>
  
  <p>I have definitely:</p>
  
  <ul>
  <li>added rabbitmq user and vhost</li>
  <li>updated the Django setings.py</li>
  </ul>
  
  <hr>
  
  <h2>Edit:</h2>
  
  <p>I think it might have to with installing from a .deb instead of apt-get.</p>
  
  <p>After uninstalling the deb and installing the apt-get version I get this:</p>
  
  <pre><code>invoke-rc.d: initscript rabbitmq-server, action "start" failed.
  dpkg: error processing rabbitmq-server (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   rabbitmq-server
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  </code></pre>
  
  <h2>My Solution:</h2>
  
  <blockquote>
    <p>apt-get --purge remove rabbitmq-server</p>
    
    <p>apt-get install rabbitmq-server</p>
  </blockquote>
  
  <p>...no comment...maybe need some sleep :)</p>
  
  <hr>
  
  <p>Any ideas on how I could debug this? :|</p>