title: Broke MongoDB schema version 3 but found 1
body: <p>I was following instructions at <a href="http://lukaszkups.net/blog/0006_deploying_meteorjs_app_to_own_server_via_ssh/" rel="nofollow">http://lukaszkups.net/blog/0006_deploying_meteorjs_app_to_own_server_via_ssh/</a> to configure mongo for use with meteor on my ubuntu 10.04 on EC2, realised my mongo was old (2.4.9) so upgraded it to 2.6.11, that is when the schema version mismatch started, need help to fix it. </p>
  
  <pre><code>&gt; db = db.getSiblingDB('admin')
  admin
  
  &gt; db.addUser({user: 'admin', pwd: 'myPassword', roles: ['userAdminAnyDatabase']})
  WARNING: The 'addUser' shell helper is DEPRECATED. Please use 'createUser' instead 
  2015-10-29T14:15:14.850+0000 Error: couldn't add user: User and role management commands require auth data to have schema version 3 but found 1 at src/mongo/shell/db.js:1086
  
  &gt; db.createUser({user: 'admin', pwd: 'myPassword', roles: ['userAdminAnyDatabase']})
  2015-10-29T14:15:34.788+0000 Error: couldn't add user: User and role management commands require auth data to have schema version 3 but found 1 at src/mongo/shell/db.js:1086
  
  &gt; db = db.getSiblingDB("admin").runCommand({authSchemaUpgrade: 1 });
  { "done" : true, "ok" : 1 }
  
  &gt; db.createUser({user: 'admin', pwd: 'myPassword', roles: ['userAdminAnyDatabase']})
  2015-10-29T14:18:03.809+0000 TypeError: Object [object Object] has no method 'createUser'
  
  &gt; db = db.getSiblingDB("admin").runCommand({authSchemaUpgrade: 3 });
  2015-10-29T14:18:32.005+0000 TypeError: Object [object Object] has no method 'getSiblingDB'
  
  &gt; db.system.version.update({}, {$set: {currentVersion: 3}});
  2015-10-29T14:19:34.554+0000 TypeError: Cannot read property 'version' of undefined
  
  &gt;  db = db.getSiblingDB("admin").runCommand({authSchemaUpgrade: 1 });
  2015-10-29T14:20:06.042+0000 TypeError: Object [object Object] has no method 'getSiblingDB'
  
  &gt; db = db.getSiblingDB('admin')
  2015-10-29T14:20:20.370+0000 TypeError: Object [object Object] has no method 'getSiblingDB'
  
  &gt; db.system.version.update({}, {$set: {currentVersion: 3}});
  2015-10-29T14:23:33.677+0000 TypeError: Cannot read property 'version' of undefined
  
  &gt; use admin
  2015-10-29T14:24:14.413+0000 TypeError: Object [object Object] has no method 'getMongo' at src/mongo/shell/utils.js:533
  
  &gt; version
  function version() { [native code] }
  
  &gt; db = db.system.version.update({}, {$set: {currentVersion: 3}});
  2015-10-29T14:52:19.697+0000 TypeError: Cannot read property 'version' of undefined
  &gt;
  </code></pre>
  
  <p>Now mongodb would not start. </p>
  
  <pre><code>ubuntu$ sudo service mongodb restart
  stop: Unknown instance:
  mongodb stop/waiting
  ubuntu$ sudo service mongodb start
  mongodb stop/waiting
  </code></pre>