title: Could not connect to a primary node for replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>
body: <p>I'm following though with the RailsApp tutorial with Devise and Mongoid (<a href="http://railsapps.github.io/tutorial-rails-mongoid-devise.html" rel="nofollow noreferrer">http://railsapps.github.io/tutorial-rails-mongoid-devise.html</a>) and am encountering the following error when I get to 'Rake db:seed' down at the 'Set Up a Database Seed File' section. </p>
  
  <pre><code>Could not connect to a primary node for replica set &lt;Moped::Cluster nodes=[&lt;Moped::Node resolved_address="127.0.0.1:27017"&gt;]&gt;
  </code></pre>
  
  <p>I've tried the instructions from nixoncd on this page here but has not fixed the issue. It tells me 'file exists' and 'Already loaded'.  '<a href="https://groups.google.com/forum/#!topic/mongodb-user/Hhh8iNCciMk" rel="nofollow noreferrer">https://groups.google.com/forum/#!topic/mongodb-user/Hhh8iNCciMk</a></p>
  
  <p>I get this if I type 'mongod' in terminal.</p>
  
  <pre><code>ERROR: could not read from config file
  </code></pre>
  
  <p>Any help welcome.  I'm on a Mac OSX Mountain Lion with Mongoid installed using homebrew - though MongoDB was installed using the download package mongodb.org.</p>
  
  <p>MongoDB shell version: 2.4.6</p>
  
  <p>Thanks</p>
  
  <p>EDIT: I'm not sure if this issue is related or not. Also having issues launching mongoDB.  Also posted issue here:
  <a href="https://stackoverflow.com/questions/18565789/mongodb-could-not-read-from-config-file-config-in-different-folder-uninsta">mongoDB, could not read from config file -- config in different folder / Uninstall it?</a></p>