I have just installed Meteor version 0.5.9 (45fef52095) to my CentOS release 6.3 (Final) server (Linux version 2.6.32-279.19.1.el6.i686 (mockbuild@c6b8.bsys.dev.centos.org)
this bug used to happen everytime I restarted meteor and
rm .meteor/local/db/mongod.lock
didn't work for me (i'm working on cloud9 online IDE)
I now do
rm .meteor/local/db/mongod.lock .meteor/local/db/local.*
and everything gets back to normal without erasing my database
Using meteor reset
erases all the data from your database. If you're worried about this then navigate to your project folder.
cd /path/to/my/project
Here you need to erase the mongodb.lock
file.
rm .meteor/local/db/mongodb.lock
Now you can run Meteor using the command,
meteor
Removing this file and folder worked for me:
rm -rf .meteor/local/db/mongod.lock .meteor/local/db/journal/
As suggested elsewhere, running meteor reset
fixed the problem for me on OS X.
WARNING: meteor reset
erases everything in your local database.
I had the same problem, I solved it changing ownership of .meteor folder (where MongoDB lives)
cd path-to-meteor-app
sudo chown -R youruser:yourgruop .meteor
Hope to help someone!
If you get a notification with something like
Local folder has run out of space
Try going to
cd .meteor/local/bundler-cache/
and deleting everything in that directory. Its a cache so it shouldnt affect too much. It seems to grow uncontrollably sometimes.
EDIT
Combining all the other answers try
rm -rf .meteor/local/db/mongod.lock .meteor/local/db/local.* .meteor/local/db/journal .meteor/local/bundler-cache/linker/
If this is still not working you might have to free up some space on your disk. Do so by checking via
free -m
or looking at your inodes and how much space is being used up via
df -h