title: Ruby on Rails Mongoid and Webfaction: Not Authorized For Query (Error 16550)
body: <p>I am using version 2.4.4, followed the procedures at <a href="http://docs.webfaction.com/software/mongodb.html" rel="nofollow">http://docs.webfaction.com/software/mongodb.html</a> and am using Mongoid with Ruby on Rails. I also have created a user at the db I am using with the "userAdminAnyDatabase" permission and am using it with this rails mongoid config:</p>
  
  <pre><code>production:
    sessions:
      default:
        database: &lt;table&gt;
        hosts:
          - localhost:&lt;port&gt;
        username: &lt;user&gt;
        password: &lt;password&gt;
  </code></pre>
  
  <p>I have the server runing with --auth flags and I also tried the user with the mongodb cpmmand line and it works but with my Rails app deployed I am still getting: </p>
  
  <blockquote>
    <p>failed with error 16550: "not authorized for query on </p>
  </blockquote>
  
  <p>Is there something I am missing? Perhaps a special user I need to create?</p>