Added instructions on how to run mongod --repair
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 17 Jul 2011 17:02:13 +0000 (12:02 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 17 Jul 2011 17:02:13 +0000 (12:02 -0500)
docs/hackinghowto.rst

index 0e3202ce1430b4d882da8170c49c0ca34f3614c7..caafba53657eec61814f26ec239cf5adc56528fa 100644 (file)
@@ -194,7 +194,14 @@ If it's installed, check the mongodb log.  On my machine, that's
 
     old lock file: /var/lib/mongodb/mongod.lock.  probably means...
 
-Then delete the lock file and relaunch mongodb.
+in that case you might have had an unclean shutdown.  Try::
+
+    sudo mongod --repair
+
+If that didn't work, just delete the lock file and relaunch mongodb.
+
+Anyway, then start the mongodb server in whatever way is appropriate
+for your distro / OS.
 
 
 pkg_resources.DistributionNotFound: distribute