title: Mongo vs Mongoid - why can 1 connect and the other not?
body: <p>I have a rails-app which uses both mongoid and mongo. I use mongoid for my own models, and I use mongo because I have ruote with a ruote-mon storage.</p>
  
  <p>In production however; I get</p>
  
  <pre><code>Mongo::ConnectionFailure: Failed to connect to a master node at localhost:27017
  </code></pre>
  
  <p>when I try to connect to the ruote storage. Even when I just do <code>Mongo::MongoClient.new</code></p>
  
  <p>Steps I have taken so far to try to resolve this:</p>
  
  <ol>
  <li><p>I have made my mongodb an explicit master by setting <code>master = true</code> in <code>/etc/mongod.conf</code></p></li>
  <li><p>There are no $ENV variables set that could intervene with <code>Mongo::MongoClient.new</code> (double checked)</p></li>
  <li><p>I have tried to connect using <code>Mongo::MongoClient.new(:slave_ok =&gt; true)</code> - same error</p></li>
  <li><p>I have restarted my mongo database several times (w/o success).</p></li>
  <li><p>I have checked my firewall settings and I can connect to localhost:27017 with telnet (as said, the mongoid documents can be fetched and stored w/o issue)</p></li>
  </ol>
  
  <p>I am out of my wits... Any suggestions?</p>