8

I was trying to run Meteor on my VPS and I was getting this error:

Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Can't start Mongo server.
MongoDB had an unspecified uncaught exception.
This can be caused by MongoDB being unable to write to a local database.
Check that you have permissions to write to .meteor/local. MongoDB does
not support filesystems like NFS that do not allow file locking.

I have figured out that the problem is in my user permissions or something like that. It works very smoothly when I try to run meteor with root access. If I try to run meteor with my "custom" user, it fails. Even though I grant him sudo privileges as listed on DigitalOcean. Why is it so? What is the problem behind?

I am on Ubuntu 14.04.1 LTS. Meteor is version 0.8.3 and I am using MongoDB coming with Meteor. I do not have seperated instalation of MongoDB.


Update: Basicly I have found the problem but I still do not now what is causing the problem. I am on DigitalOcean VPS. If I run Meteor over SSH, it fails. If I run Meteor on web Console Access, it works. I do not get it.

Marek
  • 2,608
  • 4
  • 25
  • 32
  • 1
    Can you make sure that the owner of `.meteor/local` is yourself and not **root**? – Tomasz Lenarcik Aug 03 '14 at 07:11
  • Yes, I am the owner of entire folder and all files in it. – Marek Aug 03 '14 at 07:20
  • 1
    Lack of available disk space also causes this error. Still doesn't explain why you'd see it over SSH but not web console, but it's worth investigating. – richsilv Aug 03 '14 at 09:46
  • It is completely new Meteor app and virtual machine has 20GB disk. This should not be a problem. – Marek Aug 03 '14 at 09:50
  • possible duplicate of [Meteor: unexpected mongo exit code 100](http://stackoverflow.com/questions/15610385/meteor-unexpected-mongo-exit-code-100) – KyleMit Feb 10 '15 at 02:58

4 Answers4

10

Answer https://stackoverflow.com/a/15752736 helped me to find out that Mongo doesn't want to start without properly set locale. Try to run export LC_ALL="en_US.UTF-8" command before meteor command.

Community
  • 1
  • 1
Andrey Dyatlov
  • 1,628
  • 1
  • 10
  • 12
5

WARNING: This deletes the database and all of the application's data.

rm -rf .meteor/local 

Solved it for me when none of the above solutions did.

oskare
  • 1,061
  • 13
  • 24
  • 4
    WARNING: this deletes the database and all of the application's data – redress May 06 '15 at 02:07
  • This is the solution that finally worked for me on my OSX machine. It would be good if someone listed out all the things to check or try before resorting to this as the last step. – a20 Jun 06 '16 at 04:46
0

I would guess that the custom user you created cannot remove the mongod.lock file due to insufficient premissions.

Erez Hochman
  • 1,588
  • 1
  • 11
  • 14
0

Also check that you have space on your HD, That was my problem.

Gil SH
  • 3,789
  • 1
  • 27
  • 25