8

I'm playing with meteor.js and I get this error:

Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Can't start mongod

MongoDB had an unspecified uncaught exception.
Check to make sure that MongoDB is able to write to its database directory.

I'm not sure how to remedy this, especially within the context of Meteor.js I installed using curl on snow leopard mac os.

It was actually working for a while as I did a few exercises from a book I have, then it conked out with the error. Not sure what I did.

William
  • 4,422
  • 17
  • 55
  • 108
  • What OS is this? did you install meteor with sudo? – Tarang Jan 24 '13 at 07:42
  • Oh sorry. Mac OS Snow lep. And I used curl – William Jan 24 '13 at 07:43
  • Could you check if theres a hidden `.meteor` folder in your app directory? also just see if `sudo meteor` works from your app directory? – Tarang Jan 24 '13 at 07:44
  • Yes to both and I get the same error with sudo – William Jan 24 '13 at 07:45
  • ok if it did that with sudo, then try creating a new meteor app somewhere else and run it to see if that works? If that does, the app you made has its database/files changed around somehow – Tarang Jan 24 '13 at 07:49
  • I created a whole new app on the desktop and a few other directories, same problem – William Jan 24 '13 at 07:52
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/23279/discussion-between-akshat-and-taoist) – Tarang Jan 24 '13 at 07:54

5 Answers5

14

I fixed this by going to .meteor\local\db and deleting mongod.lock

Farzher
  • 13,934
  • 21
  • 69
  • 100
  • I encountered this issue after a sudden and unexpected shutdown. So, this makes sense. – jonS90 Nov 22 '13 at 20:35
  • +1 Exactly the solution I required. Frightened what would have happened if SO did not exist ! – Anmol Saraf Dec 18 '13 at 11:12
  • This is exactly what I needed, and it makes total sense in my situation (renamed the project dir while meteor was running). – T3db0t Nov 21 '14 at 17:28
7

I had this problem when I updated from 0.7 to 0.8 in my local environment, I had nothing to loose in my local database, so I fixed by:

rm -rf .meteor/local/db
Jorge Torres
  • 271
  • 3
  • 2
6

As with our discussion, you just need to free up some disk space, I wish meteor would give more descriptive errors.

If you free up some space it should sort itself out

Tarang
  • 75,157
  • 39
  • 215
  • 276
  • This was happening a lot to me but freeing some space fixed the problem. (Weirdly some large db apps would work but smaller db apps wouldn't) – Matthew Wilcoxson Feb 24 '15 at 17:34
1

It could be that you have an instance of mongod running already, do a

ps -el | grep mongo

and if it's running kill it and restart

Christian Neverdal
  • 5,655
  • 6
  • 38
  • 93
throb
  • 11
  • 1
0

As @Akshat said:

If you even as root cannot run meteor, it's probably a full partion & you have to clean up or just move the folder to an other partition.

If you can run meteor as root, it's probably a rights issue solvable this way:
In the meteor project folder: sudo chown -R $USER:$USER .
I recommend not to use a NTFS partition as setting the correct rights there is difficult.

jan-glx
  • 7,611
  • 2
  • 43
  • 63