title: MongoError: not authorized on to execute command { find: "app_updates", filter: { key: "0.0.1-admins" }, limit: 1, batchSize: 1, singleBatch: true }
body: <p>I start a KeystoneJS project following <a href="http://keystonejs.com/getting-started/" rel="nofollow noreferrer">this method</a>. But after entering the project root directory and running <code>node keystone.js</code> I receive the error:</p>
  
  <pre><code>------------------------------------------------
  An error occurred applying updates, bailing on Keystone init.
  
  Error details:
  MongoError: not authorized on &lt;KeystoneJS project name&gt; to execute command { find: "app_updates", filter: { key: "0.0.1-admins" }, limit: 1, batchSize: 1, singleBatch: true }
  </code></pre>
  
  <p>I researched on this error but I couldn't resolve it. I'm on OpenSUSE, and was working with <code>nodejs8</code> package.</p>
  
  <hr>
  
  <p>When I start the mongodb on systemd by running:</p>
  
  <pre><code>$ sudo systemctl start mongodb.service
  </code></pre>
  
  <p>... I receive  the above error.</p>
  
  <hr>
  
  <p>But when I start the mongodb by running: </p>
  
  <pre><code>$ sudo mongod
  </code></pre>
  
  <p>... I don't receive any error and keystonejs works fine, I'm not sure why!</p>
  
  <hr>
  
  <p>When I start mongodb by running <code>$ sudo mongod -f /etc/mongodb.conf</code> I receive the above error. But When I start mongodb by running <code>$ sudo mongod</code>, I don't receive any error. Therefore, looks like the problem cause is within the <code>/etc/mongodb.conf</code> file which is as follows:</p>
  
  <pre><code># mongod.conf
  
  # for documentation of all options, see:
  #   http://docs.mongodb.org/manual/reference/configuration-options/
  
  # Where and how to store data.
  storage:
    dbPath: /var/lib/mongodb
    #dbPath: /data/db/
    journal:
      enabled: true
  #  engine:
  #  mmapv1:
  #  wiredTiger:
  
  # Where and how to log messages.
  systemLog:
    destination: file
    logAppend: true
    path: /var/log/mongodb/mongod.log
    logRotate: reopen
  
  # What type of connections to allow.
  net:
    port: 27017
    bindIp: 127.0.0.1
    ipv6: true
    http:
      enabled: false
      JSONPEnabled: false
      RESTInterfaceEnabled: false
  
  
  # How to manage mongod.
  processManagement:
    fork: true
  
  # Security settings.
  security:
    authorization: enabled
  
  #operationProfiling:
  
  #replication:
  
  #sharding:
  
  ## Enterprise-Only Options:
  
  #auditLog:
  
  #snmp:
  </code></pre>